:root {
  --bg: #f1f4f8;
  --paper: rgba(255, 255, 255, 0.9);
  --ink: #0f1f47;
  --muted: #455a88;
  --accent: #233f89;
  --accent-strong: #1a2f67;
  --highlight: #a7cf2f;
  --line: rgba(26, 47, 103, 0.16);
  --shadow: 0 24px 60px rgba(17, 38, 84, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Roboto", sans-serif;
  color: var(--ink);
}

.navbar {
  position: sticky;
}

.shell {
  /* width: min(1180px, calc(100% - 32px));
  margin: 0 auto; */
  /* padding: 36px 0 56px; */
}

.brand-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-top: 0;
}

.brand-logo {
  width: 170px;
  max-width: 38vw;
  height: auto;
  object-fit: contain;
}

.brand-title {
  margin: 6px 0 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: 0.01em;
}

.hero {
  /* display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 24px; */
  padding-top: 10rem;
  padding-bottom: 3rem;
  align-items: start;
  background-image: url("../podcast-bg.jpg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  height: 100%;
}

@media (min-width: 992px) {
  .hero {
    background-size: cover;
    height: 95vh;
  }
}

.feature-explain-cont {
  margin-top: 4rem;
}

.hero-copy,
.hero-card,
.episode-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 32px;
}

.hero-card {
  padding: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.96;
  margin-bottom: 18px;
  font-weight: 900;
}

.lede {
  max-width: 42rem;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--muted);
}

.upload-form {
  display: grid;
  gap: 14px;
}

.upload-form label {
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
}

.upload-form input {
  width: 100%;
  border: 1px solid rgba(31, 19, 8, 0.15);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: rgba(255, 255, 255, 0.78);
}

.upload-form button {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  color: #f6fbff;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-strong) 100%
  );
  cursor: pointer;
}

.upload-form button:hover {
  filter: brightness(1.05);
}

.notice {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.94rem;
}

.notice-success {
  background: rgba(51, 129, 89, 0.12);
}

.notice-error {
  background: rgba(178, 60, 42, 0.12);
}

.notice-warning {
  background: rgba(188, 138, 30, 0.14);
}

.episodes {
  margin-top: 34px;
}

.section-head {
  margin-bottom: 18px;
}

.episode-card,
.empty-state {
  padding: 24px;
  margin-bottom: 18px;
}

.episode-card audio {
  width: 100%;
  margin: 18px 0 8px;
}

.episode-meta p:last-child {
  color: var(--muted);
  line-height: 1.65;
}

.script-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.transcript-toggle {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(246, 250, 255, 0.68);
  padding: 10px 12px;
}

.transcript-toggle summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-strong);
  list-style: none;
}

.transcript-toggle summary::-webkit-details-marker {
  display: none;
}

.transcript-toggle summary::before {
  content: "+";
  margin-right: 8px;
  color: var(--highlight);
  font-weight: 900;
}

.transcript-toggle[open] summary::before {
  content: "-";
}

.script-line {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(31, 19, 8, 0.1);
  background: rgba(255, 255, 255, 0.55);
}

.script-line strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-strong);
}

.script-line p {
  margin-bottom: 0;
  line-height: 1.6;
  color: var(--muted);
}

/* ── Progress bar ─────────────────────────────────────────── */
#progress-wrap {
  margin-top: 18px;
}

.progress-card {
  background: linear-gradient(
    135deg,
    rgba(35, 63, 137, 0.06) 0%,
    rgba(167, 207, 47, 0.07) 100%
  );
  border: 1.5px solid rgba(35, 63, 137, 0.18);
  border-radius: 18px;
  padding: 18px 20px 16px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  min-height: 1.4em;
}

.progress-pct {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--accent-strong);
  min-width: 40px;
  text-align: right;
  letter-spacing: -0.01em;
}

.progress-track {
  width: 100%;
  height: 14px;
  background: rgba(35, 63, 137, 0.1);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--highlight) 0%,
    #3ab07a 40%,
    var(--accent) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
  box-shadow: 0 2px 8px rgba(35, 63, 137, 0.28);
}

@keyframes shimmer {
  0% {
    background-position: 200% center;
  }

  100% {
    background-position: -200% center;
  }
}

.progress-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
}

.step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  opacity: 0.38;
  transition: opacity 0.4s, color 0.4s;
  white-space: nowrap;
}

.step.active {
  opacity: 1;
  color: var(--accent-strong);
  font-weight: 700;
}

.step-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.3;
  transition: background 0.4s, opacity 0.4s;
  flex-shrink: 0;
}

.step.active .step-dot {
  background: var(--highlight);
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(167, 207, 47, 0.25);
  animation: pulse-dot 1.2s ease-in-out infinite;
}

.step-dot.done {
  background: var(--accent);
  opacity: 1;
  animation: none;
  box-shadow: none;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(167, 207, 47, 0.25);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(167, 207, 47, 0.1);
  }
}

/* ─────────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .brand-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.9rem;
  }
}

@media (min-width: 992px) {
  body {
    background-size: contain;
  }
}
