/* Daily Newscast Portal CSS — UI/UX Pro Max Dark Editorial Design System */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-base: #090914;
  --bg-elevated: #0E1022;
  --bg-surface: #13152B;
  --bg-card-odd: #111328;
  --border-card-odd: rgba(99, 102, 241, 0.22);
  --bg-card-even: #161833;
  --border-card-even: rgba(129, 140, 248, 0.28);
  --bg-card-hero: linear-gradient(155deg, rgba(24, 26, 58, 0.96), rgba(14, 16, 36, 0.98));
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-highlight: rgba(129, 140, 248, 0.48);
  --text-main: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dim: #7C8BA1;
  --primary: #6366F1;
  --primary-hover: #4F46E5;
  --accent: #F97316;
  --accent-hover: #EA580C;
  --accent-glow: rgba(249, 115, 22, 0.35);
  --emerald: #10B981;
  --badge-bg: rgba(99, 102, 241, 0.16);
  --badge-text: #C7D2FE;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

html {
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: 120px;
  line-height: 1.5;
  background-image:
    radial-gradient(circle at 18% 0%, rgba(99, 102, 241, 0.16), transparent 44%),
    radial-gradient(circle at 86% 12%, rgba(249, 115, 22, 0.08), transparent 36%),
    radial-gradient(circle at 50% 60%, rgba(49, 46, 129, 0.12), transparent 55%);
}

/* Focus-Visible Accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Minimal Sticky Header Navigation
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background-color: rgba(11, 13, 28, 0.88);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.4);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

.brand-section:hover .brand-logo-img {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.45);
}

.brand-title {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  display: inline-block;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-main);
  background-color: rgba(99, 102, 241, 0.14);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logout-form {
  margin: 0;
}

.btn-subscribe-cta {
  background: linear-gradient(135deg, var(--accent), #EA580C);
  color: #0F172A;
  border: 1px solid rgba(254, 215, 170, 0.45);
  padding: 0.55rem 1.05rem;
  min-height: 42px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}

.btn-subscribe-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(249, 115, 22, 0.48);
  filter: brightness(1.06);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  min-height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-ghost:hover {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-highlight);
}

/* ============================================================
   Main Container & Editorial Hero Masthead
   ============================================================ */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3rem;
  width: 100%;
  flex: 1;
}

.hero-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 18%, rgba(249, 115, 22, 0.14), transparent 42%),
    radial-gradient(circle at 12% 10%, rgba(99, 102, 241, 0.2), transparent 48%),
    rgba(16, 18, 40, 0.92);
  border: 1px solid rgba(129, 140, 248, 0.28);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.hero-copy-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #C7D2FE;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-eyebrow-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero-headline {
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text-main);
}

.hero-lead {
  font-size: 0.96rem;
  color: var(--text-secondary);
  max-width: 72ch;
  line-height: 1.55;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.btn-hero-play {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #EA580C);
  color: #0F172A;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.36);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-hero-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(249, 115, 22, 0.5);
}

.hero-play-duration {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.16);
  font-variant-numeric: tabular-nums;
}

.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.btn-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 38px;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-platform-pill:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(129, 140, 248, 0.55);
  color: var(--text-main);
}

.btn-platform-rss {
  border-color: rgba(249, 115, 22, 0.35);
  color: #FDBA74;
}

.platform-soon-pill {
  font-size: 0.74rem;
  color: var(--text-muted);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
}

.hero-metrics-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 0.75rem;
  background: rgba(9, 10, 24, 0.68);
  border: 1px solid rgba(129, 140, 248, 0.24);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
}

.hero-metric-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.hero-metric-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.hero-metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.25;
}

/* ============================================================
   Controls: Search, Rubric Filter Chips & Stats
   ============================================================ */
.controls-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.search-box {
  position: relative;
  flex: 1 1 320px;
  min-width: 240px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 44px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 2.5rem 0 2.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

.btn-clear-search {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.btn-clear-search:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-main);
}

.stats-badge {
  font-size: 0.84rem;
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: var(--radius-md);
}

