/* Витрина: тёмная «кинотеатральная» тема. Шрифты системные — внешние CDN шрифтов недоступны в Китае. */
:root {
  --bg: #0b0c10;
  --bg-1: #12141a;
  --bg-2: #1a1d25;
  --bg-3: #252935;
  --line: #262a35;
  --text: #eef0f4;
  --muted: #949bab;
  --accent: #ff5577;
  --accent-2: #ff8a5c;
  --accent-soft: rgba(255, 85, 119, .15);
  --radius: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --text-2: #d5d8e0;
  --text-strong: #fff;
  --link: #ffb3c1;
  --header-bg: rgba(11, 12, 16, .82);
  --header-line: rgba(255, 255, 255, .05);
  --hero-fade: var(--bg);
  color-scheme: dark;
}
/* Светлая тема (переключатель в шапке). Шапки с картинкой и плеер остаются тёмными. */
:root[data-theme="light"] {
  --bg: #f5f6f9;
  --bg-1: #ffffff;
  --bg-2: #eef0f4;
  --bg-3: #e2e5eb;
  --line: #dde0e7;
  --text: #15171d;
  --muted: #646b7b;
  --accent: #e8335a;
  --accent-2: #f07042;
  --accent-soft: rgba(232, 51, 90, .1);
  --shadow: 0 12px 32px rgba(20, 24, 40, .12);
  --text-2: #3b4150;
  --text-strong: #0b0d12;
  --link: #c2264b;
  --header-bg: rgba(255, 255, 255, .85);
  --header-line: rgba(0, 0, 0, .07);
  --hero-fade: #0b0c10;
  color-scheme: light;
}
/* Тёмные островки в любой теме: слайдер, шапка тайтла. */
.hero, .title-hero {
  --text: #eef0f4; --muted: #b3b9c6; --text-2: #d5d8e0; --bg-2: #1a1d25; --bg-3: #252935; --line: #262a35; --link: #ffb3c1;
  color: var(--text); background: #0b0c10;
}
:root[data-theme="light"] .title-hero { margin-bottom: 8px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
h1 { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -.02em; }
h2 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lead { font-size: 16px; line-height: 1.65; color: var(--text-2); max-width: 760px; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.section { padding: 28px 24px; }
.page-top { padding-top: 36px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.crumbs a:hover { color: var(--text); }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--header-line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 4px 16px rgba(255, 85, 119, .35); }
.logo-sm { font-size: 17px; }
.site-nav { display: flex; gap: 4px; flex: 1; }
.site-nav a { padding: 8px 14px; border-radius: 99px; color: var(--muted); font-weight: 500; transition: .15s; }
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--text); background: var(--bg-2); }
.search input { width: 220px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); border-radius: 99px; padding: 8px 16px; font: inherit; }
.search input:focus { outline: none; border-color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { background: var(--bg-3); }
.btn-primary { border: 0; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 22px rgba(255, 85, 119, .3); }
.btn-primary:hover { filter: brightness(1.08); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.btn-lg { padding: 13px 26px; font-size: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.chips-sub { margin-top: -6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--muted); font-size: 14px; cursor: pointer; font-family: inherit; transition: .15s; }
.chip:hover { color: var(--text); }
.chip.active { color: var(--text-strong); background: var(--accent-soft); border-color: rgba(255, 85, 119, .45); }
.chip-sm { padding: 3px 10px; font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.pill-glass { background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); padding: 8px 14px; font-size: 14px; }
.pill-dub { position: absolute; top: 8px; right: 8px; background: rgba(11, 12, 16, .78); backdrop-filter: blur(6px); }
.pill-time { position: absolute; bottom: 8px; right: 8px; background: rgba(0, 0, 0, .75); }

/* Главная: слайдер */
.hero { position: relative; height: min(72vh, 620px); min-height: 420px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; display: flex; align-items: flex-end; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: var(--img) center 25% / cover no-repeat, var(--bg-1); transform: scale(1.03); }
.hero-slide::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 12, 16, .95) 0%, rgba(11, 12, 16, .55) 45%, rgba(11, 12, 16, .1) 100%),
              linear-gradient(0deg, var(--hero-fade) 0%, transparent 45%); }
