/* ── Page Sections ──────────────────────────────────────────────────────────── */
.snr-section { position: relative; }
.snr-section--player {
    background:
        radial-gradient(ellipse 100% 120% at 50% 0%, rgba(var(--brand-rgb, 255,69,0), 0.07) 0%, transparent 65%),
        linear-gradient(180deg, #0d1117 0%, var(--bg-main, #0a0c10) 100%);
    padding-bottom: 28px;
}
.snr-section--content {
    background:
        radial-gradient(ellipse 90% 60% at 50% 20%, rgba(var(--brand-rgb, 255,69,0), 0.04) 0%, transparent 70%),
        var(--bg-main, #0a0c10);
}

/* ── Hero Player Widget ─────────────────────────────────────────────────────── */
.hp-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 28px 40px 0;
}
.hp-inner {
    display: grid;
    grid-template-columns: 1fr 220px 1fr;
    gap: 0;
    background: #0d1829;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.07);
    overflow: hidden;
}
.hp-panel {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 18px 22px;
}

/* Track panel */
.hp-panel--track {
    display: flex;
    align-items: center;
    gap: 16px;
}
.hp-art {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 2px solid var(--brand-primary);
    object-fit: cover;
    flex-shrink: 0;
}
.hp-track-info {
    flex: 1;
    min-width: 0;
}
.hp-track-name {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .3px;
}
.hp-track-artist {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hp-play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0a0c10;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color .2s, background .2s;
}
.hp-play:hover { border-color: var(--brand-primary); background: rgba(255,69,0,.1); }
.hp-play svg { width: 18px; height: 18px; }

/* Stats bar under track info */
.hp-track-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 7px;
    flex-wrap: wrap;
    row-gap: 4px;
}
.hp-stat-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    letter-spacing: .5px;
    transition: color .2s;
    font-family: inherit;
    white-space: nowrap;
}
.hp-stat-btn:hover { color: var(--brand-primary); }
.hp-stat-div { color: #2a2a2a; margin: 0 8px; }
.hp-stat-text { color: #555; font-size: 10px; font-weight: 700; white-space: nowrap; }
.hp-spotify-link {
    display: none;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    background: #1db954;
    border-radius: 100px;
    padding: 3px 10px 3px 7px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .5px;
    color: #fff;
    transition: background .2s;
    white-space: nowrap;
}
.hp-spotify-link:hover { background: #1ed760; }

/* Controls panel */
.hp-panel--controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.hp-vol-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Audio waveform */
.hp-waves {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 36px;
    width: 100%;
    padding: 0 4px;
}
.hp-wave-bar {
    flex: 1;
    max-width: 6px;
    height: 4px;
    background: var(--brand-primary);
    border-radius: 3px;
    opacity: 0.2;
    transition: height 0.4s ease, opacity 0.4s ease;
}

@keyframes hpWave {
    0%, 100% { height: 4px; }
    50%       { height: var(--wave-peak); }
}

.hp-waves.is-playing .hp-wave-bar {
    opacity: 0.75;
    animation: hpWave var(--wave-dur, 0.8s) ease-in-out infinite;
    animation-delay: var(--wave-delay, 0s);
}

.hp-wave-bar:nth-child(1)  { --wave-peak:16px; --wave-dur:0.7s;  --wave-delay:0.00s; }
.hp-wave-bar:nth-child(2)  { --wave-peak:28px; --wave-dur:0.9s;  --wave-delay:0.10s; }
.hp-wave-bar:nth-child(3)  { --wave-peak:22px; --wave-dur:0.6s;  --wave-delay:0.05s; }
.hp-wave-bar:nth-child(4)  { --wave-peak:32px; --wave-dur:0.8s;  --wave-delay:0.20s; }
.hp-wave-bar:nth-child(5)  { --wave-peak:18px; --wave-dur:1.0s;  --wave-delay:0.15s; }
.hp-wave-bar:nth-child(6)  { --wave-peak:30px; --wave-dur:0.75s; --wave-delay:0.30s; }
.hp-wave-bar:nth-child(7)  { --wave-peak:24px; --wave-dur:0.65s; --wave-delay:0.08s; }
.hp-wave-bar:nth-child(8)  { --wave-peak:34px; --wave-dur:0.85s; --wave-delay:0.25s; }
.hp-wave-bar:nth-child(9)  { --wave-peak:14px; --wave-dur:0.95s; --wave-delay:0.18s; }
.hp-wave-bar:nth-child(10) { --wave-peak:26px; --wave-dur:0.70s; --wave-delay:0.12s; }
.hp-wave-bar:nth-child(11) { --wave-peak:20px; --wave-dur:0.88s; --wave-delay:0.35s; }
.hp-wave-bar:nth-child(12) { --wave-peak:12px; --wave-dur:0.72s; --wave-delay:0.22s; }
.hp-icon-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: color .2s;
    border-radius: 8px;
}
.hp-icon-btn:hover { color: #fff; }
.hp-icon-btn svg { width: 18px; height: 18px; }
.hp-vol-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: #2a3040;
    outline: none;
    cursor: pointer;
}
.hp-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--brand-primary);
    cursor: pointer;
    transition: transform .15s;
}
.hp-vol-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.hp-vol-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--brand-primary);
    border: none;
    cursor: pointer;
}