.rubric-filter-bar {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 0.5rem;
}

.rubric-chip {
  min-height: 38px;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: rgba(19, 21, 43, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rubric-chip:hover {
  border-color: var(--border-highlight);
  color: var(--text-main);
  background: rgba(99, 102, 241, 0.14);
}

.rubric-chip.is-active,
.rubric-chip[aria-pressed="true"] {
  background: rgba(99, 102, 241, 0.24);
  border-color: #818CF8;
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.25);
}

/* ============================================================
   Episodes Grid & Day Cards
   ============================================================ */
.episodes-grid {
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.day-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.episodes-grid .day-card:nth-child(odd) {
  background-color: var(--bg-card-odd);
  border: 1px solid var(--border-card-odd);
}

.episodes-grid .day-card:nth-child(even) {
  background-color: var(--bg-card-even);
  border: 1px solid var(--border-card-even);
}

.day-card.is-hero-day {
  background: var(--bg-card-hero);
  border: 1px solid rgba(249, 115, 22, 0.42);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(99, 102, 241, 0.14);
}

.day-card:hover {
  border-color: var(--border-highlight) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.46);
}

.hero-day-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(249, 115, 22, 0.45);
  color: #FDBA74;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-ribbon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.multi-part-day-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.multi-part-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.multi-part-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.badge-double-episode,
.badge-single-episode {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.badge-double-episode {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(234, 88, 12, 0.35));
  color: #FDBA74;
  border: 1px solid rgba(249, 115, 22, 0.5);
}

.badge-single-episode {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(79, 70, 229, 0.35));
  color: #C7D2FE;
  border: 1px solid rgba(99, 102, 241, 0.5);
}

.multi-part-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.multi-part-main-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.015em;
  margin: 0.1rem 0 0;
}

/* ============================================================
   Mathematically Matched 9fr : 16fr Equal-Height Visual Stage
   (1:1 Cover left = 9k tall, 16:9 Carousel right = 9k tall)
   ============================================================ */
.multi-part-shared-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(8, 10, 22, 0.68);
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.multi-part-shared-visual.has-both-visuals {
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(0, 16fr);
  grid-template-rows: auto auto;
  column-gap: 1.35rem;
  row-gap: 0.9rem;
  align-items: start;
}

.multi-part-shared-visual.has-both-visuals .shared-visuals-thumbs {
  grid-column: 1 / -1;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(0, 16fr);
  grid-template-columns: subgrid;
  grid-template-rows: auto auto;
  grid-template-rows: subgrid;
  width: 100%;
  min-width: 0;
}

.multi-part-shared-visual.has-both-visuals .shared-cover-thumb-wrapper {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 1 / 1;
}

.multi-part-shared-visual.has-both-visuals .visual-carousel-shell {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-rows: auto auto;
  grid-template-rows: subgrid;
  max-width: none;
  width: 100%;
  min-width: 0;
  gap: 0;
  row-gap: 0.85rem;
}

.multi-part-shared-visual.has-both-visuals .carousel-track {
  grid-row: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.multi-part-shared-visual.has-both-visuals .carousel-controls {
  grid-row: 2;
}

.multi-part-shared-visual.has-both-visuals .infographic-thumb-wrapper {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: none;
  margin: 0;
}

.multi-part-shared-visual.has-both-visuals .shared-visual-info {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
}

/* Fallback when no carousel controls exist alongside single infographic */
.multi-part-shared-visual.has-both-visuals:not(:has(.visual-carousel-shell)) .shared-visual-info {
  grid-column: 1 / -1;
  grid-row: 2;
}

/* When only infographic / carousel exists (no cover) */
.multi-part-shared-visual.has-only-infographic {
  display: grid;
  grid-template-columns: minmax(0, 16fr) minmax(0, 9fr);
  gap: 1.35rem;
  align-items: center;
}

.multi-part-shared-visual.has-only-infographic .shared-visuals-thumbs,
.multi-part-shared-visual.has-only-infographic .visual-carousel-shell,
.multi-part-shared-visual.has-only-infographic .infographic-thumb-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* When only cover exists (no infographic) */
.multi-part-shared-visual.has-only-cover {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: center;
}

.shared-visuals-thumbs {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.shared-cover-thumb-wrapper {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}

.shared-cover-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.42);
  background-color: #0A0A18;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.shared-cover-btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.32);
}

