/* ═══════════════════════════════════════════
   AniStream — Global Styles
   ═══════════════════════════════════════════ */

:root {
  --bg:          #09090f;
  --surface:     #0f0f1a;
  --card:        #161626;
  --card-hover:  #1c1c32;
  --border:      rgba(255,255,255,0.07);
  --border-glow: rgba(168,85,247,0.35);

  --purple:      #a855f7;
  --purple-lt:   #c084fc;
  --purple-dk:   #7c3aed;
  --cyan:        #22d3ee;
  --cyan-dk:     #0891b2;
  --pink:        #f472b6;
  --gold:        #fbbf24;

  --text:        #f1f5f9;
  --muted:       #94a3b8;
  --dim:         #475569;

  --grad:        linear-gradient(135deg, #a855f7 0%, #22d3ee 100%);
  --grad-card:   linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.92) 100%);

  --r-sm: 6px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --shadow:      0 4px 24px rgba(0,0,0,0.45);
  --glow:        0 0 24px rgba(168,85,247,0.22);

  --t: 0.18s ease;
  --ts: 0.38s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 15px;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% 20%, rgba(168,85,247,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(34,211,238,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(168,85,247,0.05) 0%, transparent 60%);
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--purple-dk); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ─── NAVBAR ─────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 62px;
  background: rgba(9,9,15,0.92);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 2rem; gap: 1.75rem;
}
.navbar::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(168,85,247,0.4) 30%, rgba(34,211,238,0.3) 70%, transparent 100%);
}

.nav-logo {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.5px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo img { -webkit-text-fill-color: initial; }

.nav-links { list-style: none; display: flex; gap: 1.4rem; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: 0.875rem; font-weight: 500;
  transition: color var(--t); position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px;
  background: var(--grad); border-radius: 1px;
  transform: scaleX(0); transition: transform var(--t);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-search { flex: 1; max-width: 380px; margin-left: auto; position: relative; }

.nav-search input {
  width: 100%; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 0.5rem 1rem 0.5rem 2.4rem;
  color: var(--text); font-size: 0.85rem; outline: none;
  transition: border-color var(--t);
}
.nav-search input:focus { border-color: var(--purple); }
.nav-search input::placeholder { color: var(--dim); }

.search-icon {
  position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
  color: var(--dim); pointer-events: none; font-size: 0.8rem;
}

.search-drop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  display: none; z-index: 200; box-shadow: var(--shadow);
}
.search-drop.open { display: block; }

.sdrop-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.65rem 1rem; cursor: pointer; transition: background var(--t);
}
.sdrop-item:hover { background: var(--card-hover); }
.sdrop-item img { width: 38px; height: 54px; object-fit: cover; border-radius: var(--r-sm); flex-shrink: 0; }
.sdrop-title { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sdrop-meta  { font-size: 0.72rem; color: var(--dim); margin-top: 2px; }

/* ─── PAGE BODY ──────────────────────────── */
.page { padding-top: 62px; min-height: 100vh; }

/* ─── HERO ───────────────────────────────── */
.hero {
  position: relative; height: 520px; overflow: hidden; cursor: pointer;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 20%;
  transition: transform var(--ts);
}
.hero:hover .hero-bg { transform: scale(1.025); }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(9,9,15,0.97) 28%, rgba(9,9,15,0.45) 65%, transparent 100%),
              linear-gradient(to top, var(--bg) 0%, transparent 45%);
}
.hero-body {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 3rem 4rem; max-width: 580px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(168,85,247,0.18); border: 1px solid rgba(168,85,247,0.4);
  color: var(--purple-lt); font-size: 0.72rem; font-weight: 700;
  padding: 0.28rem 0.75rem; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 0.9rem; width: fit-content;
}
.hero-title {
  font-size: 2.4rem; font-weight: 800; line-height: 1.2; margin-bottom: 0.9rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}
.hero-meta {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.82rem; color: var(--muted); margin-bottom: 0.85rem; flex-wrap: wrap;
}
.hero-score { color: var(--gold); display: flex; align-items: center; gap: 0.25rem; }
.hero-genres { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.1rem; }
.gtag {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted); padding: 0.18rem 0.65rem;
  border-radius: 100px; font-size: 0.72rem;
}
.hero-desc {
  font-size: 0.85rem; color: var(--muted); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 1.4rem;
}
.hero-btns { display: flex; gap: 0.65rem; }