.hero-content { position: relative; z-index: 2; padding-bottom: 64px; max-width: 1320px; }
.hero-kicker { color: var(--accent-2); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.hero-title { font-size: clamp(34px, 6vw, 64px); margin: 0; max-width: 760px; }
.hero-sub { color: var(--muted); font-size: 18px; margin-top: 4px; }
.hero-desc { max-width: 560px; color: #cfd3dc; margin: 16px 0 24px; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-dots { position: absolute; z-index: 3; bottom: 28px; right: 32px; display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .3); cursor: pointer; padding: 0; transition: .3s; }
.hero-dots button.active { width: 28px; background: var(--accent); }

.feature { padding-top: 8px; }
.feature-card { display: flex; align-items: center; gap: 20px; padding: 22px 26px; border-radius: 16px; border: 1px solid rgba(255, 85, 119, .25);
  background: linear-gradient(120deg, rgba(255, 85, 119, .12), rgba(255, 138, 92, .05) 60%, transparent); }
.feature-card h2 { font-size: 19px; margin-bottom: 4px; }
.feature-card p { margin: 0; max-width: 720px; }
.feature-card .btn { margin-left: auto; }
.feature-icon { font-size: 30px; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 85, 119, .15); flex-shrink: 0; }

/* Ряды и сетки */
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; }
.row-scroll > * { scroll-snap-align: start; }
.ep-tile .ep-img, .ep-row .ep-img { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--bg-2) center / cover; overflow: hidden; }
.ep-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; color: #fff; opacity: 0; transition: .2s;
  background: rgba(0, 0, 0, .35); }
.ep-tile:hover .ep-play, .ep-row:hover .ep-play { opacity: 1; }
.ep-title { font-weight: 600; margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-meta { color: var(--muted); font-size: 13px; }

.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px 18px; }
.poster-card { display: block; }
.poster-img { position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); background: linear-gradient(160deg, #2a2236, #1a1d25) center / cover;
  overflow: hidden; transition: transform .25s, box-shadow .25s; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.poster-card:hover .poster-img { transform: translateY(-4px); box-shadow: var(--shadow); }
.poster-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; font-weight: 800; color: rgba(255, 255, 255, .15); }
.poster-name { font-weight: 600; margin-top: 10px; line-height: 1.3; }
.poster-meta { color: var(--muted); font-size: 13px; }
.empty-note { color: var(--muted); padding: 40px 0; }

/* Страница тайтла */
.title-hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.title-hero::before { content: ''; position: absolute; inset: -20px; background: var(--img) center 30% / cover no-repeat; filter: blur(2px); opacity: .45; }
.title-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--hero-fade) 0%, rgba(11, 12, 16, .7) 60%, rgba(11, 12, 16, .55) 100%); }
.title-hero-row { position: relative; z-index: 1; display: flex; gap: 36px; align-items: flex-end; }
.title-poster { width: 230px; aspect-ratio: 2 / 3; border-radius: 14px; flex-shrink: 0; background: linear-gradient(160deg, #2a2236, #1a1d25) center / cover;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.title-main { min-width: 0; }
.title-alt { color: var(--muted); font-size: 17px; margin-bottom: 18px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 24px; }
.facts span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.title-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.voices { margin-top: 20px; }
.voice-list, .ep-voices { display: flex; flex-wrap: wrap; gap: 8px; }
.voice { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-weight: 500; }
a.voice:hover { border-color: rgba(255, 85, 119, .5); }
.voice-orig { color: var(--muted); }
.voice-sm { padding: 2px 9px; font-size: 12px; border-radius: 6px; }
.license { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: 13px; color: var(--text-2); }
.license p { margin: 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tab { padding: 8px 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-1); color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.tab.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.ep-list { display: flex; flex-direction: column; gap: 6px; }
.ep-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; padding: 10px; border-radius: 14px; transition: background .15s; }
.ep-row:hover { background: var(--bg-1); }
.ep-row .ep-title { margin-top: 4px; font-size: 17px; }
.ep-desc { color: var(--muted); font-size: 14px; margin: 6px 0 8px; }

/* Просмотр */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding-top: 24px; padding-bottom: 40px; }
.player-frame { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.player-frame video { width: 100%; height: 100%; display: block; background: #000; }
.player-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); }
.voicebar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin-top: 12px; background: var(--bg-1);
  border: 1px solid var(--line); border-radius: 14px; }