.shared-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.2s ease;
}

.shared-cover-btn:hover .shared-cover-img {
  transform: scale(1.03);
  filter: brightness(1.06);
}

.shared-visual-info {
  min-width: 0;
}

.shared-visual-desc {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
}

.shared-visual-sub {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ============================================================
   Impuls des Tages (Compact 2-Column Editorial Box)
   ============================================================ */
.impuls-highlight-card {
  margin: 0;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.11), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.32);
}

.impuls-highlight-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.impuls-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
  font-size: 0.74rem;
  font-weight: 700;
}

.impuls-theme {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.impuls-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.impuls-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.impuls-question {
  margin: 0;
  padding-left: 0.85rem;
  border-left: 3px solid rgba(245, 158, 11, 0.75);
  color: #F1F5F9;
  font-size: 0.9rem;
  line-height: 1.5;
}

.impuls-col-action {
  background: rgba(9, 11, 24, 0.5);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}

.impuls-action-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #FCD34D;
  margin-bottom: 0.25rem;
}

.impuls-action {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ============================================================
   Episode Part Segments & Clean Tracklist
   ============================================================ */
.parts-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
}

.part-card-segment {
  background: rgba(10, 11, 25, 0.66);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: start;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.part-card-segment:has(.episode-cover-thumb-wrap) {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
}

/* Hide redundant small thumbnail on single-episode days when shared cover is already shown */
.day-card.is-single-episode:has(.shared-cover-thumb-wrapper) .episode-cover-thumb-wrap {
  display: none;
}

.day-card.is-single-episode:has(.shared-cover-thumb-wrapper) .part-card-segment:has(.episode-cover-thumb-wrap) {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.part-card-segment:hover {
  border-color: var(--border-highlight);
  background-color: rgba(18, 20, 44, 0.82);
}

.part-card-segment.is-active {
  border-color: var(--accent) !important;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.22) !important;
}

.play-trigger {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3730A3, #4F46E5);
  color: #FFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.42);
}

.play-trigger:hover {
  transform: scale(1.07);
  background: linear-gradient(135deg, #4F46E5, var(--accent));
  box-shadow: 0 6px 22px var(--accent-glow);
}

.play-trigger.is-playing {
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(249, 115, 22, 0.4); }
  50% { box-shadow: 0 0 28px rgba(249, 115, 22, 0.8); }
}

.episode-cover-thumb-wrap {
  width: 62px;
  height: 62px;
  min-width: 62px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(99, 102, 241, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0A0A18;
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.episode-cover-thumb-wrap:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

.episode-cover-btn {
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-thumb-mini-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 12px;
  pointer-events: none;
}

.episode-cover-btn:hover .cover-thumb-mini-overlay {
  opacity: 1;
}

.episode-cover-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.episode-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.62rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.tag-date {
  color: var(--badge-text);
  background-color: var(--badge-bg);
  border-color: rgba(99, 102, 241, 0.35);
  font-weight: 600;
}

.tag-part {
  background-color: rgba(249, 115, 22, 0.16);
  color: #FDBA74;
  border-color: rgba(249, 115, 22, 0.4);
  font-weight: 600;
}

.tag-plays {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6EE7B7;
}

.episode-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.32;
}

.badge-deep-dive {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(234, 88, 12, 0.3));
  color: #FDBA74;
  border: 1px solid rgba(249, 115, 22, 0.45);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-right: 0.4rem;
  vertical-align: middle;
}

/* Complete, unclipped Episode Subtitle */
.episode-cover-title {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: #F8FAFC;
  background: rgba(99, 102, 241, 0.1);
  border-left: 3px solid var(--accent);
  padding: 0.55rem 0.9rem;
  border-radius: 0 10px 10px 0;
  white-space: normal;
}

.cover-title-svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.22rem;
}