/* ─── BUTTONS ────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.4rem; border-radius: var(--r);
  font-size: 0.875rem; font-weight: 600; border: none;
  transition: all var(--t); cursor: pointer;
}
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: var(--glow); }
.btn-ghost {
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.13);
  color: var(--text); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); transform: translateY(-1px); }
.btn-sm { padding: 0.38rem 0.9rem; font-size: 0.8rem; }

/* ─── SECTIONS ───────────────────────────── */
.section { padding: 2.25rem 2rem; max-width: 1440px; margin: 0 auto; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.section-title {
  font-size: 1.15rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-title::before {
  content: ''; display: inline-block;
  width: 4px; height: 20px;
  background: var(--grad);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(168,85,247,0.5);
}
.see-all { font-size: 0.78rem; color: var(--purple-lt); font-weight: 500; transition: color var(--t); }
.see-all:hover { color: var(--purple); }

/* ─── ANIME GRID ─────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 1rem; }

.scroll { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.75rem; }
.scroll::-webkit-scrollbar { height: 3px; }
.scroll::-webkit-scrollbar-thumb { background: var(--purple-dk); border-radius: 2px; }

.scroll .acard { flex: 0 0 155px; height: 220px; }

/* ─── ANIME CARD ─────────────────────────── */
.acard {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: var(--card); aspect-ratio: 3/4; cursor: pointer;
  border: 1px solid var(--border);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.acard:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(168,85,247,0.3);
  border-color: rgba(168,85,247,0.4);
}
.acard img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--ts); }
.acard:hover img { transform: scale(1.06); }

.acard-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.7rem; background: linear-gradient(transparent, rgba(0,0,0,0.88));
}
.acard-title { font-size: 0.78rem; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acard-meta { font-size: 0.68rem; color: var(--dim); margin-top: 3px;
  display: flex; align-items: center; gap: 0.35rem; }
.acard-score { color: var(--gold); }

.acard-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px;
  background: rgba(168,85,247,0.88); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; opacity: 0; transition: opacity var(--t);
}
.acard:hover .acard-play { opacity: 1; }

