:root {
    --bg: #050817;
    --panel: #0b1328cc;
    --line: #243452;
    --pink: #ff2f92;
    --cyan: #17e9e0;
    --yellow: #ffd31f;
    --text: #f7f7ff;
    --muted: #b7bdd7;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    background: radial-gradient(circle at top left, #201047 0, #070b1d 42%, #040612 100%);
}

.bg-orb {
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(55px);
    opacity: .28;
}

.orb-a {
    top: -90px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: var(--pink);
}

.orb-b {
    top: 330px;
    right: -140px;
    width: 360px;
    height: 360px;
    background: var(--cyan);
}

.site-header,
.page {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
}

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

.brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
}

.brand b {
    display: block;
    font-size: 26px;
    line-height: .9;
    letter-spacing: 1px;
}

.brand small {
    display: block;
    color: var(--yellow);
    font-weight: 800;
    letter-spacing: 6px;
}

.nav-shell {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-shell a,
.nav-shell span {
    flex: 0 0 auto;
    color: inherit;
    text-decoration: none;
    opacity: .95;
}

.nav-shell .active {
    color: var(--pink);
    border-bottom: 3px solid var(--pink);
    padding-bottom: 10px;
}

.social-shell {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.social-shell span {
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.social-shell .chat {
    padding: 9px 14px;
    border-color: var(--cyan);
}

.rki-ornament {
    width: min(100%, 860px);
    max-height: 120px;
    display: block;
    object-fit: contain;
    margin: 10px auto 18px;
}

.neon-card {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(15, 24, 52, .85), rgba(7, 11, 28, .9));
    box-shadow: 0 0 0 1px rgba(255, 47, 146, .08), 0 18px 60px rgba(0, 0, 0, .28);
}

.video-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    grid-template-rows: minmax(0, auto);
    gap: 16px;
    padding: 14px;
    margin-bottom: 0;
    border-color: rgba(255, 47, 146, .75);
    box-shadow: 0 0 22px rgba(255, 47, 146, .42);
}

.video-stage {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 13px;
    background: #000;
}

.video-stage video,
.video-stage iframe {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border: 0;
    background: #000;
}

.video-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #fff;
    text-align: center;
    background: #070707;
}

.video-empty b {
    display: block;
    margin-bottom: 8px;
    color: #ffdf00;
    font-size: 24px;
}

.video-empty small,
.video-empty span {
    display: block;
    line-height: 1.5;
    opacity: .8;
}

.video-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    background: var(--pink);
    box-shadow: 0 0 20px rgba(255, 47, 146, .55);
}

.playlist-shell {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    height: var(--playlist-height, auto);
    max-height: var(--playlist-height, none);
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 4px 4px 0;
}

.playlist-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 4px 4px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(11, 19, 40, .96);
}


.playlist-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 5px 8px 0;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--pink) rgba(255,255,255,.06);
}

.playlist-list::-webkit-scrollbar {
    width: 6px;
}

.playlist-list::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255,255,255,.06);
}

.playlist-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(var(--pink), var(--cyan));
}

.playlist-list::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

.playlist-list .track {
    flex: 0 0 auto;
}

.track:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: -2px;
}

.playlist-head h3 {
    margin: 0;
    color: var(--pink);
    font-size: 15px;
    font-weight: 900;
}

.playlist-head span {
    color: #fff;
    font-size: 12px;
    opacity: .8;
}

.playlist-actions {
    display: flex;
    gap: 8px;
    margin: 14px 0 2px;
}

.playlist-actions button {
    flex: 1;
    padding: 10px 13px;
    border: 0;
    border-radius: 999px;
    color: #111;
    font-weight: 800;
    cursor: pointer;
    background: #fff;
}

.track {
    display: grid;
    grid-template-columns: 70px 1fr 18px;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    cursor: pointer;
}

.track.active {
    background: rgba(255, 47, 146, .13);
}

.thumb {
    position: relative;
    height: 42px;
    overflow: hidden;
    border-radius: 6px;
    background: linear-gradient(135deg, #6c371d, #10172c);
}

.thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .8;
    background:
        radial-gradient(circle at 60% 35%, rgba(255, 211, 31, .55), transparent 35%),
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, .15) 50%, transparent 52%);
}