.cover-title-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.episode-summary-preview {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 78ch;
}

.topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.topic-pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* ============================================================
   2-Column Chapter Tracklist + Hover Marquee + Full Tooltip
   ============================================================ */
.chapter-tracklist {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.chapter-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 0.5rem;
}

.timestamp-btn {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  background-color: rgba(99, 102, 241, 0.11);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: #E0E7FF;
  font-size: 0.79rem;
  font-family: inherit;
  font-weight: 500;
  padding: 0.34rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.timestamp-btn.is-extra-chapter {
  display: none;
}

.chapter-tracklist.is-expanded .timestamp-btn.is-extra-chapter {
  display: flex;
}

.timestamp-btn:hover,
.timestamp-btn:focus-visible {
  background-color: rgba(249, 115, 22, 0.92);
  border-color: var(--accent);
  color: #0F172A;
  box-shadow: 0 3px 10px var(--accent-glow);
}

.ts-badge {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.12rem 0.42rem;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.6);
  color: #A5B4FC;
}

.timestamp-btn:hover .ts-badge,
.timestamp-btn:focus-visible .ts-badge {
  background: rgba(15, 23, 42, 0.16);
  color: #0F172A;
}

.ts-channel {
  flex-shrink: 0;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.1rem 0.42rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
}

.timestamp-btn:hover .ts-channel,
.timestamp-btn:focus-visible .ts-channel {
  background: rgba(15, 23, 42, 0.14);
  color: #0F172A;
}

.ts-title-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: clip;
  white-space: nowrap;
  position: relative;
}

.timestamp-btn.is-overflowing .ts-title-viewport {
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, #000 88%, transparent 100%);
}

.ts-title-scroll {
  display: inline-block;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .timestamp-btn.is-overflowing:is(:hover, :focus-visible) .ts-title-viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .timestamp-btn.is-overflowing:is(:hover, :focus-visible) .ts-title-scroll {
    animation: chapterMarquee var(--marquee-duration, 5.5s) ease-in-out infinite alternate;
  }
}

@keyframes chapterMarquee {
  0%, 15% {
    transform: translateX(0);
  }
  85%, 100% {
    transform: translateX(var(--marquee-shift, -60px));
  }
}

.btn-toggle-chapters {
  align-self: flex-start;
  background: transparent;
  border: 1px dashed rgba(129, 140, 248, 0.4);
  color: #C7D2FE;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  min-height: 32px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-toggle-chapters:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: #818CF8;
}

