/* Ammar TV — cinematic dark UI, zero external CSS. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  --bg: #000;
  --bg-soft: #0a0a0a;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --line: #2c2c2e;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --dim: #6e6e73;
  --accent: #f5f5f7;
  --accent-2: #d1d1d6;
  --danger: #ff453a;
  --success: #30d158;
  --nav-h: 72px;
  --pad: clamp(16px, 4vw, 58px);
  --radius: 14px;
  --card-w: clamp(132px, 11.4vw, 188px);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(255, 255, 255, 0.055), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(86, 60, 255, 0.05), transparent 55%),
    var(--bg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.player-mode { overflow: hidden; background: #000; }
body.player-mode #nav,
body.player-mode #footer,
body.player-mode .mobile-tabs { display: none !important; }
body.player-mode .view { min-height: 100dvh; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #111; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

.view { min-height: calc(100vh - 240px); padding-top: var(--nav-h); }
.container { width: 100%; max-width: 1720px; margin: 0 auto; padding-inline: var(--pad); }
.hidden { display: none !important; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.95) 0%, rgba(5, 5, 8, 0.45) 60%, transparent 100%);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.nav-inner {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  letter-spacing: 0.035em;
}
.brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #17130a;
  background: linear-gradient(145deg, #ffd15c, var(--accent) 55%, var(--accent-2));
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.brand-mark svg { width: 19px; height: 19px; transform: translateX(1px); }
.brand-mark.small { width: 30px; height: 30px; border-radius: 8px; }
.brand-word {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 27px;
  line-height: 1;
  letter-spacing: 0.045em;
  padding-top: 3px;
  white-space: nowrap;
}
.brand-plus { color: var(--accent); font-weight: 800; }
.brand-net {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  margin-top: 7px;
  white-space: nowrap;
}
.footer-name .brand-net { font-size: 9px; margin-top: 0; letter-spacing: 0.14em; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 27px); }
.nav-links > a,
.nav-link-btn {
  position: relative;
  padding: 10px 0;
  border: 0;
  background: none;
  color: #d7d7de;
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nav-links > a:hover,
.nav-link-btn:hover { color: #fff; }
.nav-links > a.active { color: #fff; }
.nav-links > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.chev { width: 14px; height: 14px; opacity: 0.6; transition: transform 0.2s; }
.nav-genre.open .chev { transform: rotate(180deg); }
.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 2px;
  border-radius: 99px;
  background: var(--accent);
  color: #17130a;
  font-size: 10.5px;
  font-weight: 800;
}
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #d9d9e1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-menu-btn { display: none; }

.genre-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: -14px;
  width: 340px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(19, 19, 27, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  z-index: 20;
}
.nav-genre { position: relative; }
.nav-genre.open .genre-pop { display: grid; animation: pop-in 0.16s var(--ease); }
.genre-pop a {
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #c9c9d4;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.genre-pop a span { color: var(--dim); font-size: 11px; }
.genre-pop a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-5px) scale(0.98); } to { opacity: 1; transform: none; } }

.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(24px);
  padding: max(18px, env(safe-area-inset-top)) 22px 30px;
  overflow-y: auto;
  animation: sheet-in 0.22s var(--ease);
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mobile-sheet-title { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.mobile-sheet-links { display: grid; gap: 2px; }
.mobile-sheet-links a { font-size: 26px; font-weight: 750; padding: 11px 2px; letter-spacing: -0.02em; border-bottom: 1px solid rgba(255, 255, 255, 0.055); }
.mobile-sheet-links a:hover { color: var(--accent); }
.mobile-sheet-genres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.mobile-sheet-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 28px; }
.text-btn { border: 0; background: none; padding: 8px 0; color: var(--muted); font-size: 13.5px; cursor: pointer; }
.text-btn:hover { color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(590px, 78vh, 800px);
  margin-top: calc(var(--nav-h) * -1);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -9%;
  background-image: var(--hero-poster);
  background-size: cover;
  background-position: center 24%;
  filter: blur(46px) saturate(1.25) brightness(0.52);
  transform: scale(1.12);
  z-index: -3;
  transition: background-image 0.6s;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.93) 31%, rgba(0, 0, 0, 0.28) 67%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(0deg, #000 1%, rgba(0, 0, 0, 0.1) 46%, rgba(0, 0, 0, 0.55) 100%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 0.5px, transparent 0.6px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-inner {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 28px) var(--pad) 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 350px);
  gap: clamp(28px, 5vw, 90px);
  align-items: center;
}
.hero-copy { max-width: 750px; animation: rise 0.55s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  color: var(--accent);
  font-size: 11.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 750;
}
.hero-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero-eyebrow .dim { color: #b9b9c4; letter-spacing: 0.08em; font-weight: 500; text-transform: none; }
.hero-title {
  margin: 0 0 15px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: clamp(54px, 6.6vw, 104px);
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-wrap: balance;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}
.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: #d4d4dc;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 18px;
}
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: #73737f; }
.rating-star { color: var(--accent); }
.quality-pill {
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #dedee5;
}
.hero-desc {
  color: #c1c1cb;
  font-size: clamp(13.5px, 1.15vw, 15.5px);
  line-height: 1.65;
  max-width: 590px;
  margin: 0 0 27px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 16px #000;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.btn {
  height: 47px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: scale(0.975); }
.btn-primary { background: #fff; color: #111; }
.btn-primary:hover { background: #ececef; box-shadow: 0 8px 26px rgba(255, 255, 255, 0.16); }
.btn-secondary { background: rgba(109, 109, 122, 0.45); color: #fff; backdrop-filter: blur(12px); }
.btn-secondary:hover { background: rgba(130, 130, 145, 0.58); }
.btn-ghost {
  height: 47px;
  padding: 0 14px;
  background: transparent;
  color: #dedee5;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.42); background: rgba(255, 255, 255, 0.06); }
.btn-ghost svg { width: 18px; height: 18px; }
.btn.is-added { border-color: rgba(255, 255, 255, 0.4); color: var(--accent); }
.hero-dots { display: flex; align-items: center; gap: 7px; margin-top: 30px; }
.hero-dot {
  width: 18px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: width 0.25s var(--ease), background 0.25s;
}
.hero-dot.active { width: 34px; background: var(--accent); }

.hero-poster-wrap {
  position: relative;
  justify-self: end;
  width: min(100%, 340px);
  perspective: 1200px;
  animation: rise 0.7s 0.1s var(--ease) both;
}
.hero-poster-glow {
  position: absolute;
  inset: 12% 4% -6%;
  background: var(--hero-poster) center/cover;
  filter: blur(52px) saturate(1.5);
  opacity: 0.55;
  z-index: -1;
  border-radius: 30%;
  transform: scale(1.12);
}
.hero-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #15151d;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: rotate(1.6deg);
  transition: transform 0.5s var(--ease);
}
.hero-poster-wrap:hover .hero-poster { transform: rotate(0deg) translateY(-3px); }
.hero-poster img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.hero-poster .poster-fallback { font-size: 90px; }
.hero-poster .quality-pill {
  position: absolute;
  top: 13px;
  left: 13px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.18);
}
.hero-poster .hero-rank-badge {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #141006;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ---------- Rows ---------- */

