@font-face {
  font-family: "Onest";
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
  Warm graphite surfaces in three steps, one amber accent.
  Amber means "progress", "now playing" or the single primary action — nothing else.
*/
:root {
  --bg: #161513;
  --s1: #1e1c1a;
  --s2: #272522;
  --s3: #32302c;
  --line: #2c2a27;
  --line-2: #3b3834;
  --text: #eeeae4;
  --soft: #c2bcb3;
  --muted: #8a847c;
  --faint: #5f5a54;
  --accent: #e8b860;
  --accent-ink: #1c1608;
  --ok: #8fbf8a;
  --warn: #d9a15a;
  --danger: #e2826b;

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --gutter: 24px;
  --shadow: 0 12px 32px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
  --ease: cubic-bezier(.2, .7, .2, 1);
  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 "Onest", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none;
  cursor: default;
}
.desc, .orig, h1, input { -webkit-user-select: text; user-select: text; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
::selection { background: rgba(232, 184, 96, .35); }
[hidden] { display: none !important; }

/* scrollbars in the theme instead of the engine default */
* { scrollbar-width: thin; scrollbar-color: var(--s3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--s3); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--line-2); }

/* icons */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i .f { fill: currentColor; stroke: none; }
.i text { fill: currentColor; stroke: none; font: 600 6.5px "Onest", sans-serif; }
.i.big { width: 40px; height: 40px; stroke-width: 1.25; color: var(--faint); }

kbd {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 5px; background: var(--s2); border: 1px solid var(--line-2); border-bottom-width: 2px;
  font: 500 12px/1 "Onest", sans-serif; color: var(--soft);
}

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  height: 60px; padding: 0 var(--gutter);
  background: rgba(22, 21, 19, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 650; letter-spacing: -.025em; flex: none; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: var(--r-sm); transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); background: var(--s2); }
.search { position: relative; flex: 1; max-width: 320px; margin-left: auto; display: flex; align-items: center; }
.search .i { position: absolute; left: 11px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 36px; padding: 0 36px 0 36px;
  background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 14px; transition: border-color .15s, background .15s;
}
.search input::placeholder { color: var(--muted); }
.search input:hover { border-color: var(--line-2); }
.search input:focus { border-color: var(--muted); background: var(--s2); }
.search kbd { position: absolute; right: 8px; pointer-events: none; }
.search input:focus ~ kbd { opacity: 0; }

.tabbar { display: none; }
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .top { gap: 14px; height: 56px; }
  .nav, .search kbd { display: none; }
  .brand span { display: none; }
  .search { max-width: none; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: rgba(22, 21, 19, .94);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; font-size: 11px; font-weight: 500; color: var(--muted); }
  .tabbar .i { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--text); }
  .tabbar a.on .i { color: var(--accent); }
  main { padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
}

main { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter) 72px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 40px 0 18px; }
.head h2 { font-size: 22px; font-weight: 650; letter-spacing: -.02em; margin: 0; }
.sub { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); margin: 36px 0 14px; letter-spacing: .01em; }
.sub span { font-weight: 500; color: var(--faint); }
.today .sub { color: var(--accent); }
.hint { color: var(--muted); font-size: 13.5px; margin: -6px 0 22px; max-width: 72ch; }
.muted { color: var(--muted); }
.pad { padding: 16px 12px; }
.empty { display: grid; justify-items: center; gap: 2px; text-align: center; color: var(--soft); padding: 72px 16px; }
.empty p { margin: 0; }
.empty .i.big { margin-bottom: 12px; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--r-md);
  background: var(--s2); border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--s3); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { background: #f0c573; }
.btn.primary .i { width: 16px; height: 16px; }
.btn.danger { color: var(--danger); }
.ib {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-md);
  background: var(--s2); border: 1px solid var(--line-2); transition: background .15s;
}
.ib:hover { background: var(--s3); }
.ib .i { width: 16px; height: 16px; }

