:root {
    --bg: #0b0b0b;
    --bg-soft: #151515;
    --card: #181818;
    --text: #ffffff;
    --muted: rgba(255,255,255,.72);
    --red: #e50914;
    --gap: 12px;
    --edge: 16px;
    --panel: rgba(10, 10, 10, .96);
    --border: rgba(255,255,255,.08);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    scroll-behavior: smooth;
}

body {
    padding-bottom: 98px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

#snowflakeContainer {
    position: absolute;
    left: 0;
    top: 0;
    display: none;
}

.snowflake {
    position: fixed;
    background-color: #fff;
    user-select: none;
    z-index: 1000;
    pointer-events: none;
    border-radius: 50%;
    width: 10px;
    height: 10px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.site-wrap,
.stream-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-brand img {
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.site-nav-link {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .05em;
    opacity: .88;
    transition: opacity .2s ease, color .2s ease;
}

.site-nav-link:hover,
.site-nav-link.is-active {
    opacity: 1;
    color: var(--red);
}

.stream-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #000;
}

.stream-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stream-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.6) 35%, rgba(0,0,0,.2) 65%, rgba(0,0,0,0) 100%),
        linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}

.stream-hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    padding-top: 60px;
}

.stream-hero-logo {
    margin-bottom: 20px;
}

.stream-hero-title {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,.6);
}

.stream-hero-player {
    display: inline-block;
    padding: 22px 26px;
    border-radius: 16px;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    margin-bottom: 22px;
}

.stream-hero-play {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #e50914;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: .25s;
}

.stream-hero-play:hover {
    transform: scale(1.1);
    background: #ff1f2d;
}

.stream-hero-status {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #fff;
}

.stream-hero-track {
    margin-top: 8px;
    min-height: 18px;
    font-size: 13px;
    color: rgba(255,255,255,.78);
}

.stream-hero-socials {
    display: flex;
    gap: 10px;
}

.stream-hero-socials a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: .25s;
}

.stream-hero-socials a:hover {
    background: #e50914;
    transform: scale(1.1);
}

.stream-section {
    position: relative;
    padding-top: 100px;
    padding-bottom: 180px;
    background: linear-gradient(to bottom, #0b0b0b 0%, #151515 100%);
    overflow: hidden;
    isolation: isolate;
}

.stream-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity .45s ease;
    pointer-events: none;
}

.stream-section.is-preview-active .stream-bg {
    opacity: 1;
}

.stream-bg-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    min-width: 100%;
    height: 56.25vw;
    min-height: 100%;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
    filter: saturate(1.05) contrast(1.05);
}

.stream-bg-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(6,6,6,.68) 0%, rgba(10,10,10,.48) 26%, rgba(10,10,10,.58) 58%, rgba(11,11,11,.86) 100%),
        radial-gradient(circle at center, rgba(229,9,20,.10) 0%, rgba(0,0,0,0) 45%);
}

.stream-content {
    position: relative;
    z-index: 2;
}

.stream-title {
    margin: 0 0 28px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: 0 6px 22px rgba(0,0,0,.45);
}

.stream-slider-wrap {
    position: relative;
}

.stream-slider-offset {
    padding: 22px var(--edge) 46px;
    overflow: hidden;
}

.stream-slider-wrap .uk-slider-container {
    overflow: hidden;
}

.stream-slider-wrap .uk-slider-items {
    margin: 0;
    padding: 0;
    list-style: none;
    will-change: transform;
    touch-action: pan-y;
}

.stream-slider-wrap .uk-slider-items > * {
    padding: 0 calc(var(--gap) / 2);
}

.stream-item {
    position: relative;
    transition: transform .35s ease;
    will-change: transform;
    z-index: 1;
}

.stream-item:hover {
    z-index: 50;
}

.stream-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 14px 34px rgba(0,0,0,.42);
    transition: transform .35s ease, box-shadow .35s ease;
    isolation: isolate;
}

.stream-card:hover {
    transform: scale(1.08) translateY(-6px);
    box-shadow: 0 28px 70px rgba(0,0,0,.68);
}

.stream-link {
    display: block;
    position: relative;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.stream-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #111;
}

.stream-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stream-play-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    z-index: 4;
    pointer-events: none;
}

.stream-card:hover .stream-play-center {
    opacity: 1;
    transform: scale(1.04);
}

.stream-play-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(229, 9, 20, .96);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(229,9,20,.36);
    backdrop-filter: blur(8px);
}

