/* ============================
   FONTS (self-hosted Inter)
   ============================
   Variable weight 400-700 covers every weight this file uses (400/500/600/700)
   in a single file per subset. unicode-range keeps the 48KB latin file from
   downloading on pages that only render Cyrillic. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colors - matching live icast.bg */
  --brand-orange: #e65100;
  --brand-purple: #6a1b9a;
  --bg-body: #f5f5f5;
  --bg-white: #ffffff;
  --bg-dark: #1a1a2e;
  --text-dark: #333333;
  --text-body: #555555;
  /* NOTE: the "iCast 2026" :root block at the bottom of this file overrides
     every colour here — that one is what actually renders. Kept accessible
     anyway so neither cascade can produce failing contrast.
     #888888 gave only 3.54:1 on white and failed WCAG AA (4.5:1). */
  --text-muted: #6b6b6b;
  --text-white: #ffffff;
  --border-light: #e0e0e0;
  --border-dark: rgba(255,255,255,0.15);
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Never `all`: it makes the engine consider every animatable property on
     every element (100+ anchors here), which shows up as style-recalc time in
     TBT and as "non-composited animations" in Lighthouse. */
  --transition: color 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease,
    opacity 0.25s ease;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button, input {
  font-family: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================
   HEADER - white bg, orange logo
   ============================ */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 0;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.9rem;
  padding: 1.2rem 0.9rem;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-orange);
  border-bottom-color: var(--brand-orange);
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 1.5rem;
  padding: 0.5rem;
}

.nav-btn {
  margin-left: 0.5rem;
}

/* ============================
   HERO - purple cover
   ============================ */
.hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(106,27,154,0.7) 0%, rgba(26,26,46,0.8) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
}