.thumb span {
    position: absolute;
    left: 6px;
    bottom: 4px;
    padding: 2px 4px;
    border-radius: 4px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    background: rgba(0, 0, 0, .42);
}

.track b {
    display: block;
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
}

.track small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.track em {
    color: #fff;
    font-size: 13px;
    font-style: normal;
}

.playlist-note {
    margin: 10px 8px 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.audio-section {
    width: 100%;
    margin: 5px auto 5px;
}

.azura-embed {
    width: 100%;
    min-height: 100px;
    display: block;
    border: 0;
    border-radius: 16px;
    background: #120e2b;
}

.shell-below-video {
    position: relative;
    width: 100%;
    margin: 0 auto 40px;
    overflow: hidden;
    border-radius: 16px;
}

.shell-below-video > img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    border: 0;
    object-fit: contain;
}

.shell-warta-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 47%;
    overflow: hidden;
    color: transparent;
    text-indent: -9999px;
}

.shell-warta-link:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: -5px;
}

@media (max-width: 1050px) {
    .site-header {
        min-height: 0;
        padding: 18px 0 12px;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 14px;
    }

    .nav-shell {
        order: 3;
        width: 100%;
        gap: 12px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 4px 0 8px;
        scrollbar-width: thin;
    }

    .nav-shell a,
    .nav-shell span {
        padding: 8px 10px;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 999px;
        background: rgba(255, 255, 255, .04);
    }

    .nav-shell .active {
        padding-bottom: 8px;
        border-color: var(--pink);
        border-bottom-width: 1px;
        background: rgba(255, 47, 146, .12);
    }

    .social-shell .chat {
        display: none;
    }

    .video-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .video-stage {
        grid-column: 1;
        grid-row: 1;
    }

    .playlist-shell {
        grid-column: 1;
        grid-row: 2;
        display: flex;
        height: auto;
        max-height: 360px;
    }

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

    .playlist-head,
    .playlist-note {
        grid-column: 1 / -1;
    }

    .track {
        grid-template-columns: 58px 1fr 18px;
    }
}

@media (max-width: 650px) {
    .site-header,
    .page {
        width: min(100% - 18px, 1220px);
    }

    .site-header {
        padding-top: 16px;
    }

    .brand img {
        width: 48px;
        height: 48px;
    }

    .brand b {
        font-size: 21px;
    }

    .brand small {
        font-size: 10px;
        letter-spacing: 4px;
    }

    .social-shell {
        display: none;
    }

    .nav-shell {
        margin-top: 2px;
        font-size: 11px;
    }

    .nav-shell a,
    .nav-shell span {
        padding: 5px 5px;
    }

    .rki-ornament {
        width: 72%;
        max-height: none;
        margin: 10px auto 18px;
    }

    .video-card {
        padding: 8px;
        border-radius: 0px;
    }

    .playlist-shell {
        display: none;
    }

    .audio-section{
            width:100%;
            margin:8px auto 8px;
    }

    .azura-embed{
        display:block;
        width:100%;
        height:110px;
        min-height:110px;
        border:0;
        border-radius:12px;
    }

    .shell-below-video {
        margin-bottom: 14px;
        border-radius: 12px;
        margin-top: 0px;
    }
}

/* ===== Radio Keroncong regions: Feature, media selector, sponsor carousel ===== */
.media-switcher {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin: 8px 0 34px;
    padding: 16px 18px;
    border-color: rgba(23, 233, 224, .42);
}

.audio-now {
    min-width: 0;
}

.audio-now .eyebrow,
.section-heading > span {
    display: block;
    margin-bottom: 5px;
    color: var(--cyan);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

.audio-now strong {
    display: block;
    font-size: 18px;
    line-height: 1.2;
}

.audio-now small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.4;
}

.media-toggle {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(2, minmax(92px, 1fr));
    gap: 7px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(0,0,0,.28);
}

