:root {
    --white: #ffffff;
    --dark: #12051c;
    --purple: #70104d;
    --purple-light: #a71969;
    --blue: #087fe9;
    --cyan: #05b8ff;
    --orange: #ff8a00;
    --yellow: #ffd500;
    --green: #2de17d;
    --red: #ff3b4f;

    --glass: rgba(21, 8, 53, 0.72);
    --glass-light: rgba(255, 255, 255, 0.11);
    --border: rgba(255, 255, 255, 0.22);

    --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    background: #071d64;
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* Неподвижный фон всей страницы */

.page-background {
    position: fixed;
    z-index: -3;
    inset: 0;

    background-image: url("background.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    transform: scale(1.03);
}

.page-overlay {
    position: fixed;
    z-index: -2;
    inset: 0;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(225, 31, 169, 0.26),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            rgba(4, 24, 100, 0.72),
            rgba(72, 12, 121, 0.68)
        );
}

/* Шапка */

.header {
    position: sticky;
    z-index: 100;
    top: 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(14, 5, 45, 0.76);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header__content {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.brand__logo {
    width: 68px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.24));
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand__text strong {
    font-size: 21px;
    letter-spacing: 0.02em;
}

.brand__text small {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.navigation a {
    position: relative;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
    font-weight: 700;
}

.navigation a::after {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;

    height: 2px;

    content: "";
    background: linear-gradient(90deg, var(--yellow), var(--orange));

    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.navigation a:hover::after {
    transform: scaleX(1);
}

/* Главный экран */

.hero {
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
    padding: 90px 0 110px;
}

.hero__content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    text-align: center;
}

.hero__logo-wrapper {
    min-height: 350px;
}

.hero__logo {
    width: min(100%, 460px);
}
.hero__information {
    max-width: 680px;
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 20px;
    padding: 10px 16px;

    color: #fff8d6;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;

    border: 1px solid rgba(255, 213, 0, 0.38);
    border-radius: 999px;
    background: rgba(255, 180, 0, 0.13);
}

.hero__label::before {
    width: 9px;
    height: 9px;

    content: "";
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 16px var(--yellow);
}

.hero h1 {
    margin: 0;
    font-size: clamp(68px, 9vw, 126px);
    line-height: 0.82;
    letter-spacing: -0.075em;
    text-shadow: 0 12px 35px rgba(0, 0, 0, 0.32);
}

.hero h1 span {
    display: block;
    margin-top: 28px;

    color: var(--yellow);
    font-size: clamp(31px, 4vw, 57px);
    line-height: 1;
    letter-spacing: -0.035em;
    text-transform: uppercase;

    background: linear-gradient(
        180deg,
        #fff36c 0%,
        #ffd500 45%,
        #ff7900 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    filter: drop-shadow(0 5px 0 rgba(82, 10, 61, 0.55));
}

.hero__description {
    max-width: 620px;
    margin: 30px 0 36px;

    color: rgba(255, 255, 255, 0.87);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.55;
}

/* Плеер */

.radio-player {
    max-width: 660px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;

    padding: 22px;

    border: 1px solid var(--border);
    border-radius: 25px;
    background: rgba(20, 7, 54, 0.78);
    box-shadow: var(--shadow);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.radio-player__status {
    display: flex;
    align-items: center;
    gap: 13px;
}

.radio-player__status div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.radio-player__caption {
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.radio-player__status strong {
    overflow: hidden;
    font-size: 16px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.radio-player__indicator {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;

    border: 3px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.radio-player__indicator.is-live {
    border-color: rgba(45, 225, 125, 0.35);
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(45, 225, 125, 0.12),
                0 0 18px rgba(45, 225, 125, 0.9);

    animation: pulse 1.4s infinite;
}

.radio-player__indicator.is-loading {
    border-color: rgba(255, 213, 0, 0.35);
    border-top-color: var(--yellow);
    background: transparent;
    animation: spin 0.8s linear infinite;
}

.radio-player__indicator.is-error {
    border-color: rgba(255, 59, 79, 0.35);
    background: var(--red);
    box-shadow: 0 0 15px rgba(255, 59, 79, 0.7);
}

.radio-player__button {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    padding: 14px 24px;

    color: #481035;
    font-weight: 900;
    cursor: pointer;

    border: 0;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    box-shadow: 0 12px 28px rgba(255, 132, 0, 0.28);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.radio-player__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(255, 132, 0, 0.4);
}

.radio-player__button:active {
    transform: translateY(0);
}

.radio-player__icon {
    font-size: 18px;
}

.volume {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume__icon {
    font-size: 18px;
}

.volume input {
    width: 100%;
    height: 5px;
    cursor: pointer;
    accent-color: var(--yellow);
}

/* Большой логотип */

.hero__logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.hero__logo-glow {
    position: absolute;
    width: 82%;
    aspect-ratio: 1;

    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(240, 31, 158, 0.55),
        rgba(24, 164, 255, 0.18) 48%,
        transparent 72%
    );

    filter: blur(15px);
    animation: glow 5s ease-in-out infinite;
}

.hero__logo {
    position: relative;
    z-index: 1;
    width: min(100%, 530px);

    filter:
        drop-shadow(0 32px 35px rgba(0, 0, 0, 0.34))
        drop-shadow(0 0 30px rgba(223, 21, 146, 0.24));

    animation: float 5s ease-in-out infinite;
}

/* Разделы */

.section {
    padding: 110px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(13, 7, 45, 0.73);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.section__heading {
    max-width: 760px;
    margin-bottom: 45px;
}

.section__heading p,
.listen-section__label {
    margin: 0 0 12px;
    color: var(--yellow);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.section__heading h2,
.listen-section h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 22px;
}

.about-card {
    position: relative;
    min-height: 290px;
    padding: 35px;

    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 25px;
    background: var(--glass-light);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.about-card::after {
    position: absolute;
    right: -80px;
    bottom: -95px;

    width: 210px;
    height: 210px;

    content: "";
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(19, 186, 255, 0.28),
        transparent 70%
    );
}

.about-card--large {
    background:
        linear-gradient(
            135deg,
            rgba(143, 21, 102, 0.72),
            rgba(51, 13, 95, 0.74)
        );
}

.about-card__number {
    display: block;
    margin-bottom: 45px;

    color: rgba(255, 255, 255, 0.2);
    font-size: 70px;
    font-weight: 900;
    line-height: 0.75;
}

.about-card__icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;

    margin-bottom: 40px;

    color: #3d0b40;
    font-size: 28px;
    font-weight: 900;

    border-radius: 18px;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.about-card h3 {
    position: relative;
    z-index: 1;

    margin: 0 0 15px;
    font-size: 24px;
}

.about-card p {
    position: relative;
    z-index: 1;

    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 16px;
    line-height: 1.7;
}

/* Нижний призыв */

.listen-section {
    padding: 85px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(
            120deg,
            rgba(118, 13, 89, 0.9),
            rgba(20, 87, 194, 0.82)
        );
}

.listen-section__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.listen-section p:not(.listen-section__label) {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.listen-section__button {
    flex: 0 0 auto;
    min-height: 58px;
    padding: 15px 27px;

    color: #4f1039;
    font-weight: 900;
    cursor: pointer;

    border: 0;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
}

/* Подвал */

.footer {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 3, 28, 0.92);
}

.footer__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.footer__brand img {
    width: 58px;
    height: 48px;
    object-fit: contain;
}

.footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
}

/* Анимации */

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-18px) rotate(1deg);
    }
}

@keyframes glow {
    0%,
    100% {
        opacity: 0.7;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.07);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Планшеты */

@media (max-width: 950px) {
    .hero {
        padding-top: 65px;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero__information {
        max-width: none;
        text-align: center;
    }

    .hero__description {
        margin-right: auto;
        margin-left: auto;
    }

    .radio-player {
        margin: 0 auto;
        text-align: left;
    }

    .hero__logo-wrapper {
        min-height: 360px;
        order: -1;
    }

    .hero__logo {
        width: min(75vw, 440px);
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-card--large {
        grid-column: 1 / -1;
    }
}

/* Телефоны */

@media (max-width: 720px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .header__content {
        min-height: 70px;
    }

    .brand__logo {
        width: 55px;
        height: 48px;
    }

    .brand__text strong {
        font-size: 18px;
    }

    .brand__text small {
        display: none;
    }

    .navigation {
        gap: 14px;
    }

    .navigation a {
        font-size: 13px;
    }

    .navigation a:nth-child(2) {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 45px 0 75px;
    }

    .hero__logo-wrapper {
        min-height: 280px;
    }

    .hero h1 {
        font-size: clamp(62px, 22vw, 92px);
    }

    .hero h1 span {
        margin-top: 24px;
        font-size: clamp(29px, 9vw, 43px);
    }

    .hero__description {
        font-size: 17px;
    }

    .radio-player {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .radio-player__button {
        width: 100%;
    }

    .volume {
        grid-column: auto;
    }

    .section {
        padding: 75px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card--large {
        grid-column: auto;
    }

    .listen-section__content {
        align-items: flex-start;
        flex-direction: column;
    }

    .listen-section__button {
        width: 100%;
    }

    .footer__content {
        flex-direction: column;
        text-align: center;
    }
}

/* Отключение анимаций при соответствующих настройках устройства */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero__logo,
    .hero__logo-glow,
    .radio-player__indicator {
        animation: none;
    }
}

/* ======================================================
   Города и частоты вещания
====================================================== */

.broadcast-cities {
    padding: 110px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(
            135deg,
            rgba(8, 25, 91, 0.88),
            rgba(73, 13, 112, 0.84)
        );

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.section__description {
    max-width: 680px;
    margin-top: 20px;

    color: rgba(255, 255, 255, 0.76);
    font-size: 18px;
    line-height: 1.6;
}

.regions-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
    align-items: start;
    gap: 25px;
}

.regions-grid__side {
    display: grid;
    gap: 25px;
}

/* Карточка региона */

.region-card {
    padding: 30px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 26px;
    background: rgba(15, 8, 53, 0.7);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.region-card--perm {
    background:
        linear-gradient(
            145deg,
            rgba(107, 13, 86, 0.78),
            rgba(20, 24, 91, 0.78)
        );
}

.region-card__header {
    display: flex;
    align-items: center;
    gap: 17px;

    margin-bottom: 27px;
    padding-bottom: 22px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.region-card__icon {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;

    font-size: 24px;

    border: 1px solid rgba(255, 213, 0, 0.32);
    border-radius: 17px;
    background: rgba(255, 213, 0, 0.13);
}

.region-card__label {
    display: block;
    margin-bottom: 6px;

    color: rgba(255, 255, 255, 0.54);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.region-card h3 {
    margin: 0;
    font-size: clamp(23px, 3vw, 31px);
    line-height: 1.15;
}

/* Список частот */

.frequency-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.regions-grid__side .frequency-list {
    grid-template-columns: 1fr;
}

.frequency-list li {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 15px 17px;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.075);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.frequency-list li:hover {
    border-color: rgba(255, 213, 0, 0.35);
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-2px);
}

.frequency-list__city {
    min-width: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
}

.frequency-list strong {
    flex: 0 0 auto;

    padding: 7px 10px;

    color: #4f1039;
    font-size: 14px;
    white-space: nowrap;

    border-radius: 9px;
    background: linear-gradient(
        135deg,
        var(--yellow),
        var(--orange)
    );
}


/* Адаптация раздела */

@media (max-width: 950px) {
    .regions-grid {
        grid-template-columns: 1fr;
    }

    .regions-grid__side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .broadcast-cities {
        padding: 75px 0;
    }

    .regions-grid__side,
    .frequency-list {
        grid-template-columns: 1fr;
    }

    .region-card {
        padding: 22px;
        border-radius: 21px;
    }

    .region-card__header {
        align-items: flex-start;
    }

    .region-card__icon {
        width: 48px;
        height: 48px;
    }

    .frequency-list li {
        padding: 14px;
    }

    .frequency-list__city {
        font-size: 14px;
    }
}
/* ======================================================
   Запись эфира
====================================================== */

.recording-controls {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;

    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.record-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 20px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;

    border: 1px solid rgba(255, 91, 110, 0.48);
    border-radius: 14px;
    background: rgba(255, 59, 79, 0.17);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.record-button:hover {
    background: rgba(255, 59, 79, 0.28);
    transform: translateY(-2px);
}

.record-button:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.record-button__icon {
    color: #ff3b4f;
    font-size: 20px;
    line-height: 1;
    text-shadow: 0 0 12px rgba(255, 59, 79, 0.9);
}

.record-button.is-recording {
    border-color: #ff3b4f;
    background: linear-gradient(
        135deg,
        #ff3b4f,
        #a80d4c
    );

    box-shadow: 0 10px 28px rgba(255, 59, 79, 0.3);
}

.record-button.is-recording .record-button__icon {
    color: #ffffff;
    font-size: 15px;
}

.recording-info {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.recording-info[hidden],
.recording-error[hidden] {
    display: none;
}

.recording-info__dot {
    width: 10px;
    height: 10px;

    border-radius: 50%;
    background: #ff3b4f;
    box-shadow: 0 0 12px rgba(255, 59, 79, 0.9);

    animation: recordingPulse 1.1s infinite;
}

.recording-info strong {
    min-width: 46px;

    color: #ffffff;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.recording-error {
    flex-basis: 100%;
    margin: 0;
    padding: 11px 14px;

    color: #ffd4d9;
    font-size: 13px;
    line-height: 1.5;

    border: 1px solid rgba(255, 59, 79, 0.35);
    border-radius: 12px;
    background: rgba(255, 59, 79, 0.13);
}

@keyframes recordingPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.75);
    }
}

@media (max-width: 720px) {
    .recording-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .record-button {
        width: 100%;
    }

    .recording-info {
        justify-content: center;
    }
}
/* ======================================================
   Кнопка перехода к истории
====================================================== */

.about-card__button {
    position: relative;
    z-index: 2;

    width: fit-content;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    margin-top: 28px;
    padding: 13px 21px;

    color: #4f1039;
    font-size: 15px;
    font-weight: 900;

    border-radius: 15px;
    background: linear-gradient(
        135deg,
        var(--yellow),
        var(--orange)
    );

    box-shadow: 0 12px 28px rgba(255, 132, 0, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.about-card__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 17px 35px rgba(255, 132, 0, 0.38);
}

/* ======================================================
   Страница истории
====================================================== */

.history-page {
    background: #071d64;
}

.history-hero {
    min-height: 650px;
    display: flex;
    align-items: center;

    padding: 100px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    background:
        radial-gradient(
            circle at 85% 30%,
            rgba(231, 27, 159, 0.34),
            transparent 35%
        ),
        linear-gradient(
            120deg,
            rgba(10, 21, 79, 0.6),
            rgba(92, 10, 104, 0.58)
        );
}

.history-hero__content {
    position: relative;
}

.history-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 45px;

    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 700;

    transition: color 0.2s ease;
}

.history-back:hover {
    color: var(--yellow);
}

.history-hero__label,
.history-block__label,
.history-heading > p {
    margin: 0 0 15px;

    color: var(--yellow);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.history-hero h1 {
    max-width: 970px;
    margin: 0;

    font-size: clamp(50px, 8vw, 105px);
    line-height: 0.95;
    letter-spacing: -0.06em;

    text-shadow: 0 15px 40px rgba(0, 0, 0, 0.28);
}

.history-hero h1 span {
    display: block;
    margin-top: 12px;

    color: var(--yellow);
    font-size: 0.58em;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.history-hero__description {
    max-width: 730px;
    margin: 30px 0 40px;

    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.6;
}

.history-facts {
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.history-fact {
    padding: 20px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(15, 6, 50, 0.52);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.history-fact strong {
    display: block;
    margin-bottom: 7px;

    color: var(--yellow);
    font-size: 24px;
}

.history-fact span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

/* Секции */

.history-section {
    padding: 105px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(23, 12, 70, 0.68);

    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
}

.history-section--dark {
    background: rgba(8, 6, 37, 0.82);
}

.history-block {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 50px;

    padding: 55px;

    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    background:
        linear-gradient(
            135deg,
            rgba(118, 16, 84, 0.72),
            rgba(19, 61, 145, 0.68)
        );

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

.history-block__content {
    position: relative;
    z-index: 2;
}

.history-block h2,
.history-heading h2,
.history-format h2,
.history-anniversary h2 {
    margin: 0 0 25px;

    font-size: clamp(35px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.history-block p,
.history-text p,
.history-format__content > p,
.history-anniversary__content > p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.75;
}

.history-block strong,
.history-text strong,
.history-format strong {
    color: #ffffff;
}

.history-block__accent {
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-block__accent span {
    color: rgba(255, 255, 255, 0.12);
    font-size: clamp(130px, 18vw, 240px);
    font-weight: 900;
    line-height: 0.8;
}

.history-date {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 18px;

    margin-top: 30px;
    padding: 17px 22px;

    border: 1px solid rgba(255, 213, 0, 0.32);
    border-radius: 18px;
    background: rgba(255, 213, 0, 0.1);
}

.history-date__day {
    color: var(--yellow);
    font-size: 43px;
    font-weight: 900;
    line-height: 1;
}

.history-date__text {
    display: flex;
    flex-direction: column;
    gap: 5px;

    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

.history-date__text strong {
    color: #ffffff;
    font-size: 16px;
}

.history-heading {
    max-width: 800px;
    margin-bottom: 30px;
}

.history-text {
    max-width: 920px;
    margin-bottom: 45px;
}

/* Фотографии */

.history-photo {
    margin: 0;

    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 27px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.28);
}

.history-photo img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.history-photo--large img {
    height: auto;
    max-height: 760px;
    object-position: center;
}

.history-photo figcaption {
    padding: 17px 21px;

    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
    line-height: 1.5;
}

/* Музыкальный формат */

.history-format {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
    align-items: center;
    gap: 55px;
}

.format-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.format-tags span {
    padding: 10px 14px;

    color: #fff4c5;
    font-size: 13px;
    font-weight: 700;

    border: 1px solid rgba(255, 213, 0, 0.26);
    border-radius: 999px;
    background: rgba(255, 213, 0, 0.1);
}

/* Программы */

.history-programs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.history-program {
    padding: 32px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.07);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.history-program:hover {
    background: rgba(255, 255, 255, 0.11);
    transform: translateY(-4px);
}

.history-program__icon {
    width: 57px;
    height: 57px;
    display: grid;
    place-items: center;

    margin-bottom: 25px;

    font-size: 26px;

    border-radius: 17px;
    background: linear-gradient(
        135deg,
        var(--yellow),
        var(--orange)
    );
}

.history-program h3 {
    margin: 0 0 14px;
    font-size: 23px;
}

.history-program p {
    margin: 0;

    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.7;
}

/* Юбилей */

.history-anniversary {
    display: grid;
    grid-template-columns: minmax(390px, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 55px;
}

.history-anniversary h2 {
    color: var(--yellow);
    font-size: clamp(65px, 9vw, 115px);
    line-height: 0.8;
}

.history-anniversary h2 span {
    display: block;
    margin-top: 18px;

    color: #ffffff;
    font-size: 0.48em;
    text-transform: uppercase;
    letter-spacing: 0;
}

.history-primary-button {
    width: fit-content;
    min-height: 57px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin-top: 20px;
    padding: 14px 25px;

    color: #4f1039;
    font-weight: 900;

    border-radius: 16px;
    background: linear-gradient(
        135deg,
        var(--yellow),
        var(--orange)
    );

    box-shadow: 0 14px 35px rgba(255, 132, 0, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.history-primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(255, 132, 0, 0.38);
}

/* Благодарность */

.history-thanks {
    padding: 100px 0;

    text-align: center;

    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(
            circle at center,
            rgba(222, 28, 158, 0.35),
            transparent 48%
        ),
        rgba(19, 9, 57, 0.8);
}

.history-thanks__content {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.history-thanks img {
    width: min(300px, 70vw);
    margin-bottom: 25px;

    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.3));
}

.history-thanks p {
    margin: 0 0 13px;

    color: var(--yellow);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.history-thanks h2 {
    margin: 0 0 30px;

    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.history-thanks a {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 23px;

    color: #ffffff;
    font-weight: 800;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);

    transition: background 0.2s ease;
}

.history-thanks a:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Адаптация страницы истории */

@media (max-width: 950px) {
    .history-block {
        grid-template-columns: 1fr;
    }

    .history-block__accent {
        position: absolute;
        right: 30px;
        bottom: 20px;
    }

    .history-block__accent span {
        font-size: 150px;
    }

    .history-format,
    .history-anniversary {
        grid-template-columns: 1fr;
    }

    .history-format .history-photo {
        order: -1;
    }
}

@media (max-width: 720px) {
    .history-hero {
        min-height: auto;
        padding: 65px 0 75px;
    }

    .history-back {
        margin-bottom: 35px;
    }

    .history-facts {
        grid-template-columns: 1fr;
    }

    .history-section {
        padding: 75px 0;
    }

    .history-block {
        padding: 28px 23px;
        border-radius: 22px;
    }

    .history-block__accent {
        display: none;
    }

    .history-block p,
    .history-text p,
    .history-format__content > p,
    .history-anniversary__content > p {
        font-size: 16px;
    }

    .history-date {
        width: 100%;
        align-items: flex-start;
    }

    .history-photo {
        border-radius: 20px;
    }

    .history-photo img {
        height: auto;
        max-height: none;
    }

    .history-programs {
        grid-template-columns: 1fr;
    }

    .history-program {
        padding: 25px;
    }

    .history-primary-button {
        width: 100%;
    }

    .history-thanks {
        padding: 75px 0;
    }

    .about-card__button {
        width: 100%;
    }
}
/* ======================================================
   Страница истории поверх главной страницы
====================================================== */

.history-overlay {
    position: fixed;
    z-index: 1000;
    inset: 0;

    width: 100%;
    height: 100%;

    background: #071d64;
}

.history-overlay[hidden] {
    display: none;
}

.history-overlay__frame {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
    background: #071d64;
}

.history-overlay__close {
    position: fixed;
    z-index: 1002;
    top: 14px;
    right: 18px;

    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;

    padding: 0;

    color: #ffffff;
    font-size: 35px;
    line-height: 1;
    cursor: pointer;

    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(45, 8, 61, 0.84);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.history-overlay__close:hover {
    color: #4f1039;
    background: linear-gradient(
        135deg,
        var(--yellow),
        var(--orange)
    );

    transform: scale(1.07);
}

.history-overlay__close:active {
    transform: scale(0.96);
}

/*
 * Блокируем прокрутку главной страницы,
 * пока открыта история.
 */
body.history-is-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .history-overlay__close {
        top: 10px;
        right: 10px;

        width: 44px;
        height: 44px;

        font-size: 30px;
    }
}
/* ======================================================
   Единый плеер в шапке
====================================================== */

:root {
    --site-header-height: 92px;
}

.header {
    z-index: 1200;
}

.header__content {
    min-height: 92px;
    display: grid;
    grid-template-columns:
        minmax(150px, auto)
        minmax(530px, 680px)
        minmax(170px, auto);

    align-items: center;
    gap: 22px;
}

.header-player {
    position: relative;

    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 9px 12px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(16, 7, 48, 0.68);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-player__status {
    min-width: 145px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-player__status strong {
    max-width: 130px;
    overflow: hidden;

    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Кнопка воспроизведения */

.header-player .header-player__play {
    min-width: 108px;
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 9px 14px;

    color: #481035;
    font-size: 13px;
    font-weight: 900;

    border-radius: 13px;
}

/* Громкость */

.header-player__volume {
    display: flex;
    align-items: center;
    gap: 7px;
}

.header-player__volume span {
    font-size: 16px;
}

.header-player__volume input {
    width: 80px;
    cursor: pointer;
    accent-color: var(--yellow);
}

/* Кнопка записи */

.header-player .header-player__record {
    min-width: 105px;
    min-height: 43px;

    padding: 9px 13px;
    border-radius: 13px;
}

.header-player .header-player__record.is-recording {
    background: linear-gradient(
        135deg,
        #ff3b4f,
        #a80d4c
    );
}

.header-player__recording-info {
    position: absolute;
    z-index: 20;
    top: calc(100% + 9px);
    left: 50%;

    padding: 9px 14px;

    white-space: nowrap;

    border: 1px solid rgba(255, 59, 79, 0.4);
    border-radius: 12px;
    background: rgba(45, 6, 35, 0.94);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);

    transform: translateX(-50%);
}

.header-player__error {
    position: absolute;
    z-index: 20;
    top: calc(100% + 9px);
    left: 0;

    width: 100%;
    margin: 0;

    background: rgba(77, 8, 31, 0.96);
}

/* Плеер скрыт визуально, но продолжает работать */

.header-player audio {
    display: none;
}

/* Высота главного экрана с учётом новой шапки */

.hero {
    min-height: calc(100vh - var(--site-header-height));
}

/* ======================================================
   История открывается ниже общей шапки
====================================================== */

.history-overlay {
    top: var(--site-header-height);
    right: 0;
    bottom: 0;
    left: 0;

    width: 100%;
    height: auto;
}

.history-overlay__close {
    top: calc(var(--site-header-height) + 13px);
}

/*
 * Внутренняя шапка history.html скрывается.
 * Вместо неё используется общая шапка с плеером.
 */

.history-embedded .header {
    display: none;
}

/* ======================================================
   Планшеты
====================================================== */

@media (max-width: 1080px) {
    .header__content {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand navigation"
            "player player";

        gap: 8px 20px;
        padding: 8px 0 10px;
    }

    .brand {
        grid-area: brand;
    }

    .header-player {
        grid-area: player;
        width: 100%;
    }

    .navigation {
        grid-area: navigation;
    }
}

/* ======================================================
   Телефоны
====================================================== */

@media (max-width: 720px) {
    .header__content {
        grid-template-columns: 1fr auto;
        gap: 7px 12px;
    }

    .header-player {
        gap: 8px;
        padding: 7px 9px;
    }

    .header-player__status {
        display: none;
    }

    .header-player .header-player__play,
    .header-player .header-player__record {
        min-width: 45px;
        width: 45px;
        min-height: 42px;
        padding: 8px;
    }

    .header-player__play #playButtonText,
    .header-player__record #recordButtonText {
        display: none;
    }

    .header-player__volume input {
        width: min(25vw, 105px);
    }

    .navigation {
        gap: 13px;
    }

    .navigation a {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .brand__logo {
        width: 48px;
        height: 42px;
    }

    .brand__text strong {
        font-size: 16px;
    }

    .header-player__volume input {
        width: 80px;
    }

    .header-player__volume span {
        display: none;
    }
}

/* Центрирование текста на главной странице */

.hero__information {
    width: 100%;
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;

    display: flex;
    align-items: center;
    flex-direction: column;

    text-align: center;
}

.hero__information h1 {
    width: 100%;
    text-align: center;
}

.hero__information h1 span {
    width: 100%;
    text-align: center;
}

.hero__label {
    margin-right: auto;
    margin-left: auto;
}

.hero__description {
    max-width: 650px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

/* Скрываем надписи слева от кнопки плеера */

.header-player__status {
    display: none !important;
}

.header-player {
    justify-content: center;
}

/* ======================================================
   Компактная шапка и узкий плеер
====================================================== */

.header__content {
    min-height: 70px;
    grid-template-columns: minmax(135px, 1fr) auto minmax(170px, 1fr);
    gap: 14px;
    padding: 5px 0;
}

/* Уменьшаем логотип */

.brand {
    gap: 9px;
}

.brand__logo {
    width: 53px;
    height: 46px;
}

.brand__text strong {
    font-size: 18px;
}

.brand__text small {
    margin-top: 3px;
    font-size: 10px;
}

/* Плеер занимает ширину только своих элементов */

.header-player {
    width: fit-content;
    min-width: 0;
    justify-self: center;
    justify-content: center;
    gap: 7px;

    padding: 5px 7px;

    border-radius: 14px;
}

/* Надписи слева от кнопки остаются скрытыми */

.header-player__status {
    display: none !important;
}

/* Компактная кнопка воспроизведения */

.header-player .header-player__play {
    min-width: 105px;
    min-height: 38px;
    padding: 7px 11px;

    font-size: 12px;
    border-radius: 11px;
}

/* Компактная громкость */

.header-player__volume {
    gap: 5px;
}

.header-player__volume span {
    font-size: 14px;
}

.header-player__volume input {
    width: 65px;
}

/* Компактная кнопка записи */

.header-player .header-player__record {
    min-width: 88px;
    min-height: 38px;
    padding: 7px 10px;

    font-size: 12px;
    border-radius: 11px;
}

/* Меню справа */

.navigation {
    justify-self: end;
    gap: 17px;
}

.navigation a {
    font-size: 13px;
}

@media (max-width: 1080px) {
    .header__content {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "brand player navigation";
        gap: 12px;
        padding: 5px 0;
    }

    .brand {
        grid-area: brand;
    }

    .header-player {
        grid-area: player;
        width: fit-content;
        max-width: 100%;
        justify-self: center;
    }

    .navigation {
        grid-area: navigation;
    }

    .brand__text small {
        display: none;
    }
}

@media (max-width: 780px) {
    .header__content {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand navigation"
            "player player";

        gap: 4px 10px;
        padding: 5px 0 7px;
    }

    .header-player {
        width: fit-content;
        max-width: 100%;
        padding: 4px 6px;
    }

    .header-player .header-player__play {
        width: auto;
        min-width: 105px;
        min-height: 36px;
    }

    .header-player .header-player__record {
        width: auto;
        min-width: 40px;
        min-height: 36px;
    }

    .header-player__volume input {
        width: 70px;
    }
}

/* Подсветка основного плеера в шапке */

.header-player__play.player-attention {
    animation: playerAttention 0.6s ease-in-out 3;
}

@keyframes playerAttention {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 28px rgba(255, 132, 0, 0.3);
    }

    50% {
        transform: scale(1.08);
        box-shadow:
            0 0 0 8px rgba(255, 213, 0, 0.14),
            0 14px 36px rgba(255, 132, 0, 0.55);
    }
}

/* ======================================================
   Выбор онлайн-радиостанции
====================================================== */

.station-selector {
    position: relative;
    flex: 0 0 auto;
}

/* Основная кнопка выбранной станции */

.station-selector__button {
    min-width: 175px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 4px 9px 4px 5px;

    color: #ffffff;
    cursor: pointer;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.09);

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.station-selector__button:hover,
.station-selector__button[aria-expanded="true"] {
    border-color: rgba(255, 213, 0, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.station-selector__button img {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;

    object-fit: contain;

    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
}

.station-selector__name {
    min-width: 0;
    flex: 1;

    overflow: hidden;

    font-size: 12px;
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.station-selector__note {
    display: none;
    color: var(--yellow);
    font-size: 17px;
    font-weight: 900;
}

.station-selector__arrow {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;

    transition: transform 0.2s ease;
}

.station-selector__button[aria-expanded="true"]
.station-selector__arrow {
    transform: rotate(180deg);
}

/* Анимация выбранной станции во время воспроизведения */

.station-selector__button.is-playing {
    border-color: rgba(255, 213, 0, 0.52);

    animation: selectedStationPlaying 2s ease-in-out infinite;
}

.station-selector__button.is-playing
.station-selector__note {
    display: inline-block;

    animation: selectedStationNote 0.85s ease-in-out infinite alternate;
}

.station-selector__button.is-playing img {
    box-shadow: 0 0 12px rgba(255, 213, 0, 0.4);
}

@keyframes selectedStationPlaying {
    0%,
    100% {
        transform: scale(1);

        box-shadow:
            0 0 0 0 rgba(255, 213, 0, 0),
            0 6px 16px rgba(0, 0, 0, 0.16);
    }

    50% {
        transform: scale(1.018);

        box-shadow:
            0 0 0 4px rgba(255, 213, 0, 0.07),
            0 8px 20px rgba(255, 132, 0, 0.18);
    }
}

@keyframes selectedStationNote {
    from {
        opacity: 0.55;
        transform: translateY(2px) rotate(-6deg);
    }

    to {
        opacity: 1;
        transform: translateY(-2px) rotate(6deg);
    }
}

/* Выпадающий список */

.station-selector__menu {
    position: absolute;
    z-index: 1500;
    top: calc(100% + 12px);
    left: 50%;

    width: min(340px, calc(100vw - 28px));
    max-height: min(570px, calc(100vh - 130px));
    overflow-x: hidden;
    overflow-y: auto;

    padding: 9px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    background: rgba(20, 5, 45, 0.97);
    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.48);

    transform: translateX(-50%);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    scrollbar-width: thin;
    scrollbar-color:
        rgba(255, 213, 0, 0.65)
        rgba(255, 255, 255, 0.08);
}

.station-selector__menu[hidden] {
    display: none;
}

.station-selector__menu::-webkit-scrollbar {
    width: 7px;
}

.station-selector__menu::-webkit-scrollbar-track {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
}

.station-selector__menu::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: linear-gradient(
        var(--yellow),
        var(--orange)
    );
}

/* Станция в списке */

.station-option {
    position: relative;

    width: 100%;
    min-height: 61px;
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 0 0 6px;
    padding: 8px 10px;

    color: #ffffff;
    text-align: left;
    cursor: pointer;

    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.station-option:last-child {
    margin-bottom: 0;
}

.station-option:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(2px);
}

.station-option img {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;

    object-fit: contain;

    border-radius: 11px;
    background: rgba(255, 255, 255, 0.96);
}

.station-option__content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.station-option__content strong {
    overflow: hidden;

    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.station-option__content small {
    color: rgba(255, 255, 255, 0.53);
    font-size: 11px;
}

.station-option__active {
    display: none;

    padding: 5px 7px;

    color: #51103a;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;

    border-radius: 7px;
    background: linear-gradient(
        135deg,
        var(--yellow),
        var(--orange)
    );
}

/* Выделение выбранной станции */

.station-option.is-selected {
    border-color: rgba(255, 213, 0, 0.48);

    background:
        linear-gradient(
            120deg,
            rgba(157, 20, 105, 0.65),
            rgba(255, 153, 0, 0.13)
        );

    box-shadow: inset 3px 0 0 var(--yellow);
}

.station-option.is-selected img {
    box-shadow:
        0 0 0 2px rgba(255, 213, 0, 0.65),
        0 0 16px rgba(255, 213, 0, 0.24);
}

.station-option.is-selected
.station-option__content strong {
    color: var(--yellow);
}

.station-option.is-selected
.station-option__active {
    display: inline-flex;
}

/* Планшеты */

@media (max-width: 1080px) {
    .station-selector__button {
        min-width: 165px;
    }
}

/* Телефоны */

@media (max-width: 720px) {
    .station-selector__button {
        width: 46px;
        min-width: 46px;
        height: 38px;

        padding: 3px;
        justify-content: center;
    }

    .station-selector__button img {
        width: 31px;
        height: 31px;
    }

    .station-selector__name,
    .station-selector__arrow {
        display: none;
    }

    .station-selector__note {
        position: absolute;
        top: -5px;
        right: -5px;

        width: 17px;
        height: 17px;
        place-items: center;

        font-size: 11px;

        border-radius: 50%;
        background: #70104d;
    }

    .station-selector__button.is-playing
    .station-selector__note {
        display: grid;
    }

    .station-selector__menu {
        position: fixed;
        top: var(--site-header-height);
        right: 10px;
        left: 10px;

        width: auto;
        max-height: calc(
            100vh - var(--site-header-height) - 15px
        );

        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .station-selector__button.is-playing,
    .station-selector__button.is-playing
    .station-selector__note {
        animation: none;
    }
}

/* ======================================================
   Количество слушателей онлайн-станции
====================================================== */

.listeners-counter {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 6px 10px;

    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    white-space: nowrap;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.07);

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.listeners-counter__indicator {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

/* Данные успешно получены */

.listeners-counter.is-loaded {
    border-color: rgba(45, 225, 125, 0.28);
    background: rgba(45, 225, 125, 0.08);
}

.listeners-counter.is-loaded
.listeners-counter__indicator {
    background: #2de17d;
    box-shadow: 0 0 9px rgba(45, 225, 125, 0.8);
}

/* Загрузка информации */

.listeners-counter.is-loading
.listeners-counter__indicator {
    border: 2px solid rgba(255, 213, 0, 0.25);
    border-top-color: #ffd500;
    background: transparent;

    animation: listenersLoading 0.8s linear infinite;
}

/* Ошибка загрузки */

.listeners-counter.is-error {
    opacity: 0.65;
}

.listeners-counter.is-error
.listeners-counter__indicator {
    background: #ff8a00;
}

.listeners-counter strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

@keyframes listenersLoading {
    to {
        transform: rotate(360deg);
    }
}

/* Компактный вид на планшете */

@media (max-width: 1080px) {
    .listeners-counter {
        min-height: 36px;
        padding: 5px 8px;
    }

    .listeners-counter__label {
        display: none;
    }
}

/* Компактный вид на телефоне */

@media (max-width: 720px) {
    .listeners-counter {
        min-width: 42px;
        min-height: 36px;
        gap: 5px;
        padding: 5px 7px;
    }

    .listeners-counter strong {
        font-size: 12px;
    }
}

/* ======================================================
   Мини-игра «Змейка»
====================================================== */

.snake-game-section {
    padding: 95px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(5, 184, 255, 0.2),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(231, 27, 159, 0.22),
            transparent 35%
        ),
        rgba(10, 6, 39, 0.82);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.snake-game-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;

    margin-bottom: 35px;
}

.snake-game-heading__label {
    margin: 0 0 12px;

    color: var(--yellow);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.snake-game-heading h2 {
    margin: 0;

    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.snake-game-heading__description {
    max-width: 650px;
    margin: 17px 0 0;

    color: rgba(255, 255, 255, 0.7);
    font-size: 17px;
    line-height: 1.6;
}

/* Счёт */

.snake-game-score {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
}

.snake-game-score div {
    min-width: 93px;
    padding: 12px 16px;

    text-align: center;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
}

.snake-game-score span {
    display: block;
    margin-bottom: 4px;

    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.snake-game-score strong {
    color: var(--yellow);
    font-size: 24px;
    font-variant-numeric: tabular-nums;
}

/* Основная карточка */

.snake-game {
    max-width: 900px;
    margin: 0 auto;
    padding: 18px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    background: rgba(13, 5, 42, 0.8);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.snake-game__screen {
    position: relative;

    overflow: hidden;
    border: 1px solid rgba(5, 184, 255, 0.28);
    border-radius: 19px;
    background: #080e2b;
}

#snakeCanvas {
    width: 100%;
    height: auto;
    display: block;

    outline: none;
    touch-action: none;
}

#snakeCanvas:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(255, 213, 0, 0.55);
}

/* Сообщение поверх игры */

.snake-game__message {
    position: absolute;
    z-index: 3;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    padding: 25px;
    text-align: center;

    background: rgba(5, 8, 34, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.snake-game__message.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.snake-game__message strong {
    margin-bottom: 8px;
    font-size: clamp(23px, 4vw, 38px);
}

.snake-game__message p {
    margin: 0;

    color: rgba(255, 255, 255, 0.67);
    font-size: 14px;
}

.snake-game__crystal {
    margin-bottom: 15px;

    color: #52e9ff;
    font-size: 55px;
    line-height: 1;

    text-shadow:
        0 0 12px rgba(82, 233, 255, 0.9),
        0 0 30px rgba(82, 233, 255, 0.55);

    animation: snakeCrystalFloat 1.8s ease-in-out infinite;
}

/* Нижняя панель */

.snake-game__panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 17px 4px 2px;
}

.snake-game__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.snake-game__button {
    min-height: 42px;
    padding: 9px 15px;

    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        opacity 0.2s ease;
}

.snake-game__button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.snake-game__button--start {
    color: #4f1039;
    border: 0;
    background: linear-gradient(
        135deg,
        var(--yellow),
        var(--orange)
    );
}

.snake-game__button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.snake-game__help {
    margin: 0;

    color: rgba(255, 255, 255, 0.54);
    font-size: 11px;
    text-align: right;
    line-height: 1.5;
}

/* Кнопки управления */

.snake-controls {
    display: none;
    grid-template-columns: repeat(3, 46px);
    grid-template-rows: repeat(2, 46px);
    gap: 5px;
}

.snake-controls__button {
    display: grid;
    place-items: center;

    padding: 0;

    color: #ffffff;
    font-size: 17px;
    cursor: pointer;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);

    touch-action: manipulation;
}

.snake-controls__button:active {
    color: #4f1039;
    background: var(--yellow);
}

.snake-controls__button--up {
    grid-column: 2;
    grid-row: 1;
}

.snake-controls__button--left {
    grid-column: 1;
    grid-row: 2;
}

.snake-controls__button--down {
    grid-column: 2;
    grid-row: 2;
}

.snake-controls__button--right {
    grid-column: 3;
    grid-row: 2;
}

@keyframes snakeCrystalFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-8px) rotate(8deg);
    }
}

/* Планшеты и телефоны */

@media (max-width: 720px) {
    .snake-game-section {
        padding: 70px 0;
    }

    .snake-game-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 23px;
    }

    .snake-game-score {
        width: 100%;
    }

    .snake-game-score div {
        flex: 1;
    }

    .snake-game {
        padding: 10px;
        border-radius: 21px;
    }

    .snake-game__screen {
        border-radius: 14px;
    }

    .snake-game__panel {
        align-items: center;
        flex-direction: column;
    }

    .snake-game__buttons {
        width: 100%;
    }

    .snake-game__button {
        flex: 1;
        padding: 8px 10px;
    }

    .snake-controls {
        display: grid;
    }

    .snake-game__help {
        text-align: center;
    }
}
