/* StreamVault — front-end styles */
:root {
  --bg: #0b0d10;
  --surface: #14171c;
  --raised: #1c2027;
  --line: #262b34;
  --text: #e9ecf1;
  --muted: #949cab;
  --accent: #e0a75e;
  --accent-ink: #1a1408;
  --radius: 10px;
  --maxw: 1440px;
  --pad: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* ---------------------------------------------------------------- header */
.hdr {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.hdr.stuck { border-bottom-color: var(--line); }
.hdr-in {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--pad);
  display: flex; align-items: center; gap: 28px;
}
.mark {
  display: flex; align-items: center; gap: 9px;
  font-weight: 650; font-size: 17px; letter-spacing: -.02em; white-space: nowrap;
}
.mark svg { flex: none; }
.mark b { font-weight: 650; }
.mark span { color: var(--accent); font-weight: 650; }

.nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.hdr-r { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; min-width: 200px;
}
.search input {
  background: none; border: 0; color: var(--text); outline: none;
  font: inherit; font-size: 14px; width: 100%;
}
.search input::placeholder { color: #69707c; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px; padding: 9px 18px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer;
  font-size: 14px; font-weight: 550; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .08s;
}
.btn:hover { background: var(--raised); border-color: #333a45; }
.btn:active { transform: translateY(1px); }
.btn-a { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 650; }
.btn-a:hover { background: #ebb771; border-color: #ebb771; }
.btn-lg { padding: 12px 24px; font-size: 15px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: min(74vh, 640px); display: flex; align-items: flex-end; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, color-mix(in srgb, var(--bg) 55%, transparent) 42%, transparent 78%),
    linear-gradient(to right, color-mix(in srgb, var(--bg) 88%, transparent), transparent 62%);
}
.hero-in { position: relative; padding-block: 64px 52px; max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent); font-weight: 650; margin-bottom: 14px;
}
.eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  margin: 0 0 14px; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.02;
  letter-spacing: -.035em; font-weight: 680;
}
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #4a515c; }
.tag { border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 11px; letter-spacing: .04em; }
.hero p.sum { color: #c3cad5; font-size: 15.5px; line-height: 1.6; margin: 0 0 26px; max-width: 54ch; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ----------------------------------------------------------------- rails */
.rail { margin: 44px 0; }
.rail-hd { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.rail-hd h2 { margin: 0; font-size: 17px; font-weight: 620; letter-spacing: -.01em; }
.rail-hd a { font-size: 13px; color: var(--muted); }
.rail-hd a:hover { color: var(--accent); }

.strip {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(146px, 15.5vw, 202px);
  gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 10px; scrollbar-width: thin;
  scrollbar-color: #2d333d transparent;
}
.strip::-webkit-scrollbar { height: 8px; }
.strip::-webkit-scrollbar-thumb { background: #2d333d; border-radius: 4px; }
.strip::-webkit-scrollbar-track { background: transparent; }

.card { scroll-snap-align: start; cursor: pointer; }
.card .art {
  position: relative; aspect-ratio: 2/3; border-radius: var(--radius);
  overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  transition: transform .18s ease, border-color .18s;
}
.card:hover .art { transform: translateY(-4px); border-color: #3a424f; }
.card .art img { width: 100%; height: 100%; object-fit: cover; }
.card .art::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(to top, rgba(6,8,11,.85), transparent 48%);
  transition: opacity .18s;
}
.card:hover .art::after { opacity: 1; }
.card .play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 44px; height: 44px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 92%, transparent);
  display: grid; place-items: center; opacity: 0; scale: .85;
  transition: opacity .18s, scale .18s;
}
.card:hover .play { opacity: 1; scale: 1; }
.card .badge {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  background: rgba(8,10,14,.74); backdrop-filter: blur(6px);
  border-radius: 4px; padding: 2px 7px; font-size: 10.5px;
  letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
}
.card h3 { margin: 10px 0 3px; font-size: 13.5px; font-weight: 550; letter-spacing: -.005em; }
.card .sub { color: var(--muted); font-size: 12px; }

/* ---------------------------------------------------------------- footer */
.ft { border-top: 1px solid var(--line); margin-top: 72px; padding: 46px 0 56px; color: var(--muted); font-size: 13px; }
.ft-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; margin-bottom: 36px; }
.ft h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: #6d7480; font-weight: 600; }
.ft li { list-style: none; margin-bottom: 8px; }
.ft ul { margin: 0; padding: 0; }
.ft a:hover { color: var(--text); }
.ft-btm { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 24px; font-size: 12.5px; }
.ft-btm .sp { margin-left: auto; }