.rows { position: relative; z-index: 2; margin-top: -34px; padding-bottom: 30px; }
.row { margin-bottom: clamp(24px, 3vw, 42px); }
.row-head {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin-bottom: 10px;
  padding-inline: var(--pad);
}
.row-title {
  margin: 0;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 750;
  letter-spacing: -0.015em;
}
.row-sub { color: var(--dim); font-size: 12px; font-weight: 500; }
.row-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
  white-space: nowrap;
}
.row-more svg { width: 12px; height: 12px; }
.row:hover .row-more { opacity: 1; }
.row-more:hover { color: var(--accent); }
.row-viewport { position: relative; }
.row-track {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 18px var(--pad) 30px;
  margin-top: -18px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.row-track::-webkit-scrollbar { display: none; }
.row-arrow {
  position: absolute;
  top: 8px;
  bottom: 20px;
  width: 54px;
  z-index: 8;
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0));
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
.row-arrow svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 6px #000); }
.row-arrow.right { right: 0; transform: scaleX(-1); }
.row-arrow.left { left: 0; }
.row-viewport:hover .row-arrow { opacity: 1; }
.row-arrow.disabled { opacity: 0 !important; pointer-events: none; }
.row-arrow:hover svg { transform: scale(1.15); }

/* ---------- Cards ---------- */

.card-wrap {
  position: relative;
  flex: 0 0 var(--card-w);
  width: var(--card-w);
  scroll-snap-align: start;
}
.card {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 11px;
  overflow: hidden;
  background: #15151d;
  border: 1px solid rgba(255, 255, 255, 0.055);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s;
  transform-origin: center bottom;
}
.card-link { position: absolute; inset: 0; z-index: 3; }
.card-poster { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease), filter 0.3s; }
.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
    linear-gradient(150deg, #1c1c27, #101017);
  color: rgba(255, 255, 255, 0.22);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 64px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 12px;
}
.card-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(4, 4, 7, 0.92) 0%, rgba(4, 4, 7, 0.15) 34%, transparent 55%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.card-hover {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  padding: 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s, transform 0.22s var(--ease);
}
.card-hover-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-hover-meta { display: flex; align-items: center; gap: 6px; color: #c2c2cc; font-size: 10.5px; }
.card-hover-meta .rating-star { font-size: 10px; }
.card-actions { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; pointer-events: none; }
.card-wrap:hover .card-actions,
.card-wrap:focus-within .card-actions { pointer-events: auto; }
.card-act {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 10, 15, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, border-color 0.18s;
}
.card-act svg { width: 15px; height: 15px; }
.card-act:hover { background: #fff; color: #111; border-color: #fff; transform: scale(1.06); }
.card-act.play { background: #fff; color: #111; border-color: #fff; }
.card-act.play:hover { background: var(--accent); border-color: var(--accent); }
.card-act.is-added { border-color: var(--accent); color: var(--accent); }
.card-act.is-added:hover { background: var(--accent); color: #111; }
.card-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 5;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(4, 4, 7, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.07em;
  color: #e8e8ed;
  pointer-events: none;
}
.card-progress {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  z-index: 6;
}
.card-progress i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.card-remove {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 7;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(6, 6, 9, 0.68);
  color: #ddd;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, background 0.2s;
  backdrop-filter: blur(6px);
}
.card-remove svg { width: 13px; height: 13px; }
.card-remove:hover { background: #d93636; color: #fff; }

@media (hover: hover) {
  .card-wrap:hover .card {
    transform: scale(1.065) translateY(-4px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
    z-index: 7;
    border-color: rgba(255, 255, 255, 0.16);
  }
  .card-wrap:hover .card-shade { opacity: 1; }
  .card-wrap:hover .card-hover,
  .card-wrap:focus-within .card-hover { opacity: 1; transform: none; pointer-events: auto; }
  .card-wrap:hover .card-remove,
  .card-wrap:focus-within .card-remove { opacity: 1; pointer-events: auto; }
  .card-wrap:hover .card-poster { transform: scale(1.04); }
  .card-wrap:focus-within .card {
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.14);
    z-index: 7;
  }
  .card-wrap:focus-within .card-shade { opacity: 1; }
}

/* ranked top 10 */
.card-wrap.ranked { width: calc(var(--card-w) + 48px); flex-basis: calc(var(--card-w) + 48px); }
.ranked .card { width: var(--card-w); margin-left: auto; }
.rank-number {
  position: absolute;
  left: -3px;
  bottom: -8px;
  z-index: 1;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: calc(var(--card-w) * 0.95);
  line-height: 0.72;
  color: transparent;
  -webkit-text-stroke: 3px #3d3d4b;
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
}
.card-wrap.ranked:nth-child(10) .rank-number { font-size: calc(var(--card-w) * 0.8); }

@media (hover: none) {
  .card-hover { display: none; }
  .card-remove { opacity: 0.85; pointer-events: auto; }
}

/* ---------- Show / episode cards ---------- */

.show-card-wrap {
  flex: 0 0 clamp(230px, 21vw, 320px);
  width: clamp(230px, 21vw, 320px);
  scroll-snap-align: start;
}
.show-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #15151d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.show-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.show-card .poster-fallback { font-size: 40px; }
.show-card-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(3, 3, 6, 0.94) 0%, rgba(3, 3, 6, 0.34) 48%, rgba(3, 3, 6, 0.04) 80%);
}
.show-card-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  padding: 12px 13px;
}
.show-card-title {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px #000;
}
.show-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: #c3c3ce;
  font-size: 10.5px;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.show-card-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 4;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(4, 4, 7, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: #f0f0f3;
}
.show-card-play {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 4;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #111;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s, transform 0.2s;
}
.show-card-play svg { width: 15px; height: 15px; }
.show-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.17); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.62); z-index: 5; }
.show-card:hover .show-card-play { opacity: 1; transform: scale(1); }
.show-card:hover img { transform: scale(1.035); }
.show-card .card-progress { left: 10px; right: 10px; bottom: 8px; z-index: 5; }

.episode-card-wrap { flex-basis: clamp(246px, 23vw, 350px); width: clamp(246px, 23vw, 350px); }
.episode-card .show-card-title { font-size: 12.5px; -webkit-line-clamp: 2; }
.episode-card .show-card-meta { font-size: 10px; }
.episode-card .show-card-body { padding: 10px 12px; }
.episode-card .show-card-badge { background: rgba(255, 255, 255, 0.92); color: #17130a; border-color: transparent; }

@media (hover: none) {
  .show-card-play { opacity: 1; transform: none; }
}

.show-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px 13px;
}
.show-grid .show-card-wrap { width: 100%; flex: none; }