.voicebar-label { font-weight: 700; white-space: nowrap; }
.voicebar-list { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.voice-btn { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-align: left; transition: .15s; line-height: 1.25; }
.voice-btn small { color: var(--muted); font-weight: 400; font-size: 11px; }
.voice-btn:hover { border-color: rgba(255, 85, 119, .5); }
.voice-btn.active { background: var(--accent-soft); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.voice-btn.active small { color: var(--link); }
.voicebar-tools { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; min-width: 0; }
.watch-main { min-width: 0; }
.select-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); }
.select-pill { min-width: 0; max-width: 100%; }
.select-pill select { max-width: 220px; text-overflow: ellipsis; background: transparent; color: var(--text); border: 0; font: inherit; padding: 4px; cursor: pointer; }
.select-pill select option { background: var(--bg-2); }
.watch-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 22px 0 10px; flex-wrap: wrap; }
.watch-head h1 { font-size: 26px; margin-bottom: 4px; }
.watch-nav { display: flex; gap: 8px; }
.markers { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 14px; }
.license-inline { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
.watch-side { background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; padding: 16px; align-self: start; position: sticky; top: 84px; }
.side-list { display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow-y: auto; }
.side-ep { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--text-2); }
.side-ep:hover { background: var(--bg-2); }
.side-ep.active { background: var(--accent-soft); color: var(--text-strong); }
.side-num { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-3); font-size: 13px; font-weight: 700; flex-shrink: 0; }
.side-ep.active .side-num { background: var(--accent); }

/* Встраиваемый плеер */
body.embed { background: #000; overflow: hidden; }
.embed .player { position: fixed; inset: 0; }
.embed .player-frame { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; box-shadow: none; }
.embed .voicebar { position: absolute; top: 10px; left: 10px; right: 10px; margin: 0; padding: 8px 10px; background: rgba(11, 12, 16, .75);
  backdrop-filter: blur(8px); border: 0; opacity: 0; transition: opacity .25s; }
.embed .player:hover .voicebar { opacity: 1; }
.embed .voice-btn { padding: 4px 10px; }
.embed .voicebar-label { display: none; }
.embed-brand { position: fixed; bottom: 54px; right: 12px; font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, .5); padding: 3px 8px; border-radius: 6px; opacity: .7; }

/* Команды и «о сервисе» */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 24px; }
.team-card { display: flex; gap: 16px; padding: 18px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; }
.team-avatar { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 22px; flex-shrink: 0;
  background: linear-gradient(135deg, #3b2a55, #5a2a44); }
.team-name { font-weight: 700; font-size: 17px; }
.team-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; }
.team-links a { color: var(--link); }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 36px; }
.about-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.about-card h3 { color: var(--text); text-transform: none; letter-spacing: 0; font-size: 17px; margin: 14px 0 6px; }
.about-card p { margin: 0; }
.about a { color: var(--link); }
.empty-page { text-align: center; padding: 100px 24px; }

.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 32px 0; background: var(--bg-1); }
.footer-row { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 24px; align-items: start; }
.footer-row p { margin: 10px 0 0; }
.footer-nav { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.footer-nav a:hover { color: var(--text); }

@media (max-width: 1000px) {
  .watch { grid-template-columns: minmax(0, 1fr); }
  .watch-side { position: static; }
  .title-body { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap, .section { padding-left: 16px; padding-right: 16px; }
  .header-row { gap: 12px; height: 56px; }
  .site-nav { display: none; }
  .search { flex: 1; display: flex; justify-content: flex-end; }
  .search input { width: 100%; max-width: 220px; }
  .hero { height: 70vh; min-height: 440px; }
  .hero-content { padding-bottom: 54px; }
  .hero-dots { right: 16px; bottom: 20px; }
  .feature-card { flex-direction: column; align-items: flex-start; }
  .feature-card .btn { margin-left: 0; }
  .title-hero-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .title-poster { width: 150px; }
  .ep-row { grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }
  .ep-desc { display: none; }
  .poster-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px 12px; }
  .voicebar-tools { margin-left: 0; width: 100%; }
  .footer-row { grid-template-columns: 1fr; }
  .row-scroll { grid-auto-columns: 78%; }
}

/* ---------- Панель управления плеером ---------- */
.player-frame video { cursor: pointer; }
.pl-bigplay { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 0;
  color: #fff; display: grid; place-items: center; padding-left: 4px; cursor: pointer; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 40px rgba(255, 85, 119, .45); transition: transform .15s, opacity .2s; }
.pl-bigplay:hover { transform: scale(1.06); }
.player-frame:not(.paused) .pl-bigplay, .player-frame.started.paused .pl-bigplay { opacity: 0; pointer-events: none; }
.player-frame.loading::after { content: ''; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--accent); animation: pl-spin .8s linear infinite; pointer-events: none; }
@keyframes pl-spin { to { transform: rotate(360deg); } }

.pl-controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 8px; transition: opacity .3s;
  background: linear-gradient(0deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, .4) 60%, transparent); }