.acard-heart {
  position: absolute; top: 0.5rem; right: 0.5rem;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,0.55); border: none;
  color: rgba(255,255,255,0.5); font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: all var(--t);
  backdrop-filter: blur(4px); z-index: 3;
}
.acard:hover .acard-heart { opacity: 1; }
.acard-heart.saved { opacity: 1; color: #f472b6; background: rgba(244,114,182,0.2); }
.acard-heart:hover { transform: scale(1.15); color: #f472b6; }

/* ─── SKELETON ───────────────────────────── */
.skel {
  background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
  background-size: 200% 100%; animation: shim 1.4s infinite; border-radius: var(--r);
}
@keyframes shim { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ─── ANIME DETAIL ───────────────────────── */
.banner { position: relative; height: 340px; overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.banner-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(9,9,15,0.55) 55%, rgba(9,9,15,0.25) 100%);
}

.detail-wrap { max-width: 1200px; margin: 0 auto; padding: 0 2rem 4rem; }

.detail-head {
  display: flex; gap: 2rem; margin-top: -90px;
  position: relative; z-index: 1; align-items: flex-end;
}
.detail-poster {
  width: 155px; min-width: 155px; height: 225px;
  object-fit: cover; border-radius: var(--r);
  border: 3px solid var(--bg); box-shadow: var(--shadow); flex-shrink: 0;
}
.detail-info { flex: 1; min-width: 0; }
.detail-title  { font-size: 1.9rem; font-weight: 800; line-height: 1.2; }
.detail-alt    { font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }

.stats { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0.9rem 0; }
.stat-val { font-size: 1.2rem; font-weight: 700; }
.stat-val.gold { color: var(--gold); }
.stat-key { font-size: 0.68rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

.gchips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.7rem 0; }
.gchip {
  background: rgba(168,85,247,0.14); border: 1px solid rgba(168,85,247,0.3);
  color: var(--purple-lt); padding: 0.22rem 0.75rem;
  border-radius: 100px; font-size: 0.72rem; font-weight: 500; cursor: pointer;
  transition: background var(--t);
}
.gchip:hover { background: rgba(168,85,247,0.26); }

.detail-body { display: grid; grid-template-columns: 1fr 270px; gap: 2rem; margin-top: 2rem; }

.synopsis { font-size: 0.875rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; }
.read-more { color: var(--purple-lt); cursor: pointer; font-size: 0.82rem; margin-top: 0.4rem; }

/* ─── EPISODES ───────────────────────────── */
.eps-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.eps-title { font-size: 1.05rem; font-weight: 700; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 0.45rem; }
.epb {
  aspect-ratio: 1; background: var(--card); border: 1px solid var(--border);
  color: var(--muted); border-radius: var(--r-sm);
  font-size: 0.78rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none;
  transition: all var(--t);
}
.epb:hover { background: var(--card-hover); border-color: var(--purple); color: var(--text); }
.epb.done { background: rgba(168,85,247,0.1); border-color: rgba(168,85,247,0.28); color: var(--purple-lt); }
.epb.cur  { background: var(--purple-dk); border-color: var(--purple); color: #fff; }

/* ─── SIDEBAR INFO ───────────────────────── */
.info-box { background: var(--card); border-radius: var(--r); padding: 1.2rem; margin-bottom: 1.2rem; }
.info-box-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--dim); margin-bottom: 0.9rem; }
.info-row { display: flex; justify-content: space-between; align-items: flex-start;
  padding: 0.38rem 0; border-bottom: 1px solid var(--border); font-size: 0.8rem; }
.info-row:last-child { border-bottom: none; }
.info-k { color: var(--dim); }
.info-v { font-weight: 500; text-align: right; max-width: 60%; }

/* ─── WATCH PAGE ─────────────────────────── */
.watch-layout {
  display: grid; grid-template-columns: 1fr 330px; gap: 1.4rem;
  max-width: 1440px; margin: 0 auto; padding: 1.4rem 2rem;
}
.watch-main { min-width: 0; }

.player-wrap {
  position: relative; padding-bottom: 56.25%;
  background: #000; border-radius: var(--r);
  overflow: hidden; border: 1px solid var(--border);
}
.player-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}
.player-loader {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #000; gap: 0.9rem; z-index: 5;
}
.spinner {
  width: 38px; height: 38px;
  border: 3px solid rgba(168,85,247,0.2); border-top-color: var(--purple);
  border-radius: 50%; animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.player-ctrl { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.7rem; }

.ctrl-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

.now-playing { font-size: 0.95rem; font-weight: 700; }

.ep-nav { display: flex; gap: 0.45rem; }
.nav-btn {
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); padding: 0.38rem 0.9rem;
  border-radius: var(--r-sm); font-size: 0.78rem;
  display: flex; align-items: center; gap: 0.35rem;
  transition: all var(--t);
}
.nav-btn:hover:not(:disabled) { background: var(--card-hover); border-color: var(--purple); }
.nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.src-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.src-label { font-size: 0.78rem; color: var(--dim); }
.src-btns { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.src-btn {
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); padding: 0.3rem 0.85rem;
  border-radius: var(--r-sm); font-size: 0.75rem; font-weight: 500;
  transition: all var(--t);
}
.src-btn:hover { background: var(--card-hover); color: var(--text); }
.src-btn.on { background: var(--purple-dk); border-color: var(--purple); color: #fff; }
.src-note { font-size: 0.72rem; color: var(--dim); }

.watch-info-box {
  display: flex; gap: 1.25rem;
  background: var(--card); border-radius: var(--r); padding: 1.1rem;
  margin-top: 1.25rem; align-items: flex-start;
}
.wi-poster { width: 75px; height: 108px; object-fit: cover; border-radius: var(--r-sm); flex-shrink: 0; }
.wi-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; }
.wi-meta  { font-size: 0.78rem; color: var(--muted); line-height: 1.6; }

