:root {
  --bg: #07060a;
  --bg-2: #100e16;
  --surface: #18151f;
  --surface-2: #211d2a;
  --line: rgba(255, 236, 220, 0.08);
  --text: #f6f0e6;
  --muted: #9b9388;
  --accent: #ff4d6d;
  --accent-2: #ff8aa0;
  --gold: #e7c27d;
  --radius: 16px;
  --header: 72px;
  --dock: 80px;
  --max: 1280px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { background: var(--bg); color: var(--text); min-height: 100%; }

body {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button, input { font: inherit; }
a { color: inherit; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}

#progress-bar {
  position: fixed;
  top: 0; left: 0; height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  z-index: 80;
  opacity: 0;
  transition: width .4s ease, opacity .2s;
}
#progress-bar.on { opacity: 1; width: 72%; }
#progress-bar.done { width: 100%; opacity: 0; }

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 1.5rem;
  background: rgba(7, 6, 10, 0.72);
  backdrop-filter: blur(22px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
  height: 100%;
}
.logo {
  height: 52px;
  width: 52px;
  display: block;
  object-fit: contain;
  border-radius: 12px;
  background: #f6f1fa;
}

.nav {
  display: flex;
  gap: 0.15rem;
  align-items: center;
}

.nav a, .dock a, .ghost, .chip, .btn {
  cursor: pointer;
  border: 0;
  background: none;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav a.on, .nav a.on:hover {
  color: #140c10;
  background: var(--text);
}

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

.search-wrap input {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.62rem 1rem 0.62rem 2.4rem;
  border-radius: 999px;
  outline: none;
}
.search-wrap input:focus { border-color: rgba(255, 77, 109, .5); background: rgba(255,255,255,.08); }
.search-wrap .lens {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: .55;
  pointer-events: none;
}

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

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
  text-decoration: none;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

#app {
  min-height: calc(100vh - var(--header));
  padding-bottom: 1.5rem;
}

.hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: grid;
  align-items: center;
  overflow: hidden;
  margin-top: calc(var(--header) * -1);
  padding: calc(var(--header) + 2.5rem) 0 3.2rem;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 3rem;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-2) center/cover no-repeat;
  filter: saturate(1.15) blur(18px);
  transform: scale(1.12);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,6,10,.92) 0%, rgba(7,6,10,.72) 48%, rgba(7,6,10,.4) 100%),
    linear-gradient(180deg, rgba(7,6,10,.35) 0%, transparent 30%, var(--bg) 100%);
}
.hero-poster {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
}
.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.hero-copy h1 {
  font-family: Syne, sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
}

.blurb {
  color: #d7cfc3;
  font-size: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 52ch;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.1rem 0 1.4rem;
}
.stat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}
.dot::before { content: "·"; margin-right: 0.55rem; color: var(--accent); }

.actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.btn.primary {
  background: var(--text);
  color: #140c10;
}
.btn.primary:hover { background: #fff; }
.btn.ghost {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn.ghost.on { border-color: var(--accent); color: var(--accent-2); }

.wrap { width: min(var(--max), calc(100% - 3rem)); margin: 0 auto; }

.section { margin: 1.15rem auto 2.1rem; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.section-head h2 {
  font-family: Syne, sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.see {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.see:hover { color: var(--accent-2); }

.list-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -0.6rem 0 1rem;
}

.rail { position: relative; }
.scroller {
  display: flex;
  gap: 0.95rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.85rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #3a3344 transparent;
}
.scroller::-webkit-scrollbar { height: 6px; }
.scroller::-webkit-scrollbar-thumb { background: #3a3344; border-radius: 99px; }

.card {
  flex: 0 0 168px;
  scroll-snap-align: start;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.card.wide { flex-basis: 268px; }

.card-wrap {
  position: relative;
  flex: 0 0 168px;
  scroll-snap-align: start;
  min-width: 0;
}
.card-wrap.wide { flex-basis: 268px; }
.card-wrap .card { flex: none; width: 100%; }
.card-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 4;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 8, 12, 0.82);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.card-remove:hover { background: var(--accent); color: #fff; }

.poster {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
}
.poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.card.wide .poster,
.card-wrap.wide .poster {
  aspect-ratio: 16 / 9;
}
.card:hover .poster img { transform: scale(1.06); }
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(7,6,10,.96) 100%);
}

.poster .play {
  position: absolute;
  z-index: 2;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: var(--text);
  color: #140c10;
  display: grid; place-items: center;
  opacity: 0;
  transform: scale(.9);
  transition: .2s ease;
}
.card:hover .poster .play { opacity: 1; transform: scale(1); }

.badge {
  position: absolute;
  z-index: 2;
  top: 8px; left: 8px;
  background: rgba(10,8,12,.72);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.45rem;
  border-radius: 8px;
}
.badge.rank {
  font-family: Syne, sans-serif;
  font-size: 0.78rem;
  background: var(--text);
  color: #140c10;
}

.progress {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255,255,255,.15);
}
.progress > i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.poster-foot {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 0.7rem 0.7rem;
}
.poster-foot h3 {
  font-size: 0.82rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
.poster-foot p {
  color: rgba(246,240,230,.7);
  font-size: 0.7rem;
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 1rem 0.8rem;
}
.grid .card, .grid .card-wrap { flex: none; width: auto; }

.page {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0.6rem auto 0;
}
.page-hero { margin-bottom: 1.4rem; }
.page-hero h1, .page-title {
  font-family: Syne, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}
.lede { color: var(--muted); }
.page-hero .lede { margin-bottom: 0; }

.chips, .pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.85rem 0 0.4rem;
}
.chip, .pill {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}
.chip.on, .pill.on {
  background: var(--text);
  border-color: var(--text);
  color: #140c10;
}

.filters {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem 1.05rem;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.filter-row h4 {
  font-size: 0.72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.filter-row .chips { margin: 0; }

.feed-status {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 1.4rem 0 0.4rem;
}
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.error-box { color: var(--accent-2); }

.more {
  display: block;
  margin: 1.5rem auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}
.more:disabled { opacity: .5; }

.charts {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto 2rem;
}
.charts-hero {
  padding: 0.4rem 0 1.4rem;
}
.charts-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.charts-live i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3dff8b;
  box-shadow: 0 0 0 0 rgba(61, 255, 139, .7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(61, 255, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 255, 139, 0); }
}
.charts-hero h1 {
  font-family: Syne, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.45rem;
}
.charts-hero .lede { margin-bottom: 1.1rem; }
.chart-tabs {
  display: flex;
  gap: 0.3rem;
  padding: 0.28rem;
  width: 100%;
  overflow-x: auto;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  scrollbar-width: none;
}
.chart-tabs::-webkit-scrollbar { display: none; }
.chart-tabs a {
  white-space: nowrap;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  flex: 0 0 auto;
}
.chart-tabs a:hover { color: var(--text); }
.chart-tabs a.on {
  background: var(--text);
  color: #140c10;
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: start;
  margin: 0.2rem 0 2.2rem;
}
.podium-skel { min-height: 280px; }
.podium-card {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.podium-art {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.podium-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.podium-card:hover .podium-art img { transform: scale(1.05); }
.podium-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  min-width: 36px;
  height: 36px;
  padding: 0 0.45rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: Syne, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  background: rgba(10, 8, 12, .78);
  backdrop-filter: blur(10px);
  color: var(--text);
}
.place-1 .podium-badge { background: var(--gold); color: #1a1408; }
.place-2 .podium-badge { background: #cfd6e4; color: #1a1c22; }
.place-3 .podium-badge { background: #d08a5a; color: #1a1008; }
.place-1 .podium-art {
  box-shadow: 0 0 0 2px rgba(231, 194, 125, .65), 0 18px 40px rgba(231, 194, 125, .16);
}
.podium-meta {
  margin-top: 0.75rem;
}
.podium-medal {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  color: var(--gold);
}
.place-2 .podium-medal { color: #cfd6e4; }
.place-3 .podium-medal { color: #d08a5a; }
.podium-meta h3 {
  font-family: Syne, sans-serif;
  font-size: 1.02rem;
  line-height: 1.2;
  margin-bottom: 0.28rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.podium-meta p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.podium-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.podium-tags span {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.chart-board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.chart-board-head h2 {
  font-family: Syne, sans-serif;
  font-size: 1.15rem;
}
.chart-board-head span { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.chart-rows { display: grid; gap: 0.45rem; }
.chart-row {
  display: grid;
  grid-template-columns: 48px 72px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
.chart-row:hover {
  background: rgba(255,255,255,.04);
  border-color: var(--line);
}
.chart-no {
  font-family: Syne, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(246, 240, 230, .4);
  text-align: center;
}
.chart-row:hover .chart-no { color: var(--accent-2); }
.chart-poster {
  width: 72px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
}
.chart-poster img { width: 100%; height: 100%; object-fit: cover; }
.chart-copy { min-width: 0; }
.chart-copy h3 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chart-copy p {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.heat {
  margin-top: 0.45rem;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  max-width: 220px;
}
.heat i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.chart-play {
  font-size: 0.75rem;
  font-weight: 800;
  color: #140c10;
  background: var(--text);
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateX(6px);
  transition: .18s ease;
}
.chart-row:hover .chart-play { opacity: 1; transform: none; }

.watch {
  width: min(1180px, calc(100% - 2rem));
  margin: 0.5rem auto 0;
}
.back {
  background: none;
  border: 0;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 1rem;
}
.back:hover { color: var(--text); }

.watch-grid {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.watch-side { display: grid; gap: 1rem; }
.watch-stage { min-width: 0; }

.player-shell {
  background: #000;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  max-height: min(82vh, 860px);
  margin: 0 auto;
  width: 100%;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 28px 70px rgba(255, 77, 109, .14);
}
.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.player-err {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  color: var(--accent-2);
  font-size: 0.85rem;
  display: none;
}

.quality {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
}
.quality-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: 700 0.75rem/1 Manrope, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 8, 12, 0.72);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.quality-btn:hover { background: var(--accent); }
.quality-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 108px;
  display: grid;
  gap: 2px;
  padding: 0.35rem;
  border-radius: 12px;
  background: rgba(10, 8, 12, 0.92);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.quality-menu[hidden] { display: none; }
.quality-menu button {
  border: 0;
  background: transparent;
  color: rgba(246,240,230,.88);
  text-align: left;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font: 600 0.82rem/1 Manrope, sans-serif;
  cursor: pointer;
}
.quality-menu button:hover,
.quality-menu button.on {
  background: var(--accent);
  color: #fff;
}

.show-info {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.15rem 1.2rem 1.2rem;
}
.show-info h1 {
  font-family: Syne, sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.2rem;
}
.show-info .blurb { -webkit-line-clamp: 5; font-size: 0.9rem; margin-top: 0.7rem; }

.ep-panel {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 20px;
  min-height: 200px;
  max-height: 52vh;
  overflow: auto;
}
.ep-panel header {
  position: sticky; top: 0;
  background: #15131b;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  z-index: 1;
}
.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 0.4rem;
  padding: 0.85rem;
}
.ep {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.ep:hover { border-color: var(--accent-2); }
.ep.on { background: var(--text); border-color: var(--text); color: #140c10; }
.ep.locked { opacity: .35; pointer-events: none; }

.suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #1c1824;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 45;
  display: none;
}
.suggest.open { display: block; }
.suggest button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.9rem;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font-size: 0.88rem;
}
.suggest button:hover { background: rgba(255,255,255,.05); }

.hot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hot button {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}
.hot button:hover { background: var(--text); color: #140c10; }

.dock {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: fixed;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 1.4rem));
  height: 64px;
  background: rgba(16,14,22,.9);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  z-index: 40;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  gap: 0.18rem;
  letter-spacing: 0.02em;
}
.dock svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.dock a.on, .dock a:hover { color: var(--text); }
.dock a.on svg { fill: currentColor; stroke: currentColor; }
.dock a[data-nav="search"].on svg { fill: none; }

.skel {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shine 1.2s infinite;
  border-radius: 14px;
}
@keyframes shine { to { background-position: -200% 0; } }
.skel.poster { aspect-ratio: 3/4; }
.skel.hero { min-height: min(70vh, 620px); margin-top: -72px; }

@media (max-width: 900px) {
  .nav, .top-actions .hide-sm { display: none; }
  .search-wrap { max-width: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-poster { max-width: 210px; margin: 0 auto; }
  .hero { min-height: 0; padding: calc(var(--header) + 1.4rem) 0 1.6rem; }
  .watch-grid { grid-template-columns: 1fr; }
  .player-shell { max-height: 70vh; }
  .ep-panel { max-height: none; }
  .podium {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .podium-meta h3 { font-size: 0.78rem; }
  .podium-meta p { font-size: 0.68rem; }
  .podium-tags, .podium-medal { display: none; }
  .podium-badge { min-width: 28px; height: 28px; font-size: 0.85rem; top: 6px; left: 6px; }
  .chart-row { grid-template-columns: 36px 56px minmax(0, 1fr); }
  .chart-play { display: none; }
  .chart-poster { width: 56px; height: 74px; }
  .chart-no { font-size: 0.95rem; }
}

.legal {
  padding: 2.5rem 0 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.legal h1 {
  font-family: Syne, Manrope, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0.35rem 0 0.85rem;
}
.legal h2 {
  font-size: 1.05rem;
  margin: 1.7rem 0 0.45rem;
}
.legal p, .legal li {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}
.legal ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.legal a { color: var(--accent-2); }

.site-foot {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 calc(var(--dock) + 1.4rem);
  color: var(--muted);
  font-size: 0.82rem;
}
body[data-no-ads] .site-foot { padding-bottom: 1.6rem; }
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.foot-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.05rem;
  align-items: center;
}
.foot-inner a, .foot-link {
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.foot-inner a:hover, .foot-link:hover { color: var(--text); }

.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock) + 0.55rem);
  transform: translateX(-50%);
  width: min(720px, calc(100% - 1.4rem));
  z-index: 70;
  background: #1c1824;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.85rem;
}
.cookie-bar[hidden] { display: none !important; }
.cookie-bar p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.cookie-bar a { color: var(--accent-2); }
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}
body[data-no-ads] .cookie-bar { bottom: 1rem; }

.ad-slot {
  margin: 0 auto 1.6rem;
  min-height: 90px;
  background: rgba(255,255,255,.03);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0.45rem 0.75rem 0.8rem;
  overflow: hidden;
}
.ad-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

@media (max-width: 640px) {
  .top { padding: 0 0.85rem; gap: 0.6rem; }
  .wrap, .page, .watch, .charts { width: calc(100% - 1.5rem); }
  .card { flex-basis: 138px; }
  .hero-copy h1 { font-size: 1.85rem; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}