.player-frame.idle .pl-controls { opacity: 0; }
.player-frame.idle { cursor: none; }
.player-frame:not(.started) .pl-controls { opacity: 0; pointer-events: none; }

.pl-timeline { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.pl-rail { position: relative; width: 100%; height: 4px; background: rgba(255, 255, 255, .22); border-radius: 99px; transition: height .12s; }
.pl-timeline:hover .pl-rail, .scrubbing .pl-rail { height: 6px; }
.pl-buffer, .pl-hoverbar, .pl-progress { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; width: 0; }
.pl-buffer { background: rgba(255, 255, 255, .3); }
.pl-hoverbar { background: rgba(255, 255, 255, .25); }
.pl-progress { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.pl-knob { position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 85, 119, .5); transform: scale(0); transition: transform .12s; }
.pl-timeline:hover .pl-knob, .scrubbing .pl-knob { transform: scale(1); }
.pl-marker { position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1px; background: #ffd166; border-radius: 2px; pointer-events: none; }
.pl-preview { position: absolute; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px;
  pointer-events: none; z-index: 2; }
.pl-thumb { border-radius: 8px; border: 2px solid rgba(255, 255, 255, .9); background: #000 no-repeat; box-shadow: 0 8px 24px rgba(0, 0, 0, .6); }
.pl-ptime { font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, .8); padding: 2px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }

.pl-bar { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.pl-btn { background: none; border: 0; color: #fff; width: 38px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 17px; line-height: 1;
  display: inline-grid; place-items: center; }
.pl-btn:hover { background: rgba(255, 255, 255, .12); }
.i-pause, .i-muted { display: none; }
.pl-btn svg { display: block; }
.player-frame:not(.paused) .i-play { display: none; }
.player-frame:not(.paused) .i-pause { display: inline; }
.player-frame.muted .i-vol { display: none; }
.player-frame.muted .i-muted { display: inline; }
.pl-volume { display: flex; align-items: center; }
.pl-volume input { width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: var(--accent); }
.pl-volume:hover input, .pl-volume input:focus { width: 80px; opacity: 1; }
.pl-time { font-size: 13px; color: #e5e7eb; margin-left: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-spacer { flex: 1; }
.pl-voice-now { font-size: 12px; color: #ffd0da; background: rgba(255, 85, 119, .2); padding: 3px 10px; border-radius: 99px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.player-frame.fs { border-radius: 0; }
.player-frame.fs video { object-fit: contain; }
@media (max-width: 720px) {
  .pl-controls { padding: 18px 8px 4px; }
  .pl-btn { width: 32px; }
  .pl-volume input, [data-skip] { display: none; }
  .pl-voice-now { display: none; }
  .pl-bigplay { width: 60px; height: 60px; margin: -30px 0 0 -30px; font-size: 22px; }
}

/* Подписи поверх постеров и кадров всегда светлые. */
.pill-dub, .pill-time { color: #fff; }
.team-avatar { color: #fff; }

/* Переключатель темы */
.theme-toggle { background: var(--bg-2); border: 1px solid var(--line); color: var(--text); width: 38px; height: 38px; border-radius: 99px;
  cursor: pointer; display: inline-grid; place-items: center; flex-shrink: 0; }
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { display: block; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .poster-img, :root[data-theme="light"] .ep-img { box-shadow: 0 4px 14px rgba(20, 24, 40, .12); }
:root[data-theme="light"] .voicebar, :root[data-theme="light"] .watch-side, :root[data-theme="light"] .team-card,
:root[data-theme="light"] .about-card, :root[data-theme="light"] .license { box-shadow: 0 2px 10px rgba(20, 24, 40, .05); }