/* Shows directory */
.shows-page { padding-top: clamp(22px, 3.4vw, 40px); }
.shows-page .page-head { margin-bottom: 14px; }
.new-episode-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 14px 0 2px;
  margin-bottom: 2px;
  scrollbar-width: none;
}
.new-episode-strip::-webkit-scrollbar { display: none; }
.new-strip-label {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 800;
  margin-right: 4px;
}
.new-strip-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.025);
  color: #c7c7d2;
  font-size: 11px;
  white-space: nowrap;
  transition: border-color 0.18s, background 0.18s;
}
.new-strip-item:hover { border-color: rgba(255, 255, 255, 0.42); background: rgba(255, 255, 255, 0.05); }
.new-strip-show { font-weight: 600; }
.new-strip-ep { color: var(--accent); font-weight: 750; }
.shows-grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}
.shows-grid-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.015em;
}
.shows-grid-head .shows-count {
  color: var(--dim);
  font-size: 12px;
  font-weight: 500;
  margin-left: 9px;
}
.shows-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shows-search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s, background 0.2s;
}
.shows-search:focus-within { border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.045); }
.shows-search svg { width: 15px; height: 15px; color: var(--dim); flex: 0 0 auto; }
.shows-search input {
  width: 190px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
}
.shows-search input::placeholder { color: #6e6e7a; }
.shows-empty-link { color: var(--accent); font-weight: 650; }

/* ---------- Show page ---------- */

.show-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(var(--nav-h) * -1);
  padding: calc(var(--nav-h) + 66px) 0 52px;
}
.show-hero-bg {
  position: absolute;
  inset: -10%;
  z-index: -3;
  background-size: cover;
  background-position: center 22%;
  filter: blur(44px) saturate(1.25) brightness(0.48);
  transform: scale(1.12);
}
.show-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.88) 46%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(0deg, #000 2%, rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0.48) 100%);
}
.show-hero-inner {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding-inline: var(--pad);
}
.show-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 750;
  margin: 16px 0 9px;
}
.show-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: clamp(52px, 7.2vw, 104px);
  line-height: 0.9;
  letter-spacing: 0.008em;
  margin: 0 0 14px;
  max-width: 1000px;
  text-wrap: balance;
  text-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}