/* Floating Full-Text Tooltip */
.portal-floating-tooltip {
  position: fixed;
  z-index: 160;
  max-width: min(560px, calc(100vw - 2rem));
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: rgba(9, 11, 25, 0.96);
  border: 1px solid rgba(249, 115, 22, 0.55);
  color: #F8FAFC;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.portal-floating-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card Action Buttons */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-action {
  height: 40px;
  padding: 0 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-download {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-download:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFF;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.btn-shownotes {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-shownotes:hover {
  color: var(--text-main);
  border-color: var(--border-highlight);
  background-color: var(--bg-surface);
}

.btn-infographic {
  background-color: rgba(16, 185, 129, 0.08);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.btn-infographic:hover {
  color: #A7F3D0;
  border-color: #10B981;
  background-color: rgba(16, 185, 129, 0.18);
}

/* ============================================================
   Shownotes Drawer (Inline Search + Links + Tables)
   ============================================================ */
.shownotes-content {
  display: none;
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  background-color: rgba(8, 10, 22, 0.78);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #CBD5E1;
}

.shownotes-content.is-open {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.shownotes-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sn-search-wrap {
  position: relative;
  flex: 1 1 260px;
  max-width: 420px;
  display: flex;
  align-items: center;
}

.sn-search-wrap svg {
  position: absolute;
  left: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
}

.sn-search-input {
  width: 100%;
  height: 36px;
  padding: 0 0.75rem 0 2.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-base);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.82rem;
}

.sn-search-input:focus {
  border-color: var(--primary);
  outline: none;
}

.btn-sn-md {
  font-size: 0.78rem;
  min-height: 36px;
}

.sn-heading {
  color: var(--text-main);
  margin: 1.25rem 0 0.55rem 0;
  font-weight: 700;
}

.sn-heading-1, .sn-heading-2 {
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.35rem;
}

.sn-heading-3 {
  font-size: 0.98rem;
  color: #E2E8F0;
}

.sn-paragraph {
  margin-bottom: 0.75rem;
}

.sn-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.sn-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sn-list li.sn-ts-item {
  align-items: flex-start;
  flex-wrap: nowrap;
}

.sn-list li.sn-ts-item .timestamp-btn {
  width: auto;
  min-height: 32px;
  padding: 0.22rem 0.5rem;
}

.sn-ts-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.sn-ch-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #C7D2FE;
  background: rgba(99, 102, 241, 0.18);
  padding: 0.08rem 0.45rem;
  border-radius: 5px;
  margin-right: 0.35rem;
}

.ts-text {
  color: #F1F5F9;
}

.ts-subdesc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sn-link {
  color: #93C5FD;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.sn-link:hover {
  color: #FDBA74;
}

.sn-table-wrap {
  overflow-x: auto;
  margin: 0.85rem 0;
}

.sn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.sn-table th,
.sn-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sn-table th {
  color: #C7D2FE;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.08);
}

.sn-quote {
  border-left: 3px solid var(--accent);
  font-style: italic;
  margin: 0.75rem 0;
  color: #F1F5F9;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.6rem 1rem;
  border-radius: 0 8px 8px 0;
}

.sn-divider {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 1.15rem 0;
}

/* ============================================================
   6 Rubrics Section & About Format Section
   ============================================================ */
.rubrics-section,
.about-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.section-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FDBA74;
  margin-bottom: 0.25rem;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.rubrics-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.rubric-card {
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  background: rgba(16, 18, 40, 0.82);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--text-main);
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.rubric-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
  background: rgba(24, 27, 58, 0.92);
}

.rubric-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #A5B4FC;
  margin-bottom: 0.15rem;
}

.rubric-num {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.16);
  color: #C7D2FE;
}

.rubric-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
}

.rubric-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.48;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
}

.about-card {
  background: rgba(16, 18, 40, 0.86);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.curator-card {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
}

.curator-avatar {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #312E81, #F97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: #FFF;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.curator-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.curator-role-row,
.format-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.curator-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.18);
  color: #FDBA74;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.curator-badge.badge-indigo {
  background: rgba(99, 102, 241, 0.18);
  color: #C7D2FE;
  border-color: rgba(99, 102, 241, 0.45);
}

.curator-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.about-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
}

.about-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.curator-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.curator-tags span {
  font-size: 0.74rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.format-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.format-pillars {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.format-pillars li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.format-pillars li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

/* Empty States */
.empty-archive-state,
.empty-search-state {
  text-align: center;
  padding: 3rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
  color: var(--text-secondary);
  background: rgba(16, 18, 40, 0.5);
}

.empty-archive-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.btn-reset-filters {
  margin-top: 1rem;
  min-height: 40px;
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary);
  background: rgba(99, 102, 241, 0.18);
  color: #FFF;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ============================================================
   Sticky Bottom Audio Player Bar
   ============================================================ */
.audio-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(14, 16, 34, 0.96);
  border-top: 1px solid var(--border-highlight);
  backdrop-filter: blur(20px);
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.65);
  z-index: 50;
  padding: 0.75rem 1.5rem;
  display: none;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.audio-player-bar.is-visible {
  display: block;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.player-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr 290px;
  gap: 1.5rem;
  align-items: center;
}

.player-track {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
}

.player-track-cover {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1E1B4B, #312E81);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  border: 1px solid rgba(249, 115, 22, 0.38);
  overflow: hidden;
}

.player-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-track-meta {
  min-width: 0;
  overflow: hidden;
}

.player-track-title {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-track-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-ctrl {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border-radius: 50%;
  min-width: 44px;
  min-height: 44px;
  transition: all 0.15s ease;
}

.btn-ctrl:hover:not(:disabled):not(.is-disabled) {
  color: var(--text-main);
  background-color: var(--bg-surface);
}

.btn-ctrl:disabled,
.btn-ctrl.is-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-main-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #0F172A;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, background-color 0.15s ease;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-main-play:hover {
  transform: scale(1.06);
  background: var(--accent-hover);
}

.btn-main-play svg {
  width: 20px;
  height: 20px;
}

.player-timeline {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.time-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  width: 42px;
  text-align: center;
}

.seek-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    var(--accent) 0%,
    var(--accent) var(--seek-pct, 0%),
    rgba(148, 163, 184, 0.25) var(--seek-pct, 0%),
    rgba(148, 163, 184, 0.25) 100%
  );
  outline: none;
  cursor: pointer;
  transition: height 0.15s ease;
}

