:root {
    color-scheme: dark;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #05070b;
    color: #ffffff;
}

body {
    min-height: 100vh;
    background-color: #05070b;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.pwa-shell {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 20px;
}

.pwa-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.pwa-logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
    border-radius: 14px;
}

.pwa-title {
    margin: 0;
    font-size: clamp(24px, 4vw, 40px);
}

.pwa-player {
    overflow: hidden;
    border-radius: 18px;
    background: #000000;
    box-shadow:
        0 18px 60px rgba(0,0,0,.35);
}

.pwa-player video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.pwa-audio-player {
    margin-top: 18px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    background:
        linear-gradient(
            135deg,
            rgba(0,0,0,.82),
            rgba(20,24,34,.78)
        );
    box-shadow:
        0 24px 70px rgba(0,0,0,.45);
    backdrop-filter: blur(14px);
}

.pwa-radio-main {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.pwa-radio-cover {
    width: 180px;
    height: 180px;
    object-fit: contain;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255,255,255,.06);
}

.pwa-radio-content {
    min-width: 0;
}

.pwa-radio-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #d71920;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.pwa-radio-live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,.2);
}

.pwa-radio-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .62;
}

.pwa-radio-station {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
}

.pwa-radio-track {
    margin: 0;
    font-size: clamp(22px, 4vw, 36px);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.pwa-radio-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
}

.pwa-radio-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #080a0f;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(0,0,0,.4);
}

.pwa-radio-play:hover {
    transform: scale(1.04);
}

.pwa-radio-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.pwa-radio-volume input {
    width: 170px;
}

.pwa-radio-state {
    font-size: 13px;
    opacity: .75;
}

.pwa-radio-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pwa-radio-stat {
    padding: 8px 11px;
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    font-size: 13px;
}

.pwa-radio-history {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.pwa-radio-history h3 {
    margin: 0 0 12px;
    font-size: 15px;
}

.pwa-radio-history-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pwa-radio-history-list li {
    padding: 9px 11px;
    border-radius: 10px;
    background: rgba(255,255,255,.045);
    font-size: 13px;
}

@media (max-width: 700px) {
    .pwa-radio-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pwa-radio-cover {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .pwa-radio-controls,
    .pwa-radio-stats {
        justify-content: center;
    }

    .pwa-radio-volume {
        justify-content: center;
    }
}

.pwa-information {
    margin-top: 18px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    line-height: 1.6;
}

.pwa-information h2 {
    margin-top: 0;
}

.pwa-ticker {
    overflow: hidden;
    margin-top: 18px;
    border-radius: 12px;
    background: rgba(255,255,255,.09);
}

.pwa-ticker-track {
    display: inline-block;
    min-width: 100%;
    padding: 12px 0;
    white-space: nowrap;
    animation:
        pwaTicker 25s linear infinite;
}

.pwa-ticker-text {
    display: inline-block;
    padding-left: 100%;
    font-weight: 700;
}

@keyframes pwaTicker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.pwa-vod-section {
    margin-top: 20px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(0,0,0,.58);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
}

.pwa-vod-section h2 {
    margin: 0 0 8px;
}

.pwa-vod-section p {
    margin: 0 0 16px;
    opacity: .78;
}

.pwa-vod-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
}

.pwa-vod-card strong {
    display: block;
    margin-bottom: 4px;
}

.pwa-vod-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 10px;
    background: #ffffff;
    color: #080a0f;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .pwa-vod-card {
        flex-direction: column;
        align-items: stretch;
    }

    .pwa-vod-button {
        width: 100%;
    }
}

/*
 * FULLSCREEN TV
 */

body.pwa-fullscreen-mode {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
}

body.pwa-fullscreen-mode .pwa-shell {
    width: 100%;
    max-width: none;
    height: 100vh;
    margin: 0;
    padding: 0;
}

body.pwa-fullscreen-mode .pwa-header,
body.pwa-fullscreen-mode .pwa-information,
body.pwa-fullscreen-mode .pwa-station-information,
body.pwa-fullscreen-mode .pwa-ticker,
body.pwa-fullscreen-mode .pwa-links,
body.pwa-fullscreen-mode .pwa-vod-section,
body.pwa-fullscreen-mode .pwa-footer {
    display: none !important;
}

body.pwa-fullscreen-mode .pwa-player {
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: #000;
}

body.pwa-fullscreen-mode .pwa-player video {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    object-fit: contain;
    background: #000;
}

@media (orientation: portrait) {
    body.pwa-fullscreen-mode .pwa-player,
    body.pwa-fullscreen-mode .pwa-player video {
        width: 100vw;
        height: 100vh;
    }
}

.pwa-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 18px;
    padding: 14px 0;
    font-size: 13px;
    opacity: .75;
}

.pwa-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pwa-links a {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 640px) {
    .pwa-shell {
        padding: 12px;
    }

    .pwa-header {
        align-items: flex-start;
    }

    .pwa-logo {
        width: 58px;
        height: 58px;
    }
}