:root {
    --text: #101b21;
    --muted: #6e797d;
    --green: #16a765;
    --green-dark: #0d8b53;
    --surface: #ffffff;
    --border: #e6ece9;
    --shadow: 0 14px 42px rgba(22, 48, 39, .09);
}

@font-face {
    font-family: "Marcellus";
    src: url("/fonts/Marcellus-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: flex-start;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(circle at 10% 5%, rgba(235,246,225,.95), transparent 26%),
        radial-gradient(circle at 90% 0%, rgba(222,243,246,.9), transparent 30%),
        #f5f8f6;
}

body.chakra-day-sahasrara,
.player.chakra-day-sahasrara {
    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(235, 195, 90, .10),
            rgba(255, 248, 220, .06) 32%,
            rgba(255, 255, 255, 0) 68%
        ),
        #fff !important;
}

button,
a {
    font: inherit;
}

.player {
    width: min(100%, 570px);
    min-height: 100svh;

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

    padding:
        max(14px, env(safe-area-inset-top))
        18px
        max(14px, env(safe-area-inset-bottom));

    background: rgba(255,255,255,.91);

    box-shadow: var(--shadow);
}

.brand {
    position: relative;

    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: 2px 0 14px;
}

.brand-logo {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: linear-gradient(145deg,#f0f3f2,#d9dfdd);

    border: 2px solid #16884d;

    box-shadow:
        inset 0 0 0 5px rgba(255,255,255,.65),
        0 3px 10px rgba(0,0,0,.07);

    color: #164d38;
    font-family: Georgia, serif;
    font-size: 32px;
    font-weight: 700;
}

.brand-center {
    position: absolute;
    left: 50%;

    pointer-events: none;
    transform: translateX(-50%);
}

.share-button {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid rgba(18, 60, 70, .16);
    border-radius: 50%;

    background: rgba(255, 255, 255, .58);
    color: #176773;

    cursor: pointer;
    touch-action: manipulation;

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

.share-button > svg {
    display: block;

    width: 30px;
    height: 30px;

    overflow: visible;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;

    visibility: visible;
    opacity: 1;
    flex: none;
}

.share-button:hover {
    border-color: rgba(18, 60, 70, .28);
    background: rgba(255, 255, 255, .82);
}

.share-button:active {
    transform: scale(.94);
}

.share-button:focus-visible {
    outline: 3px solid rgba(43, 146, 152, .28);
    outline-offset: 3px;
}

.share-notice {
    position: fixed;
    z-index: 30;
    left: 50%;
    bottom: max(22px, env(safe-area-inset-bottom));

    padding: 9px 14px;

    border-radius: 999px;

    background: rgba(18, 60, 70, .94);
    color: #fff;
    box-shadow: 0 8px 24px rgba(18, 60, 70, .18);

    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);

    transition:
        opacity .2s ease,
        transform .2s ease;
}

.share-notice.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.brand-name {
    min-width: 0;
    white-space: nowrap;
    font-family: "Marcellus", Georgia, serif;
    font-size: clamp(38px, 9vw, 50px);
    line-height: 1;
    font-weight: 400;
    letter-spacing: -.5px;
    background: linear-gradient(
        105deg,
        #123c46 0%,
        #123c46 47%,
        #1b6570 48.7%,
        #55aaa8 50%,
        #1b6570 51.3%,
        #123c46 53%,
        #123c46 100%
    );
    background-size: 300% 100%;
    background-position: 100% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: sahajWave 11s linear infinite;
}

@keyframes sahajWave {
    from { background-position: 100% 50%; }
    to { background-position: 0% 50%; }
}

.dedication-divider {
    width: min(94%, 48vh);

    display: flex;
    align-items: center;
    gap: 10px;

    margin: -6px auto 10px;

    color: #174d57;
}

.dedication-line {
    min-width: 0;
    height: 1px;
    flex: 1 1 auto;

    background: currentColor;
    opacity: .25;
}

.dedication-text {
    flex: 0 0 auto;

    color: inherit;

    font-family: "Marcellus", Georgia, serif;
    font-size: clamp(11.5px, 3.6vw, 14px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.cover-wrap {
    width: min(100%, 48vh);
    aspect-ratio: 1 / 1;

    flex: 0 0 auto;

    overflow: hidden;

    border-radius: 18px;

    background: #edf1ef;

    box-shadow:
        0 10px 24px rgba(16,52,38,.12),
        0 2px 5px rgba(16,52,38,.07);
}

.album-cover {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.track-info {
    width: 100%;

    text-align: center;

    padding: 14px 8px 12px;
}

.artist {
    overflow: hidden;

    font-size: clamp(29px, 7vw, 38px);
    line-height: 1.08;
    font-weight: 750;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.title {
    margin-top: 4px;

    overflow: hidden;

    font-size: clamp(24px, 6vw, 34px);
    line-height: 1.14;
    font-weight: 400;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.track-progress {
    width: calc(100% - 16px);

    flex: 0 0 auto;

    padding: 0 0 6px;

    cursor: default;
    pointer-events: none;
    user-select: none;
}

.track-progress-bar {
    width: 100%;
    height: 4px;

    overflow: hidden;

    border-radius: 999px;

    background: rgba(18, 60, 70, .12);
}

.track-progress-fill {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background: linear-gradient(
        90deg,
        var(--player-primary, #16a765),
        var(--player-accent, #0b91d0)
    );

    transition: width .8s linear;
}

.track-progress-fill.is-resetting {
    transition: none;
}

.channels {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 8px;

    padding: 7px;

    border-radius: 17px;

    background: #f1f4f2;

    box-shadow:
        inset 0 0 0 1px rgba(20,55,43,.035),
        0 5px 15px rgba(25,62,48,.07);
}

.channel-btn {
    min-width: 0;

    padding: 11px 5px;

    border: 0;
    border-radius: 12px;

    cursor: pointer;

    color: #151b1f;
    background: #ffffff;

    font-size: clamp(16px, 4.4vw, 21px);
    font-weight: 500;

    box-shadow: 0 2px 7px rgba(24,48,39,.05);

    transition:
        transform .15s ease,
        background .15s ease,
        color .15s ease;
}

.channel-btn:active {
    transform: scale(.97);
}

.channel-btn.active {
    color: white;

    background:
        linear-gradient(
            180deg,
            #27bb70 0%,
            #139d5c 100%
        );

    box-shadow:
        0 7px 16px rgba(21,158,94,.22);
}

.play-area {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 14px 0 13px;
}

.play-button {
    width: 116px;
    height: 116px;

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

    gap: 1px;

    border: 5px solid white;
    border-radius: 50%;

    cursor: pointer;

    color: white;

    background:
        linear-gradient(
            145deg,
            #18b9dc 0%,
            #087fd4 100%
        );

    box-shadow:
        0 11px 24px rgba(0,142,204,.22),
        0 0 0 1px rgba(0,132,185,.05);

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.play-button:active {
    transform: scale(.96);
}

.play-button.playing {
    background:
        linear-gradient(
            145deg,
            #149ed1 0%,
            #076ab6 100%
        );
}

.play-icon {
    width: 43px;
    height: 43px;

    fill: white;
}

.play-button.playing .play-icon path {
    d: path("M19 14H28V50H19ZM36 14H45V50H36Z");
}

#playText {
    font-size: 25px;
    line-height: 1;
    font-weight: 700;
}

.footer {
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 10px;

    margin-top: auto;

    padding: 10px 11px;

    border: 1px solid var(--border);
    border-radius: 17px;

    background: rgba(255,255,255,.95);

    box-shadow: 0 6px 18px rgba(20,50,39,.06);
}

.telegram {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 8px;

    overflow: hidden;

    color: var(--text);

    text-decoration: none;

    font-size: clamp(12px, 3.4vw, 16px);
    white-space: nowrap;
}

.telegram strong {
    font-weight: 600;
}

.telegram-icon {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: white;

    background: linear-gradient(145deg,#25c8a0,#0ea5c6);
}

.telegram-icon svg {
    width: 20px;
    height: 20px;

    fill: white;
}

.donate {
    position: relative;
    flex: 0 0 auto;

    padding: 8px 13px;

    border: 1px solid #b9c5c0;
    border-radius: 13px;

    color: #087b32;

    font-size: clamp(15px, 4vw, 19px);
    font-weight: 600;

    text-decoration: none;

    background: white;
    animation: donate-gentle-pulse 2s ease-in-out infinite;
    will-change: transform, box-shadow;
}

.donate:hover,
.donate:focus-visible {
    animation-play-state: paused;
    box-shadow: 0 0 0 3px rgba(8, 123, 50, .12);
}

@keyframes donate-gentle-pulse {
    0%,
    72%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(8, 123, 50, 0);
    }

    84% {
        transform: scale(1.025);
        box-shadow: 0 0 0 4px rgba(8, 123, 50, .13);
    }

    92% {
        transform: scale(1);
        box-shadow: 0 0 0 1px rgba(8, 123, 50, .06);
    }
}


/* Невысокие телефоны */

@media (max-height: 760px) {

    .player {
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .brand {
        margin-bottom: 9px;
    }

    .brand-logo {
        width: 46px;
        height: 46px;

        font-size: 25px;
    }

    .brand-name {
        font-size: 36px;
    }

    .cover-wrap {
        width: min(92vw, 40vh);
        border-radius: 14px;
    }

    .track-info {
        padding: 9px 6px;
    }

    .artist {
        font-size: 25px;
    }

    .title {
        font-size: 22px;
    }

    .channel-btn {
        padding: 8px 4px;
        font-size: 15px;
    }

    .play-area {
        padding: 8px 0;
    }

    .play-button {
        width: 86px;
        height: 86px;

        border-width: 4px;
    }

    .play-icon {
        width: 31px;
        height: 31px;
    }

    #playText {
        font-size: 18px;
    }

    .footer {
        padding: 7px 9px;
    }

    .telegram-icon {
        width: 30px;
        height: 30px;

        flex-basis: 30px;
    }
}


/* Desktop */

@media (min-width: 700px) {

    body {
        padding: 24px 0;
        align-items: center;
    }

    .player {
        min-height: min(940px, calc(100svh - 48px));

        border-radius: 32px;

        padding-left: 28px;
        padding-right: 28px;
    }
}


/* =========================================================
   SAHAJRADIO PLAYER LAYOUT V2
   Full-width cover + vertically centered Play area
   ========================================================= */

@media (max-width: 699px) {

    body {
        min-height: 100svh;
        overflow: hidden;
    }

    .player {
        width: 100%;
        height: 100svh;
        min-height: 100svh;
        max-height: 100svh;

        padding:
            max(10px, env(safe-area-inset-top))
            0
            max(10px, env(safe-area-inset-bottom));

        overflow: hidden;

        box-shadow: none;
    }

    .brand {
        flex: 0 0 auto;

        width: calc(100% - 36px);

        margin: 0 auto 10px;
    }

    .brand-logo {
        width: 56px;
        height: 56px;

        font-size: 30px;
    }

    .share-button {
        width: 56px;
        height: 56px;
    }

    .brand-name {
        font-size: clamp(35px, 10vw, 45px);
    }


    /* Обложка во всю ширину */

    .cover-wrap {
        width: 100%;
        max-width: none;

        aspect-ratio: 1 / 1;

        flex: 0 1 auto;

        border-radius: 0;

        box-shadow: none;
    }

    .album-cover {
        width: 100%;
        height: 100%;

        object-fit: cover;
    }


    /* Artist / Title */

    .track-info {
        flex: 0 0 auto;

        width: calc(100% - 28px);

        padding: 9px 4px 10px;
    }

    .artist {
        font-size: clamp(25px, 7vw, 34px);
        line-height: 1.05;
    }

    .title {
        margin-top: 3px;

        font-size: clamp(21px, 6vw, 30px);
        line-height: 1.08;
    }


    /* Выбор канала */

    .channels {
        flex: 0 0 auto;

        width: calc(100% - 28px);

        margin: 0 auto;

        gap: 6px;
        padding: 6px;

        border-radius: 16px;
    }

    .channel-btn {
        padding: 10px 3px;

        font-size: clamp(15px, 4.4vw, 20px);

        border-radius: 11px;
    }


    /* Всё свободное пространство получает Play */

    .play-area {
        flex: 1 1 auto;

        width: 100%;

        min-height: 84px;

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

        padding: 5px 0;
    }

    .play-button {
        width: clamp(88px, 27vw, 116px);
        height: clamp(88px, 27vw, 116px);

        flex: 0 0 auto;
    }

    .play-icon {
        width: clamp(30px, 10vw, 43px);
        height: clamp(30px, 10vw, 43px);
    }

    #playText {
        font-size: clamp(18px, 6vw, 25px);
    }


    /* Нижняя панель всегда у нижнего края */

    .footer {
        flex: 0 0 auto;

        width: calc(100% - 28px);

        margin:
            0 auto
            max(2px, env(safe-area-inset-bottom));

        padding: 8px 9px;

        border-radius: 16px;
    }

}


/* Очень низкие экраны */

@media (max-width: 699px) and (max-height: 700px) {

    .brand {
        margin-bottom: 6px;
    }

    .brand-logo {
        width: 54px;
        height: 54px;

        flex-basis: 54px;

        font-size: 29px;
    }

    .share-button {
        width: 54px;
        height: 54px;
    }

    .brand-name {
        font-size: 32.5px;
    }

    .track-info {
        padding-top: 6px;
        padding-bottom: 7px;
    }

    .artist {
        font-size: 23px;
    }

    .title {
        font-size: 20px;
    }

    .channel-btn {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .play-button {
        width: 76px;
        height: 76px;
    }

    .play-icon {
        width: 27px;
        height: 27px;
    }

    #playText {
        font-size: 16px;
    }
}


/* ======================================================
   ADMIN-CONTROLLED PLAYER THEME
   ====================================================== */

:root {
    --player-primary: #16a765;
    --player-accent: #0b91d0;
    --player-background: #ffffff;
}

.player {
    background-color: var(--player-background);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.channel-btn.active {
    background: var(--player-primary);
}

.play-button,
.play-button.playing {
    background: var(--player-accent);
}

.brand-logo.has-image {
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border-color: #16884d;
    box-shadow:
        inset 0 0 0 5px rgba(255,255,255,.65),
        0 3px 10px rgba(0,0,0,.07);
    color: transparent;
}

[hidden] {
    display: none !important;
}


/* ======================================================
   SUPPORT OVERLAY
   ====================================================== */

body.support-open {
    overflow: hidden;
}

.support-overlay {
    position: fixed;
    z-index: 100;
    inset: 0;

    display: grid;
    place-items: center;

    padding:
        max(12px, env(safe-area-inset-top))
        12px
        max(12px, env(safe-area-inset-bottom));

    overflow-y: auto;

    background: rgba(8, 37, 35, .55);
    backdrop-filter: blur(8px);
}

.support-dialog {
    position: relative;

    width: min(100%, 570px);
    max-height: calc(100svh - 24px);

    padding: clamp(22px, 4vw, 32px);
    overflow-y: auto;

    border: 1px solid rgba(23, 103, 115, .16);
    border-radius: 24px;

    background: rgba(255, 255, 255, .97);
    color: var(--text);
    box-shadow: 0 24px 70px rgba(8, 37, 35, .24);
}

.support-dialog:focus {
    outline: none;
}

.support-close {
    position: absolute;
    top: 12px;
    right: 12px;

    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    padding: 0;
    border: 1px solid rgba(23, 103, 115, .16);
    border-radius: 50%;

    background: rgba(255, 255, 255, .8);
    color: #176773;
    cursor: pointer;
}

.support-close svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.support-heading {
    text-align: center;
}

.support-heading h2,
.support-heading p {
    margin: 0;
}

.support-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: rgba(22, 167, 101, .1);
    color: var(--player-primary, #16a765);
    font-family: Georgia, serif;
    font-size: 29px;
    line-height: 1;
}

.support-language {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    padding: 3px;
    border: 1px solid rgba(23, 103, 115, .14);
    border-radius: 999px;
    background: #f6faf8;
}

.support-language button {
    min-width: 35px;
    padding: 5px 7px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.support-language button[aria-pressed="true"] {
    background: var(--player-primary, #16a765);
    color: #fff;
}

.support-heading h2 {
    color: #123c46;
    font-family: "Marcellus", serif;
    font-size: clamp(27px, 5vw, 36px);
    font-weight: 400;
    line-height: 1.08;
}

.support-heading > p {
    max-width: 470px;
    margin: 10px auto 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}

.support-primary-action {
    width: 100%;

    display: grid;
    place-items: center;
    gap: 2px;

    padding: 14px 18px;
    border: 0;
    border-radius: 15px;

    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.support-primary-action {
    margin-top: 20px;
    background: var(--player-primary, #16a765);
    color: #fff;
    box-shadow: 0 9px 24px rgba(22, 167, 101, .18);
}

.support-primary-action small {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    opacity: .82;
}

.support-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;

    margin-top: 18px;
}

.support-content.is-single > :not([hidden]) {
    width: min(100%, 500px);
    margin-right: auto;
    margin-left: auto;
}

.support-content.is-single > .support-qr:not([hidden]) {
    width: min(100%, 250px);
}

.support-details,
.support-qr {
    min-width: 0;
    margin: 0;
    padding: 16px;

    border: 1px solid rgba(23, 103, 115, .14);
    border-radius: 17px;

    background: rgba(232, 243, 233, .42);
}

.support-details h3 {
    margin: 0 0 13px;
    color: #123c46;
    font-size: 17px;
}

.support-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 11px 0;
    border-top: 1px solid rgba(23, 103, 115, .12);
}

.support-detail-row:first-of-type {
    border-top: 0;
}

.support-detail-row > div {
    min-width: 0;
}

.support-detail-row span,
.support-detail-row strong {
    display: block;
}

.support-detail-row span {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
}

.support-detail-row strong {
    overflow-wrap: anywhere;
    color: #123c46;
    font-size: 15px;
    letter-spacing: .025em;
}

.support-copy {
    flex: 0 0 auto;

    padding: 8px 10px;
    border: 1px solid rgba(23, 103, 115, .2);
    border-radius: 10px;

    background: #fff;
    color: #176773;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.support-qr {
    text-align: center;
}

.support-qr img {
    display: block;
    width: min(100%, 210px);
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;

    border-radius: 12px;
    object-fit: contain;
    background: #fff;
}

.support-qr figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.support-thanks {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.support-close:hover,
.support-copy:hover {
    background: rgba(232, 243, 233, .72);
}

.support-close:focus-visible,
.support-copy:focus-visible,
.support-primary-action:focus-visible,
.support-language button:focus-visible {
    outline: 3px solid rgba(43, 146, 152, .3);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .support-overlay {
        place-items: center;
        padding:
            max(12px, env(safe-area-inset-top))
            12px
            max(12px, env(safe-area-inset-bottom));
    }

    .support-dialog {
        width: calc(100vw - 24px);
        max-height: calc(100svh - 24px);
        padding: 64px 16px 20px;
        border-radius: 22px;
    }

    .support-content {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .support-primary-action {
        min-height: 56px;
    }

    .support-detail-row {
        align-items: center;
        flex-direction: row;
    }

    .support-qr img {
        width: min(62vw, 210px);
    }
}

@media (min-width: 540px) {
    .support-content.has-both {
        grid-template-columns: minmax(212px, .85fr) minmax(0, 1.15fr);
    }
}

@media (max-width: 360px) {
    .support-dialog {
        padding-right: 14px;
        padding-left: 14px;
    }

    .support-detail-row strong {
        font-size: 14px;
    }

    .support-copy {
        padding-right: 8px;
        padding-left: 8px;
        white-space: nowrap;
    }
}


/* ======================================================
   CUMULATIVE LISTENER COUNTER
   ====================================================== */

.footer {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    align-items: center;
}

.telegram {
    justify-self: start;
}

.donate {
    justify-self: end;
}

.listener-counter {
    justify-self: center;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    min-width: 58px;

    padding: 6px 8px;

    color: #46514d;

    font-size: clamp(14px, 3.8vw, 18px);
    line-height: 1;

    white-space: nowrap;
}

.listener-counter strong {
    color: var(--text);

    font-size: 1em;
    font-weight: 700;
}

#listenerTotal {
    color: #7b8784;

    font-size: .72em;
    font-weight: 600;
}

.listener-separator {
    color: #a8b1ae;

    font-size: .68em;
    font-weight: 400;
}

.listener-current {
    display: inline-flex;
    align-items: center;
    gap: 3px;

    color: #6d7b77;
}

.listener-current strong {
    color: #596864;
    font-weight: 600;
}

.listener-icon {
    font-size: .72em;
    opacity: .58;
}

.listener-current-icon {
    font-size: .82em;
}


@media (max-width: 410px) {

    .footer {
        width: calc(100% - 18px);
        gap: 4px;
        padding-left: 7px;
        padding-right: 7px;
    }

    .telegram {
        font-size: 11px;
    }

    .telegram-icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }

    .donate {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 14px;
    }

    .listener-counter {
        min-width: 88px;
        padding-left: 3px;
        padding-right: 3px;
        font-size: 13px;
    }
}

/* ======================================================
   PLAYER COVER — SIDE AIR
   ====================================================== */

@media (max-width: 640px) {

    .dedication-divider {
        width: calc(100% - 36px);
    }

    .track-progress {
        width: calc(100% - 36px);
    }

    .cover-wrap {
        width: calc(100% - 36px) !important;
        margin-left: auto !important;
        margin-right: auto !important;

        border-radius: 18px !important;
        overflow: hidden;
    }

    .cover-wrap img,
    .cover {
        width: 100% !important;
        height: 100% !important;

        border-radius: 18px !important;
        object-fit: cover;
    }

    /* чуть крупнее Play */
    #playButton,
    .play-button,
    .play-btn {
        width: 92px !important;
        height: 92px !important;
        min-width: 92px !important;
        min-height: 92px !important;
    }
}

@media (max-height: 700px) {

    .track-progress {
        padding-bottom: 3px;
    }
}



/* ======================================================
   SAHAJRADIO INSTALL LINK
   ====================================================== */

.install-app-row {
    flex: 0 0 auto;

    width: 100%;

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

    box-sizing: border-box;

    padding:
        1px
        8px
        max(
            4px,
            env(safe-area-inset-bottom)
        );

    text-align: center;
}


.install-app-link {
    appearance: none;

    border: 0;
    background: transparent;

    margin: 0;
    padding: 3px 10px;

    color: var(--text, #243b35);

    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.15;

    opacity: .66;

    text-decoration: underline;
    text-underline-offset: 2px;

    cursor: pointer;
}


.install-app-link:hover {
    opacity: 1;
}


.install-help-overlay {
    position: fixed;
    inset: 0;

    z-index: 99999;

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

    padding: 20px;

    box-sizing: border-box;

    background:
        rgba(0, 0, 0, .32);
}


.install-help-card {
    width: min(
        340px,
        calc(100vw - 36px)
    );

    box-sizing: border-box;

    padding: 22px 20px 18px;

    border-radius: 20px;

    background: #ffffff;
    color: #18352e;

    text-align: center;

    box-shadow:
        0 16px 45px
        rgba(0, 0, 0, .18);
}


.install-help-card > strong {
    display: block;

    margin-bottom: 13px;

    font-size: 19px;
}


.install-help-text {
    font-size: 15px;
    line-height: 1.5;
}


.install-share-symbol {
    display: inline-block;
    margin: 0 3px;

    font-size: 18px;
}


.install-help-close {
    width: 100%;

    margin-top: 18px;
    padding: 11px 14px;

    border: 0;
    border-radius: 12px;

    background:
        var(--primary, #16a765);

    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}


@media (max-height: 700px) {

    .install-app-link {
        padding-top: 1px;
        padding-bottom: 1px;

        font-size: 11px;
    }

}


/* ======================================================
   SAHAJRADIO INSTALL HIGHLIGHT V2
   ====================================================== */

.install-app-row {
    padding:
        7px
        16px
        max(
            10px,
            env(safe-area-inset-bottom)
        ) !important;
}


.install-app-link {
    width: auto;
    min-width: 210px;

    padding: 10px 20px !important;

    border: 1px solid rgba(24, 123, 98, .24) !important;
    border-radius: 999px !important;

    background: rgba(24, 123, 98, .09) !important;

    color: var(--primary, #187b62) !important;

    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;

    text-decoration: none !important;

    opacity: 1 !important;

    box-shadow:
        0 3px 12px
        rgba(24, 123, 98, .08);

    animation:
        sahajInstallPulse
        3.4s
        ease-in-out
        infinite;
}


.install-app-link:hover,
.install-app-link:active {
    background: rgba(24, 123, 98, .15) !important;

    transform: scale(1.02);
}


@keyframes sahajInstallPulse {

    0%,
    72%,
    100% {
        transform: scale(1);
        box-shadow:
            0 3px 12px
            rgba(24, 123, 98, .08);
    }

    82% {
        transform: scale(1.025);
        box-shadow:
            0 4px 20px
            rgba(24, 123, 98, .20);
    }

    90% {
        transform: scale(1);
        box-shadow:
            0 3px 12px
            rgba(24, 123, 98, .08);
    }
}


/* Если пользователь отключил анимации в телефоне */
@media (prefers-reduced-motion: reduce) {

    .donate {
        animation: none;
        will-change: auto;
    }

    .install-app-link {
        animation: none !important;
    }

    .brand-name {
        animation: none;
        background-position: 50% 50%;
    }

}


@media (max-height: 700px) {

    .install-app-row {
        padding-top: 4px !important;
        padding-bottom: 5px !important;
    }

    .install-app-link {
        padding: 7px 17px !important;
        font-size: 14px !important;
    }
}