.media-toggle button {
    position: relative;
    z-index: 21;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .7px;
    cursor: pointer;
    background: transparent;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.media-toggle button:hover {
    color: #fff;
    transform: translateY(-1px);
}

.media-toggle button.active {
    color: #070815;
    background: linear-gradient(135deg, var(--cyan), #8ffffa);
    box-shadow: 0 7px 22px rgba(23,233,224,.28);
}

.content-section {
    margin: 0 0 46px;
}

.section-heading {
    margin: 0 0 18px;
}

.section-heading.centered {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.08;
}

.nowTitle h2 {
        margin: 0;
    font-size: clamp(32px, 3vw, 35px);
    line-height: 1.08;
}

.section-heading p {
    margin: 10px auto 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.feature-primary,
.feature-card {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: #080b19;
    box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

.feature-primary {
    margin-bottom: 16px;
}

.feature-primary img,
.feature-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .45s ease, filter .45s ease;
}

.feature-primary:hover img,
.feature-card:hover img {
    transform: scale(1.025);
    filter: brightness(1.06);
}

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

.sponsor-section {
    padding: 34px 18px 24px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
}

.sponsor-carousel {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
}

.carousel-viewport {
    min-width: 0;
    overflow: hidden;
    padding: 10px 2px 16px;
    touch-action: pan-y;
}

.carousel-track {
    display: flex;
    transition: transform .48s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}

.sponsor-slide {
    flex: 0 0 20%;
    min-width: 0;
    padding: 0 8px;
}

.sponsor-card {
    height: 100%;
    min-height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0px solid rgba(255,255,255,.13);
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
    text-decoration: none;
    transform: translateZ(0);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.sponsor-card img {
    width: 100%;
    height: 180px;
    display: block;
    object-fit: contain;
    transition: transform .35s ease;
}

.sponsor-card:hover,
.sponsor-card:focus-visible {
    z-index: 2;
    border-color: rgba(23,233,224,.7);
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0,0,0,.32), 0 0 20px rgba(23,233,224,.16);
    outline: none;
}

.sponsor-card:hover img,
.sponsor-card:focus-visible img {
    transform: scale(1.08);
}

.carousel-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    background: rgba(7,11,28,.82);
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.carousel-arrow:hover {
    border-color: var(--cyan);
    background: rgba(23,233,224,.16);
    transform: scale(1.06);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 4px;
}

.carousel-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255,255,255,.24);
    transition: width .2s ease, background .2s ease;
}

.carousel-dots button.active {
    width: 24px;
    background: var(--cyan);
}

.site-footer {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 4px 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    border-top: 1px solid rgba(255,255,255,.1);
}

.site-footer div {
    padding-top: 20px;
}

.site-footer strong,
.site-footer span {
    display: block;
}

.site-footer strong {
    color: #fff;
}

.site-footer span,
.site-footer small {
    margin-top: 4px;
    font-size: 12px;
}

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 8px);
        justify-self: center;
    }

    .sponsor-slide {
        flex-basis: 50%;
    }
}