.search-form {
  display: flex;
  max-width: 480px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.search-input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.search-input::placeholder {
  /* #aaa was 2.32:1 on the white search field. Placeholder text is graded by
     the contrast audit like any other text. */
  color: #6f6a72;
}

.search-form button {
  padding: 0.9rem 1.5rem;
  background: #c2410c;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-form button:hover {
  background: #9a3412;
}

/* ============================
   SERIES FILTERS
   ============================ */
.series-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.filter-pill {
  background: var(--bg-white);
  border: 1px solid #cbd5e1;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.filter-pill:hover {
  border-color: #0f172a;
  color: #0f172a;
}

.filter-pill.active {
  background: #0f172a;
  color: #ffffff !important;
  border-color: #0f172a;
}

/* ============================
   EPISODE GRID
   ============================ */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* ============================
   EPISODE CARD
   ============================ */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

/* Cards below the fold cost style+layout+paint on every load; the grid is
   ~6600px tall on mobile. Skip rendering them until they're near the viewport.
   `auto` in contain-intrinsic-size makes the browser remember the real height
   once measured, so scrolling back up doesn't re-shift anything. */
.episode-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

.card-img-link {
  display: block;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: auto;          /* aspect-ratio owns the box; a fixed height fought it */
  aspect-ratio: 1 / 1;   /* matches the 400x400 covers the markup declares */
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-img-link:hover .card-img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.card-title a {
  color: #0f172a;
}

.card-title a:hover {
  color: #c2410c;
}

/* ============================
   BADGES & META
   ============================ */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #4c1d95;
  color: #ffffff;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}

.episode-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.date, .duration {
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ============================
   BUTTONS
   ============================ */
.btn-primary {
  display: inline-block;
  background: #c2410c;
  color: #ffffff !important;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-primary:hover {
  background: #9a3412;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(194,65,12,0.3);
}

.btn-secondary {
  display: inline-block;
  background: #c2410c;
  border: 1px solid #c2410c;
  color: #ffffff !important;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #9a3412;
  border-color: #9a3412;
  color: #ffffff !important;
}

/* ============================
   FEATURED EPISODE
   ============================ */
.featured-episode {
  margin-bottom: 2.5rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 1.5rem;
  align-items: center;
}

.featured-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.featured-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.featured-title a:hover {
  color: var(--brand-orange);
}

.featured-desc {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* ============================
   PLAYER (episode page)
   ============================ */
.player-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.player-series-title {
  font-size: 0.9rem;
  font-weight: 700;
  /* The player card is dark (#211936, set further down this file), so this
     needs a LIGHT accent, not a dark one. 7.22:1 against that background. */
  color: #ff8a65;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.player-cover {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.player-info {
  flex: 1;
}

.player-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 3px 10px rgba(230,81,0,0.3);
  transition: var(--transition);
  flex-shrink: 0;
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 5px 15px rgba(230,81,0,0.4);
}

.progress-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.progress-bar {
  width: 100%;
  height: 5px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.progress-fill {
  background: var(--brand-orange);
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width 0.1s linear;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  /* Not --text-muted: that variable is sized for light backgrounds and is
     shared with .back-link. Inside the dark player this reads 9.57:1. */
  color: #c8c1d3;
  font-variant-numeric: tabular-nums;
}

/* ============================
   EPISODE DETAIL PAGE
   ============================ */
.episode-container {
  max-width: 800px;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.episode-detail {
  padding: 2rem;
}

.episode-cover-large {
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.back-link {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--brand-orange);
}

.bg-dark-glass {
  background: #fafafa;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.text-content {
  line-height: 1.8;
  font-size: 1rem;
  color: var(--text-body);
}

.text-content a {
  color: #9a3412;
  text-decoration: underline;
  font-weight: 600;
}

.text-content a:hover {
  color: #7c2d12;
  text-decoration: underline;
}

/* ============================
   SERIES PAGE
   ============================ */
.series-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

/* Cover::picture() wraps covers in <picture>, so in these flex rows the flex
   item is the <picture> — the <img> is its child and not a flex item at all.
   The flex-shrink:0 below therefore never reached the box the description text
   was squeezing, and the cover came out a narrow strip instead of a square. */
.series-header > picture,
.player-card > picture {
  display: block;
  flex-shrink: 0;
}

.series-header img {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.series-info h1 {
  font-size: 1.6rem;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.series-desc {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
}

.series-meta {
  color: #475569;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 2rem 0;
  text-align: center;
  color: #475569;
  font-size: 0.85rem;
  margin-top: 3rem;
  background: var(--bg-white);
}

.footer a {
  color: #c2410c;
  font-weight: 600;
  text-decoration: underline;
}

.footer a:hover {
  text-decoration: underline;
}

/* ============================
   PAGINATION
   ============================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.page-link {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
}

.page-link:hover, .page-link.active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

.page-current {
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0 0.5rem;
}

/* ============================
   EXTRAS
   ============================ */
.player-error {
  color: #d32f2f;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.ad-indicator {
  background: #ffc107;
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.skip-ad-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-body);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  transition: var(--transition);
}

.skip-ad-btn:hover {
  background: #eee;
}

.alert-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* ============================
   UTILITIES
   ============================ */
.text-center { text-align: center; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-100 { width: 100%; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2.5rem; }
.p-4 { padding: 1.5rem; }
.h5 { font-size: 1rem; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.6rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .player-card {
    flex-direction: column;
    text-align: center;
  }
  
  .player-cover {
    width: 100px;
    height: 100px;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .series-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 1rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .nav-links.active .nav-link {
    text-align: right;
    width: 100%;
    padding: 0.8rem 0;
  }
  
  .episodes-grid {
    grid-template-columns: 1fr;
  }
  
  .episode-detail {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.4rem;
  }
}

/* iCast 2026 — shared public and admin visual system */
:root { --brand-orange:#f4511e; --brand-purple:#35255e; --bg-body:#faf9f7; --bg-white:#fff; --text-dark:#18151d; --text-body:#625e66; --text-muted:#6f6a72; --border-light:#e9e5e0; --radius-sm:8px; --radius-md:14px; --radius-lg:20px; --bg-card:#fff; --border-color:#e9e5e0; --accent:#f4511e; --accent-gradient:#f4511e; }
body { background:var(--bg-body); color:var(--text-dark); line-height:1.55; }
.container,.nav-container { max-width:1180px; }.header { box-shadow:none; border-bottom:1px solid var(--border-light); }.nav-container { min-height:76px; }.logo-img { height:42px; }.nav-links { gap:3px; overflow-x:auto; }.nav-link { padding:12px 10px; font-size:.83rem; white-space:nowrap; border-bottom:2px solid transparent; }.nav-link:hover,.nav-link.active { color:var(--brand-orange); border-color:var(--brand-orange); }
.hero { min-height:190px; background-position:center; }.hero::before { background:linear-gradient(110deg,rgba(25,14,48,.94),rgba(55,39,95,.76)); }.hero .container { padding:42px 1.5rem; }.search-form { border-radius:12px; max-width:560px; padding:6px; }.search-input { padding:.78rem 1rem; }.search-form button { border-radius:8px; padding:.78rem 1.3rem; }
.series-filters { border:0; margin:0 0 25px; padding:28px 0 0; gap:8px; }.filter-pill { border-radius:99px; padding:.48rem .9rem; font-size:.8rem; }.featured-episode { border:1px solid var(--border-light); border-radius:18px; box-shadow:0 13px 38px rgba(38,32,26,.05); margin-bottom:56px; }.featured-grid { grid-template-columns:minmax(260px,42%) 1fr; padding:0; gap:0; }.featured-grid > div:last-child { padding:38px 42px 32px; display:flex; flex-direction:column; }.featured-img { height:auto; min-height:100%; aspect-ratio:1; border-radius:0; box-shadow:none; object-fit:cover; display:block; }.badge { background:#f0ecfa; color:var(--brand-purple); border-radius:99px; font-size:.65rem; padding:.27rem .58rem; }.featured-title { font-size:clamp(1.55rem,3vw,2.35rem); letter-spacing:-1.25px; margin:12px 0; }.featured-desc { margin-bottom:25px; }
.btn-primary { border-radius:8px; background:#c2410c; color:#ffffff !important; font-weight:700; }.btn-secondary { border:1px solid #c2410c; border-radius:8px; background:#c2410c; color:#ffffff !important; font-weight:700; }.btn-secondary:hover { background:#9a3412; border-color:#9a3412; color:#ffffff !important; }.episodes-grid { grid-template-columns:repeat(3,1fr); gap:22px; }.card { border-radius:14px; border-color:var(--border-light); box-shadow:none; }.card-img { height:auto; aspect-ratio:1; object-fit:cover; }.card-body { padding:17px; }.card-title { font-size:1.03rem; line-height:1.35; min-height:3.1em; }.episode-card .btn-secondary { width:auto; padding:.55rem .8rem; }
.series-header { border-radius:18px; box-shadow:0 13px 38px rgba(38,32,26,.05); }.series-header img { width:220px; height:220px; border-radius:12px; }.episode-container { max-width:960px; }.episode-detail { border-radius:18px; padding:clamp(1.5rem,4vw,3rem); }.episode-detail > h1 { font-size:clamp(1.8rem,4vw,2.7rem)!important; letter-spacing:-1.4px; }.player-card { background:#211936; color:#fff; border:0; border-radius:14px; }.player-cover { width:145px; height:145px; border-radius:10px; }.player-title { color:#fff; }.progress-bar { background:#514a5b; }.progress-fill,.play-btn { background:var(--brand-orange); }
.footer { background:#211936; border:0; color:#c8c1d3; margin-top:56px; padding: 24px 0; }.footer-content { display:flex; justify-content:space-between; align-items:center; gap:18px; }.footer a { color:#fff; }.footer-links { display:flex; gap:1.2rem; font-size:0.85rem; flex-wrap:wrap; }.footer-links a { color:rgba(255,255,255,0.75); text-decoration:none; transition:color 0.2s ease; }.footer-links a:hover { color:#ff9800; text-decoration:underline; }
.admin-wrapper { background:#faf9f7; }.admin-sidebar { background:#211936!important; border:0!important; }.admin-content { color:var(--text-dark); }.admin-content .table,.admin-content form { background:#fff!important; border-color:var(--border-light)!important; }.admin-content .table th { background:#f5f2ee!important; color:#625e66!important; }.admin-content .table td { border-color:var(--border-light)!important; }.admin-content .form-control { color:var(--text-dark)!important; background:#fff!important; border-color:#dcd6d0!important; }.login-card { background:#fff!important; border-color:var(--border-light)!important; box-shadow:0 20px 50px rgba(33,25,54,.14)!important; }
@media (max-width:768px) { .nav-container { min-height:64px; }.featured-grid { grid-template-columns:1fr; }.featured-img { min-height:0; }.featured-grid > div:last-child { padding:25px; }.episodes-grid { grid-template-columns:1fr; gap:14px; }.episode-card { display:grid; grid-template-columns:120px 1fr; gap:0; }.episode-card .card-img { height:120px; width:120px; margin:12px; border-radius:9px; }.card-body { padding:15px 15px 14px 0; }.card-title { min-height:0; font-size:.96rem; }.series-header { padding:22px; }.footer-content { align-items:flex-start; flex-direction:column; } }

/* Keep navigation intentional: a menu button replaces a horizontal scrollbar. */
.nav-links { overflow:visible; }
.series-menu-settings { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:9px; }
.series-menu-option { display:flex!important; align-items:center; gap:9px; padding:11px 12px; margin:0!important; border:1px solid var(--border-light); border-radius:8px; background:#fff; cursor:pointer; }
.series-menu-option input { accent-color:var(--brand-orange); width:16px; height:16px; }
@media (max-width:1050px) and (min-width:769px) { .nav-links { display:none; }.nav-toggle { display:block; } .nav-links.active { display:flex; flex-direction:column; align-items:flex-end; text-align:right; position:absolute; top:100%; left:0; right:0; background:#fff; padding:1rem 1.5rem; border-bottom:1px solid var(--border-light); box-shadow:0 5px 15px rgba(0,0,0,.08); } .nav-links.active .nav-link { text-align:right; width:100%; padding:0.8rem 0; } }

/* On phones an episode card is a vertical object, not a squeezed row. */
@media (max-width:768px) {
  .episode-card { display:block; }
  .episode-card .card-img-link { display:block; padding:12px 12px 0; }
  .episode-card .card-img { width:100%; height:auto; margin:0; aspect-ratio:1; border-radius:9px; }
  .episode-card .card-body { padding:14px 16px 16px; }
  .episode-card .episode-meta { margin-bottom:8px; }
  .episode-card .card-title { font-size:1rem; line-height:1.4; margin-bottom:14px; }
  .episode-card .btn-secondary { width:100%; padding:.7rem 1rem; }

  /* The series archive uses the same card pattern and must never fall back
     to the condensed desktop/list layout on a phone. */
  .series-page .episodes-grid { grid-template-columns:1fr; }
  .series-page .episode-card { display:block; }
  .series-page .episode-card .card-img-link { padding:12px 12px 0; }
  .series-page .episode-card .card-img { width:100%; height:auto; margin:0; aspect-ratio:1; }
  .series-page .episode-card .card-body { padding:14px 16px 16px; }
  .series-page .episode-card .btn-secondary { display:block; width:100%; }

  .home-page .episodes-grid { grid-template-columns:1fr; }
  .home-page .episode-card { display:block; }
  .home-page .episode-card .card-img-link { padding:12px 12px 0; }
  .home-page .episode-card .card-img { width:100%; height:auto; margin:0; aspect-ratio:1; }
  .home-page .episode-card .card-body { padding:14px 16px 16px; }
  .home-page .episode-card .btn-secondary { display:block; width:100%; }
}

/* Search stays inside the calm, empty right side of the hero — never on the microphone. */
.hero { min-height:260px; }
.hero::before { background:linear-gradient(90deg,rgba(25,14,48,.35),rgba(55,39,95,.18)); }
.hero .hero-content { max-width:1180px; display:flex; justify-content:flex-end; align-items:center; }
.hero-search { width:min(100%,430px); margin:0; }
@media (max-width:768px) { .hero { min-height:190px; }.hero .hero-content { justify-content:center; }.hero-search { width:100%; }.series-filters { padding-top:18px; } }

/* ============================
   CONTRAST OVERRIDES
   These must stay last: the "iCast 2026" block above sets these backgrounds
   to var(--brand-orange) (#f4511e), which is only 3.48:1 behind white text.
   #c2410c is the same orange family already used by the buttons and reads
   5.18:1. Elements without text on them (.progress-fill) keep the brighter
   accent on purpose.
   ============================ */
.play-btn { background: #c2410c; }
.page-link:hover, .page-link.active { background: #c2410c; border-color: #c2410c; }