/* ─── EP SIDEBAR ─────────────────────────── */
.ep-sidebar {
  background: var(--card); border-radius: var(--r);
  height: calc(100vh - 160px); min-height: 520px;
  display: flex; flex-direction: column;
  overflow: hidden; position: sticky; top: 74px;
}
.ep-sidebar-head {
  padding: 0.95rem 1.2rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.ep-sidebar-head span:first-child { font-size: 0.875rem; font-weight: 600; }
.ep-sidebar-head span:last-child  { font-size: 0.72rem; color: var(--dim); }

.ep-list { overflow-y: auto; flex: 1; }
.ep-row {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1.2rem; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background var(--t);
}
.ep-row:hover { background: var(--card-hover); }
.ep-row.on { background: rgba(168,85,247,0.14); border-left: 3px solid var(--purple); }
.ep-num  { font-size: 0.82rem; font-weight: 700; color: var(--purple-lt); min-width: 34px; }
.ep-name { font-size: 0.78rem; font-weight: 500; }
.ep-sub  { font-size: 0.68rem; color: var(--dim); margin-top: 2px; }

/* ─── SEARCH PAGE ────────────────────────── */
.search-wrap { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.search-page-title { font-size: 1.5rem; font-weight: 700; }
.search-count { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }

/* ─── EMPTY STATE ────────────────────────── */
.empty {
  text-align: center; padding: 4rem 2rem;
  color: var(--muted); grid-column: 1 / -1;
}
.empty-icon  { font-size: 2.8rem; margin-bottom: 0.9rem; }
.empty-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.45rem; }
.empty-body  { font-size: 0.85rem; color: var(--dim); }

/* ─── FMHY LAUNCHER PANEL ───────────────────── */
.fmhy-panel {
  background: var(--card); border-radius: var(--r);
  padding: 1.1rem 1.25rem; margin-top: 1.1rem;
  border: 1px solid var(--border);
}
.fmhy-panel-title {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--dim);
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.fmhy-badge {
  background: rgba(34,211,238,0.12); border: 1px solid rgba(34,211,238,0.28);
  color: var(--cyan); padding: 0.15rem 0.55rem;
  border-radius: 100px; font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.fmhy-sites {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 0.55rem;
}
.site-btn {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 0.6rem 0.8rem;
  cursor: pointer; transition: all var(--t); text-decoration: none; color: var(--text);
  position: relative;
}
.site-btn:hover { border-color: var(--purple); background: var(--card-hover); transform: translateY(-1px); }
.site-btn.top-pick { border-color: rgba(168,85,247,0.35); }
.site-btn-icon {
  width: 26px; height: 26px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; flex-shrink: 0; color: white;
}
.site-btn-name { font-size: 0.8rem; font-weight: 600; }
.site-btn-desc { font-size: 0.66rem; color: var(--dim); margin-top: 1px; }
.site-btn-arr  { font-size: 0.7rem; color: var(--dim); margin-left: auto; flex-shrink: 0; }
.iframe-hint {
  font-size: 0.72rem; color: var(--dim); margin-top: 0.65rem;
  padding: 0.45rem 0.7rem;
  background: rgba(255,255,255,0.03); border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

/* ─── TOAST ──────────────────────────────── */
.toast {
  position: fixed; bottom: 1.75rem; right: 1.75rem;
  background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--purple);
  padding: 0.7rem 1.2rem; border-radius: var(--r);
  font-size: 0.85rem; z-index: 9999;
  box-shadow: var(--shadow); animation: toastIn 0.28s ease;
}
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 1024px) {
  .watch-layout { grid-template-columns: 1fr; }
  .ep-sidebar { position: static; max-height: 320px; }
  .detail-body { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero { height: 420px; }
  .hero-body { padding: 2rem; }
  .hero-title { font-size: 1.7rem; }
  .section { padding: 1.5rem 1rem; }
  .detail-head { flex-direction: column; align-items: flex-start; margin-top: -50px; }
  .detail-poster { width: 120px; height: 174px; }
  .detail-title { font-size: 1.45rem; }
}
@media (max-width: 560px) {
  .navbar { padding: 0 1rem; }
  .nav-links { display: none; }
  .watch-layout { padding: 1rem; }
}
