:root {
    --bg: #090909;
    --panel: #121212;
    --panel-soft: #171717;
    --line: rgba(255,255,255,.09);
    --text: #f6f6f4;
    --muted: #989898;
    --soft: #c8c8c8;
    --radius: 26px;
    --radius-small: 18px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -10%, #292929 0, #111 28%, #090909 58%);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

button {
    font: inherit;
}

.app {
    width: min(100% - 32px, 920px);
    margin: 0 auto;
    padding:
        max(28px, env(safe-area-inset-top))
        0
        max(40px, env(safe-area-inset-bottom));
}

.header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 12px 0 34px;
}

.brand-mark {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.06);
    font-size: 30px;
}

.eyebrow,
.small-label,
.live-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
}

.header h1 {
    margin: 4px 0 2px;
    font-size: clamp(27px, 5vw, 38px);
    letter-spacing: -.04em;
}

.header p {
    margin: 0;
    color: var(--muted);
}

.player-card,
.library-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(18,18,18,.91);
    box-shadow: 0 22px 70px rgba(0,0,0,.32);
}

.player-card {
    padding: clamp(18px, 4vw, 30px);
}

.player-heading,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.live-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    margin-right: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px rgba(255,255,255,.6);
}

.favorite-current {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 25px;
}

.favorite-current.active {
    background: white;
    color: black;
}

.current-station {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 27px 0 23px;
}

.station-big-icon {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.035));
    border: 1px solid var(--line);
    font-size: 30px;
}

.current-station h2 {
    margin: 4px 0 0;
    font-size: clamp(32px, 7vw, 52px);
    line-height: 1;
    letter-spacing: -.055em;
}

.official-player {
    overflow: hidden;
    min-height: 170px;
    border-radius: 20px;
    background: #000;
}

.official-player iframe {
    display: block;
    width: 100%;
    height: 180px;
    border: 0;
}

.official-note {
    margin: 12px 3px 0;
    color: var(--muted);
    font-size: 12px;
}

.section {
    margin-top: 44px;
}

.section-heading {
    margin-bottom: 17px;
}

.section-heading h2 {
    margin: 4px 0 0;
    font-size: 25px;
    letter-spacing: -.035em;
}

.install-button {
    padding: 10px 16px;
    border: 1px solid white;
    border-radius: 999px;
    background: white;
    color: black;
    cursor: pointer;
    font-weight: 700;
}

.stations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.station-button {
    position: relative;
    min-height: 122px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--panel);
    color: white;
    text-align: left;
    cursor: pointer;
    transition:
        transform .15s ease,
        background .15s ease,
        border-color .15s ease;
}

.station-button:hover {
    transform: translateY(-2px);
    background: #1a1a1a;
    border-color: rgba(255,255,255,.18);
}

.station-button.active {
    background: white;
    color: #080808;
    border-color: white;
}

.station-icon {
    display: block;
    margin-bottom: 25px;
    font-size: 22px;
}

.station-name {
    display: block;
    font-weight: 750;
    font-size: 16px;
    letter-spacing: -.02em;
}

.station-fav {
    position: absolute;
    top: 13px;
    right: 14px;
    opacity: .55;
    font-size: 18px;
}

.station-button.active .station-fav {
    opacity: .7;
}

.compact .station-button {
    min-height: 96px;
}

.library-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    margin-top: 48px;
    padding: 27px;
}

.library-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 21px;
    background: white;
    color: black;
    font-size: 28px;
}

.library-content h2 {
    margin: 4px 0 8px;
    font-size: 27px;
    letter-spacing: -.04em;
}

.library-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.library-button {
    padding: 12px 17px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
}

footer {
    padding: 36px 0 0;
    color: #666;
    font-size: 12px;
    text-align: center;
}

footer span {
    padding: 0 5px;
}

@media (max-width: 700px) {
    .app {
        width: min(100% - 24px, 920px);
    }

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

    .library-card {
        grid-template-columns: auto 1fr;
    }

    .library-button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .header {
        margin-top: 4px;
    }

    .brand-mark {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        border-radius: 17px;
    }

    .station-button {
        min-height: 108px;
        padding: 15px;
    }

    .station-icon {
        margin-bottom: 20px;
    }

    .official-player iframe {
        height: 170px;
    }
}

/* ======================================================
   JB360 AUDIO V1.1 — NATIVE PLAYER
   ====================================================== */

.native-player {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 22px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.07),
            rgba(255,255,255,.015)
        );
}

.native-player audio {
    display: none;
}

.play-button {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #080808;
    cursor: pointer;
    font-size: 25px;
    font-weight: 800;
    box-shadow:
        0 12px 35px rgba(0,0,0,.35);
    transition:
        transform .15s ease,
        opacity .15s ease;
}

.play-button:hover {
    transform: scale(1.035);
}

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

.player-status {
    min-width: 0;
}

.stream-status {
    display: block;
    margin-bottom: 17px;
    color: #f4f4f4;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .14em;
}

.volume-wrap {
    display: flex;
    align-items: center;
    gap: 11px;
}

.volume-icon {
    color: var(--muted);
}

.volume-slider {
    width: min(100%, 260px);
    accent-color: #fff;
    cursor: pointer;
}

@media (max-width: 520px) {
    .native-player {
        grid-template-columns: auto 1fr;
        padding: 17px;
        gap: 17px;
    }

    .play-button {
        width: 66px;
        height: 66px;
        font-size: 21px;
    }
}