/* segmented control */
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--s1); border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }
.seg button {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 14px; border: 0; border-radius: 7px; background: none;
  color: var(--muted); font-size: 13.5px; font-weight: 500; transition: color .15s, background .15s;
}
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--s3); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.seg small { font-size: 12px; color: var(--faint); font-weight: 500; }
.seg button.on small { color: var(--muted); }

/* menu button + popover */
.mb {
  display: inline-flex; align-items: center; gap: 8px; max-width: 320px;
  height: 38px; padding: 0 10px 0 12px; border-radius: var(--r-md);
  background: var(--s2); border: 1px solid var(--line-2); font-size: 14px;
  transition: background .15s, border-color .15s;
}
.mb:hover, .mb[aria-expanded="true"] { background: var(--s3); }
.mb .i { width: 17px; height: 17px; }
.mb-k { color: var(--muted); }
.mb-v { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb .mb-c { width: 16px; height: 16px; color: var(--muted); transition: transform .2s var(--ease); }
.mb[aria-expanded="true"] .mb-c { transform: rotate(180deg); }
.mb.on .i:first-child { color: var(--accent); }

.pop {
  position: fixed; z-index: 50; display: flex; flex-direction: column;
  max-width: min(420px, calc(100vw - 16px));
  background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
  animation: pop-in .14s var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.pop-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line-2); }
.pop-search .i { width: 16px; height: 16px; color: var(--muted); }
.pop-search input { flex: 1; height: 42px; border: 0; background: none; font-size: 14px; }
.pop-search input::placeholder { color: var(--muted); }
.pop-list { overflow-y: auto; padding: 5px; overscroll-behavior: contain; }
.pop-group { padding: 10px 10px 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pop-group:first-child { padding-top: 6px; }
.pop-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 8px 10px; border: 0; border-radius: 7px; background: none; text-align: left; font-size: 14px;
}
.pop-item:hover, .pop-item:focus-visible { background: var(--s3); outline: none; }
.pop-item.sel { font-weight: 600; }
.pop-item .i { width: 16px; height: 16px; color: var(--accent); }
.pop-item.danger { color: var(--danger); }
.pop-empty { padding: 14px 10px; color: var(--muted); font-size: 14px; }

/* switch */
.switch {
  position: relative; flex: none; width: 40px; height: 24px; border-radius: 12px; border: 0; padding: 0;
  background: var(--s3); transition: background .2s;
}
.switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--soft); transition: transform .2s var(--ease), background .2s; }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"] i { transform: translateX(16px); background: var(--accent-ink); }

/* ---------- poster grid ---------- */
.grid { display: grid; gap: 30px 20px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 460px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; } }
.card { display: block; min-width: 0; }
.poster {
  position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--r-md);
  background: var(--s1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--ease), filter .2s; }