/* On-air panel */
.hp-panel--onair { padding: 16px 22px; }
.hp-onair-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.hp-onair-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.hp-onair-dj {
    font-size: 20px;
    font-weight: 950;
    font-style: italic;
    letter-spacing: -1px;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.1;
}
.hp-onair-status {
    font-size: 11px;
    font-weight: 900;
    color: var(--brand-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 5px;
}
.hp-onair-logo {
    flex-shrink: 0;
}
.hp-request-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(255,69,0,.12);
    border: 1px solid rgba(255,69,0,.3);
    border-radius: 10px;
    padding: 10px 16px;
    color: var(--brand-primary);
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .15s;
    font-family: inherit;
    line-height: 1;
}
.hp-request-btn:hover {
    background: rgba(255,69,0,.22);
    border-color: var(--brand-primary);
    transform: translateY(-1px);
}
.hp-request-btn svg { width: 20px; height: 20px; }
.hp-request-btn span {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ── Main Three-Column Grid ─────────────────────────────────────────────────── */
.home-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px 40px 80px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1.4fr);
    grid-template-rows: auto 1fr;
    gap: 20px;
}

.home-ad-section       { grid-column: 1 / 3; grid-row: 1; }
.home-upcoming-section { grid-column: 3;     grid-row: 1 / 3; }
.home-prev-section     { grid-column: 1;     grid-row: 2; }
.home-news-section     { grid-column: 2;     grid-row: 2; }

/* ── Section Labels ─────────────────────────────────────────────────────────── */
.home-sec-label {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    display: block;
    letter-spacing: -.2px;
}
.home-sec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.home-sec-row .home-sec-label { margin-bottom: 0; }
.news-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #0d1829;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    color: #888;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .2s, color .2s, border-color .2s;
}
.news-more-btn:hover {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}
.news-more-btn svg { width: 13px; height: 13px; }

/* ── Advertisement / Partner Card ──────────────────────────────────────────── */
.home-ad-card {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #0d1829;
    border: 1px solid rgba(255,255,255,0.06);
    min-height: 220px;
}
.home-ad-slide {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    position: relative;
}
.home-ad-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.home-ad-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 20px 22px;
    background: linear-gradient(to top, rgba(0,0,0,.92) 40%, transparent);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.home-ad-name {
    font-size: 22px;
    font-weight: 950;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #fff;
}
.home-ad-desc {
    font-size: 11px;
    color: #aaa;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    line-height: 1.5;
}
.home-ad-btn {
    display: inline-block;
    background: var(--brand-primary);
    color: #fff;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity .2s;
}
.home-ad-btn:hover { opacity: .85; }
.home-ad-placeholder {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: #1e3050;
}
.partner-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 10px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.pdot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: .2s;
}
.pdot.active { background: var(--brand-primary); transform: scale(1.3); }

