/* STAR — звёздная тема. Главный элемент — вертикальная «ось планет» (навигация), остальное спокойно. */
:root {
  --void: #070720;
  --deep: #0d0b2e;
  --nebula: #1b1650;
  --glass: rgba(24, 20, 72, .55);
  --glass-2: rgba(36, 30, 96, .6);
  --line: rgba(176, 160, 255, .16);
  --line-2: rgba(176, 160, 255, .32);
  --text: #f2eeff;
  --muted: #a9a2d6;
  --dim: #7a73aa;
  --violet: #9b7bff;
  --ice: #7cc8ff;
  --rose: #ff7ab6;
  --gold: #ffcf6e;
  --teal: #4fe0c0;
  --good: #59e3a0;
  --bad: #ff6b8a;
  --r-s: 8px; --r-m: 14px; --r-l: 22px;
  --rail: 112px;
  --font-d: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
  --font: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--void);
  font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(155, 123, 255, .45); }
.hidden { display: none !important; }

/* ── Космос на фоне ── */
#sky { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; }
.nebula {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(60vw 45vh at 12% 18%, rgba(88, 60, 210, .28), transparent 70%),
    radial-gradient(50vw 50vh at 88% 70%, rgba(40, 90, 220, .25), transparent 70%),
    radial-gradient(40vw 30vh at 70% 10%, rgba(170, 60, 200, .18), transparent 70%),
    radial-gradient(45vw 35vh at 25% 95%, rgba(120, 50, 200, .2), transparent 70%),
    linear-gradient(180deg, #06061a, #0a0828 50%, #06061a);
}

/* ── Ось планет (навигация) ── */
.rail {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); z-index: 40;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.rail::before {
  content: ''; position: absolute; left: 50%; top: 4vh; bottom: 4vh; width: 1px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(255, 220, 160, .7) 12%, rgba(200, 180, 255, .8) 50%, rgba(255, 140, 200, .7) 88%, transparent);
  box-shadow: 0 0 12px rgba(220, 200, 255, .7);
}
.rail .logo { position: absolute; top: 18px; left: 0; right: 0; display: flex; justify-content: center; }
.planet-link {
  position: relative; display: grid; place-items: center; width: 92px; height: 74px; border-radius: 50%;
}
.planet {
  --s: 34px; width: var(--s); height: var(--s); border-radius: 50%; position: relative;
  background: radial-gradient(circle at 32% 28%, var(--p1), var(--p2) 55%, var(--p3));
  box-shadow: 0 0 18px -2px var(--p2), inset -6px -8px 14px rgba(0, 0, 0, .45), inset 3px 3px 8px rgba(255, 255, 255, .25);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), box-shadow .3s;
}
.planet.ringed::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 190%; height: 48%;
  border: 2px solid color-mix(in srgb, var(--p1) 75%, transparent); border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg); box-shadow: 0 0 8px var(--p1);
}
.planet-link .label {
  position: absolute; left: calc(100% - 4px); white-space: nowrap; padding: 6px 12px; border-radius: 999px;
  background: rgba(14, 12, 44, .92); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600;
  opacity: 0; transform: translateX(-6px); pointer-events: none; transition: .2s;
}
.planet-link:hover .label, .planet-link:focus-visible .label { opacity: 1; transform: none; }
.planet-link:hover .planet { transform: scale(1.18); }
.planet-link.active .planet { --s: 50px; box-shadow: 0 0 34px 2px var(--p2), 0 0 70px -6px var(--p1), inset -8px -10px 18px rgba(0, 0, 0, .45), inset 4px 4px 10px rgba(255, 255, 255, .3); }
.planet-link.active::before {
  content: ''; position: absolute; width: 76px; height: 76px; border-radius: 50%; border: 1px dashed rgba(230, 220, 255, .35);
  animation: orbit 22s linear infinite;
}
@keyframes orbit { to { transform: rotate(360deg); } }
.p-home    { --p1: #ffd29a; --p2: #ff7a2f; --p3: #5a1704; }
.p-catalog { --p1: #d5f1ff; --p2: #2f7df0; --p3: #0b1c5a; }
.p-movies  { --p1: #fff8e8; --p2: #d9cbe6; --p3: #6d6488; }
.p-sched   { --p1: #ffe7b0; --p2: #e09a4a; --p3: #4a2a10; }
.p-news    { --p1: #a8ffe6; --p2: #12a58c; --p3: #052e2b; }
.p-cosplay { --p1: #e2d5ff; --p2: #7c4dff; --p3: #1f0f55; }
.p-profile { --p1: #ffc6e2; --p2: #e2357f; --p3: #4b0a2a; }

/* ── Шапка ── */
.top {
  position: sticky; top: 0; z-index: 30; margin-left: var(--rail);
  display: flex; align-items: center; gap: 18px; padding: 14px 32px;
  background: linear-gradient(180deg, rgba(7, 7, 32, .92), rgba(7, 7, 32, .6) 70%, transparent);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px/1 var(--font-d); letter-spacing: .06em; }
.brand svg { width: 30px; height: 30px; filter: drop-shadow(0 0 6px rgba(190, 170, 255, .9)); }
.brand small { font: 500 11px var(--font); color: var(--muted); letter-spacing: 0; display: block; margin-top: 3px; }
.search { flex: 1; max-width: 520px; position: relative; }
.search input {
  width: 100%; padding: 11px 16px 11px 42px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(20, 16, 60, .6); outline: none; transition: border-color .2s;
}
.search input:focus { border-color: var(--violet); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 17px; opacity: .7; }
.search-drop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #120f3a; border: 1px solid var(--line-2);
  border-radius: var(--r-m); padding: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); max-height: 70vh; overflow: auto;
}
.search-drop a { display: flex; gap: 12px; padding: 8px; border-radius: var(--r-s); align-items: center; }
.search-drop a:hover, .search-drop a.sel { background: var(--glass-2); }
.search-drop img { width: 38px; height: 56px; object-fit: cover; border-radius: 6px; }
.search-drop .t { font-weight: 600; }
.search-drop .s { color: var(--muted); font-size: 12px; }
.top .spacer { flex: 1; }
.online { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.online i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.me-btn { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; }
.me-btn img { width: 32px; height: 32px; border-radius: 50%; }
.menu { position: absolute; right: 32px; top: 64px; background: #120f3a; border: 1px solid var(--line-2); border-radius: var(--r-m); padding: 6px; min-width: 200px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: var(--r-s); background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--glass-2); }

/* ── Общие элементы ── */
main { margin-left: var(--rail); padding: 8px 32px 80px; min-height: 80vh; }
.wrap { max-width: 1400px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-d); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 3.4vw, 44px); }
h2 { font-size: 21px; }
h3 { font-size: 16px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--glass); cursor: pointer; font-weight: 600; transition: background .2s, border-color .2s, transform .1s;
  white-space: nowrap;
}
.btn:hover { background: var(--glass-2); border-color: var(--violet); }
.btn:active { transform: scale(.97); }
.btn.primary { color: #fff; background: linear-gradient(135deg, #8a63ff, #5a7bff); border-color: transparent; box-shadow: 0 6px 24px -6px rgba(130, 100, 255, .8); }
.btn.primary:hover { filter: brightness(1.12); }
.btn.danger { border-color: rgba(255, 107, 138, .5); color: #ffb3c3; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.icon { padding: 9px; width: 40px; height: 40px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; backdrop-filter: blur(6px); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; background: rgba(155, 123, 255, .14); border: 1px solid var(--line); color: #ddd5ff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
input.f, select.f, textarea.f {
  width: 100%; padding: 10px 14px; border-radius: var(--r-s); border: 1px solid var(--line); background: rgba(10, 8, 40, .7); outline: none;
}
input.f:focus, select.f:focus, textarea.f:focus { border-color: var(--violet); }
select.f option { background: #120f3a; }
textarea.f { resize: vertical; min-height: 90px; }
label.l { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.section { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head a { color: var(--ice); font-size: 14px; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .planet { margin: 0 auto 16px; --s: 54px; }
.loading { display: grid; place-items: center; padding: 80px; }
.loading::after { content: ''; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--violet); animation: orbit 1s linear infinite; }

/* ── Карточки аниме ── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 22px 18px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 18px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.strip > * { scroll-snap-align: start; }
.card { display: block; position: relative; }
.card .pic { position: relative; aspect-ratio: 2 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--nebula); border: 1px solid var(--line); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .pic img { transform: scale(1.05); }
.card:hover .pic { border-color: var(--line-2); box-shadow: 0 10px 40px -10px rgba(140, 110, 255, .55); }
.card .badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; gap: 4px; align-items: flex-start; }
.score { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 700; background: rgba(8, 6, 30, .82); backdrop-filter: blur(4px); }
.score.hi { color: #9bf5c4; } .score.mid { color: var(--gold); } .score.lo { color: #ff9fb3; }
.tag { padding: 3px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 700; background: rgba(8, 6, 30, .82); }
.tag.ongoing { color: var(--teal); } .tag.anons { color: var(--gold); } .tag.video { color: var(--ice); }
.card .cd { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px 8px; border-radius: 10px; font-size: 12px; text-align: center; background: rgba(8, 6, 30, .85); color: var(--gold); font-weight: 700; }
.card .t { margin-top: 9px; font-weight: 700; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .s { color: var(--dim); font-size: 12.5px; margin-top: 2px; }

/* ── Главная: герой ── */
.hero { position: relative; border-radius: 28px; overflow: hidden; min-height: 420px; display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 44px; align-items: center; border: 1px solid var(--line); }
.hero .bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) saturate(1.4) brightness(.45); z-index: -1; transform: scale(1.1); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 7, 32, .92), rgba(7, 7, 32, .55) 60%, rgba(7, 7, 32, .3)); }
.hero h1 { font-size: clamp(28px, 3.6vw, 50px); max-width: 16ch; }
.hero p { max-width: 62ch; color: #d8d2ff; margin: 16px 0 24px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero .poster { aspect-ratio: 2/3; border-radius: var(--r-l); overflow: hidden; box-shadow: 0 30px 80px -20px rgba(120, 90, 255, .7); border: 1px solid var(--line-2); }
.hero .poster img { width: 100%; height: 100%; object-fit: cover; }
.hero .dots { position: absolute; bottom: 20px; left: 44px; display: flex; gap: 8px; }
.hero .dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .3); cursor: pointer; padding: 0; transition: .3s; }
.hero .dots button.on { width: 28px; border-radius: 6px; background: var(--violet); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.stats-line { display: flex; gap: 26px; margin-top: 14px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.stats-line b { color: var(--text); font: 600 18px var(--font-d); display: block; }

/* Таймеры */
.timers { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.timer { display: flex; gap: 14px; padding: 12px; border-radius: var(--r-m); background: var(--glass); border: 1px solid var(--line); align-items: center; }
.timer:hover { border-color: var(--line-2); }
.timer img { width: 58px; height: 84px; border-radius: 10px; object-fit: cover; flex: none; }
.timer .t { font-weight: 700; line-height: 1.3; }
.countdown { display: flex; gap: 6px; margin-top: 8px; }
.countdown span { min-width: 46px; text-align: center; padding: 5px 4px; border-radius: 9px; background: rgba(8, 6, 30, .7); border: 1px solid var(--line); font: 600 16px var(--font-d); }
.countdown span small { display: block; font: 500 10px var(--font); color: var(--dim); }
.countdown.out span { color: var(--good); }

/* ── Страница аниме ── */
.title-hero { position: relative; margin: -8px -32px 0; padding: 40px 32px 30px; overflow: hidden; }
.title-hero { isolation: isolate; }
.title-hero .bg { position: absolute; inset: -60px; background-size: cover; background-position: center 30%; filter: blur(60px) saturate(1.3) brightness(.5); z-index: -1;
  -webkit-mask-image: radial-gradient(70% 75% at 50% 35%, #000 30%, transparent 75%); mask-image: radial-gradient(70% 75% at 50% 35%, #000 30%, transparent 75%); }
.title-grid { display: grid; grid-template-columns: 260px 1fr; gap: 36px; max-width: 1400px; margin: 0 auto; }
.title-grid .poster { aspect-ratio: 2/3; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 70px -25px rgba(120, 90, 255, .8); }
.title-grid .poster img { width: 100%; height: 100%; object-fit: cover; }
.title-grid h1 { margin-bottom: 6px; }
.orig { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.ratings { display: flex; gap: 14px; flex-wrap: wrap; margin: 20px 0; }
.rating-box { padding: 12px 18px; border-radius: var(--r-m); background: var(--glass); border: 1px solid var(--line); min-width: 150px; }
.rating-box .v { font: 600 26px var(--font-d); }
.rating-box .k { font-size: 12.5px; color: var(--muted); }
.vote { display: flex; gap: 8px; align-items: center; }
.vote .btn.on.up { background: rgba(89, 227, 160, .18); border-color: var(--good); color: #b8ffd9; }
.vote .btn.on.down { background: rgba(255, 107, 138, .18); border-color: var(--bad); color: #ffc2cf; }
.likebar { height: 6px; border-radius: 4px; background: rgba(255, 107, 138, .5); overflow: hidden; margin-top: 8px; }
.likebar i { display: block; height: 100%; background: var(--good); }
.info-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14px; margin-top: 18px; }
.info-list dt { color: var(--dim); }
.info-list dd { margin: 0; }
.desc { max-width: 75ch; color: #dcd6ff; white-space: pre-line; }
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

/* Плеер */
.watch { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.watch.theater { grid-template-columns: 1fr; }
.splayer { position: relative; background: #000; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); user-select: none; }
.splayer video, .splayer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.splayer.idle { cursor: none; }
.splayer .ctrl {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 12px; z-index: 3;
  background: linear-gradient(transparent, rgba(4, 3, 20, .92)); transition: opacity .3s;
}
.splayer.idle .ctrl, .splayer.idle .ptop { opacity: 0; }
.splayer .ptop { position: absolute; top: 0; left: 0; right: 0; padding: 14px 18px 30px; background: linear-gradient(rgba(4, 3, 20, .8), transparent); z-index: 3; transition: opacity .3s; font-weight: 600; pointer-events: none; }
.seek { position: relative; height: 18px; cursor: pointer; display: flex; align-items: center; }
.seek .track { position: relative; width: 100%; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .2); transition: height .15s; }
.seek:hover .track { height: 7px; }
.seek .buf { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, .3); border-radius: 3px; }
.seek .pos { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--violet), var(--ice)); border-radius: 3px; }
.seek .knob { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 12px var(--violet); }
.seek .hover-time { position: absolute; bottom: 22px; transform: translateX(-50%); background: rgba(8, 6, 30, .9); padding: 3px 8px; border-radius: 6px; font-size: 12px; pointer-events: none; }
.cbar { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.cbar button { background: none; border: 0; cursor: pointer; padding: 7px; border-radius: 8px; display: grid; place-items: center; }
.cbar button:hover { background: rgba(255, 255, 255, .1); }
.cbar svg { width: 22px; height: 22px; }
.cbar .time { font-size: 13px; font-variant-numeric: tabular-nums; margin: 0 8px; color: #ddd; }
.cbar .grow { flex: 1; }
.cbar input[type=range] { width: 80px; accent-color: var(--violet); }
.cbar .speed { font-weight: 700; font-size: 13px; min-width: 44px; }
.splayer .big-play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; z-index: 2; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #c9b6ff, #7c4dff 60%, #2a1570); box-shadow: 0 0 50px rgba(150, 110, 255, .8); display: grid; place-items: center; }
.splayer .big-play svg { width: 34px; height: 34px; margin-left: 5px; }
.splayer .toast-in { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 10px 18px; border-radius: 12px; background: rgba(8, 6, 30, .8); font-weight: 700; z-index: 4; pointer-events: none; }
.splayer .skip { position: absolute; right: 18px; bottom: 90px; z-index: 4; }
.splayer .next-ov { position: absolute; right: 18px; bottom: 90px; z-index: 5; padding: 14px 18px; border-radius: var(--r-m); background: rgba(10, 8, 36, .92); border: 1px solid var(--line-2); max-width: 300px; }
.splayer .msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; z-index: 2; color: var(--muted); }
.splayer .spinner { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--violet); animation: orbit 1s linear infinite; z-index: 2; pointer-events: none; }
.splayer:fullscreen { border-radius: 0; border: 0; }
.voices { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.voices button.on { background: var(--violet); border-color: var(--violet); color: #fff; }
.eplist { max-height: 460px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; scrollbar-width: thin; }
.ep { position: relative; padding: 10px 0; border-radius: 10px; text-align: center; border: 1px solid var(--line); background: rgba(10, 8, 40, .6); cursor: pointer; font-weight: 700; }
.ep:hover { border-color: var(--violet); }
.ep.on { background: linear-gradient(135deg, #8a63ff, #5a7bff); border-color: transparent; }
.ep.seen::after { content: ''; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.ep .bar { position: absolute; left: 6px; right: 6px; bottom: 4px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.ep .bar i { display: block; height: 100%; background: var(--ice); }
.no-video { padding: 40px; text-align: center; border-radius: var(--r-l); border: 1px dashed var(--line-2); color: var(--muted); }

/* Комментарии */
.comments { max-width: 900px; }
.cform { display: flex; gap: 14px; margin-bottom: 26px; }
.cform img { width: 42px; height: 42px; border-radius: 50%; flex: none; }
.cform .box { flex: 1; }
.comment { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.comment .reply-list .comment { border-top: 0; padding-bottom: 0; }
.comment img.ava { width: 42px; height: 42px; border-radius: 50%; flex: none; }
.comment .who { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.comment .who b { font-weight: 700; }
.comment .who .adm { color: var(--gold); font-size: 12px; }
.comment .body { margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.comment .acts { display: flex; gap: 4px; margin-top: 6px; align-items: center; }
.comment .acts button { background: none; border: 0; color: var(--dim); cursor: pointer; padding: 4px 8px; border-radius: 6px; font-size: 13px; }
.comment .acts button:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.comment .acts button.on { color: var(--violet); }
.spoiler { filter: blur(6px); cursor: pointer; transition: filter .3s; position: relative; }
.spoiler-wrap { position: relative; }
.spoiler-wrap .hint { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--gold); pointer-events: none; }
.reply-list { margin-top: 8px; padding-left: 4px; border-left: 2px solid var(--line); padding-left: 14px; }

/* ── Каталог ── */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 20px 0 26px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(10, 8, 40, .7); border: 1px solid var(--line); }
.seg button { padding: 7px 16px; border-radius: 999px; border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--glass-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.pager button { min-width: 40px; }
.pager button.on { background: var(--violet); border-color: var(--violet); }

/* ── Расписание ── */
.day-group { margin-top: 30px; }
.day-group h2 { margin-bottom: 14px; display: flex; gap: 12px; align-items: baseline; }
.day-group h2 small { font: 500 14px var(--font); color: var(--muted); }

/* ── Новости ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.news-card { display: flex; flex-direction: column; border-radius: var(--r-l); overflow: hidden; background: var(--glass); border: 1px solid var(--line); transition: border-color .2s; }
.news-card:hover { border-color: var(--line-2); }
.news-card .img { aspect-ratio: 16/9; background: linear-gradient(135deg, #2a1c7a, #0b2a6a); position: relative; overflow: hidden; }
.news-card .img img { width: 100%; height: 100%; object-fit: cover; }
.news-card .img .planet { position: absolute; right: 18%; top: 22%; --s: 70px; }
.news-card .in { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card h3 { font-size: 17px; line-height: 1.3; }
.news-card .meta { font-size: 12.5px; }
.news-card.pinned { grid-column: span 2; }
.article { max-width: 760px; margin: 0 auto; }
.article .cover-img { border-radius: var(--r-l); overflow: hidden; margin: 22px 0; border: 1px solid var(--line); }
.article .body { font-size: 17px; line-height: 1.7; color: #e3ddff; }
.article .body p { margin: 0 0 1em; }
.article .body a { color: var(--ice); text-decoration: underline; }

/* ── Косплей ── */
.cos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.cos-card { border-radius: var(--r-l); overflow: hidden; background: var(--glass); border: 1px solid var(--line); display: block; }
.cos-card:hover { border-color: var(--line-2); }
.cos-card .img { aspect-ratio: 4/5; background: radial-gradient(circle at 50% 40%, #3a2a9a, #0d0b2e); position: relative; display: grid; place-items: center; overflow: hidden; }
.cos-card .img img { width: 100%; height: 100%; object-fit: cover; }
.cos-card .in { padding: 14px 16px 18px; }
.cos-card .ava { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-2); }
.cos-head { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; }
.cos-head .ava { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 2px solid var(--violet); box-shadow: 0 0 40px -6px var(--violet); background: var(--nebula); }
.gallery { columns: 3 260px; column-gap: 16px; margin-top: 26px; }
.gallery .item { break-inside: avoid; margin-bottom: 16px; border-radius: var(--r-m); overflow: hidden; background: var(--glass); border: 1px solid var(--line); }
.gallery .item img { width: 100%; cursor: zoom-in; }
.gallery .item .in { padding: 12px 14px; }

/* ── Профиль ── */
.prof-head { display: grid; grid-template-columns: 130px 1fr auto; gap: 26px; align-items: center; }
.prof-head .ava { width: 130px; height: 130px; border-radius: 50%; border: 2px solid var(--rose); box-shadow: 0 0 40px -8px var(--rose); object-fit: cover; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 26px; }
.kpi { padding: 16px 18px; border-radius: var(--r-m); background: var(--glass); border: 1px solid var(--line); }
.kpi b { display: block; font: 600 26px var(--font-d); }
.kpi span { color: var(--muted); font-size: 13px; }
.ach-group { margin-top: 26px; }
.ach-group h3 { margin-bottom: 12px; color: var(--muted); font-family: var(--font); font-weight: 700; }
.achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ach { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-m); background: rgba(10, 8, 40, .55); border: 1px solid var(--line); }
.ach .ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; flex: none; background: rgba(255, 255, 255, .04); border: 1px dashed var(--line-2); filter: grayscale(1); opacity: .55; }
.ach.on { border-color: rgba(255, 207, 110, .45); background: linear-gradient(135deg, rgba(255, 207, 110, .12), rgba(155, 123, 255, .12)); }
.ach.on .ic { filter: none; opacity: 1; border: 0; background: radial-gradient(circle at 35% 30%, #fff3c8, #ffb347 55%, #7a3d00); box-shadow: 0 0 20px -2px #ffb347; }
.ach .t { font-weight: 700; }
.ach .d { font-size: 12.5px; color: var(--muted); }
.ach .prog { height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .1); margin-top: 6px; overflow: hidden; }
.ach .prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--ice)); }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 13px); grid-auto-columns: 13px; justify-content: start; gap: 3px; overflow-x: auto; padding: 4px 0; }
.heat i { width: 13px; height: 13px; border-radius: 3px; background: rgba(255, 255, 255, .06); }
.heat i.l1 { background: #3b2a8a; } .heat i.l2 { background: #5b3fd0; } .heat i.l3 { background: #8a63ff; } .heat i.l4 { background: #c3b0ff; box-shadow: 0 0 6px #c3b0ff; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { padding: 10px 16px; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tabs button.on { color: var(--text); border-color: var(--violet); }
.hist { display: grid; gap: 8px; }
.hist a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-s); }
.hist a:hover { background: var(--glass); }
.hist img { width: 36px; height: 52px; object-fit: cover; border-radius: 6px; }

/* ── Модалки и уведомления ── */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(3, 2, 15, .7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(440px, 100%); background: linear-gradient(180deg, #17134a, #0d0b2e); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 28px; position: relative; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); max-height: 92vh; overflow: auto; }
.modal .x { position: absolute; top: 14px; right: 14px; }
.modal form { display: grid; gap: 14px; margin-top: 18px; }
.err { color: #ffb3c3; font-size: 14px; min-height: 1em; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 10px; }
.toast { padding: 12px 18px; border-radius: var(--r-m); background: #17134a; border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); animation: rise .35s cubic-bezier(.2, .9, .3, 1.2); max-width: 360px; }
.toast.bad { border-color: var(--bad); }
.toast.ach-t { display: flex; gap: 14px; align-items: center; border-color: rgba(255, 207, 110, .6); background: linear-gradient(135deg, #2d2160, #17134a); }
.toast.ach-t .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: radial-gradient(circle at 35% 30%, #fff3c8, #ffb347 55%, #7a3d00); box-shadow: 0 0 24px #ffb347; flex: none; }
.toast.ach-t small { color: var(--gold); font-weight: 700; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, .9); display: grid; place-items: center; cursor: zoom-out; padding: 20px; }
.lightbox img { max-height: 92vh; max-width: 92vw; border-radius: var(--r-m); }

footer.foot { margin-left: var(--rail); padding: 30px 32px 50px; color: var(--dim); font-size: 13px; border-top: 1px solid var(--line); }

/* ── Адаптив ── */
@media (max-width: 1100px) {
  .watch { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero .poster { display: none; }
}
@media (max-width: 820px) {
  :root { --rail: 0px; }
  .rail { top: auto; height: 74px; width: 100%; flex-direction: row; justify-content: space-around; padding: 0 6px;
    background: rgba(8, 6, 30, .92); backdrop-filter: blur(10px); border-top: 1px solid var(--line); gap: 0; }
  .rail::before { left: 4%; right: 4%; top: 50%; bottom: auto; width: auto; height: 1px; transform: none;
    background: linear-gradient(90deg, transparent, rgba(255, 220, 160, .6), rgba(200, 180, 255, .7), rgba(255, 140, 200, .6), transparent); }
  .rail .logo { display: none; }
  .planet-link { width: 46px; height: 60px; }
  .planet { --s: 22px; }
  .planet-link.active .planet { --s: 32px; }
  .planet-link.active::before { width: 44px; height: 44px; }
  .rail { overflow: hidden; }
  .planet-link { flex: 1; }
  .planet.ringed::after { width: 160%; }
  .planet-link .label { left: 50%; top: auto; bottom: -2px; transform: translateX(-50%); opacity: 0; background: none; border: 0; padding: 0; font-size: 10px; color: var(--muted); }
  .planet-link.active .label { opacity: 1; }
  .planet-link:hover .label { transform: translateX(-50%); }
  .planet-link.active .label { color: var(--text); }
  .top { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .top .online span { display: none; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .brand small { display: none; }
  main { padding: 6px 16px 110px; }
  footer.foot { padding: 24px 16px 100px; }
  .hero { padding: 26px 22px 46px; min-height: 0; }
  .hero .dots { left: 22px; }
  .title-hero { margin: -6px -16px 0; padding: 24px 16px; }
  .title-grid { grid-template-columns: 1fr; gap: 20px; }
  .title-grid .poster { width: 180px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 18px 12px; }
  .strip { grid-auto-columns: 132px; }
  .grid2 { grid-template-columns: 1fr; }
  .news-card.pinned { grid-column: auto; }
  .prof-head { grid-template-columns: 90px 1fr; }
  .prof-head .ava { width: 90px; height: 90px; }
  .prof-head > :last-child { grid-column: 1 / -1; }
  .cos-head { grid-template-columns: 100px 1fr; gap: 18px; }
  .cos-head .ava { width: 100px; height: 100px; }
  .cbar input[type=range], .cbar .hide-sm { display: none; }
  .menu { right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Подвал, страницы, «Поделиться» */
.foot-in { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; }
.foot-links a:hover, footer.foot a:hover { color: var(--text); }
.legal { max-width: 760px; margin: 0 auto; }
.legal .body { white-space: pre-line; color: #ddd7ff; line-height: 1.7; margin-top: 22px; }
.share { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ref-box { display: flex; gap: 8px; margin-top: 10px; }
.ref-box input { flex: 1; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.agree a { color: var(--ice); text-decoration: underline; }
.agree input { margin-top: 3px; }

/* Трейлеры */
.trailers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.trailer { text-align: left; background: none; border: 0; padding: 0; cursor: pointer; display: grid; gap: 4px; }
.trailer .th { aspect-ratio: 16/9; border-radius: var(--r-m); background: var(--nebula) center/cover; border: 1px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; }
.trailer .th .play { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 6, 30, .75); font-size: 18px; padding-left: 3px; transition: transform .2s; }
.trailer:hover .th { border-color: var(--line-2); }
.trailer:hover .play { transform: scale(1.12); background: var(--violet); }
.trailer b { font-size: 14px; } .trailer .dim { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Хэллоуин 2026: включается из app.js и сам пропадает 3 ноября ── */
.halloween { --violet: #ff8a3d; --ice: #ffb35c; --line: rgba(255, 150, 80, .18); --line-2: rgba(255, 150, 80, .36); }
.halloween .nebula {
  background:
    radial-gradient(60vw 45vh at 12% 18%, rgba(120, 40, 200, .30), transparent 70%),
    radial-gradient(50vw 50vh at 88% 75%, rgba(255, 110, 30, .20), transparent 70%),
    radial-gradient(40vw 30vh at 78% 8%, rgba(255, 140, 40, .18), transparent 70%),
    radial-gradient(45vw 35vh at 25% 95%, rgba(90, 20, 140, .28), transparent 70%),
    linear-gradient(180deg, #08051a, #120822 50%, #07041a);
}
.halloween .btn.primary { background: linear-gradient(135deg, #ff8a3d, #b44cff); box-shadow: 0 6px 24px -6px rgba(255, 120, 50, .75); }
.halloween .brand svg { filter: drop-shadow(0 0 6px rgba(255, 150, 60, .95)); }
.halloween .brand::after { content: '🎃'; font-size: 18px; margin-left: -2px; align-self: flex-start; }
.halloween .card:hover .pic { box-shadow: 0 0 0 1px rgba(255, 140, 60, .6), 0 10px 40px -10px rgba(255, 120, 40, .7); }
.hw-decor { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hw-web { position: absolute; right: 0; top: 0; width: 220px; height: 220px; opacity: .22; }
.hw-bat { position: absolute; left: -80px; width: 46px; color: #120a1e; filter: drop-shadow(0 0 6px rgba(255, 140, 60, .45)); animation: hw-fly linear infinite; }
.hw-bat svg { width: 100%; display: block; animation: hw-flap .32s ease-in-out infinite alternate; transform-origin: 50% 40%; }
.hw-banner { margin: 14px 32px 0 calc(var(--rail) + 32px); padding: 12px 16px 12px 18px; border-radius: var(--r-m); display: flex; align-items: center; gap: 12px;
  background: linear-gradient(90deg, rgba(255, 120, 40, .18), rgba(150, 60, 220, .16)); border: 1px solid rgba(255, 150, 80, .3); color: #ffe7d2; font-size: 14px; }
.hw-banner b { font-family: var(--font-d); font-weight: 600; }
.hw-banner button { margin-left: auto; background: none; border: 0; color: inherit; font-size: 20px; cursor: pointer; opacity: .7; }
@keyframes hw-fly { 0% { transform: translate(0, 0); } 25% { transform: translate(28vw, -6vh); } 50% { transform: translate(55vw, 4vh); } 75% { transform: translate(85vw, -4vh); } 100% { transform: translate(115vw, 2vh); } }
@keyframes hw-flap { from { transform: scaleY(1); } to { transform: scaleY(.45); } }
@keyframes hw-float { 50% { transform: translateY(-10px) rotate(-3deg); } }
@media (max-width: 820px) { .hw-banner { margin: 10px 16px 0; } .hw-web { width: 140px; height: 140px; } }
@media (prefers-reduced-motion: reduce) { .hw-bat, .hw-bat svg { animation: none; } .hw-bat { display: none; } }

/* ── Главная-витрина ── */
.home .chip.hot { background: linear-gradient(135deg, rgba(255, 120, 60, .35), rgba(255, 60, 140, .3)); border-color: rgba(255, 140, 90, .5); color: #ffe2d2; }
.eps-strip { grid-auto-columns: 280px; }
.ep-card { display: block; }
.ep-card .th { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); background: var(--nebula); }
.ep-card .th img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.ep-card .play { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 6, 30, .6); backdrop-filter: blur(4px); opacity: 0; transform: scale(.8); transition: .25s; }
.ep-card .num { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--violet); color: #fff; }
.ep-card:hover .th img { transform: scale(1.05); filter: brightness(.8); }
.ep-card:hover .play { opacity: 1; transform: none; }
.ep-card .t { margin-top: 9px; font-weight: 700; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ep-card .s { color: var(--dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top10 { grid-auto-columns: 230px; }
.top-item { display: flex; align-items: flex-end; }
.top-item .rank { font: 800 120px/0.8 var(--font-d); color: transparent; -webkit-text-stroke: 2px var(--line-2); margin-right: -22px; z-index: 0; letter-spacing: -.08em; transition: .3s; }
.top-item .card { width: 150px; flex: none; z-index: 1; }
.top-item:hover .rank { -webkit-text-stroke-color: var(--violet); text-shadow: 0 0 30px rgba(155, 123, 255, .5); }
.top-item:nth-child(-n+3) .rank { -webkit-text-stroke-color: rgba(255, 207, 110, .75); }
.lucky { margin: 48px 0 0; padding: 30px 34px; border-radius: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: radial-gradient(120% 140% at 0% 0%, rgba(155, 123, 255, .3), transparent 60%), radial-gradient(100% 120% at 100% 100%, rgba(255, 122, 182, .22), transparent 60%), var(--glass); border: 1px solid var(--line-2); }
.lucky h2 { margin: 0 0 6px; } .lucky p { margin: 0; color: var(--muted); }
.btn.big { padding: 15px 28px; font-size: 16px; }
.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.genre { position: relative; height: 110px; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.genre .gi { position: absolute; inset: 0; z-index: -1; background: var(--nebula) center/cover; filter: brightness(.45) saturate(1.2); transition: transform .5s, filter .3s; }
.genre::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 7, 32, .85), transparent 70%); }
.genre b { font: 600 16px var(--font-d); } .genre span:last-child { font-size: 12.5px; color: var(--muted); }
.genre:hover .gi { transform: scale(1.08); filter: brightness(.6) saturate(1.3); }
.genre:hover { border-color: var(--line-2); }
@media (max-width: 820px) { .eps-strip { grid-auto-columns: 230px; } .top10 { grid-auto-columns: 190px; } .top-item .rank { font-size: 90px; } .top-item .card { width: 125px; } .genre-grid { grid-template-columns: repeat(2, 1fr); } .lucky { padding: 22px; } }

/* ── Живая тыква (Хэллоуин) ── */
.pk-wrap { position: fixed; right: 26px; bottom: 22px; z-index: 35; width: 132px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.pk-wrap svg { width: 100%; display: block; overflow: visible; }
.pk-body { transform-box: fill-box; transform-origin: 50% 100%; animation: pk-alive 3.2s ease-in-out infinite; }
.pk-fire { opacity: 0; animation: pk-ignite 1.6s 1s ease-out forwards, pk-flicker 2.3s 2.6s infinite; }
.pk-aura { opacity: 0; animation: pk-ignite 1.6s 1s ease-out forwards, pk-aura 2.3s 2.6s infinite; }
.pk-floor { opacity: 0; animation: pk-floor 1.6s 1s ease-out forwards; }
.pk-eyes { transform-box: fill-box; transform-origin: 50% 60%; animation: pk-blink 5.5s 3s infinite; }
.pk-mouth { transform-box: fill-box; transform-origin: 50% 20%; transform: scaleY(.55); animation: pk-talk 7s 3.4s infinite; }
.pk-wrap.laugh .pk-mouth { animation: pk-laugh .22s 6 alternate; }
.pk-wrap.laugh .pk-body { animation: pk-shake .22s 6 alternate; }
.pk-wrap.laugh .pk-fire { animation: pk-flare .6s 2 alternate; opacity: 1; }
.pk-bubble { position: absolute; right: 100%; bottom: 70%; margin-right: 6px; width: 230px; padding: 12px 14px; border-radius: 16px 16px 4px 16px; background: rgba(26, 12, 40, .95); border: 1px solid rgba(255, 150, 80, .45);
  color: #ffe9d8; font-size: 13.5px; line-height: 1.45; box-shadow: 0 10px 40px -10px rgba(255, 120, 40, .6); opacity: 0; transform: translateY(8px) scale(.96); transform-origin: 100% 100%; transition: .25s; pointer-events: none; }
.pk-bubble.on { opacity: 1; transform: none; pointer-events: auto; }
.pk-bubble a { color: #ffb35c; font-weight: 700; text-decoration: underline; }
@keyframes pk-alive { 0%, 100% { transform: translateY(0) scale(1, 1); } 45% { transform: translateY(-5px) scale(.98, 1.03); } 55% { transform: translateY(-5px) scale(.98, 1.03); } 80% { transform: translateY(0) scale(1.03, .97); } }
@keyframes pk-ignite { 0% { opacity: 0; } 30% { opacity: .5; } 40% { opacity: .2; } 100% { opacity: 1; } }
@keyframes pk-flicker { 0%, 100% { filter: brightness(1); } 13% { filter: brightness(1.25); } 27% { filter: brightness(.82); } 41% { filter: brightness(1.12); } 58% { filter: brightness(.9); } 72% { filter: brightness(1.3); } 86% { filter: brightness(.95); } }
@keyframes pk-aura { 0%, 100% { opacity: .85; } 30% { opacity: 1; } 60% { opacity: .6; } }
@keyframes pk-floor { to { opacity: 1; } }
@keyframes pk-blink { 0%, 90%, 100% { transform: scaleY(1); } 93% { transform: scaleY(.08); } 96% { transform: scaleY(1); } }
@keyframes pk-talk { 0%, 52%, 100% { transform: scaleY(.55); } 58% { transform: scaleY(1.15); } 63% { transform: scaleY(.7); } 68% { transform: scaleY(1.2); } 73% { transform: scaleY(.6); } 78% { transform: scaleY(1.05); } 85% { transform: scaleY(.55); } }
@keyframes pk-laugh { from { transform: scaleY(.6); } to { transform: scaleY(1.3); } }
@keyframes pk-shake { from { transform: rotate(-4deg) scale(1.02, .98); } to { transform: rotate(4deg) scale(.98, 1.03); } }
@keyframes pk-flare { from { filter: brightness(1); } to { filter: brightness(1.6) saturate(1.2); } }
@media (max-width: 820px) { .pk-wrap { width: 86px; right: 12px; bottom: 86px; } .pk-bubble { width: 200px; font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) { .pk-body, .pk-eyes, .pk-mouth, .pk-fire, .pk-aura { animation: none; opacity: 1; } .pk-floor { opacity: 1; animation: none; } }

/* Заглушка постера, если картинка не загрузилась */
.pic-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 14px; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, rgba(155, 123, 255, .35), transparent 60%), linear-gradient(160deg, #241c6a, #120d3a); }
.pic-ph .planet { --s: 56px; }
.pic-ph b { font: 600 13px/1.35 var(--font-d); color: #e9e4ff; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.search-drop .pic-ph { position: static; width: 42px; height: 60px; flex: none; padding: 0; border-radius: 6px; } .search-drop .pic-ph b { display: none; } .search-drop .pic-ph .planet { --s: 18px; }

/* Ведьмочка, луна и привидение (Хэллоуин) */
.hw-moon2 { position: absolute; right: 16vw; top: 16vh; width: 190px; height: 190px; border-radius: 50%; opacity: .55;
  background: radial-gradient(circle at 38% 36%, #fff6d8, #ffd98a 45%, #e8a24a 75%, #b06a24);
  box-shadow: 0 0 60px 10px rgba(255, 200, 110, .35), 0 0 160px 40px rgba(255, 150, 60, .15); }
.hw-moon2::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 62% 64%, rgba(160, 90, 30, .35) 0 10%, transparent 11%), radial-gradient(circle at 34% 70%, rgba(160, 90, 30, .25) 0 6%, transparent 7%), radial-gradient(circle at 70% 30%, rgba(160, 90, 30, .2) 0 5%, transparent 6%); }
.hw-witch { position: absolute; left: -240px; top: 26vh; width: 200px; animation: hw-witch 26s 2s linear infinite; filter: drop-shadow(0 0 5px rgba(255, 150, 60, .55)); }
.hw-witch svg { width: 100%; display: block; overflow: visible; animation: hw-bob 2.2s ease-in-out infinite; }
.hw-sparks circle { fill: #ffd27a; animation: hw-twinkle 1.1s ease-in-out infinite alternate; }
.hw-sparks circle:nth-child(2n) { animation-delay: .4s; fill: #ffb3ff; }
.hw-sparks circle:nth-child(3n) { animation-delay: .7s; }
.hw-ghost { position: absolute; left: 8vw; bottom: 14vh; width: 86px; opacity: 0; animation: hw-ghost 34s 6s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(200, 210, 255, .55)); }
.hw-ghost svg { width: 100%; display: block; animation: hw-bob 3s ease-in-out infinite; }
.hw-ghost-body { transform-box: fill-box; transform-origin: 50% 0; animation: hw-wave 1.4s ease-in-out infinite alternate; }
.hw-ghost-mouth { transform-box: fill-box; transform-origin: 50% 50%; animation: hw-boo 4s ease-in-out infinite; }
@keyframes hw-witch { 0% { transform: translate(0, 0) rotate(-6deg); } 35% { transform: translate(45vw, -12vh) rotate(-2deg); } 60% { transform: translate(78vw, -16vh) rotate(-8deg); } 100% { transform: translate(calc(100vw + 480px), -4vh) rotate(-4deg); } }
@keyframes hw-bob { 50% { transform: translateY(-8px); } }
@keyframes hw-twinkle { from { opacity: .2; } to { opacity: 1; } }
@keyframes hw-ghost { 0% { opacity: 0; transform: translate(0, 20px) scale(.9); } 8% { opacity: .7; transform: translate(4vw, 0) scale(1); } 45% { opacity: .7; transform: translate(26vw, -10vh) scale(1.05); } 55% { opacity: 0; transform: translate(30vw, -12vh) scale(1); } 100% { opacity: 0; transform: translate(0, 20px) scale(.9); } }
@keyframes hw-wave { from { transform: skewX(-3deg) scaleY(1); } to { transform: skewX(3deg) scaleY(1.03); } }
@keyframes hw-boo { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.5, 1.7); } 90% { transform: scale(1.2); } }
@media (max-width: 820px) { .hw-moon2 { width: 110px; height: 110px; right: 6vw; top: 20vh; opacity: .4; } .hw-witch { width: 130px; } .hw-ghost { width: 60px; bottom: 22vh; } }
@media (prefers-reduced-motion: reduce) { .hw-witch, .hw-ghost { display: none; } }

/* Расписание: карточки с озвучкой ведут в плеер */
.timer { position: relative; }
.timer .pic-ph { position: relative; inset: auto; width: 58px; height: 84px; flex: none; border-radius: 10px; padding: 0; } .timer .pic-ph b { display: none; } .timer .pic-ph .planet { --s: 22px; }
.timer.voiced { border-color: rgba(124, 200, 255, .28); }
.voice-tag { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 700; color: var(--ice); background: rgba(8, 6, 30, .6); border: 1px solid var(--line); }
.no-voice summary { cursor: pointer; list-style: none; opacity: .8; } .no-voice summary::-webkit-details-marker { display: none; }
.no-voice summary h2::before { content: '▸ '; } .no-voice[open] summary h2::before { content: '▾ '; }
.no-voice .timer { opacity: .7; }

/* Память просмотра: «Продолжить» и прогресс серий */
.ep-btn { position: relative; overflow: hidden; }
.ep-btn .bar { position: absolute; left: 8px; right: 8px; bottom: 3px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.ep-btn .bar i { display: block; height: 100%; background: var(--ice); }
.ep-btn.seen:not(.primary) { opacity: .7; }
.ep-btn.seen::after { content: '✓'; margin-left: 5px; color: var(--good); font-weight: 800; }
.resume-in { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 16px 0 0; padding: 14px 16px; border-radius: var(--r-m);
  background: linear-gradient(90deg, rgba(124, 200, 255, .14), rgba(155, 123, 255, .12)); border: 1px solid var(--line-2); }
.resume-in .ic { font-size: 26px; }
.rbar, .cbar { height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; margin-top: 7px; max-width: 320px; }
.rbar i, .cbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ice), var(--violet)); }
.cont-strip { grid-auto-columns: 280px; }
.cont-card { display: block; }
.cont-card .th { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); background: var(--nebula); }
.cont-card .th img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: brightness(.75); transition: transform .5s; }
.cont-card .play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 6, 30, .6); backdrop-filter: blur(4px); }
.cont-card .cbar { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; max-width: none; border-radius: 0; height: 5px; }
.cont-card:hover .th img { transform: scale(1.05); }
.cont-card .t { margin-top: 9px; font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cont-card .s { color: var(--dim); font-size: 12.5px; }
@media (max-width: 820px) { .cont-strip { grid-auto-columns: 230px; } }