.card:hover .poster img { transform: scale(1.03); filter: brightness(1.06); }
.card .t {
  margin-top: 10px; font-size: 14px; line-height: 1.35; font-weight: 550;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .s { font-size: 12.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge {
  position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; padding: 2px 7px; background: rgba(22, 21, 19, .88); color: var(--text);
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.badge.soft::before { background: var(--muted); }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0, 0, 0, .55); }
.bar > i { display: block; height: 100%; background: var(--accent); }
.bar.done > i { background: var(--soft); }

/* skeletons */
.sk .poster, .sk .t, .sk .s, .sk-line, .hero.sk .hero-poster {
  background: linear-gradient(90deg, var(--s1) 0%, var(--s2) 50%, var(--s1) 100%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite; border-radius: var(--r-sm); box-shadow: none;
}
.sk .t { height: 13px; width: 85%; margin-top: 12px; }
.sk .s { height: 11px; width: 45%; margin-top: 8px; }
.sk-line { height: 16px; margin-bottom: 14px; }
.sk-line.w60 { width: 60%; height: 30px; } .sk-line.w30 { width: 30%; } .sk-line.w80 { width: 80%; } .sk-line.w70 { width: 70%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* continue watching */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 260px; gap: 18px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.cont { position: relative; scroll-snap-align: start; }
.card.wide .poster { aspect-ratio: 16 / 9; }
.card.wide .poster img { object-position: center 25%; }
.cont-play {
  position: absolute; left: 12px; bottom: 14px; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(22, 21, 19, .78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s;
}
.cont-play .i { width: 15px; height: 15px; margin-left: 2px; }
.card.wide:hover .cont-play { opacity: 1; }
.cont .x {
  position: absolute; top: 8px; right: 8px; display: grid; place-items: center;
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: rgba(22, 21, 19, .78); color: var(--soft); opacity: 0; transition: opacity .15s;
}
.cont .x .i { width: 14px; height: 14px; }
.cont:hover .x, .cont .x:focus-visible { opacity: 1; }
@media (hover: none) { .cont .x, .cont-play { opacity: 1; } }

/* ---------- release header ---------- */
.hero { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; padding: 40px 0 36px; align-items: start; }
.hero-poster { width: 200px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-lg); background: var(--s1); box-shadow: var(--shadow); }
.hero-info { min-width: 0; padding-top: 4px; }
.hero h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; letter-spacing: -.025em; margin: 0; font-weight: 700; max-width: 26ch; }
.orig { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; font-size: 14px; color: var(--soft); }
.facts span + span { position: relative; }
.facts span + span::before { content: ""; position: absolute; left: -10px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.genres { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.genres a { padding: 3px 10px; border-radius: var(--r-sm); background: var(--s1); border: 1px solid var(--line); font-size: 12.5px; color: var(--soft); transition: border-color .15s, color .15s; }
.genres a:hover { border-color: var(--line-2); color: var(--text); }
.facts { align-items: center; }
.facts .pill {
  padding: 2px 8px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 650; letter-spacing: .01em;
}
.facts .pill.soft { background: var(--s3); color: var(--text); }
.facts .rt { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--text); }
.facts .rt .i { width: 15px; height: 15px; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.actions .btn, .actions .mb { height: 42px; }
.actions .btn.primary { padding: 0 20px 0 16px; }
.desc { color: var(--soft); max-width: 70ch; white-space: pre-line; margin-top: 24px; line-height: 1.65; }
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more { background: none; border: 0; color: var(--text); padding: 6px 0 0; font-size: 14px; font-weight: 500; justify-self: start; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.more:hover { text-decoration-color: var(--text); }
.provs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: 13px; }
.src { display: inline-flex; align-items: center; gap: 7px; color: var(--soft); }
a.src:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.src.wait, .src.none, .src.err { color: var(--faint); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }
.dot.wait { background: var(--faint); animation: blink 1s ease-in-out infinite alternate; }
.dot.none { background: transparent; box-shadow: inset 0 0 0 1px var(--faint); }
.dot.err, .dot.warn { background: var(--warn); }
@keyframes blink { to { opacity: .3; } }
@media (max-width: 640px) {
  .hero { grid-template-columns: 112px minmax(0, 1fr); gap: 0 16px; padding: 24px 0; }
  .hero-poster { width: 112px; border-radius: var(--r-md); grid-row: span 3; }
  .hero-info { display: contents; }
  .hero-info > * { grid-column: 2; }
  .hero .actions, .hero .desc, .hero .more, .hero .provs { grid-column: 1 / -1; }
  .hero h1 { font-size: 21px; }
  .facts { font-size: 13px; margin-top: 10px; }
  .genres { margin-top: 10px; }
  .actions { margin-top: 20px; }
  .actions .btn.primary { flex: 1; }
}

/* ---------- player ---------- */
.release { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); scroll-margin-top: 76px; }
@media (min-width: 1000px) { .release { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } }
.stage { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); }
.stage-empty {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; gap: 16px;
  color: var(--soft); background: var(--s1); isolation: isolate; text-align: center; padding: 16px;
}
.stage-empty::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--img, none) center 30% / cover no-repeat; opacity: .18; filter: grayscale(.3);
}
.stage-empty p { margin: 0; font-size: 15px; font-weight: 500; }
.frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }

.vp { position: relative; aspect-ratio: 16 / 9; background: #000; color: #fff; overflow: hidden; }
.vp video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vp.full { aspect-ratio: auto; width: 100vw; height: 100vh; }
.vp.idle { cursor: none; }
.vp-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 0;
  background: rgba(22, 21, 19, .7); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: opacity .2s, transform .2s var(--ease), background .15s;
}
.vp-center .i { width: 30px; height: 30px; margin-left: 4px; }
.vp-center:hover { background: rgba(22, 21, 19, .85); transform: translate(-50%, -50%) scale(1.05); }
.vp-center.static { position: static; transform: none; background: var(--accent); color: var(--accent-ink); }
.vp-center.static:hover { transform: scale(1.05); background: #f0c573; }
.vp:not(.paused) .vp-center { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.9); }
.vp-spin {
  position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: spin .8s linear infinite; pointer-events: none;
}
.stage-empty .vp-spin { position: static; margin: 0; border-color: var(--s3); border-top-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.vp-skip {
  position: absolute; z-index: 2; right: 20px; bottom: 100px; display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(22, 21, 19, .78); color: #fff; font-size: 14px; font-weight: 500;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.vp-skip .i { width: 15px; height: 15px; }
.vp-skip:hover { background: rgba(40, 38, 34, .9); }

.vp-ui {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .35) 60%, transparent);
  transition: opacity .25s, transform .25s var(--ease);
}
.vp.idle .vp-ui { opacity: 0; transform: translateY(8px); pointer-events: none; }
.vp.idle .vp-skip { opacity: .0; }
.vp-seek { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; margin: 0 4px; }
.vp-track { position: relative; width: 100%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; transition: height .15s; }
.vp-seek:hover .vp-track, .vp-seek.drag .vp-track { height: 6px; }
.vp-track i { position: absolute; top: 0; bottom: 0; left: 0; }
.vp-buf { background: rgba(255, 255, 255, .3); }
.vp-played { background: var(--accent); }
.vp-op { background: rgba(255, 255, 255, .18); border-left: 1px solid rgba(0, 0, 0, .5); border-right: 1px solid rgba(0, 0, 0, .5); }
.vp-knob {
  position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, .5); transform: scale(0); transition: transform .15s;
}
.vp-seek:hover .vp-knob, .vp-seek.drag .vp-knob, .vp-seek:focus-visible .vp-knob { transform: scale(1); }
.vp-tip {
  position: absolute; bottom: 22px; transform: translateX(-50%); padding: 3px 8px; border-radius: 5px;
  background: rgba(22, 21, 19, .92); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; pointer-events: none; white-space: nowrap;
}
.vp-row { display: flex; align-items: center; gap: 2px; margin-top: 4px; }
.vp-b {
  display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-md);
  background: none; color: #fff; opacity: .88; transition: opacity .15s, background .15s;
}
.vp-b:hover { opacity: 1; background: rgba(255, 255, 255, .1); }
.vp-b .i { width: 22px; height: 22px; }
.vp-vol { display: flex; align-items: center; }
.vp-vol input {
  -webkit-appearance: none; appearance: none; width: 0; height: 4px; border-radius: 2px; margin: 0;
  background: linear-gradient(to right, #fff var(--p, 100%), rgba(255, 255, 255, .25) var(--p, 100%));
  opacity: 0; transition: width .2s var(--ease), opacity .2s, margin .2s; cursor: pointer;
}
.vp-vol:hover input, .vp-vol input:focus-visible { width: 76px; opacity: 1; margin: 0 10px 0 4px; }
.vp-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.vp-vol input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.vp-time { margin-left: 8px; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vp-time span { color: rgba(255, 255, 255, .6); }
.vp-gap { flex: 1; }
@media (max-width: 560px) {
  .vp-ui { padding: 28px 6px 4px; }
  .vp-b { width: 36px; height: 36px; }
  .vp-b[data-a="back"], .vp-b[data-a="fwd"], .vp-b[data-a="pip"], .vp-vol input { display: none; }
  .vp-center { width: 60px; height: 60px; }
  .vp-skip { bottom: 80px; right: 10px; }
}

.bar-under { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-top: 16px; }
.now { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1 1 240px; }
.now b { font-size: 17px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; }
.now span { color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctrl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pager { display: flex; gap: 4px; }

/* episodes */
.side { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.side-head { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.side-head h3 { margin: 0; font-size: 15px; font-weight: 650; }
.side-head span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.eps { list-style: none; margin: 0; padding: 6px; max-height: min(70vh, 640px); overflow: auto; }
@media (max-width: 999px) { .eps { max-height: 56vh; } }
.ep {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 6px;
  width: 100%; padding: 9px 10px; border: 0; border-radius: var(--r-md); background: none; text-align: left;
  transition: background .12s;
}
.ep:hover { background: var(--s2); }
.ep .n { display: grid; place-items: center; height: 26px; border-radius: 6px; background: var(--s2); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--soft); }
.ep .n .i { width: 12px; height: 12px; margin-left: 1px; }
.ep .tx { display: grid; gap: 2px; min-width: 0; }
.ep .nm { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep .mt { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep.rich { grid-template-columns: 104px minmax(0, 1fr); padding: 7px; column-gap: 12px; }
.ep.rich .nm { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.th { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--s2); }
.th img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.th-n { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 600; color: var(--muted); }
.th .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 0; background: rgba(0, 0, 0, .55); }
.th-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(22, 21, 19, .55); color: var(--accent); }
.th-play .i { width: 20px; height: 20px; }
.ep.rich.cur .th { box-shadow: 0 0 0 2px var(--accent); }
.ep.done .th img { opacity: .55; }
.ep > .prog { grid-column: 2 / -1; }
.ep .prog { height: 2px; border-radius: 1px; background: var(--s3); overflow: hidden; }
.ep .prog i { display: block; height: 100%; background: var(--accent); }
.ep .prog.full i { background: var(--faint); }
.ep.done .nm { color: var(--muted); }
.ep.done .n { color: var(--faint); background: none; box-shadow: inset 0 0 0 1px var(--line-2); }
.ep.cur { background: var(--s2); }
.ep.cur .n { background: var(--accent); color: var(--accent-ink); }
.ep.cur .nm { font-weight: 600; }

/* ---------- settings ---------- */
.settings { max-width: 760px; }
.settings .sub:first-child { margin-top: 8px; }
.set {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  padding: 16px 18px; background: var(--s1); border: 1px solid var(--line); border-top: 0;
}
.sub + .set { border-top: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.set:has(+ .sub), .set:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.sub + .set:has(+ .sub) { border-radius: var(--r-lg); }
.set > div:first-child { flex: 1 1 300px; }
.set b { font-weight: 550; }
.set small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.5; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.keys { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 16px 18px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); font-size: 14px; color: var(--soft); }
.keys span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 10px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: var(--r-md); background: var(--s3); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); font-size: 14px; font-weight: 500; max-width: calc(100vw - 32px);
  transition: opacity .2s, transform .2s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .toast { bottom: calc(80px + env(safe-area-inset-bottom)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- catalog ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--s1); color: var(--soft); font-size: 13.5px; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 550; }
.chip .i { width: 14px; height: 14px; display: none; }
.chip.on .i { display: block; }
.chip-sep { width: 1px; height: 20px; align-self: center; background: var(--line-2); margin: 0 4px; }
.more-row { display: flex; justify-content: center; margin-top: 28px; }
.link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--soft); }
.link:hover { color: var(--text); }
.link .i { width: 16px; height: 16px; }
#franchise { margin-top: 48px; }
.chips.line { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-bottom: 0; scrollbar-width: none; }
.chips.line::-webkit-scrollbar { display: none; }

/* ---------- account ---------- */
.ava {
  position: relative; display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden; background: var(--s3); color: var(--soft); font-weight: 650; font-size: 16px;
}
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.me { flex: none; }
.me .ava { width: 32px; height: 32px; font-size: 13px; box-shadow: 0 0 0 1px var(--line-2); }
.me:hover .ava { box-shadow: 0 0 0 2px var(--accent); }
.acct .who { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 260px; }
.acct .who > div { min-width: 0; }
.acct .who small { overflow: hidden; text-overflow: ellipsis; }
.btn.google { gap: 10px; }
.btn.google .g { width: 18px; height: 18px; }