.seek-slider:hover {
  height: 7px;
}

.seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-glow);
}

.seek-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.autoplay-btn,
.speed-btn,
.sleep-timer-btn {
  min-height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.sleep-timer-btn {
  min-width: 44px;
}

.autoplay-btn:hover,
.speed-btn:hover,
.sleep-timer-btn:hover {
  border-color: var(--primary);
  color: var(--text-main);
}

.autoplay-btn.is-active {
  background: rgba(249, 115, 22, 0.16);
  border-color: rgba(249, 115, 22, 0.55);
  color: #FDBA74;
}

.sleep-timer-btn.is-active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6EE7B7;
}

.volume-box {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.volume-slider {
  width: 68px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.28);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--text-secondary);
  cursor: pointer;
}

.player-download-btn {
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.player-download-btn:hover {
  color: var(--primary);
}

/* ============================================================
   Native <dialog> Subscribe Modal & Standard Modals
   ============================================================ */
dialog.subscribe-dialog {
  margin: auto;
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: var(--radius-lg);
  background: #12142B;
  color: var(--text-main);
  max-width: 580px;
  width: calc(100vw - 2rem);
  padding: 0;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.8);
}

dialog.subscribe-dialog[open] {
  display: block;
  animation: modalFade 0.2s ease;
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(5, 7, 18, 0.78);
  backdrop-filter: blur(10px);
}

.subscribe-dialog-inner {
  padding: 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.subscribe-rss-box {
  background: rgba(9, 10, 24, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.subscribe-field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.subscribe-rss-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.subscribe-rss-input {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}

.btn-copy-rss {
  white-space: nowrap;
  flex-shrink: 0;
}

.copy-rss-status {
  min-height: 1.15rem;
  font-size: 0.78rem;
  color: #6EE7B7;
  font-weight: 600;
}

.subscribe-apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.subscribe-app-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.95rem;
  min-height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.subscribe-app-card:hover {
  border-color: var(--accent);
  background: rgba(249, 115, 22, 0.14);
}

.app-card-action {
  font-size: 0.75rem;
  color: #FDBA74;
}

.subscribe-soon-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Legacy Div Modals (Change Password & Lightbox) */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.is-active {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8);
  animation: modalFade 0.2s ease;
}

@keyframes modalFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-main);
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.modal-input {
  width: 100%;
  height: 42px;
  background-color: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0 0.875rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.modal-input:focus {
  border-color: var(--primary);
}

.modal-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

.modal-alert.alert-error {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}

.modal-alert.alert-success {
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6EE7B7;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-modal-cancel {
  height: 40px;
  padding: 0 1.25rem;
  background-color: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
}

.btn-modal-submit {
  height: 40px;
  padding: 0 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border: none;
  color: #FFF;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.modal-box-large {
  max-width: 1120px;
  width: 95vw;
  padding: 1.5rem;
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-modal-close {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-modal-close:hover {
  color: var(--text-main);
  border-color: var(--border-highlight);
  background-color: var(--bg-surface);
}

.infographic-preview-container {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0B0F19;
  border: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 76vh;
}

.infographic-preview-img {
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-sm);
}

/* ============================================================
   16:9 Infographic & Carousel Styling
   ============================================================ */
.infographic-thumb-wrapper {
  margin: 0.5rem 0;
  max-width: 360px;
}

.infographic-thumb-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background-color: #0B0F19;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.infographic-thumb-btn:hover {
  border-color: #10B981;
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.28);
}

.infographic-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.2s ease;
}

.infographic-thumb-btn:hover .infographic-thumb {
  transform: scale(1.03);
  filter: brightness(1.06);
}

.visual-thumb-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(10, 14, 30, 0.88);
  backdrop-filter: blur(6px);
  color: #6EE7B7;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  pointer-events: none;
}

