/* Chapters of the same illustrated station. The homepage keeps its own hero. */
.chapter-hero {
    --chapter-sky:#9edcf6; --chapter-ink:#102f52; --chapter-muted:#244866;
    position:relative; isolation:isolate; display:grid; grid-template-columns:46% minmax(0,54%);
    align-items:center; min-height:clamp(350px,29vw,450px); overflow:hidden;
    margin-top:-92px; padding:106px clamp(21px,4vw,65px) 46px; background:var(--chapter-sky); color:var(--chapter-ink);
}
.chapter-hero__art {position:absolute;z-index:-2;inset:auto 0 0;width:100%;height:auto;mask-image:linear-gradient(transparent,black 14%)}
.chapter-hero::before {content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,transparent 35%,#a2def850 44%,#aee5faed 56%,#aee5fa 100%)}
.chapter-hero::after {content:"";position:absolute;inset:auto 0 -1px;height:clamp(28px,4.5vw,55px);pointer-events:none;z-index:2;background:var(--paper);mask:url('../images/cloud-edge.svg') center bottom/100% 100% no-repeat}
.chapter-hero__copy {grid-column:2;position:relative;text-align:center;justify-self:center;width:min(100%,620px);z-index:1}
.chapter-hero__brand {display:flex;justify-content:center;align-items:baseline;flex-wrap:wrap;gap:5px 10px;color:var(--chapter-ink);margin-bottom:12px}
.chapter-hero__brand strong {font:italic 700 clamp(21px,2.25vw,36px)/1.1 Georgia,serif;letter-spacing:-.035em}
.chapter-hero__brand span {font-size:clamp(12px,1vw,15px);font-weight:700;color:var(--chapter-muted)}
.chapter-hero__brand span::before {content:"·";margin-right:8px;color:#a4214a}
.chapter-hero__kicker {color:#5e2c50;text-transform:uppercase;letter-spacing:.13em;font-size:12px;font-weight:800;margin:14px 0 6px}
.chapter-hero h1 {font:700 clamp(31px,4.25vw,68px)/1.02 Georgia,serif;letter-spacing:-.055em;color:var(--chapter-ink);text-wrap:balance;overflow-wrap:anywhere;margin:0 auto 12px}
.chapter-hero__lead {max-width:48ch;margin:0 auto;color:var(--chapter-muted);font-size:clamp(15px,1.24vw,19px);line-height:1.5;text-wrap:pretty}
.chapter-hero__action {min-height:42px;display:inline-flex;align-items:center;gap:10px;justify-content:center;margin-top:17px;padding:8px 18px;border-radius:999px;color:#fff;background:#a51947;font-size:15px;font-weight:800;line-height:1.2}
.chapter-hero__action:hover {background:#831038;color:#fff}
:root[data-theme="night"] .chapter-hero {--chapter-sky:#0d2446;--chapter-ink:#fff6e9;--chapter-muted:#d9e8f9}
:root[data-theme="night"] .chapter-hero__art {filter:brightness(.65) saturate(.84) contrast(1.11)}
:root[data-theme="night"] .chapter-hero::before {background:linear-gradient(90deg,#07152b29 0%,#07152b12 33%,#0d2850bf 53%,#0c224bf5 100%)}
:root[data-theme="night"] .chapter-hero__kicker,:root[data-theme="night"] .chapter-hero__brand span::before {color:#ffdf95}
:root[data-theme="night"] .chapter-hero__action {background:#ffda8b;color:#24314a}
:root[data-theme="night"] .chapter-hero__action:hover {background:#ffeba9}
.chapter-hero--portrait {--chapter-sky:#eee5d9;--chapter-ink:#31283c;--chapter-muted:#514758;grid-template-columns:47% minmax(0,53%)}
.chapter-hero--portrait::before {background:radial-gradient(ellipse at 16% 56%,#e2cdbc,transparent 68%)}
.chapter-hero--portrait::after {mask:none;height:16px;background:linear-gradient(transparent,var(--paper))}
.chapter-hero--portrait .chapter-hero__photo {grid-column:1;grid-row:1;margin:0;position:relative;max-width:560px;border-radius:9px;overflow:hidden;transform:rotate(-1deg);box-shadow:0 10px 30px #25192b2b;background:#11131c}
.chapter-hero__photo img {display:block;height:auto;width:100%;aspect-ratio:1.65;object-fit:cover;object-position:71% 31%}
.chapter-hero__photo figcaption {color:#fff3ed;background:linear-gradient(transparent,#100d16d9);position:absolute;inset:auto 0 0;padding:20px 10px 9px;font-size:12px}
.chapter-hero--portrait .chapter-hero__copy {grid-row:1}
.chapter-hero--portrait .chapter-hero__action {background:#4a4156}
:root[data-theme="night"] .chapter-hero--portrait {--chapter-sky:#262235}
:root[data-theme="night"] .chapter-hero--portrait::before {background:radial-gradient(ellipse at 16% 55%,#483448,transparent 68%)}
.chapter-hero + section,.chapter-hero + .memory-article {margin-top:clamp(24px,3.5vw,50px)}
.chapter-section-heading {margin:0 auto 20px;text-align:center}
.chapter-section-heading > span {display:block;font-size:13px;letter-spacing:.12em;text-transform:uppercase;font-weight:750;color:var(--muted)}
.chapter-section-heading h2 {margin:7px 0 0;font:700 clamp(27px,3.3vw,45px)/1.12 Georgia,serif;letter-spacing:-.035em;text-wrap:balance}
.programme-week__details {margin-top:clamp(35px,6vw,86px)}
.show-notes {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px;margin-bottom:25px}
.show-note {
    --note-accent:#3d6837;--note-paper:#eaf2d8;--note-ink:#173249;--note-muted:#37536a;--note-watermark:#75a956;
    border:1px solid color-mix(in srgb,var(--note-accent) 23%,transparent);border-radius:18px 18px 26px 18px;min-height:0;
    position:relative;isolation:isolate;overflow:hidden;scroll-margin:24px;padding:clamp(18px,2.5vw,34px);
    background:radial-gradient(ellipse at top right,var(--note-paper),var(--paper) 85%);box-shadow:0 7px 17px #40314a0d;color:var(--note-ink);
}
.show-note--yellow {--note-paper:#fff0c8;--note-accent:#754606;--note-watermark:#efab37}
.show-note--blue {--note-paper:#cfebff;--note-accent:#214f89;--note-watermark:#6aaee1}
.show-note--pink {--note-paper:#fdd9e6;--note-accent:#982047;--note-watermark:#ee76a0}
:root[data-theme="night"] .show-note {--note-paper:#31433b;--note-accent:#d5edac;--note-ink:#fff6ef;--note-muted:#e6e4f1}
:root[data-theme="night"] .show-note--yellow {--note-paper:#51472d;--note-accent:#ffe5a2}
:root[data-theme="night"] .show-note--blue {--note-paper:#293e59;--note-accent:#bde6ff}
:root[data-theme="night"] .show-note--pink {--note-paper:#4a2b45;--note-accent:#ffd0e1}
.show-note__schedule {display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:16px;font-weight:750;color:var(--note-accent)}
.show-note__schedule time {font:800 clamp(26px,3vw,44px)/1 Georgia,serif;letter-spacing:-.05em}
.show-note__mark {position:absolute;z-index:-1;inset:5px 13px auto auto;font:700 clamp(92px,11vw,165px)/1 Georgia,serif;transform:rotate(12deg);color:var(--note-watermark);opacity:.19}
.show-note h3 {font:700 clamp(26px,3vw,44px)/1.03 Georgia,serif;letter-spacing:-.042em;margin:17px 0 5px;color:var(--note-ink)}
.show-note__host {font-size:17px;font-weight:750;color:var(--note-accent);margin:0 0 12px}
.show-note__description {font-size:clamp(16px,1.3vw,19px);line-height:1.6;max-width:52ch;color:var(--note-muted);margin:0}
.team-rail--grid {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(10px,1.6vw,25px);padding:8px 0;overflow:visible;scroll-snap-type:none}
.team-rail--grid .team-card {margin:0;min-width:0}
.team-portraits__hint {margin:12px 0 0;text-align:center;color:var(--muted);font-size:14px}
.station-team-page .team-rail--grid {grid-template-columns:repeat(3,minmax(0,1fr));max-width:890px;margin-inline:auto;gap:23px 35px}
.station-team-page .team-card__image {max-width:212px;margin-inline:auto;border-width:0;box-shadow:none}
.station-team-page .team-card figcaption {font:700 clamp(17px,2vw,27px)/1.2 Georgia,serif;text-align:center}
.team-memory-feature {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);align-items:center;gap:clamp(16px,3vw,37px);margin-block:clamp(30px,5vw,68px);background:#eee3d9;padding:clamp(14px,2.7vw,33px);border-radius:16px}
:root[data-theme="night"] .team-memory-feature {background:#30293c}
.team-memory-feature img {width:100%;height:auto;aspect-ratio:1.6;object-fit:cover;object-position:50% 35%;border-radius:9px}
.team-memory-feature h2 {font:700 clamp(24px,3vw,43px)/1.11 Georgia,serif;margin:5px 0 12px}
.team-memory-feature p {color:var(--muted);font-size:clamp(15px,1.4vw,18px);line-height:1.55;margin:0}
.community-section#chat-room,.community-section#host-application,#history-filters,#pavel-story,#support-title,.programme-week,.station-team-page {scroll-margin-top:24px}
.community-panel p,.privacy-content li,.rules-content li,.content-empty p {font-size:clamp(15px,1.2vw,18px);line-height:1.65}
.history-card__body h2,.artist-card strong {font-size:clamp(18px,1.45vw,24px)}
.header-join {flex:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:37px;padding:6px 11px;border:1px solid #ffebbf;border-radius:999px;background:#ffe1a0;color:#352740;font-size:13px;line-height:1.18;font-weight:800;white-space:nowrap}
.header-join svg {width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.header-join:hover,.header-join.is-active {background:#fff1cb;color:#762448}
.header-join__short {display:none}
:root[data-theme="night"] .site-header .support-nav {color:#153452;border-color:#fff}
.social-badge.social-badge--vk {background:#1769c8}
.social-badge.social-badge--telegram {background:#006eaa}
.social-badge.social-badge--instagram {background:radial-gradient(circle at 12% 100%,#b35c00,transparent 70%),linear-gradient(135deg,#7b38b8,#af2764 65%,#a5264e)}
.social-badge.social-badge--viber {background:#6948ac}
.header-socials a.social-badge {color:white;border-color:#ffffff6b;flex:none}
.header-socials a.social-badge:hover {filter:brightness(1.15);color:white}
.station-footer {display:block;position:relative;isolation:isolate;margin-top:clamp(40px,6vw,76px);padding:clamp(31px,4vw,56px) clamp(16px,4vw,56px) 20px;color:#163b57;background:linear-gradient(155deg,#d9eff9,#f9eef3 82%);border-top:1px solid #a9cbdd}
.station-footer::before {content:"";height:clamp(25px,3vw,47px);mask:url('../images/cloud-edge.svg') center bottom/100% 100% no-repeat;background:var(--paper);transform:scaleY(-1);position:absolute;inset:0 0 auto;pointer-events:none}
:root[data-theme="night"] .station-footer {color:#edf6ff;background:linear-gradient(155deg,#26364e,#331f35 88%);border-color:#55647c}
.station-footer__inner {max-width:1360px;margin:auto;display:grid;grid-template-columns:minmax(132px,1fr) repeat(3,minmax(0,1fr));gap:22px clamp(15px,2.1vw,36px)}
.station-footer__brand img {display:block;width:clamp(100px,11vw,155px);height:auto}
.station-footer__brand p {font-size:16px;line-height:1.45;font-weight:750;margin:8px 0 0}
.station-footer .station-footer__column {display:flex;flex-direction:column;align-items:flex-start;gap:9px;font-size:16px;font-weight:600;overflow-wrap:anywhere}
.station-footer__column strong {font:700 clamp(18px,1.6vw,24px)/1.18 Georgia,serif;margin-bottom:5px}
.station-footer__column > a:hover,.station-footer__bottom a:hover {text-decoration:underline;text-underline-offset:4px}
.station-footer .header-socials {gap:5px;display:flex;flex-wrap:wrap;justify-content:flex-start;margin-bottom:3px}
.station-footer__bottom {grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 18px;padding-top:16px;margin-top:2px;border-top:1px solid #8291a86b;font-size:14px;font-weight:500}
.station-footer__bottom nav {gap:10px 17px;font-size:14px;font-weight:650}
@media(min-width:961px) {
    .radio-player .player-full {position:relative;padding-bottom:48px}
    .radio-player .player-pulse {position:absolute;inset:auto 20px 10px;height:29px;margin:0}
    .radio-player .player-history {min-height:0;flex:1 1 0}
}
@media(min-width:961px) and (max-width:1170px) {
    .site-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:5px 7px;padding:7px 10px}
    .site-header .site-nav {grid-row:1;grid-column:1/-1;justify-content:center}
    .site-header .header-join {grid-row:2;grid-column:1}
    .site-header .header-actions {grid-row:2;grid-column:2;justify-self:end}
    .site-header .header-socials {grid-row:2;grid-column:3;justify-self:end}
    .chapter-hero {margin-top:-110px;padding-top:122px}
    body[data-page="home"] .station-hero {margin-top:-108px;padding-top:132px}
}
@media(min-width:1171px) and (max-width:1510px) {
    .header-join__long{display:none}.header-join__short{display:inline}
    .site-header{gap:6px;padding-inline:10px}.site-header .nav-link{padding-inline:8px}
}
@media(min-width:961px) and (max-height:760px) {
    .radio-player .player-full {padding-bottom:44px}
    .radio-player .player-pulse {height:26px;bottom:8px}
    .radio-player .cover-frame {width:min(100%,25.5dvh)}
    .radio-player .player-history {flex:0 1 auto}
    .radio-player .player-history__list > :nth-child(n+3) {display:none}
}
@media(min-width:961px) and (max-height:610px) {
    .radio-player .player-history__list > :nth-child(n+2) {display:none}
    .radio-player .cover-frame {width:min(100%,24dvh)}
}
@media(max-width:960px) {
    .site-header .header-join {grid-column:1;grid-row:2;justify-self:start;min-height:31px;padding:5px 8px;font-size:12px}
    .site-header .header-socials {grid-column:2/4;grid-row:2;justify-self:end;gap:5px}
    .header-join__long {display:none}.header-join__short {display:inline}
    .chapter-hero {margin-top:-109px;padding-top:122px}
    body[data-page="home"] .station-hero {margin-top:-106px;padding-top:134px}
    .team-rail--grid {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:660px) {
    .chapter-hero {margin-top:0;padding:0 0 31px;display:block;min-height:0}
    .chapter-hero__art {position:relative;display:block;height:auto;aspect-ratio:2.35;object-fit:cover;z-index:-1;object-position:left center;mask-image:linear-gradient(black 83%,transparent)}
    .chapter-hero::before,:root[data-theme="night"] .chapter-hero::before {background:none}
    .chapter-hero__copy {width:min(100%,540px);padding:5px 20px 11px;margin:auto}
    .chapter-hero__brand {margin-bottom:7px}
    .chapter-hero__brand span {font-size:12px}
    .chapter-hero h1 {margin-bottom:9px}
    .chapter-hero__kicker {margin-top:9px}
    .chapter-hero__action {margin-top:13px}
    .chapter-hero--portrait .chapter-hero__photo {margin:13px 22px 9px;transform:none}
    .chapter-hero--portrait .chapter-hero__photo img {aspect-ratio:1.85}
    .show-notes,.team-memory-feature {grid-template-columns:1fr}
    .station-footer__inner {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:380px) {
    .site-header .header-join svg {display:none}
    .site-header .header-socials {gap:4px}
    .team-rail--grid,.station-team-page .team-rail--grid {gap:12px 9px}
}