.stream-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 80;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
    box-shadow: 0 14px 34px rgba(0,0,0,.34);
    backdrop-filter: blur(10px);
}

.stream-nav:hover {
    background: var(--red);
    color: #ffffff;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 18px 40px rgba(229,9,20,.28);
}

.stream-nav-prev {
    left: 6px;
}

.stream-nav-next {
    right: 6px;
}

.stream-empty {
    padding: 24px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.82);
    font-size: 16px;
    text-align: center;
}

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.video-modal.is-open {
    display: flex;
}

.video-modal-dialog {
    position: relative;
    width: 80vw;
    height: 80vh;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0,0,0,.65);
}

.video-modal-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

.video-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-close:hover {
    background: rgba(229,9,20,.95);
}

.chat-fab {
    position: fixed;
    bottom: 118px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 19000;
}

.global-radio-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 20000;
    background: var(--panel);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(12px);
    box-shadow: 0 -10px 30px rgba(0,0,0,.35);
}

.global-radio-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 78px;
    padding: 10px 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 18px;
}

.global-radio-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.global-radio-logo img {
    display: block;
    max-width: 110px;
    height: auto;
}

.global-radio-meta {
    min-width: 0;
}

.global-radio-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.1;
    color: #fff;
}

.global-radio-status,
.global-radio-track {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.1;
}

.global-radio-track {
    min-height: 14px;
    color: rgba(255,255,255,.86);
}

.global-radio-btn {
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    box-shadow: 0 12px 28px rgba(229,9,20,.35);
}

.global-radio-btn:hover {
    transform: scale(1.06);
    background: #ff1f2d;
}

.global-radio-volume-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.global-radio-volume {
    width: 120px;
    accent-color: var(--red);
    cursor: pointer;
}

.global-radio-volume-label {
    font-size: 12px;
    color: var(--muted);
    min-width: 36px;
    text-align: right;
}

.topBtn {
    border: 0;
    background: linear-gradient(145deg, #4e297d, #241033);
    color: #fff;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.topBtn:hover {
    background: #4e297d;
    color: #fff;
}

@media (min-width: 1200px) {
    .stream-slider-wrap .uk-slider-items > * {
        width: 20% !important;
    }
}

@media (min-width: 641px) and (max-width: 1199px) {
    .stream-slider-wrap .uk-slider-items > * {
        width: 33.3333% !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 106px;
    }

    .site-header-inner {
        min-height: 64px;
    }

    .site-brand img {
        width: 130px;
    }

    .site-nav {
        gap: 12px;
    }

    .site-nav-link {
        font-size: 13px;
    }

    .global-radio-inner {
        min-height: 92px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .global-radio-volume-wrap {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .global-radio-logo img {
        max-width: 88px;
    }
}

@media (max-width: 640px) {
    .stream-wrap {
        padding: 0 16px;
    }

    .stream-hero-content {
        max-width: 100%;
        padding-top: 40px;
        text-align: center;
        margin: 0 auto;
    }

    .stream-hero-logo img {
        margin: 0 auto;
    }

    .stream-hero-title {
        font-size: 32px;
    }

    .stream-hero-player {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .stream-hero-status,
    .stream-hero-track {
        text-align: center;
    }

    .stream-hero-socials {
        justify-content: center;
    }

    .stream-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .stream-nav {
        width: 46px;
        height: 46px;
    }

    .stream-nav-prev {
        left: 2px;
    }

    .stream-nav-next {
        right: 2px;
    }

    .stream-slider-offset {
        padding-left: 12px;
        padding-right: 12px;
    }

    .stream-slider-wrap .uk-slider-items > * {
        width: 50% !important;
    }

    .video-modal-dialog {
        width: 95vw;
        height: 70vh;
        border-radius: 12px;
    }
}

@media (max-width: 560px) {
    .global-radio-title,
    .global-radio-status,
    .global-radio-track {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .global-radio-btn {
        width: 48px;
        height: 48px;
    }

    .global-radio-volume {
        width: 90px;
    }

    .chat-fab {
        bottom: 126px;
    }
}

#globalPlayIcon,
#heroPlayIcon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid #e50914;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

.on-air {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.on-air::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #e50914;
    border-radius: 50%;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(229,9,20,0.7); }
    70% { box-shadow: 0 0 0 10px rgba(229,9,20,0); }
    100% { box-shadow: 0 0 0 0 rgba(229,9,20,0); }
}