.visual-thumb-badge.cover-badge {
  color: #FDBA74;
  border-color: rgba(249, 115, 22, 0.45);
}

.visual-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 30, 0.7);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #FFF;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
  pointer-events: none;
}

.shared-cover-btn:hover .visual-thumb-overlay,
.infographic-thumb-btn:hover .visual-thumb-overlay {
  opacity: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visual-carousel-shell {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: manipulation;
  scrollbar-width: none;
  gap: 0;
  border-radius: 12px;
  border: 1px solid rgba(129, 140, 248, 0.24);
  background: rgba(10, 14, 30, 0.65);
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .carousel-track {
    scroll-behavior: smooth;
  }
}

.carousel-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.carousel-track > * {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
  min-width: 0;
  height: 100%;
}

.carousel-slide .infographic-thumb-btn {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.carousel-nav-btn {
  appearance: none;
  touch-action: manipulation;
  background: rgba(255, 255, 255, 0.08);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.carousel-nav-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.28);
  border-color: rgba(129, 140, 248, 0.7);
}

.carousel-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel-markers {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  justify-content: center;
  gap: 0.35rem;
  flex: 1 1 auto;
}

.carousel-dot {
  appearance: none;
  touch-action: manipulation;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  min-height: 28px;
  font-size: 0.74rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.carousel-dot[aria-current="true"] {
  background: rgba(99, 102, 241, 0.3);
  color: #FFFFFF;
  border: 1.5px solid #818CF8;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.28);
}

/* ============================================================
   Resume Banner, Controls Toggles, Progress & Ratings
   ============================================================ */
.resume-banner {
  background: linear-gradient(135deg, rgba(20, 22, 48, 0.96), rgba(30, 27, 75, 0.88));
  border: 1px solid rgba(249, 115, 22, 0.38);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(249, 115, 22, 0.15);
}

.resume-banner-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.resume-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.resume-banner-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  min-width: 0;
}

.resume-banner-lead {
  font-weight: 700;
  color: #FDBA74;
}

.resume-banner-title {
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}

.resume-banner-at {
  color: var(--text-muted);
}

.resume-banner-time {
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.resume-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-resume-play {
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #0F172A;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-resume-dismiss {
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.controls-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-control-toggle {
  min-height: 44px;
  padding: 0 0.9rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.15s ease;
}

.btn-control-toggle:hover {
  color: var(--text-main);
  border-color: var(--border-highlight);
}

.btn-control-toggle.is-active,
.btn-control-toggle[aria-pressed="true"] {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  color: #C7D2FE;
}

.badge-played {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
  font-size: 0.75rem;
  font-weight: 600;
}

.part-card-segment.is-played .badge-played {
  display: inline-flex !important;
}

.card-progress-track {
  grid-column: 1 / -1;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.35rem;
}

.card-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s ease-out;
}

.part-card-segment.is-played .card-progress-bar {
  background: var(--emerald);
}

.player-next-track {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.12rem;
}

.player-next-label {
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.player-next-title {
  color: #FDBA74;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-rating-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rating-label {
  font-weight: 500;
  font-size: 0.75rem;
}

.rating-buttons {
  display: inline-flex;
  gap: 0.35rem;
  position: relative;
}

.btn-rating {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  font-size: 1.05rem;
}

.btn-rating:hover,
.btn-rating:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.btn-rating.is-selected {
  background: rgba(59, 130, 246, 0.25);
  border-color: #3B82F6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.35);
  transform: scale(1.06);
}

.btn-rating[data-score="4"].is-selected {
  background: rgba(245, 158, 11, 0.25);
  border-color: #F59E0B;
}

.btn-rating[data-score="1"].is-selected {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
}

.btn-rating .rating-tooltip {
  display: none;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0F172A;
  color: #F8FAFC;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 50;
}

.btn-rating:last-child .rating-tooltip {
  left: auto;
  right: 0;
  transform: translateY(4px);
}

.btn-rating:hover .rating-tooltip,
.btn-rating:focus-visible .rating-tooltip {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.btn-rating:last-child:hover .rating-tooltip,
.btn-rating:last-child:focus-visible .rating-tooltip {
  transform: translateY(0);
}

/* Footer */
.page-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2rem;
}

.footer-legal {
  margin-top: 0.45rem;
}

.footer-legal a {
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.4rem;
}

.footer-ai-note {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  opacity: 0.8;
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */
@media (max-width: 1040px) {
  .primary-nav {
    display: none;
  }
  .hero-masthead {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-metrics-card {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .part-card-segment,
  .day-card.is-single-episode:has(.shared-cover-thumb-wrapper) .part-card-segment:has(.episode-cover-thumb-wrap) {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .part-card-segment:has(.episode-cover-thumb-wrap) {
    grid-template-columns: auto auto minmax(0, 1fr);
  }
  .part-card-segment > .episode-info {
    min-width: 0;
  }
  .card-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
  }
  .multi-part-shared-visual.has-both-visuals,
  .multi-part-shared-visual.has-only-infographic,
  .multi-part-shared-visual.has-only-cover {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .multi-part-shared-visual.has-both-visuals .shared-visuals-thumbs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
  }
  .multi-part-shared-visual.has-both-visuals .visual-carousel-shell {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
    overflow: hidden;
  }
  .multi-part-shared-visual.has-both-visuals .shared-cover-thumb-wrapper,
  .shared-cover-thumb-wrapper {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .impuls-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .player-inner {
    grid-template-columns: 1fr auto;
  }
  .player-track {
    grid-column: 1 / -1;
  }
  .player-center {
    grid-column: 1;
    width: 100%;
  }
  .player-right {
    grid-column: 2;
  }
  .volume-box {
    display: none;
  }
}

@media (max-width: 600px) {
  body {
    padding-bottom: 175px;
  }
  .header-content {
    padding: 0.65rem 0.9rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .brand-section {
    min-width: 0;
    gap: 0.6rem;
    flex: 1 1 auto;
  }
  .brand-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .brand-title {
    font-size: 1.02rem;
  }
  .brand-subtitle {
    display: none;
  }
  .header-actions {
    gap: 0.4rem;
    margin-left: auto;
    flex-shrink: 0;
  }
  .btn-subscribe-cta {
    padding: 0.45rem 0.72rem;
    min-height: 38px;
    font-size: 0.8rem;
  }
  .btn-ghost-compact {
    padding: 0.45rem 0.55rem;
    min-height: 38px;
  }
  .btn-ghost-compact span {
    display: none;
  }
  main {
    padding: 1rem;
  }
  .hero-masthead {
    padding: 1.15rem;
  }
  .hero-metrics-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0.85rem;
    gap: 0.5rem;
  }
  .day-card {
    padding: 1rem;
    min-width: 0;
  }
  .part-card-segment {
    padding: 1rem;
    gap: 0.9rem;
  }
  .part-card-segment:has(.episode-cover-thumb-wrap) {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .part-card-segment:has(.episode-cover-thumb-wrap) .episode-info {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .chapter-pills {
    grid-template-columns: minmax(0, 1fr);
  }
  .card-actions {
    flex-wrap: wrap;
  }
  .btn-action {
    flex: 1;
  }
  .subscribe-apps-grid {
    grid-template-columns: 1fr;
  }
  .subscribe-rss-row {
    flex-direction: column;
    align-items: stretch;
  }
  .curator-card {
    flex-direction: column;
  }
  .player-buttons {
    gap: 0.45rem;
  }
}
