/* Shared source of truth: exact tints and backgrounds from Cinema Atmosphere. */
:root {
  --theme-iskra-rgb: 219, 170, 87;
  --theme-plamen-rgb: 239, 141, 88;
  --theme-zhivoslava-rgb: 157, 202, 192;
  --theme-perun-rgb: 148, 186, 221;
  --theme-vida-rgb: 206, 147, 157;
  --theme-georgi-rgb: 188, 172, 228;
  --theme-iskra-background: radial-gradient(ellipse at 25% 50%, rgba(219, 170, 87, .13), transparent 62%), radial-gradient(ellipse at 95% 5%, rgba(219, 170, 87, .1), transparent 55%), #0b0b0d;
  --theme-plamen-background: radial-gradient(ellipse at 10% 100%, #ac502a28, transparent 65%), radial-gradient(ellipse at 90% 5%, #e5985e13, transparent 65%), #100d0c;
  --theme-zhivoslava-background: repeating-linear-gradient(115deg, transparent 0 100px, #a0d0c407 101px 102px, transparent 103px 180px), radial-gradient(ellipse at 30% 40%, #5f9e9020, transparent 65%), #0a1011;
  --theme-perun-background: radial-gradient(ellipse at 25% 10%, #5d8cba22, transparent 65%), linear-gradient(155deg, #0c1622, #0b0c10 65%);
  --theme-vida-background: radial-gradient(ellipse at 95% 65%, #70415126, transparent 65%), #100b10;
  --theme-georgi-background: radial-gradient(ellipse at 10% 10%, #8070b125, transparent 65%), radial-gradient(ellipse at 65% 100%, #4f618a24, transparent 55%), #0c0c14;
  --theme-browser-color: #090807;
}
:root[data-site-theme="iskra"], [data-cinema-theme="iskra"] { --scene-rgb: var(--theme-iskra-rgb); --scene-background: var(--theme-iskra-background); --scene-base: #0b0b0d; }
:root[data-site-theme="plamen"], [data-cinema-theme="plamen"] { --scene-rgb: var(--theme-plamen-rgb); --scene-background: var(--theme-plamen-background); --scene-base: #100d0c; --theme-browser-color: #100d0c; }
:root[data-site-theme="zhivoslava"], [data-cinema-theme="zhivoslava"] { --scene-rgb: var(--theme-zhivoslava-rgb); --scene-background: var(--theme-zhivoslava-background); --scene-base: #0a1011; --theme-browser-color: #0a1011; }
:root[data-site-theme="perun"], [data-cinema-theme="perun"] { --scene-rgb: var(--theme-perun-rgb); --scene-background: var(--theme-perun-background); --scene-base: #0b0c10; --theme-browser-color: #0b0c10; }
:root[data-site-theme="vida"], [data-cinema-theme="vida"] { --scene-rgb: var(--theme-vida-rgb); --scene-background: var(--theme-vida-background); --scene-base: #100b10; --theme-browser-color: #100b10; }
:root[data-site-theme="georgi"], [data-cinema-theme="georgi"] { --scene-rgb: var(--theme-georgi-rgb); --scene-background: var(--theme-georgi-background); --scene-base: #0c0c14; --theme-browser-color: #0c0c14; }

/* With Iskra selected, all original gold colours remain unchanged. */
:root[data-site-theme]:not([data-site-theme="iskra"], [data-site-theme="vestnik"], [data-site-theme="constellation"]) {
  --gold: rgb(var(--scene-rgb));
  --gold-light: color-mix(in srgb, rgb(var(--scene-rgb)) 90%, white);
  --gold-pale: color-mix(in srgb, rgb(var(--scene-rgb)) 58%, white);
  --copper: color-mix(in srgb, rgb(var(--scene-rgb)) 64%, var(--scene-base));
  --ink: var(--scene-base);
  --ink-soft: color-mix(in srgb, rgb(var(--scene-rgb)) 4%, var(--scene-base));
  --panel: color-mix(in srgb, rgb(var(--scene-rgb)) 7%, var(--scene-base));
  --panel-2: color-mix(in srgb, rgb(var(--scene-rgb)) 12%, var(--scene-base));
  --line: rgba(var(--scene-rgb), .24);
  --site-accent-rgb: var(--scene-rgb);
  --site-solid-accent: var(--gold);
  --site-light-accent: var(--gold-light);
  --site-pale-accent: var(--gold-pale);
  --site-surface-0: var(--scene-base);
  --site-surface-1: var(--ink-soft);
  --site-surface-2: var(--panel);
  --site-surface-3: var(--panel-2);
  --site-surface-4: color-mix(in srgb, rgb(var(--scene-rgb)) 25%, var(--scene-base));
}
body { isolation: isolate; }
html[data-site-theme]:not([data-site-theme="iskra"], [data-site-theme="vestnik"]) body { background: var(--scene-background); background-attachment: fixed; }
html[data-site-theme]:not([data-site-theme="iskra"], [data-site-theme="vestnik"]) .iskra-spark { --spark-gold: var(--gold-light); --spark-line: var(--line); }
html[data-site-theme]:not([data-site-theme="iskra"], [data-site-theme="vestnik"]) .story-dialog { --story-accent: var(--gold-light); --story-glow: var(--scene-rgb); }
html[data-site-theme]:not([data-site-theme="iskra"], [data-site-theme="vestnik"]) [data-member-theme] { --member-accent: var(--gold-light); --member-rgb: var(--scene-rgb); --member-base: var(--panel); }
html[data-site-theme]:not([data-site-theme="iskra"], [data-site-theme="vestnik"]) .member-aura-glow { background: radial-gradient(ellipse at 100% 0, rgba(var(--scene-rgb), .16), transparent 62%); }

/* Cinema owns its palette, even while the surrounding site uses another one. */
.mini-player.is-cinema {
  --cinema-tint: var(--scene-rgb);
  --gold: rgb(var(--scene-rgb)); --gold-light: rgb(var(--scene-rgb)); --gold-pale: color-mix(in srgb, rgb(var(--scene-rgb)) 60%, white);
  --line: rgba(var(--scene-rgb), .24); --site-accent-rgb: var(--scene-rgb);
  --site-surface-0: var(--scene-base); --site-surface-1: var(--scene-base);
  --site-surface-2: color-mix(in srgb, rgb(var(--scene-rgb)) 7%, var(--scene-base));
  --site-surface-3: color-mix(in srgb, rgb(var(--scene-rgb)) 12%, var(--scene-base));
  background: var(--scene-background);
}
.theme-control { position: relative; flex: 0 0 44px; width: 44px; height: 44px; }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: .75rem; color: var(--gold-light); background: var(--ink-soft); box-shadow: inset 0 0 14px #ffffff03; cursor: pointer; }
.theme-toggle:hover, .theme-toggle[aria-expanded="true"] { border-color: var(--gold); background: var(--panel); }
.theme-toggle:focus-visible, .theme-picker button:focus-visible { outline: 2px solid var(--gold-pale); outline-offset: 3px; }
.theme-palette-icon { display: block; animation: iskra-palette-colours 15s linear infinite; filter: drop-shadow(0 0 3px currentColor); }
@keyframes iskra-palette-colours {
  0%, 100% { color: rgb(var(--theme-iskra-rgb)); }
  16.6667% { color: rgb(var(--theme-plamen-rgb)); }
  33.3333% { color: rgb(var(--theme-zhivoslava-rgb)); }
  50% { color: rgb(var(--theme-perun-rgb)); }
  66.6667% { color: rgb(var(--theme-vida-rgb)); }
  83.3333% { color: rgb(var(--theme-georgi-rgb)); }
}
.theme-tooltip { position: absolute; top: calc(100% + .7rem); right: 0; z-index: 2; width: max-content; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--panel); color: var(--ivory); font: 400 .75rem/1.5 var(--sans); letter-spacing: 0; pointer-events: none; opacity: 0; visibility: hidden; }
.theme-toggle[aria-expanded="false"]:is(:hover,:focus-visible) .theme-tooltip { opacity: 1; visibility: visible; transition: opacity .15s .35s, visibility .15s .35s; }
.theme-picker { position: absolute; top: calc(100% + 1rem); right: 0; width: 370px; padding: 1rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--ink-soft); color: var(--ivory); box-shadow: 0 16px 60px #000b, inset 0 1px 0 #ffffff08; max-height: calc(100svh - 7rem); overflow: auto; overscroll-behavior: contain; }
.theme-picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.theme-picker-heading p { margin: 0 0 .15rem; color: var(--gold-light); font: 500 .625rem/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.theme-picker-heading h2 { margin: 0; font: 400 1.65rem/1.2 var(--serif); }
.theme-picker-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ivory); font: 400 1.5rem/1 var(--sans); cursor: pointer; }
.theme-picker-close:hover { background: var(--panel-2); }
.theme-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
.theme-choice { position: relative; display: flex; align-items: center; gap: .55rem; min-width: 0; min-height: 86px; padding: .7rem .5rem; border: 1px solid #ffffff14; border-radius: .5rem; background: #ffffff03; color: var(--ivory); font: inherit; text-align: left; cursor: pointer; }
.theme-choice-portrait { display: block; flex: 0 0 36px; width: 36px; height: 44px; overflow: hidden; border-radius: .35rem; }
.theme-choice img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.8); transform-origin: 50% 15%; filter: saturate(.8); }
.theme-choice[data-choose-site-theme="georgi"] img { object-position: center 25%; transform-origin: 50% 50%; }
.theme-choice > span:not(.theme-swatch) { min-width: 0; }
.theme-choice strong { display: block; font: 500 .8rem/1.4 var(--sans); }
.theme-choice small { display: block; margin-top: .2rem; color: #a9a4a0; font: 400 .625rem/1.4 var(--sans); }
.theme-choice:hover { border-color: var(--choice-color); background: #ffffff08; }
.theme-choice[aria-pressed="true"] { border-color: var(--choice-color); background: color-mix(in srgb, var(--choice-color) 13%, transparent); box-shadow: inset 0 0 16px color-mix(in srgb, var(--choice-color) 5%, transparent); }
.theme-choice[aria-pressed="true"] strong { color: var(--choice-color); }
.theme-swatch { position: absolute; top: .4rem; right: .4rem; width: 7px; height: 7px; border-radius: 50%; background: var(--choice-color); }
.theme-choice[aria-pressed="true"] .theme-swatch { top: .3rem; right: .3rem; width: 14px; height: 14px; }
.theme-choice[aria-pressed="true"] .theme-swatch::after { content: '✓'; display: block; color: #0a090b; text-align: center; font: 700 10px/14px var(--sans); }
.theme-picker-note { margin: .9rem 0 0; color: var(--muted); font: 400 .6875rem/1.6 var(--sans); }
.site-theme-fade { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; }
.site-theme-fade.is-fading { animation: site-theme-fade .26s ease-out both; }
@keyframes site-theme-fade { from { opacity: 1; } to { opacity: 0; } }
html.theme-changing :is(button,a,h1,h2,h3,p,em,span,summary,input,select,dialog,.album-stage,.album-visual,.reading-toolbar,.latest-card,.favorites-collection,.mini-player:not(.is-cinema)) {
  transition-property: color, background-color, border-color, box-shadow;
  transition-duration: .22s; transition-timing-function: ease-out;
}
/* The fixed mobile header keeps both controls reachable and motionless. */
@media (min-width: 1001px) and (max-width: 1450px) { .site-nav { gap: .65rem; } .header-branding { gap: .7rem; } }
@media (min-width: 1001px) and (max-width: 1200px) { .site-nav { gap: .4rem; } .site-header { gap: .75rem; } }
@media (max-width: 1000px) {
  .site-header > .theme-control { position: fixed; z-index: 103; top: 1.025rem; right: calc(max(.75rem, env(safe-area-inset-right)) + 3.25rem); }
  .site-header, .site-header.is-scrolled, .song-page .site-header { padding-right: 7.6rem; }
  .theme-picker { position: fixed; top: 5.2rem; right: max(.75rem, env(safe-area-inset-right)); width: min(370px,calc(100vw - 1.5rem)); max-height: calc(100svh - 6rem); }
  .theme-tooltip { display: none; }
}
@media (max-width: 390px) {
  .header-branding { gap: .4rem; }
  .header-branding .brand { width: 4.5rem; }
  .site-switch { padding: .35rem .45rem; font-size: .625rem; }
  .site-switch > span[aria-hidden] { font-size: .9rem; }
}
@media (max-width: 360px) {
  .theme-choices { grid-template-columns: minmax(0,1fr); }
  .theme-choice { min-height: 60px; padding: .5rem .65rem; gap: .75rem; }
  .theme-choice-portrait { height: 38px; }
  .theme-choice strong { font-size: .875rem; }
  .theme-choice small { font-size: .6875rem; }
  .theme-swatch { top: calc(50% - 4px); right: .75rem; }
  .theme-choice[aria-pressed="true"] .theme-swatch { top: calc(50% - 7px); right: .55rem; }
}
html[data-motion="reduced"] .theme-palette-icon { animation: none; color: var(--gold-light); }
html[data-motion="reduced"] .site-theme-fade { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .theme-palette-icon { animation: none !important; color: var(--gold-light); }
  .site-theme-fade { animation: none !important; }
  html.theme-changing * { transition: none !important; }
}

/* Bonus choices share their requirements across the two independent pickers. */
.special-theme-group { margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.special-theme-group h3 { margin: 0 0 .45rem; color: var(--gold-light); font: 650 .65rem/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.special-theme-choice { display: flex; align-items: center; gap: .65rem; width: 100%; min-height: 44px; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: .45rem; background: transparent; color: var(--ivory); text-align: left; cursor: pointer; }
.special-theme-choice strong { font: 500 1.13rem/1.2 var(--serif); }
.special-theme-paper { flex: 0 0 29px; width: 29px; height: 29px; padding: 3px; color: #8B2529; background: #F7F5EF; border: 1px solid #D5CFC4; border-radius: 3px; }
.special-theme-state { margin-left: auto; font: 500 .65rem/1.45 var(--sans); color: var(--muted); }
.special-theme-choice:disabled { cursor: default; opacity: 1; }
.special-theme-choice:not(:disabled):is(:hover,:focus-visible), .special-theme-choice[aria-pressed="true"] { color: var(--gold-light); border-color: var(--gold); background: rgba(var(--site-accent-rgb,219,170,87),.07); }
.special-theme-group > p { margin: .4rem 0 0; color: var(--muted); font: 400 .73rem/1.55 var(--sans); }

/* Paper and printing ink. Only the two independently selected paper scopes own these tokens. */
:root[data-site-theme="vestnik"], #mini-player.is-cinema[data-cinema-theme="vestnik"] {
  color-scheme: light;
  --paper: #F7F5EF; --print: #171717; --print-accent: #8B2529; --print-hover: #A63236; --rule: #D5CFC4; --caption: #5F5B55;
  --scene-rgb: 139,37,41; --scene-base: var(--paper); --scene-background: var(--paper); --theme-browser-color: #F7F5EF;
  --ivory: var(--print); --muted: var(--caption); --ink: var(--paper); --ink-soft: var(--paper);
  --gold: var(--print-accent); --gold-light: var(--print-accent); --gold-pale: var(--print-accent); --copper: var(--print-hover);
  --panel: var(--paper); --panel-2: color-mix(in srgb,var(--paper) 72%,var(--rule));
  --line: var(--rule); --shadow: 0 12px 36px #30291d12;
  --site-accent-rgb: var(--scene-rgb); --site-solid-accent: var(--print-accent); --site-light-accent: var(--print-accent); --site-pale-accent: var(--print-accent);
  --site-surface-0: var(--paper); --site-surface-1: var(--paper); --site-surface-2: var(--paper); --site-surface-3: var(--panel-2); --site-surface-4: var(--rule);
}
html[data-site-theme="vestnik"] { background: var(--paper); }
html[data-site-theme="vestnik"] :is(body,.home-opening,.today-section) { background: var(--paper); }
html[data-site-theme="vestnik"] body::before, html[data-site-theme="vestnik"] .embers { opacity: 0; }
html[data-site-theme="vestnik"] .home-opening::before, html[data-site-theme="vestnik"] .home-hero .hero-backdrop { opacity: 0; }
html[data-site-theme="vestnik"]:not(.theme-changing) .home-opening::before, html[data-site-theme="vestnik"]:not(.theme-changing) .home-hero .hero-backdrop { background-image: none; }
html[data-site-theme="vestnik"] :is(.hero-copy,.today-heading h2,.site-nav a,.medals-intro h1) { text-shadow: none; }
html[data-site-theme="vestnik"] :is(.site-header.is-scrolled,.song-page .site-header) { background: var(--paper); }
html[data-site-theme="vestnik"] .brand img { filter: none; }
html[data-site-theme="vestnik"] .site-nav :is(a,.nav-cinema,.nav-gift) { color: var(--print-accent); }
html[data-site-theme="vestnik"] :is(.site-nav a,.site-nav button:not(.theme-choice,.special-theme-choice),.text-link,.contact-link,.portal-explore,.story-trigger,.song-link,.site-switch,.button-ghost,.scroll-cue,.favorites-back):is(:hover,:focus-visible) { color: var(--print-hover); }
html[data-site-theme="vestnik"] :is(.button-primary,.spark-primary):is(:hover,:focus-visible) { color: var(--paper); background: var(--print-hover); border-color: var(--print-hover); }
html[data-site-theme="vestnik"] .chapter-tab.is-active, html[data-site-theme="vestnik"] .chapter-tab.is-active span { color: var(--paper); }
html[data-site-theme="vestnik"] :is(.prose,.hero-intro,.band-member-copy,.track-button,.spark-portrait,.spark-meaning,.spark-share-url,.spark-hint) { color: var(--print); }
html[data-site-theme="vestnik"] :is(.song-link,.track-play,.favorite-song[aria-pressed="true"],.spark-result-order,.spark-story,.journey-song,.echo-copy h2 a,.portal-explore,.favorite-page-link) { color: var(--print-accent); }
html[data-site-theme="vestnik"] :is(.album-description,.favorites-page-intro,.favorite-drag-handle,.band-stage-description,.project-note,.site-footer,.song-excerpt,.track-unreleased,.track-unreleased small,.echo-copy > p:not(.echo-kind),.spark-lead,.theme-choice small) { color: var(--caption); }
html[data-site-theme="vestnik"] :is(.search-field,.gift-picker-search) input::placeholder { color: var(--caption); opacity: 1; }
html[data-site-theme="vestnik"] .theme-picker { box-shadow: 0 12px 35px #2b211c24; }
html[data-site-theme="vestnik"] .theme-choice { border-color: var(--rule); }
html[data-site-theme="vestnik"] .theme-choice:hover { border-color: var(--print-hover); }
html[data-site-theme="vestnik"] .theme-choice img { filter: none; }
html[data-site-theme="vestnik"] .theme-palette-icon { filter: drop-shadow(0 0 1px #171717); }
html[data-site-theme="vestnik"] :is(.home-hero .portal-details,.today-card,.latest-card) { border-color: var(--rule); box-shadow: 0 4px 14px #30291d0c; }
html[data-site-theme="vestnik"] .today-card { background: var(--paper); }
html[data-site-theme="vestnik"] .today-lock { filter: none; }
html[data-site-theme="vestnik"] .today-status { color: var(--print); }
html[data-site-theme="vestnik"] .today-medals-link, html[data-site-theme="vestnik"] .today-medals-link [data-medals-count] { color: var(--paper); }
html[data-site-theme="vestnik"] .band-stage-photo::after { background: linear-gradient(transparent, #171717bf); }
html[data-site-theme="vestnik"] .band-stage-caption :is(strong,span) { color: var(--paper); text-shadow: 0 1px 4px #171717; }
html[data-site-theme="vestnik"] [data-member-theme] { --member-base: var(--paper); --member-accent: var(--print-accent); --member-rgb: var(--scene-rgb); --member-edge: var(--rule); }
html[data-site-theme="vestnik"] .story-dialog { --story-accent: var(--print-accent); --story-glow: var(--scene-rgb); }
html[data-site-theme="vestnik"] .iskra-spark { --spark-gold: var(--print-accent); --spark-text: var(--print); --spark-muted: var(--caption); --spark-line: var(--rule); }
html[data-site-theme="vestnik"] :is(.journey-chapter,.gift-song-choice) { --journey-color: var(--print-accent); --gift-tone: var(--print-accent); }
html[data-site-theme="vestnik"] .medals-shell::before { opacity: .14; }
html[data-site-theme="vestnik"] :is(.medals-header,.medals-exit,.medal-item,.medal-item.is-earned) { background: var(--paper); border-color: var(--rule); }
html[data-site-theme="vestnik"] .medal-item:is(:hover,:focus-visible,.is-earned) { border-color: var(--print-accent); }
html[data-site-theme="vestnik"] :is(.medals-lead,.medals-footnote,.medal-state) { color: var(--caption); }
html[data-site-theme="vestnik"] :is(.medal-art,.medal-detail-art img,.medal-toast-open img) { mix-blend-mode: normal; }
html[data-site-theme="vestnik"] .medals-scroll { scrollbar-color: var(--caption) var(--paper); }
html[data-site-theme="vestnik"] .medals-hall progress, html[data-site-theme="vestnik"] .medals-hall progress::-webkit-progress-bar { background: var(--rule); }
html[data-site-theme="vestnik"] .medals-hall .modal-player-controls button, html[data-site-theme="vestnik"] .medal-detail .modal-player-controls button { background: var(--paper); color: var(--print-accent); border-color: var(--rule); }

/* Cinema never takes the page's ink or paper. Keep the photograph and the video frame intact. */
html:is([data-site-theme="vestnik"],[data-site-theme="constellation"]) #mini-player.is-cinema:not([data-cinema-theme="vestnik"],[data-cinema-theme="constellation"]) { color-scheme: dark; --ivory: #f5efe3; --muted: #aaa093; }
#mini-player.is-cinema[data-cinema-theme="vestnik"] { --cinema-tint: var(--scene-rgb); color: var(--print); background: var(--paper); }
#mini-player.is-cinema[data-cinema-theme="vestnik"] :is(.cinema-top,.cinema-side,.cinema-side header,#cinema-cover,.cinema-idle,.cinema-list li + li) { border-color: var(--rule); }
#mini-player.is-cinema[data-cinema-theme="vestnik"] :is(.cinema-side,.cinema-drag-preview,input,select) { color: var(--print); background: var(--paper); border-color: var(--rule); }
#mini-player.is-cinema[data-cinema-theme="vestnik"] :is(button,.cinema-links a) { color: var(--print-accent); border-color: var(--rule); }
#mini-player.is-cinema[data-cinema-theme="vestnik"] :is(.cinema-top button,.cinema-tools button,.cinema-listen,.mini-controls button,#cinema-collapse,#cinema-queue-actions button) { background: var(--paper); }
#mini-player.is-cinema[data-cinema-theme="vestnik"] :is(.cinema-theme-list button,.cinema-list button[data-cinema-song]) { color: var(--print); }
#mini-player.is-cinema[data-cinema-theme="vestnik"] :is(.cinema-album,.cinema-hint,.cinema-filter-hint,.cinema-list small,.cinema-theme-list small,#cinema-label,.cinema-orientation-hint,button:disabled,.cinema-list [aria-disabled="true"]) { color: var(--caption); }
#mini-player.is-cinema[data-cinema-theme="vestnik"] :is(button[aria-pressed="true"],button[aria-expanded="true"],button[aria-current],#cinema-song-play) { color: var(--print-accent); background: var(--panel-2); border-color: var(--print-accent); }
#mini-player.is-cinema[data-cinema-theme="vestnik"] :is(button:not(:disabled):not([aria-disabled="true"]),a):is(:hover,:focus-visible) { color: var(--print-hover); border-color: var(--print-hover); }
#mini-player.is-cinema[data-cinema-theme="vestnik"] .cinema-pane { scrollbar-color: var(--caption) var(--paper); }
#mini-player.is-cinema[data-cinema-theme="vestnik"] :is(.mini-video,#cinema-cover) { box-shadow: var(--shadow); }
#mini-player.is-cinema[data-cinema-theme="vestnik"] .cinema-idle > img { opacity: 1; }
#mini-player.is-cinema[data-cinema-theme="vestnik"] .cinema-idle > div { color: var(--paper); background: linear-gradient(0deg,#171717bc,transparent 48%); }
#mini-player.is-cinema[data-cinema-theme="vestnik"] #cinema-start { color: var(--paper); background: var(--print-accent); border-color: var(--paper); }
#mini-player.is-cinema[data-cinema-theme="vestnik"] #cinema-start:hover { background: var(--print-hover); }
@media (prefers-reduced-motion: no-preference) {
  html.theme-changing:not([data-motion="reduced"]) :is(.home-opening,.home-hero .hero-backdrop,.today-section,.theme-picker,.site-header,.today-card), html.theme-changing:not([data-motion="reduced"]) .home-opening::before { transition: opacity .23s ease-out, background-color .23s ease-out, border-color .23s ease-out; }
  html:not([data-motion="reduced"]) #mini-player.is-cinema.cinema-theme-changing, html:not([data-motion="reduced"]) .cinema-theme-changing :is(button,a,p,h2,input,small,.cinema-side,.cinema-top) { transition: color .22s ease-out, background-color .22s ease-out, border-color .22s ease-out; }
}

/* A quiet graphite night. Artwork and the flame retain their original colours. */
:root[data-site-theme="constellation"], #mini-player.is-cinema[data-cinema-theme="constellation"] {
  color-scheme: dark;
  --scene-rgb: 191,206,224; --scene-base: #0D0F13; --scene-background: #0D0F13; --theme-browser-color: #0D0F13;
  --ink: #0D0F13; --ink-soft: #171B20; --panel: #171B20; --panel-2: #222830;
  --ivory: #E5E8EA; --muted: #A5AAB0; --gold: #BFCEE0; --gold-light: #BFCEE0; --gold-pale: #DFEAF5; --copper: #A5AAB0; --line: #5F6975;
  --site-accent-rgb: var(--scene-rgb); --site-solid-accent: var(--gold); --site-light-accent: var(--gold-light); --site-pale-accent: var(--gold-pale);
  --site-surface-0: var(--ink); --site-surface-1: var(--ink-soft); --site-surface-2: var(--panel); --site-surface-3: var(--panel-2); --site-surface-4: #37404B;
  --shadow: 0 14px 42px #0006;
}
html[data-site-theme="constellation"], html[data-site-theme="constellation"] :is(.home-opening,.today-section) { background: var(--ink); }
html[data-site-theme="constellation"] .embers, html[data-site-theme="constellation"] body::before { opacity: 0; }
html[data-site-theme="constellation"] .home-opening::before, html[data-site-theme="constellation"] .home-hero .hero-backdrop { opacity: 0; }
html[data-site-theme="constellation"]:not(.theme-changing) .home-opening::before, html[data-site-theme="constellation"]:not(.theme-changing) .home-hero .hero-backdrop { background-image: none; }
html[data-site-theme="constellation"] :is(.hero-copy,.today-heading h2,.site-nav a) { text-shadow: none; }
html[data-site-theme="constellation"] :is(.hero-intro,.prose,.band-member-copy,.track-button,.today-status,.spark-portrait,.spark-meaning) { color: var(--ivory); }
html[data-site-theme="constellation"] :is(.album-description,.favorites-page-intro,.band-stage-description,.song-excerpt,.track-unreleased,.project-note,.theme-choice small,.spark-hint) { color: var(--muted); }
html[data-site-theme="constellation"] :is(.site-nav a,.nav-cinema,.nav-gift,.portal-explore,.song-link,.track-play,.spark-story,.journey-song,.favorite-page-link) { color: var(--gold-light); }
html[data-site-theme="constellation"] :is(.site-nav a,.site-switch,.portal-explore,.text-link,.story-trigger,.song-link,.button-ghost,.favorites-back):is(:hover,:focus-visible) { color: var(--gold-pale); }
html[data-site-theme="constellation"] :is(.button-primary,.spark-primary):is(:hover,:focus-visible) { color: var(--ink); background: var(--gold-pale); border-color: var(--gold-pale); }
html[data-site-theme="constellation"] :is(.site-header.is-scrolled,.song-page .site-header) { background: var(--ink); }
html[data-site-theme="constellation"] :is(.home-hero .portal-details,.today-card,.latest-card) { background-color: var(--panel); border-color: var(--line); }
html[data-site-theme="constellation"] .iskra-spark { --spark-text: var(--ivory); --spark-muted: var(--muted); }
html[data-site-theme="constellation"] .portal-selectors button[aria-pressed="true"] { color: var(--gold-pale); }

.portal-star-map,.cinema-constellation { display: none; }
html[data-site-theme="constellation"] .hero-portal .album-orbit { border-color: #bfcee04a; }
html[data-site-theme="constellation"] .hero-portal .album-orbit::before, html[data-site-theme="constellation"] .hero-portal .album-orbit::after { opacity: 0; }
html[data-site-theme="constellation"] .portal-star-map { display: block; position: absolute; inset: -9%; pointer-events: none; z-index: 1; }
.portal-star-map i { position: absolute; display: block; width: 9px; height: 9px; margin: -4.5px; color: #E4BC78; opacity: .64; filter: drop-shadow(0 0 2px #e4bc7888); }
.portal-star-map i::before { content: ''; display: block; width: 100%; height: 100%; background: currentColor; clip-path: polygon(50% 0,61% 37%,100% 50%,61% 61%,50% 100%,38% 63%,0 50%,38% 38%); }
.portal-star-map i:nth-child(1) { left: 28%; top: 5.1%; }
.portal-star-map i:nth-child(2) { left: 98%; top: 36%; }
.portal-star-map i:nth-child(3) { left: 2%; top: 64%; }
.hero-portal[data-portal-album="0"] .portal-star-map i:nth-child(1),
.hero-portal[data-portal-album="1"] .portal-star-map i:nth-child(2),
.hero-portal[data-portal-album="2"] .portal-star-map i:nth-child(3) { opacity: 1; transform: scale(1.14); animation: portal-star-greeting 1.1s ease-out; }
@keyframes portal-star-greeting { 0% { opacity: .64; transform: scale(.9); } 36% { opacity: 1; transform: scale(1.65); filter: drop-shadow(0 0 5px #e4bc78); } 100% { opacity: 1; transform: scale(1.14); } }

#mini-player.is-cinema[data-cinema-theme="constellation"] { --cinema-tint: var(--scene-rgb); color: var(--ivory); background: var(--ink); }
#mini-player.is-cinema[data-cinema-theme="constellation"] .cinema-brand { position: relative; }
#mini-player.is-cinema[data-cinema-theme="constellation"] .cinema-constellation { display: block; position: absolute; left: calc(100% + .55rem); top: 50%; transform: translateY(-50%); pointer-events: none; width: clamp(23px,3.2vw,46px); height: auto; opacity: .88; transition: opacity .35s ease; }
#mini-player.is-cinema.cinema-sky-playing[data-cinema-theme="constellation"] .cinema-constellation { opacity: 0; }
#mini-player.is-cinema[data-cinema-theme="constellation"] :is(.cinema-side,.cinema-drag-preview,input,select) { background: var(--panel); color: var(--ivory); border-color: var(--line); }
#mini-player.is-cinema[data-cinema-theme="constellation"] :is(.cinema-top,.cinema-side header,#cinema-cover,.cinema-list li + li) { border-color: var(--line); }
#mini-player.is-cinema[data-cinema-theme="constellation"] :is(button,.cinema-links a,.theme-star-list a) { color: var(--gold); }
#mini-player.is-cinema[data-cinema-theme="constellation"] :is(.cinema-top button,.cinema-tools button,.cinema-listen,.mini-controls button,#cinema-collapse,#cinema-queue-actions button) { background: var(--panel); border-color: var(--line); }
#mini-player.is-cinema[data-cinema-theme="constellation"] :is(.cinema-list button[data-cinema-song],.cinema-theme-list button,.prose) { color: var(--ivory); }
#mini-player.is-cinema[data-cinema-theme="constellation"] :is(#cinema-label,.cinema-album,.cinema-hint,.cinema-filter-hint,.cinema-list small,.cinema-theme-list small,.cinema-orientation-hint,button:disabled) { color: var(--muted); }
#mini-player.is-cinema[data-cinema-theme="constellation"] :is(button[aria-pressed="true"],button[aria-expanded="true"],#cinema-song-play) { color: var(--gold-pale); background: var(--panel-2); border-color: var(--gold); }
#mini-player.is-cinema[data-cinema-theme="constellation"] :is(button:not(:disabled),a):is(:hover,:focus-visible) { color: var(--gold-pale); border-color: var(--gold-pale); }
#mini-player.is-cinema[data-cinema-theme="constellation"] .cinema-pane { scrollbar-color: var(--line) var(--panel); }

.special-theme-choice + p + .special-theme-choice { margin-top: .8rem; }
.special-theme-stars { flex: 0 0 29px; width: 29px; height: 29px; padding: 2px; background: #171B20; border: 1px solid #5F6975; border-radius: 3px; object-fit: contain; }
.theme-star-list { margin: .32rem 0 0; padding: 0; list-style: none; }
.special-theme-group .theme-star-list a { position: relative; display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: .3rem .4rem; color: var(--gold-light); white-space: normal; text-align: left; text-transform: none; text-decoration: none; font: 500 .8rem/1.35 var(--sans); letter-spacing: 0; border-radius: .3rem; }
.special-theme-group .theme-star-list a::after { content: none; }
.theme-star-list a:is(:hover,:focus-visible) .star-song { text-decoration: underline; text-underline-offset: .2em; }
.theme-star-list small { display: block; font: 500 .62rem/1.45 var(--sans); color: var(--muted); letter-spacing: .06em; }
.theme-star-list .star-mark { flex: 0 0 1.35rem; color: var(--muted); text-align: center; font-size: 1.05rem; }
.theme-star-list [data-lit="true"] .star-mark { color: #E4BC78; }
html[data-site-theme="vestnik"] #site-theme-picker .theme-star-list [data-lit="true"] .star-mark,
#mini-player.is-cinema[data-cinema-theme="vestnik"] .theme-star-list [data-lit="true"] .star-mark { color: #76501E; }
html[data-motion="reduced"] .portal-star-map i { animation: none !important; }
html[data-motion="reduced"] .cinema-constellation { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .portal-star-map i { animation: none !important; } .cinema-constellation { transition: none !important; } }