/* ----------------------------------------------------------------- misc */
.skel { background: linear-gradient(100deg, #161a20 30%, #1e232b 50%, #161a20 70%); background-size: 220% 100%; animation: sh 1.3s linear infinite; }
@keyframes sh { to { background-position: -220% 0; } }
.center { max-width: 560px; margin: 0 auto; padding-block: 88px 120px; text-align: center; }
.center h1 { font-size: 28px; letter-spacing: -.025em; margin: 0 0 12px; }
.center p { color: var(--muted); margin: 0 0 22px; }
.prose { max-width: 720px; padding-block: 56px 100px; }
.prose h1 { font-size: 30px; letter-spacing: -.028em; margin: 0 0 8px; }
.prose h2 { font-size: 17px; margin: 34px 0 10px; letter-spacing: -.01em; }
.prose p, .prose li { color: #b8c0cb; }
.prose .upd { color: #6d7480; font-size: 13px; margin-bottom: 30px; }

@media (max-width: 860px) {
  .nav, .search { display: none; }
}

/* ------------------------------------------------------- полка с номерами */
.strip.rank { grid-auto-columns: clamp(200px, 22vw, 290px); }
.rank .card { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 6px; }
.rank .num {
  font: 700 clamp(62px, 8vw, 104px)/0.78 ui-sans-serif, system-ui, sans-serif;
  color: #10141a; -webkit-text-stroke: 2px #39414e; letter-spacing: -.06em;
  margin-bottom: 26px; user-select: none;
}
.rank .card:hover .num { -webkit-text-stroke-color: var(--accent); }
.rank .art { aspect-ratio: 2/3; }

/* ----------------------------------------------------- широкие карточки */
.strip.wide { grid-auto-columns: clamp(240px, 27vw, 340px); }
.wide .art { aspect-ratio: 16/9; }
.wide .card h3 { margin-top: 9px; }

/* ------------------------------------------------------ страница тайтла */
.tbg { position: relative; min-height: min(62vh, 560px); display: flex; align-items: flex-end; }
.tbg-img { position: absolute; inset: 0; overflow: hidden; }
.tbg-img img { width: 100%; height: 100%; object-fit: cover; }
.tbg-img::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 1%, color-mix(in srgb, var(--bg) 62%, transparent) 40%, transparent 82%),
    linear-gradient(to right, color-mix(in srgb, var(--bg) 84%, transparent), transparent 66%);
}
.tbg-in { position: relative; padding-block: 56px 40px; max-width: 700px; }
.tbg h1 { margin: 0 0 6px; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -.035em; }
.orig { color: var(--muted); font-size: 14px; font-style: italic; margin: 0 0 14px; }
.pdchip {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid #2f6b46;
  background: rgba(38,98,64,.22); color: #9ad9b1; border-radius: 999px;
  padding: 3px 11px; font-size: 11.5px; font-weight: 550; letter-spacing: .01em;
}
.tcols { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px; padding-block: 30px 10px; }
.tcols h2 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: #79818e; margin: 0 0 14px; font-weight: 600; }
.tcols p.lead { font-size: 16px; line-height: 1.65; color: #ccd3dd; margin: 0 0 26px; max-width: 64ch; }

.eps { border-top: 1px solid var(--line); }
.ep {
  display: grid; grid-template-columns: 34px 132px 1fr auto; gap: 16px;
  align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background .14s;
}
.ep:hover { background: var(--surface); }
.ep .n { color: #666e7b; font-variant-numeric: tabular-nums; font-size: 14px; }
.ep .th { aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: var(--surface); }
.ep .th img { width: 100%; height: 100%; object-fit: cover; }
.ep .tt { font-size: 14px; font-weight: 500; }
.ep .dd { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }

.facts dt { color: #6d7480; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-top: 16px; }
.facts dd { margin: 4px 0 0; color: #ccd3dd; font-size: 14px; }
.facts dd:first-of-type { margin-top: 0; }
.cast { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.cast span { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; color: #ccd3dd; }
.rights { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 14px 16px; font-size: 12.5px; color: var(--muted); margin-top: 26px; line-height: 1.6; }
.rights b { color: #9ad9b1; font-weight: 600; }

@media (max-width: 880px) {
  .tcols { grid-template-columns: 1fr; gap: 26px; }
  .ep { grid-template-columns: 26px 96px 1fr auto; gap: 11px; }
}

/* Карточка стала <a><span>…</span></a> ради колонки с номером — span по
   умолчанию строчный, поэтому блочность задаём явно. */
.card > span { display: block; min-width: 0; }
.card .art { display: block; }
.card .badge, .card .play { display: grid; place-items: center; }
.card .badge { display: block; }