/* ── Previously Played ──────────────────────────────────────────────────────── */
.prev-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.prev-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #0d1829;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s;
}
.prev-item:hover { border-color: rgba(255,255,255,0.12); }
.prev-item.is-live { border-color: var(--brand-primary); }
.prev-art {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #0a1422;
    border: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.prev-song {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .2px;
}
.prev-artist {
    font-size: 12px;
    color: #8899aa;
    font-weight: 600;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prev-time {
    font-size: 10px;
    color: #445566;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-left: auto;
}
.prev-item--skeleton .prev-art { background: #0a1422; }
.prev-skel {
    height: 11px;
    border-radius: 3px;
    background: #0a1422;
    display: block;
}
.live-badge {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-left: auto;
}

/* ── Upcoming Shows ─────────────────────────────────────────────────────────── */
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.upcoming-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #0d1829;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 14px 16px;
    transition: border-color .2s, background .2s;
    text-decoration: none;
    color: inherit;
}
a.upcoming-card { cursor: pointer; }
a.upcoming-card:hover { border-color: rgba(255,255,255,0.15); background: #111f35; }
.upcoming-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #0a1422;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.upcoming-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.upcoming-abbr {
    font-size: 8px;
    font-weight: 900;
    color: #334;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.upcoming-name {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .2px;
}
.upcoming-meta {
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 0;
}
.upcoming-badge {
    font-weight: 800;
    letter-spacing: .3px;
}
.upcoming-badge--next  { color: var(--brand-primary); }
.upcoming-badge--later { color: var(--brand-primary); }
.upcoming-badge--soon  { color: var(--brand-primary); }
.upcoming-badge--live-now { color: #ef4444; text-transform: uppercase; }
.upcoming-card.is-live { border: 2px solid var(--brand-primary) !important; background: rgba(var(--brand-rgb), 0.05) !important; }
.upcoming-time { color: #6688aa; font-weight: 600; }
.upcoming-empty {
    font-size: 11px;
    font-weight: 700;
    color: #334;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 16px 0;
}

/* ── News Mini Grid ─────────────────────────────────────────────────────────── */
.news-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.news-mini-card {
    display: flex;
    flex-direction: column;
    background: #0d1829;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, transform .2s;
}
.news-mini-card:hover {
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}
.news-mini-img {
    height: 110px;
    background: #091420;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.news-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.news-mini-card:hover .news-mini-img img { transform: scale(1.05); }
.news-mini-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    color: #1e3050;
    letter-spacing: 2px;
}
.news-mini-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.news-mini-category {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand-primary);
}
.news-mini-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Request Modal ──────────────────────────────────────────────────────────── */
.hero-btn {
    display: inline-block;
    background: var(--brand-primary);
    color: #fff;
    padding: 14px 42px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 24px var(--brand-glow);
    transition: .2s;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--brand-glow); }
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.modal-card {
    background: var(--bg-card, #11141b);
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #555;
    font-size: 20px;
    cursor: pointer;
}
.modal-close:hover { color: #fff; }
.modal-card h3 {
    font-size: 28px;
    font-weight: 950;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 24px;
}
.modal-card h3 span { color: var(--brand-primary); }
.fg { margin-bottom: 16px; }
.fg label { display: block; font-size: 10px; font-weight: 900; letter-spacing: 2px; color: #555; text-transform: uppercase; margin-bottom: 6px; }
.fg input, .fg textarea { width: 100%; background: #0a0a0a; border: 1px solid #2a2a2a; color: #fff; padding: 12px 16px; border-radius: 8px; font-size: 14px; font-family: inherit; transition: .2s; }
.fg input:focus, .fg textarea:focus { outline: none; border-color: var(--brand-primary); }
.fg textarea { resize: vertical; min-height: 80px; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .hp-inner { grid-template-columns: 1fr 180px 1fr; }
    .home-content { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1.2fr); }
}
@media (max-width: 900px) {
    .hp-wrap { padding-left: 20px; padding-right: 20px; }
    .home-content { padding-left: 20px; padding-right: 20px; }
    .hp-inner { grid-template-columns: 1fr; gap: 10px; }
    .hp-panel--controls { flex-direction: row; padding: 14px 18px; }
    .hp-onair-inner { gap: 16px; }
    .home-content {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
    }
    .home-ad-section       { grid-column: 1 / 3; grid-row: 1; }
    .home-upcoming-section { grid-column: 1 / 3; grid-row: 2; }
    .home-prev-section     { grid-column: 1;     grid-row: 3; }
    .home-news-section     { grid-column: 2;     grid-row: 3; }
    .news-mini-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .home-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .home-ad-section, .home-upcoming-section,
    .home-prev-section, .home-news-section {
        grid-column: 1;
        grid-row: auto;
    }
}