@media (max-width: 650px) {
    .media-switcher {
        grid-template-columns: 1fr;
        gap: 13px;
        margin-bottom: 28px;
        padding: 14px;
        border-radius: 14px;
    }

    .media-toggle {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-card:last-child {
        grid-column: auto;
        width: auto;
    }

    .feature-primary,
    .feature-card {
        border-radius: 12px;
    }

    .content-section {
        margin-bottom: 32px;
    }

    .section-heading h2 {
        font-size: 26px;
    }

    .sponsor-section {
        padding: 26px 8px 20px;
        border-radius: 18px;
    }

    .sponsor-carousel {
        grid-template-columns: minmax(0, 1fr);
    }

    .carousel-arrow {
        display: none;
    }

    .sponsor-slide {
        flex-basis: 100%;
        padding: 0 7px;
    }

    .sponsor-card,
    .sponsor-card img {
        min-height: 148px;
        height: 148px;
    }

    .site-footer {
        width: min(100% - 18px, 1220px);
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 24px;
    }
}

/* ===== Audio Experience v1.2 ===== */
.visual-experience { display: contents; }
.audio-experience {
    position: relative;
    grid-column: 1 / -1;
    min-height: 430px;
    overflow: hidden;
    border-radius: 14px;
    isolation: isolate;
    background: #090d20;
}
.audio-experience[hidden] { display: none !important; }
.audio-backdrop {
    position: absolute;
    inset: -35px;
    z-index: -2;
    background: center / cover no-repeat url('../img/logo-rktng.jpeg');
    filter: blur(34px) saturate(1.35) brightness(.42);
    transform: scale(1.14);
    transition: background-image .8s ease;
}
.audio-experience::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, rgba(5,8,20,.86), rgba(16,11,35,.62) 50%, rgba(4,8,18,.88));
}
.audio-experience-inner {
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(220px, 350px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    padding: clamp(28px, 5vw, 62px);
}
.album-art-shell { position: relative; width: min(100%, 340px); justify-self: center; }
.album-art-shell img {
    width: 100%; aspect-ratio: 1; display: block; object-fit: cover;
    border-radius: 24px; background: #fff;
    box-shadow: 0 26px 70px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.16);
    transition: opacity .35s ease, transform .5s ease;
}
.live-badge {
    position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 13px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .8px;
    background: rgba(5,8,20,.82); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.18);
}
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #ff376f; box-shadow: 0 0 14px #ff376f; animation: livePulse 1.3s infinite; }
.live-badge.offline i { background: #8790a8; box-shadow: none; animation: none; }
@keyframes livePulse { 50% { opacity: .35; transform: scale(.75); } }
.audio-metadata { min-width: 0; }
.audio-kicker { color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: 2.2px; }
.audio-metadata h1 { margin: 12px 0 7px; color: #fff; font-size: clamp(30px, 5vw, 42px); line-height: 1.02; overflow-wrap: anywhere; }
.audio-metadata > p { margin: 0; color: rgba(255,255,255,.78); font-size: clamp(17px, 2vw, 24px); }
.audio-metadata .now-album { margin-top: 7px; color: var(--muted); font-size: 14px; }
.audio-visualizer { height: 54px; display: flex; align-items: flex-end; gap: 5px; margin: 24px 0 22px; }
.audio-visualizer span { width: 6px; height: 20%; border-radius: 5px; background: linear-gradient(to top, var(--pink), var(--cyan)); animation: eq 1.05s ease-in-out infinite alternate; transform-origin: bottom; }
.audio-visualizer span:nth-child(2n) { animation-duration: .72s; }
.audio-visualizer span:nth-child(3n) { animation-duration: 1.3s; }
.audio-visualizer span:nth-child(4n) { animation-delay: -.45s; }
@keyframes eq { from { height: 16%; opacity: .65; } to { height: 100%; opacity: 1; } }
.stream-facts { display: flex; flex-wrap: wrap; gap: 12px; }
.stream-facts span { min-width: 105px; padding: 11px 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(255,255,255,.07); backdrop-filter: blur(10px); }
.stream-facts b, .stream-facts small { display: block; }
.stream-facts b { color: #fff; font-size: 16px; }
.stream-facts small { margin-top: 3px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .8px; }
.technical-info { margin-top: 22px; max-width: 720px; color: var(--muted); }
.technical-info summary { width: fit-content; cursor: pointer; color: rgba(255,255,255,.82); font-size: 12px; font-weight: 800; }
.technical-info dl { margin: 12px 0 0; padding: 13px 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(0,0,0,.2); }
.technical-info dl div { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 10px; padding: 5px 0; }
.technical-info dt { color: var(--cyan); font-size: 11px; font-weight: 800; }
.technical-info dd { min-width: 0; margin: 0; color: rgba(255,255,255,.68); font-size: 11px; overflow-wrap: anywhere; }
@media (max-width: 700px) {
    .audio-experience, .audio-experience-inner { min-height: auto; }
    .audio-experience-inner { grid-template-columns: 1fr; gap: 24px; padding: 24px 18px 28px; text-align: center; }
    .album-art-shell { width: min(72vw, 300px); }
    .audio-visualizer, .stream-facts { justify-content: center; }
    .technical-info { text-align: left; }
}