.show-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: #d1d1da;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 18px;
}
.show-desc {
  max-width: 680px;
  color: #bdbdc8;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 24px;
}
.show-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.show-body { padding-top: 26px; }
.season-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 0 18px;
  scrollbar-width: none;
}
.season-bar::-webkit-scrollbar { display: none; }
.season-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #bfbfca;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.season-tab:hover { border-color: rgba(255, 255, 255, 0.32); color: #fff; }
.season-tab.active { background: #f0f0f3; border-color: #f0f0f3; color: #111; }
.episode-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.episode-count { color: var(--muted); font-size: 12px; }
.episode-sort {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: transparent;
  color: #c4c4ce;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.episode-sort:hover { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.episode-sort svg { width: 13px; height: 13px; }
.episode-list { display: grid; gap: 2px; }
.ep-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border-radius: 11px;
  border: 1px solid transparent;
  transition: background 0.18s, border-color 0.18s;
}
.ep-row:hover { background: rgba(255, 255, 255, 0.045); border-color: rgba(255, 255, 255, 0.07); }
.ep-thumb {
  position: relative;
  width: 178px;
  flex: 0 0 178px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #17171f;
}
.ep-thumb img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.ep-thumb .poster-fallback { font-size: 26px; }
.ep-thumb-badge {
  position: absolute;
  left: 7px;
  bottom: 7px;
  z-index: 3;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(4, 4, 7, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 9px;
  font-weight: 750;
  color: #f3f3f5;
  backdrop-filter: blur(6px);
}
.ep-main { flex: 1; min-width: 0; }
.ep-kicker { display: flex; align-items: center; gap: 7px; color: var(--dim); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 5px; }
.ep-title { font-size: 14px; font-weight: 650; line-height: 1.35; color: #eeeef2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-sub { color: #777784; font-size: 11px; margin-top: 4px; }
.ep-play {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.ep-play svg { width: 15px; height: 15px; }
.ep-row:hover .ep-play { background: #fff; color: #111; border-color: #fff; }
.ep-watched { color: var(--success); }
.ep-watched svg { width: 15px; height: 15px; }
.episode-empty { padding: 50px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.show-related { margin-top: 48px; }
.show-related h2 { font-size: 21px; margin: 0 0 20px; letter-spacing: -0.015em; }


/* ---------- Shared page bits ---------- */

.page { padding: clamp(28px, 4vw, 52px) 0 70px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-title {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 0.95;
  letter-spacing: 0.01em;
}
.page-sub { color: var(--muted); font-size: 13px; margin: 9px 0 0; line-height: 1.5; }
.eyebrow { color: var(--accent); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 750; margin-bottom: 8px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 24px 12px;
}
.grid .card-wrap { width: 100%; flex: none; }
.grid .card { width: 100%; }
.grid .rank-number { display: none; }
.grid-actions { display: flex; justify-content: center; margin-top: 34px; }
.section-divider { height: 1px; background: rgba(255, 255, 255, 0.065); margin: 42px 0; }
.empty-state {
  text-align: center;
  padding: 80px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
}
.empty-state h2 { color: var(--text); font-size: 21px; margin: 0 0 8px; }
.empty-state p { margin: 0 auto 18px; max-width: 460px; font-size: 13.5px; line-height: 1.6; }
.empty-icon { width: 45px; height: 45px; margin: 0 auto 15px; color: var(--dim); }
.empty-icon svg { width: 100%; height: 100%; }

/* ---------- Search ---------- */

.search-page { padding-top: clamp(34px, 5vw, 64px); min-height: 80vh; }
.search-head { max-width: 1100px; margin: 0 0 24px; }
.search-title { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 400; font-size: clamp(40px, 5vw, 70px); line-height: 1; margin: 0 0 20px; }
.search-shell {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 6px 4px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 14px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.search-shell:focus-within { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07); }
.search-shell > svg { width: 23px; height: 23px; color: var(--dim); flex: 0 0 auto; }
.search-input {
  flex: 1;
  min-width: 0;
  padding: 13px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 550;
  letter-spacing: -0.01em;
}
.search-input::placeholder { color: #5e5e6b; }
.search-clear {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.search-clear:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.search-clear svg { width: 17px; height: 17px; }
.search-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 15px; }
.filter-label { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; margin-right: 4px; }
.chip {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 99px;
  background: transparent;
  color: #b9b9c5;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.chip:hover { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.chip.active { background: #f0f0f3; border-color: #f0f0f3; color: #111; font-weight: 700; }
.filter-select {
  appearance: none;
  padding: 8px 30px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #13131b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23999' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 11px center;
  color: #d7d7df;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
}
.filter-select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.results-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 25px 0 16px; color: var(--dim); font-size: 12px; }
.results-meta strong { color: var(--text); font-weight: 650; }
.results-meta .took { font-variant-numeric: tabular-nums; opacity: 0.7; }
.search-grid { min-height: 200px; }
.search-show-block { margin: 30px 0; }
.search-show-block .mini-title { margin-bottom: 14px; }
mark.hit { background: transparent; color: var(--accent); font-weight: 800; }
.genre-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 22px; }
.genre-tile {
  position: relative;
  min-height: 102px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(145deg, #1a1a24, #101017);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.genre-tile:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.35); }
.genre-tile-name { font-size: 17px; font-weight: 750; letter-spacing: -0.015em; }
.genre-tile-count { color: var(--dim); font-size: 11.5px; }
.genre-tile::after {
  content: "›";
  position: absolute;
  right: 16px;
  bottom: 8px;
  font-size: 34px;
  color: rgba(255, 255, 255, 0.12);
  font-weight: 300;
}
.popular-searches { margin-top: 30px; }
.mini-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--dim); font-weight: 750; margin-bottom: 11px; }
.pop-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Detail ---------- */

.detail-page { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 70px; }
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 12px 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: #c4c4ce;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.page-back:hover { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.page-back svg { width: 15px; height: 15px; }
.inline-note {
  margin: 0 0 20px;
  padding: 10px 13px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: #a8a8b4;
  font-size: 11.5px;
  line-height: 1.55;
}
.inline-note.warn { border-color: rgba(255, 90, 90, 0.25); background: rgba(255, 90, 90, 0.06); color: #e1a1a1; }
.detail-bg {
  position: absolute;
  inset: -8% -4% auto;
  height: 720px;
  background-image: var(--detail-poster);
  background-size: cover;
  background-position: center 18%;
  filter: blur(55px) saturate(1.25) brightness(0.44);
  transform: scale(1.15);
  z-index: -3;
}
.detail-bg-shade {
  position: absolute;
  inset: 0;
  height: 780px;
  z-index: -2;
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.88) 42%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(0deg, #000 10%, rgba(0, 0, 0, 0.12) 65%, rgba(0, 0, 0, 0.4) 100%);
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(210px, 285px) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
  padding-top: clamp(30px, 5vw, 62px);
}
.detail-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.68);
  background: #15151d;
}
.detail-poster img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.detail-poster .poster-fallback { font-size: 80px; }
.detail-info { padding-top: 8px; min-width: 0; }
.detail-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 750; margin-bottom: 10px; }
.detail-title {
  margin: 0 0 14px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: clamp(44px, 5.4vw, 80px);
  line-height: 0.94;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #cfcfd8; font-size: 13px; font-weight: 550; margin-bottom: 22px; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.detail-desc { max-width: 820px; color: #c8c8d2; font-size: 14.5px; line-height: 1.72; margin: 0 0 24px; }
.detail-desc.clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.detail-desc.expanded { display: block; }
.desc-toggle { border: 0; background: none; color: var(--accent); font-size: 12.5px; font-weight: 650; padding: 0; cursor: pointer; margin-top: -14px; margin-bottom: 22px; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.detail-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px 26px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.075); border-bottom: 1px solid rgba(255, 255, 255, 0.075); margin-bottom: 22px; }
.fact-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--dim); font-weight: 700; margin-bottom: 5px; }
.fact-value { font-size: 13px; color: #d5d5de; line-height: 1.5; }
.cast-row { display: flex; flex-wrap: wrap; gap: 7px; }
.cast-chip {
  padding: 6px 11px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  color: #c6c6d1;
  font-size: 11.5px;
  cursor: pointer;
}
.cast-chip:hover { border-color: var(--accent); color: var(--accent); }
.download-wrap { margin-top: 22px; }
.download-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: transparent;
  color: #c9c9d3;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.download-toggle:hover { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.download-toggle svg { width: 15px; height: 15px; }
.download-panel { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.025); padding: 15px; max-width: 760px; }
.download-panel p { margin: 0 0 11px; color: var(--dim); font-size: 11.5px; line-height: 1.5; }
.download-item { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid rgba(255, 255, 255, 0.055); font-size: 12.5px; color: #d0d0d9; }
.download-item:first-of-type { border-top: 0; }
.download-item svg { width: 15px; height: 15px; color: var(--dim); flex: 0 0 auto; }
.download-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-item a { margin-left: auto; color: var(--accent); font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.related-block { margin-top: 54px; }
.related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.related-head h2 { margin: 0; font-size: 21px; font-weight: 750; letter-spacing: -0.015em; }
.detail-skeleton { display: grid; grid-template-columns: 285px 1fr; gap: 48px; padding-top: 60px; }

/* ---------- Watch ---------- */

.player-mode .view { padding: 0; }
.player-shell {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 120;
  overflow: hidden;
}
.player-video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.player-top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: max(20px, env(safe-area-inset-top)) clamp(18px, 3vw, 40px) 70px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.player-shell.idle .player-top { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.player-shell.idle { cursor: none; }
.player-back {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
}
.player-back:hover { background: rgba(255, 255, 255, 0.13); }
.player-back svg { width: 22px; height: 22px; }
.player-heading { padding-top: 3px; min-width: 0; }
.player-title { margin: 0; font-size: clamp(19px, 2.4vw, 27px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; text-shadow: 0 2px 15px #000; }
.player-meta { margin-top: 5px; color: rgba(255, 255, 255, 0.66); font-size: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.player-badge {
  position: absolute;
  right: clamp(18px, 3vw, 40px);
  top: max(22px, env(safe-area-inset-top));
  z-index: 11;
  color: var(--accent);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  letter-spacing: 0.06em;
  opacity: 0.9;
}
.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at center, rgba(5, 5, 8, 0.55), rgba(5, 5, 8, 0.9));
  backdrop-filter: blur(7px);
}
.player-overlay[hidden] { display: none; }
.resume-card {
  width: min(92vw, 430px);
  padding: 30px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 16, 23, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
}
.resume-card h2 { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 400; font-size: 38px; line-height: 1; margin: 0 0 8px; letter-spacing: 0.01em; }
.resume-card p { color: var(--muted); font-size: 13px; margin: 0 0 22px; line-height: 1.55; }
.resume-time { color: var(--accent); font-weight: 700; }
.resume-actions { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; }
.player-error-card { width: min(92vw, 520px); text-align: center; }
.player-error-card svg { width: 42px; height: 42px; color: var(--danger); margin-bottom: 12px; }
.player-error-card h2 { font-size: 23px; margin: 0 0 9px; }
.player-error-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 18px; }
.player-error-card code { color: var(--accent); background: rgba(255, 255, 255, 0.08); padding: 2px 6px; border-radius: 5px; }
.player-spinner {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.28);
}
.player-spinner[hidden] { display: none; }
.spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.next-up {
  position: absolute;
  right: clamp(16px, 3vw, 38px);
  bottom: clamp(20px, 4vw, 46px);
  z-index: 9;
  width: min(360px, calc(100vw - 32px));
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(14, 14, 20, 0.93);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  display: flex;
  gap: 13px;
  animation: rise 0.35s var(--ease);
}
.next-up[hidden] { display: none; }
.next-up-poster { width: 64px; flex: 0 0 64px; aspect-ratio: 2/3; border-radius: 7px; overflow: hidden; background: #1b1b25; }
.next-up-poster img { width: 100%; height: 100%; object-fit: cover; }
.next-up-body { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.next-up-label { color: var(--dim); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 750; margin-bottom: 4px; }
.next-up-title { font-size: 13px; font-weight: 700; line-height: 1.3; margin-bottom: 9px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.next-up-actions { display: flex; gap: 7px; }
.next-up-btn { padding: 5px 10px; border-radius: 6px; border: 0; background: #fff; color: #111; font-size: 11px; font-weight: 750; cursor: pointer; }
.next-up-btn.ghost { background: rgba(255, 255, 255, 0.1); color: #eee; }
.key-hint {
  position: absolute;
  left: 50%;
  bottom: 74px;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.player-shell:not(.idle) .key-hint { opacity: 1; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid rgba(255, 255, 255, 0.06); margin-top: 30px; padding: 38px 0 34px; background: rgba(0, 0, 0, 0.18); }
.footer-inner {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-name { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 21px; letter-spacing: 0.05em; line-height: 1; }
.footer-tag { color: var(--dim); font-size: 10.5px; margin-top: 2px; }
.footer-status { color: var(--dim); font-size: 12px; }
.footer-actions { display: flex; align-items: center; gap: 7px; }
.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: transparent;
  color: #b9b9c4;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.footer-btn svg { width: 14px; height: 14px; }
.footer-btn:hover { border-color: rgba(255, 255, 255, 0.4); color: var(--accent); background: rgba(255, 255, 255, 0.04); }
.footer-btn:disabled { opacity: 0.5; cursor: default; }
.footer-btn.is-spinning svg { animation: spin 1s linear infinite; }
.footer-note { grid-column: 1 / -1; color: #55555f; font-size: 10.5px; margin: 4px 0 0; line-height: 1.6; }
.footer-note a { color: #777783; text-decoration: underline; text-underline-offset: 2px; }
.footer-note a:hover { color: var(--accent); }

/* ---------- Mobile tabs ---------- */

.mobile-tabs { display: none; }

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(3, 3, 6, 0.78);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 22px;
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative;
  width: min(94vw, 690px);
  max-height: min(90vh, 900px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #111118;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow);
  animation: rise 0.28s var(--ease);
  scrollbar-width: thin;
}
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.06); color: #ccc; cursor: pointer; }
.modal-close:hover { background: rgba(255, 255, 255, 0.13); color: #fff; }
.modal-close svg { width: 18px; height: 18px; }
.modal-eyebrow { color: var(--accent); font-size: 10.5px; letter-spacing: 0.17em; text-transform: uppercase; font-weight: 750; margin-bottom: 8px; }
.modal-card h2 { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 400; font-size: clamp(36px, 4.6vw, 50px); line-height: 1; margin: 0 0 14px; letter-spacing: 0.01em; }
.modal-lead { color: #bdbdc8; font-size: 13.5px; line-height: 1.7; margin: 0 0 24px; }
.modal-lead code, .steps code, .modal-note code { color: var(--accent); background: rgba(255, 255, 255, 0.08); padding: 2px 5px; border-radius: 4px; font-size: 0.92em; }
.steps { display: grid; gap: 22px; }
.step { display: flex; gap: 14px; }
.step-num { flex: 0 0 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3); color: var(--accent); font-size: 12px; font-weight: 800; }
.step h3 { margin: 2px 0 6px; font-size: 14.5px; font-weight: 700; }
.step p { margin: 0; color: #a8a8b4; font-size: 12.5px; line-height: 1.65; }
.step p.fine { color: var(--dim); font-size: 11.5px; margin-top: 7px; }
.step pre { margin: 11px 0 0; padding: 12px 14px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.08); background: #000; overflow-x: auto; }
.step pre code { padding: 0; background: none; color: #e7c66c; font-size: 12px; white-space: pre; }
.modal-note { margin-top: 26px; padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.025); color: #a5a5b1; font-size: 12px; line-height: 1.6; }
.modal-note strong { color: #ddd; }

/* ---------- Toast ---------- */

.toast-wrap { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  padding: 11px 17px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 20, 28, 0.96);
  color: #f0f0f3;
  font-size: 12.5px;
  font-weight: 550;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  animation: toast-in 0.22s var(--ease);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(92vw, 420px);
}
.toast svg { width: 15px; height: 15px; flex: 0 0 auto; }
.toast.ok svg { color: var(--success); }
.toast.err svg { color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Skeleton / setup ---------- */

.skeleton { position: relative; overflow: hidden; background: #14141c; border-radius: 11px; }
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-hero { min-height: 70vh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 40px) var(--pad) 60px; }
.sk-hero-lines { width: min(600px, 70vw); display: grid; gap: 14px; }
.sk-line { height: 14px; border-radius: 6px; }
.sk-line.title { height: 78px; width: 70%; }
.sk-line.w40 { width: 40%; }
.sk-line.w60 { width: 60%; }
.sk-line.btn { height: 44px; width: 250px; margin-top: 12px; border-radius: 8px; }
.sk-row { padding: 10px var(--pad) 34px; }
.sk-row-title { height: 18px; width: 200px; margin-bottom: 18px; border-radius: 5px; }
.sk-cards { display: flex; gap: 11px; overflow: hidden; }
.sk-card { flex: 0 0 var(--card-w); aspect-ratio: 2/3; }
.setup-screen { min-height: 70vh; display: grid; place-items: center; padding: 40px 20px; }
.setup-card { width: min(620px, 100%); border: 1px solid var(--line); border-radius: 20px; background: #101017; padding: clamp(26px, 4vw, 44px); text-align: center; }
.setup-card h1 { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 400; font-size: clamp(40px, 6vw, 60px); line-height: 1; margin: 0 0 12px; }
.setup-card p { color: var(--muted); font-size: 13.5px; line-height: 1.65; margin: 0 auto 22px; max-width: 470px; }
.setup-log { text-align: left; margin-top: 18px; padding: 14px; border-radius: 10px; background: #000; border: 1px solid rgba(255, 255, 255, 0.07); max-height: 180px; overflow-y: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #8b8b97; line-height: 1.6; white-space: pre-wrap; }
.setup-progress { height: 4px; border-radius: 99px; background: #1e1e28; overflow: hidden; margin: 18px 0; }
.setup-progress i { display: block; height: 100%; width: 34%; background: var(--accent); border-radius: inherit; animation: setup-bar 1.4s infinite ease-in-out; }
@keyframes setup-bar { 0% { transform: translateX(-110%); } 100% { transform: translateX(310%); } }
.error-screen { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.error-screen h1 { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 400; font-size: 50px; margin: 0 0 10px; }
.error-screen p { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; max-width: 440px; line-height: 1.6; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(200px, 270px); }
  .hero-poster-wrap { width: min(100%, 270px); }
  .nav-links { gap: 17px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: inline-grid; }
  .hero { min-height: 640px; }
  .hero-inner { grid-template-columns: 1fr; align-items: end; padding-bottom: 48px; }
  .hero-poster-wrap { display: none; }
  .hero-copy { max-width: 680px; }
  .hero-shade { background: linear-gradient(0deg, #000 2%, rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.35) 100%); }
  .detail-layout { grid-template-columns: 200px 1fr; gap: 26px; }
  .detail-poster { position: sticky; top: calc(var(--nav-h) + 18px); }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-status { grid-column: 1 / -1; order: 3; }
  .detail-skeleton { grid-template-columns: 200px 1fr; gap: 26px; }
}

@media (max-width: 700px) {
  :root { --nav-h: 62px; --card-w: clamp(124px, 35vw, 155px); }
  body { font-size: 14px; }
  .nav-inner { gap: 12px; }
  .brand-word { font-size: 23px; }
  .brand-net { font-size: 8px; letter-spacing: 0.12em; margin-top: 6px; }
  .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
  .brand-mark svg { width: 17px; height: 17px; }
  .nav-icon { width: 35px; height: 35px; }
  .nav-menu-btn { width: 35px; height: 35px; }
  .hero { min-height: 76vh; }
  .hero-inner { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 38px; }
  .hero-title { font-size: clamp(48px, 15vw, 72px); }
  .hero-desc { -webkit-line-clamp: 3; font-size: 13px; max-width: 94%; }
  .hero-actions .btn { height: 44px; padding: 0 18px; }
  .hero-actions .btn-ghost { height: 44px; }
  .hero-dots { margin-top: 23px; }
  .rows { margin-top: -20px; }
  .row { margin-bottom: 18px; }
  .row-head { gap: 9px; margin-bottom: 4px; }
  .row-title { font-size: 16px; }
  .row-sub, .row-more { display: none; }
  .row-track { gap: 8px; padding-top: 14px; padding-bottom: 22px; margin-top: -14px; }
  .row-arrow { display: none; }
  .card-wrap.ranked { width: calc(var(--card-w) + 29px); flex-basis: calc(var(--card-w) + 29px); }
  .rank-number { font-size: calc(var(--card-w) * 0.88); -webkit-text-stroke-width: 2px; }
  .card-hover { display: none; }
  .card-shade { opacity: 1; }
  .card-hover-title { display: none; }
  .footer { padding-bottom: 84px; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-actions { flex-wrap: wrap; }
  .footer-status { order: 0; }
  .mobile-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
  .mobile-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 0; color: #777783; font-size: 9.5px; font-weight: 650; letter-spacing: 0.02em; }
  .mobile-tabs svg { width: 21px; height: 21px; }
  .mobile-tabs a.active { color: var(--accent); }
  .page { padding-top: 24px; }
  .page-title { font-size: 40px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 18px 8px; }
  .search-page { padding-top: 24px; }
  .search-title { font-size: 44px; margin-bottom: 15px; }
  .search-shell { padding-left: 14px; border-radius: 12px; }
  .search-input { font-size: 16px; padding: 11px 0; }
  .search-filters { gap: 6px; }
  .filter-label { display: none; }
  .chip { font-size: 11px; padding: 6px 10px; }
  .results-meta { margin-top: 18px; }
  .genre-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .genre-tile { min-height: 88px; padding: 13px; }
  .genre-tile-name { font-size: 14px; }
  .detail-page { padding-bottom: 40px; }
  .detail-layout { grid-template-columns: 1fr; gap: 22px; padding-top: 20px; }
  .show-card-wrap { flex-basis: 74vw; width: 74vw; }
  .episode-card-wrap { flex-basis: 78vw; width: 78vw; }
  .show-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
  .shows-page { padding-top: 18px; }
  .shows-latest { margin-top: 18px; }
  .shows-grid-head { margin-top: 20px; padding-top: 18px; }
  .shows-grid-head h2 { font-size: 18px; }
  .shows-tools { width: 100%; }
  .shows-search { flex: 1; min-width: 0; }
  .shows-search input { width: 100%; }
  .shows-tools .filter-select { flex: 0 0 auto; }
  .show-grid .show-card-wrap { width: 100%; flex: none; }
  .show-card-body { padding: 9px 10px; }
  .show-card-title { font-size: 11px; }
  .show-card-meta { font-size: 8.5px; margin-top: 2px; }
  .show-card-badge { font-size: 7.5px; padding: 2px 5px; top: 6px; left: 6px; }
  .show-card-play { width: 26px; height: 26px; top: 6px; right: 6px; }
  .show-card-play svg { width: 12px; height: 12px; }
  .episode-card .show-card-title { font-size: 10.5px; }
  .show-hero { padding: calc(var(--nav-h) + 35px) 0 34px; }
  .show-title { font-size: clamp(44px, 14vw, 66px); }
  .show-meta { font-size: 11.5px; }
  .show-desc { font-size: 12.5px; }
  .show-body { padding-top: 18px; }
  .season-tab { font-size: 11.5px; padding: 7px 11px; }
  .ep-row { gap: 10px; padding: 8px 4px; }
  .ep-thumb { width: 116px; flex-basis: 116px; border-radius: 7px; }
  .ep-thumb-badge { font-size: 7.5px; }
  .ep-kicker { font-size: 8.5px; letter-spacing: 0.06em; }
  .ep-title { font-size: 11.5px; }
  .ep-sub { display: none; }
  .ep-play { width: 30px; height: 30px; flex-basis: 30px; }
  .ep-play svg { width: 12px; height: 12px; }
  .detail-poster { width: min(46vw, 190px); position: relative; top: 0; margin: 0 auto; }
  .detail-info { text-align: center; }
  .detail-eyebrow, .detail-meta, .detail-actions, .detail-chips { justify-content: center; }
  .detail-title { font-size: 47px; }
  .detail-desc { font-size: 13.5px; text-align: left; }
  .detail-facts { text-align: left; grid-template-columns: 1fr 1fr; }
  .detail-actions .btn { flex: 1 1 auto; }
  .detail-desc.clamped { -webkit-line-clamp: 6; }
  .download-panel { text-align: left; }
  .related-block { margin-top: 38px; }
  .next-up { width: calc(100vw - 24px); right: 12px; bottom: 12px; }
  .key-hint { display: none; }
  .player-title { font-size: 18px; }
  .player-meta { font-size: 10.5px; }
  .resume-card { padding: 24px; }
  .modal-card { padding: 25px 20px; border-radius: 16px; }
  .toast-wrap { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .detail-skeleton { grid-template-columns: 1fr; padding-top: 20px; }
}

@media (max-width: 390px) {
  :root { --card-w: 132px; }
  .hero-title { font-size: 46px; }
  .brand-word { font-size: 21px; }
  .brand-mark { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .skeleton::after { animation: none; }
}

/* ---------- Ammar TV theme (Apple TV-inspired chrome) ---------- */

body {
  background: #000;
  background-image: none;
}
::selection { background: #f5f5f7; color: #000; }
:focus-visible { outline-color: #f5f5f7; }

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(180deg, #3a3a3c, #1c1c1e);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-mark.small { width: 29px; height: 29px; }
.brand-word {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1;
  padding-top: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.brand-tv { color: #8e8e93; font-size: 0.88em; font-weight: 550; letter-spacing: 0.01em; }
.brand-plus, .brand-net { display: none; }

.nav {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.35) 72%, transparent 100%);
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.nav-links > a, .nav-link-btn { color: #c7c7cc; font-weight: 500; }
.nav-links > a.active::after { background: #f5f5f7; height: 1.5px; }
.nav-badge { background: #f5f5f7; color: #000; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }

.hero-shade {
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.9) 34%, rgba(0, 0, 0, 0.15) 70%, rgba(0, 0, 0, 0.65) 100%),
    linear-gradient(0deg, #000 1%, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.5) 100%);
}
.hero-grain { opacity: 0.08; }
.hero-eyebrow { color: #a1a1a6; font-weight: 650; letter-spacing: 0.14em; font-size: 11px; }
.hero-eyebrow::before { background: #f5f5f7; }
.hero-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 5.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero-meta { color: #d1d1d6; font-weight: 500; }
.rating-star { color: #f5f5f7; }
.quality-pill { border-color: rgba(255, 255, 255, 0.2); color: #e5e5ea; font-weight: 600; letter-spacing: 0.04em; }
.hero-desc { color: #b8b8bd; font-size: 15px; line-height: 1.65; }
.hero-poster {
  transform: none;
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
}
.hero-poster-wrap:hover .hero-poster { transform: translateY(-3px); }
.hero-dot { background: rgba(255, 255, 255, 0.24); }
.hero-dot.active { background: #f5f5f7; }
.hero-rank-badge { background: #f5f5f7; color: #000; }

.btn { border-radius: 999px; height: 46px; font-weight: 600; font-size: 14px; letter-spacing: -0.005em; }
.btn-primary { background: #f5f5f7; color: #000; }
.btn-primary:hover { background: #e5e5ea; }
.btn-secondary { background: rgba(255, 255, 255, 0.12); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }
.btn-ghost { border-radius: 999px; border-color: rgba(255, 255, 255, 0.18); }
.hero-actions .btn-ghost { height: 46px; }

.page-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.search-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.detail-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(38px, 4.8vw, 72px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.show-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(40px, 5.6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
}
.footer-name {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}
.footer-name .brand-tv { font-size: 0.9em; }
.row-title { font-weight: 700; letter-spacing: -0.02em; }
.card { border-radius: 13px; }
.show-card { border-radius: 14px; }
.card-act.is-added, .btn.is-added { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.card-progress i { background: #f5f5f7; }
.poster-fallback {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.05em;
}
.rank-number {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  -webkit-text-stroke: 2px #3a3a3c;
  letter-spacing: -0.08em;
}

.chip { border-color: rgba(255, 255, 255, 0.14); color: #c7c7cc; font-weight: 500; }
.chip.active { background: #f5f5f7; border-color: #f5f5f7; color: #000; font-weight: 650; }
.search-shell { border-color: rgba(255, 255, 255, 0.14); border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.search-shell:focus-within {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.06);
}
.filter-select {
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.14);
  padding: 8px 32px 8px 14px;
  color: #d1d1d6;
}
.genre-tile {
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, 0.07), transparent 55%),
    linear-gradient(145deg, #1c1c1e, #0e0e10);
}
.genre-tile:hover { border-color: rgba(255, 255, 255, 0.25); }
.genre-tile::after { color: rgba(255, 255, 255, 0.2); }
.genre-tile-name { font-weight: 600; letter-spacing: -0.02em; }

.show-kicker, .detail-eyebrow { color: #a1a1a6; }
.show-meta, .detail-meta { color: #d1d1d6; }
.show-desc { color: #b8b8bd; }
.season-tab { border-color: rgba(255, 255, 255, 0.14); border-radius: 999px; }
.season-tab.active { background: #f5f5f7; border-color: #f5f5f7; color: #000; }
.new-strip-label { color: #8e8e93; }
.new-strip-ep { color: #f5f5f7; }
.new-strip-item { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03); }
.new-strip-item:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); }
.episode-sort, .download-toggle, .page-back { border-radius: 999px; }
.ep-play { border-color: rgba(255, 255, 255, 0.24); }
.ep-row:hover .ep-play { background: #f5f5f7; color: #000; border-color: #f5f5f7; }
.ep-watched { color: #f5f5f7; }

.footer { background: #000; border-top-color: rgba(255, 255, 255, 0.08); }
.footer-btn { border-radius: 999px; }
.footer-btn:hover { border-color: rgba(255, 255, 255, 0.3); color: #fff; background: rgba(255, 255, 255, 0.04); }
.modal-card { background: #1c1c1e; border-color: #2c2c2e; }
.resume-card { background: rgba(28, 28, 30, 0.96); border-color: rgba(255, 255, 255, 0.12); border-radius: 18px; }
.resume-card h2, .modal-card h2, .setup-card h1, .error-screen h1 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.player-title { font-weight: 650; letter-spacing: -0.03em; }
.player-badge { font-family: "Inter", sans-serif; font-weight: 700; letter-spacing: 0.12em; font-size: 11px; color: rgba(255, 255, 255, 0.75); }

/* 200% volume control */
.player-tool {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: #f5f5f7;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  margin-left: auto;
}
.player-tool:hover { background: rgba(255, 255, 255, 0.14); }
.player-tool.active { background: #f5f5f7; border-color: #f5f5f7; color: #000; }
.player-tool svg { width: 15px; height: 15px; }

@media (max-width: 700px) {
  .brand-word { font-size: 18px; }
  .brand-mark, .brand-mark.small { width: 27px; height: 27px; border-radius: 8px; }
  .brand-mark svg { width: 16px; height: 16px; }
  .hero-title { font-size: clamp(40px, 12vw, 62px); letter-spacing: -0.045em; }
  .page-title { font-size: 34px; }
  .show-title { font-size: clamp(38px, 12vw, 60px); }
  .detail-title { font-size: 38px; }
  .search-title { font-size: 38px; }
  .hero-poster { border-radius: 14px; }
  .player-heading { padding-right: 4px; }
  .player-tool { height: 33px; padding: 0 10px; font-size: 10.5px; }
}

.player-heading { flex: 1; min-width: 0; }
.player-tool { align-self: flex-start; margin-top: 2px; }
@media (max-width: 700px) {
  .key-hint { display: none; }
}

/* Custom player controls — one volume slider (0–200%) */
.player-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.2s, transform 0.2s, opacity 0.25s;
}
.player-center:hover { background: rgba(255, 255, 255, 0.16); transform: translate(-50%, -50%) scale(1.04); }
.player-center svg { width: 28px; height: 28px; margin-left: 3px; }
.player-center[hidden] { display: none; }

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 30px clamp(14px, 3vw, 34px) max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.player-shell.idle .player-controls,
.player-shell.idle .player-center {
  opacity: 0;
  pointer-events: none;
}
.pc-btn {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #f5f5f7;
  cursor: pointer;
  transition: background 0.18s;
}
.pc-btn:hover { background: rgba(255, 255, 255, 0.12); }
.pc-btn svg { width: 21px; height: 21px; }
.pc-time {
  flex: 0 0 auto;
  min-width: 38px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.pc-seek {
  position: relative;
  flex: 1;
  height: 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
  border-radius: 4px;
}
.pc-seek:focus-visible { outline: 2px solid #f5f5f7; outline-offset: 2px; }
.pc-seek::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
}
.pc-buffer, .pc-played {
  position: absolute;
  left: 0;
  height: 4px;
  border-radius: 2px;
  pointer-events: none;
}
.pc-buffer { width: 0; background: rgba(255, 255, 255, 0.32); }
.pc-played { width: 0; background: #f5f5f7; }
.pc-thumb {
  position: absolute;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.pc-seek:hover .pc-thumb, .pc-seek:focus-visible .pc-thumb { opacity: 1; }
.pc-volume { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.pc-volume-range {
  -webkit-appearance: none;
  appearance: none;
  width: 86px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  cursor: pointer;
}
.pc-volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.pc-volume-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.pc-volume-label {
  min-width: 34px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 10.5px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  .player-center { width: 62px; height: 62px; }
  .player-center svg { width: 23px; height: 23px; }
  .player-controls { gap: 5px; padding: 24px 12px max(10px, env(safe-area-inset-bottom)); }
  .pc-btn { width: 30px; height: 30px; flex-basis: 30px; }
  .pc-btn svg { width: 19px; height: 19px; }
  .pc-time { min-width: 30px; font-size: 9.5px; }
  .pc-volume { gap: 5px; }
  .pc-volume-range { width: 54px; }
  .pc-volume-label { display: none; }
}

/* Network / playback availability */
.net-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #c7c7cc;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.net-status[hidden] { display: none; }
.net-status .net-dot, .net-banner .net-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #8e8e93;
  box-shadow: 0 0 0 3px rgba(142, 142, 147, 0.14);
}
.net-status.home .net-dot, .net-banner.home .net-dot {
  background: #30d158;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.14);
}
.net-status.away .net-dot, .net-banner.away .net-dot {
  background: #ff9f0a;
  box-shadow: 0 0 0 3px rgba(255, 159, 10, 0.14);
}
.net-status.proxy .net-dot, .net-banner.proxy .net-dot {
  background: #0a84ff;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.14);
}
.net-banner {
  position: fixed;
  top: var(--nav-h);
  left: 50%;
  transform: translateX(-50%);
  width: min(94vw, 760px);
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: rgba(20, 20, 22, 0.94);
  backdrop-filter: blur(20px);
  color: #d1d1d6;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}
.net-banner[hidden] { display: none; }
.net-banner.home { background: rgba(48, 209, 88, 0.1); color: #b7f3c6; }
.net-banner.away { background: rgba(255, 159, 10, 0.12); color: #ffd9a0; }
.net-banner.proxy { background: rgba(10, 132, 255, 0.1); color: #b9d9ff; }
.net-banner button {
  margin-left: auto;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.net-banner button:hover { background: rgba(255, 255, 255, 0.1); }
body.player-mode .net-banner, body.player-mode .net-status { display: none !important; }

@media (max-width: 700px) {
  .net-status { padding: 5px 7px; }
  .net-status #net-label { display: none; }
  .net-banner { font-size: 11px; padding: 9px 14px; width: 100%; border-radius: 0; border-left: 0; border-right: 0; }
}

.net-banner .net-retry {
  margin-left: auto;
  width: auto;
  height: 26px;
  padding: 0 10px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 10px;
  font-weight: 650;
  opacity: 0.85;
}
.net-banner .net-retry:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }
.net-banner #net-banner-close { margin-left: 0; }

.net-status.home-permission .net-dot, .net-banner.home-permission .net-dot {
  background: #ffd60a;
  box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.14);
}
.net-banner.home-permission {
  background: rgba(255, 214, 10, 0.12);
  color: #ffe98a;
}

/* Quiet network notice: only appears when playback is unavailable */
.net-status { display: none !important; }
.net-banner {
  top: calc(var(--nav-h) + 12px);
  width: min(92vw, 520px);
  padding: 10px 13px;
  border: 1px solid rgba(255, 159, 10, 0.28);
  border-radius: 12px;
  background: rgba(28, 28, 30, 0.97);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  color: #ffe0b2;
  font-size: 11.5px;
  line-height: 1.45;
  backdrop-filter: blur(18px);
}
.net-banner.away { background: rgba(36, 27, 15, 0.97); color: #ffda9e; }
.net-banner.home-permission { background: rgba(36, 32, 15, 0.97); color: #ffe98a; border-color: rgba(255, 214, 10, 0.3); }
.net-banner button {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin-left: 0;
  color: inherit;
  font-size: 18px;
  opacity: 0.7;
}
.net-banner .net-dot { width: 7px; height: 7px; flex-basis: 7px; }
@media (max-width: 700px) {
  .net-banner {
    top: calc(var(--nav-h) + 8px);
    width: min(92vw, 520px);
    padding: 9px 11px;
    border: 1px solid rgba(255, 159, 10, 0.28);
    border-radius: 12px;
    font-size: 11px;
  }
  .net-banner.home-permission { border-color: rgba(255, 214, 10, 0.3); }
}

/* Show My List button */
.show-card-wrap { position: relative; }
.show-card-list {
  position: absolute;
  top: 9px;
  right: 47px;
  z-index: 6;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.18s, transform 0.18s, background 0.18s;
  backdrop-filter: blur(8px);
}
.show-card-list svg { width: 15px; height: 15px; }
.show-card-list:hover { background: rgba(255, 255, 255, 0.18); }
.show-card-list.is-added { color: #000; background: #f5f5f7; border-color: #f5f5f7; }
.show-card:hover .show-card-list,
.show-card-wrap:focus-within .show-card-list { opacity: 1; transform: none; }
@media (hover: none) {
  .show-card-list { opacity: 1; transform: none; width: 27px; height: 27px; top: 6px; right: 37px; }
}

.saved-block { margin-top: 32px; }
.saved-block .related-head { margin-bottom: 16px; }
.show-card-wrap:hover .show-card-list,
.show-card-wrap:focus-within .show-card-list { opacity: 1; transform: none; }

/* Widescreen trailer banners */
.hero.has-backdrop .hero-inner { grid-template-columns: 1fr; }
.hero.has-backdrop .hero-poster-wrap { display: none; }
.hero.has-backdrop .hero-copy { max-width: 820px; }
.hero.has-backdrop .hero-bg {
  filter: blur(2px) saturate(1.08) brightness(0.55);
  transform: scale(1.02);
}
.hero.has-backdrop .hero-shade {
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.82) 40%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(0deg, #000 1%, rgba(0, 0, 0, 0.08) 58%, rgba(0, 0, 0, 0.35) 100%);
}
.hero.has-backdrop .hero-grain { opacity: 0.04; }

.detail-page.has-backdrop .detail-bg {
  filter: blur(10px) saturate(1.15) brightness(0.52);
  background-position: center 24%;
}
.detail-page.has-backdrop .detail-bg-shade {
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.82) 42%, rgba(0, 0, 0, 0.3) 100%),
    linear-gradient(0deg, #000 8%, rgba(0, 0, 0, 0.12) 65%, rgba(0, 0, 0, 0.35) 100%);
}
.show-hero-bg {
  filter: blur(12px) saturate(1.15) brightness(0.55);
  background-position: center 28%;
}

/* IMDb labels */
.imdb-word {
  display: inline-block;
  padding: 1px 4px;
  border-radius: 3px;
  background: #f5c518;
  color: #111;
  font-size: 8.5px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: 0.02em;
  vertical-align: 1px;
}
.card-rating {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 5;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: #f2f2f4;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.card-rating .imdb-word { margin-right: 2px; }
.imdb-inline { color: #f2f2f4; font-weight: 650; white-space: nowrap; }
.imdb-inline .imdb-word { margin-right: 3px; }

@media (max-width: 700px) {
  .hero.has-backdrop .hero-bg { filter: blur(2px) brightness(0.5); }
  .detail-page.has-backdrop .detail-bg { filter: blur(9px) brightness(0.52); }
  .show-hero-bg { filter: blur(10px) brightness(0.52); }
}
