:root {
    --bg: #000000;
    --accent: #0056b3;
    --border: #222222;
    --text: #ffffff;
    --subtext: #bbbbbb;
    --sidebar-w: 120px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html,body { height: 100%; margin: 0; font-family: 'Roboto', sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
body {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#overlay {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 0;
    pointer-events: none;
}
.app {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
}
.preset-bar {
    display: flex;
    height: 64px;
    background: rgba(0,0,0,0.85);
    border-bottom: 2px solid var(--accent);
    align-items: stretch;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    z-index: 1;
}
.preset-bar::-webkit-scrollbar { display: none; }
.preset-slot {
    min-width: 110px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-right: 1px solid #2a2a2a;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    overflow: hidden;
    gap: 1px;
    flex-shrink: 0;
    touch-action: none;
}
.preset-slot-num {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent);
}
.preset-slot-name {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.preset-slot-song {
    font-size: 0.72rem;
    color: var(--subtext);
    white-space: nowrap;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.preset-slot.empty .preset-slot-name { color: #444; font-style: italic; }
.preset-slot.active { background: rgba(0,86,179,0.2); }
.preset-slot.active::after { content:''; position:absolute; inset:0; border:2px solid var(--accent); pointer-events:none; }
.slot-fill {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
}
.preset-slot.holding .slot-fill {
    transform: scaleX(1);
    transition: transform 0.7s linear;
}
.main-container {
    flex: 1;
    display: flex;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.sidebar {
    width: var(--sidebar-w);
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    gap: 20px;
    align-items: center;
    background: rgba(0,0,0,0.25);
    flex-shrink: 0;
}
.side-btn {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    cursor: pointer;
    text-align: center;
    width: 90%;
    padding: 10px 5px;
}
.side-btn i { display: block; font-size: 1.4rem; margin-bottom: 5px; }
.player-view {
    flex: 1;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 300px 150px;
    gap: 20px;
}
.track-info { display: flex; flex-direction: column; justify-content: flex-start; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.ch-num { color: #00d4ff; font-size: 1.2rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.song-title { font-size: 2.2rem; font-weight: 500; margin-bottom: 10px; display:flex; align-items:center; gap:10px; }
.artist-name { font-size: 1.6rem; color: var(--subtext); margin-bottom:8px; }
.album-art-wrap { text-align: right; position: relative; }
.album-art { width: 220px; height: 220px; border-radius: 4px; object-fit: cover; border: 1px solid #333; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.station-logo-overlay { width: 80px; position: absolute; bottom: -10px; right: -10px; background: #000; padding: 5px; border: 1px solid #333; }
.right-actions { display: flex; flex-direction: column; gap: 10px; }
.action-btn {
    background: rgba(0,0,0,0.6);
    border: 1px solid #444;
    color: #fff;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-size: 1.1rem;
    cursor: pointer;
}
.transport {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: center;
}
.trans-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(0,0,0,0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
}
.trans-btn.large { width: 85px; height: 85px; font-size: 2rem; background: rgba(0,0,0,0.6); }
.trans-btn.channel { border-radius: 40px; width: 100px; font-size: 1rem; font-weight: bold; }
#volHud {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    border: 1px solid #444;
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 2000;
}
#volHud.visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.vol-bar-bg { width: 250px; height: 10px; background: #333; border-radius: 5px; position: relative; overflow: hidden; }
.vol-bar-fill { height: 100%; background: var(--accent); width: 50%; transition: width 0.1s; }
.vol-text { font-weight: bold; font-size: 1.2rem; min-width: 45px; }
#progressWrap { width: 100%; height: 10px; background: #222; border-radius: 6px; overflow: hidden; margin-top:14px; }
#progressFill { height: 100%; width: 0%; background: linear-gradient(90deg,var(--accent), #00d4ff); transition: width 0.25s linear; }
#browseView {
    display: none;
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 10;
    padding: 20px;
    overflow-y: auto;
}
.browse-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; margin-bottom: 20px; padding: 10px; }
.station-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; padding-bottom: 150px; }
.station-card { background: #111; border: 1px solid #222; padding: 15px; cursor: pointer; text-align: center; position: relative; min-height: 100px; display:flex; flex-direction:column; justify-content:flex-start; gap:8px; }
.station-card.active { border: 2px solid var(--accent); }
.station-card img { width: 80%; max-height: 60px; object-fit: contain; margin: 0 auto; }
.station-card .card-name { font-weight:700; margin-top:6px; color:#fff; }
.station-card .card-song { font-size:0.9rem; color:var(--subtext); margin-top:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.station-card .card-listeners { font-size:0.8rem; color:#888; margin-top:2px; }
.station-card .card-listeners i { font-size:0.75rem; }
.on-air-badge { position: absolute; top: 8px; left: 8px; background: linear-gradient(90deg,#ff3b3b,#ff7b7b); color:#fff; padding:4px 8px; border-radius:12px; font-size:0.75rem; font-weight:700; display:flex; gap:6px; align-items:center; box-shadow:0 6px 18px rgba(255,59,59,0.12); }
.on-air-dot { width:8px; height:8px; background:#fff; border-radius:50%; box-shadow:0 0 8px rgba(255,255,255,0.6); }
.modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.9); z-index:100; align-items:center; justify-content:center; }
.modal-body { background:#111; padding:30px; border-radius:8px; border: 1px solid #333; width:400px; color:#fff; }
input { width: 100%; padding: 12px; margin: 10px 0; background: #222; border: 1px solid #333; color: #fff; }
.vote-btn { background: rgba(0,0,0,0.5); border: 1px solid #444; color: white; padding: 8px 15px; border-radius: 4px; cursor: pointer; }
.star-btn { cursor:pointer; font-size:1.4rem; color:rgba(255,255,255,0.25); }
.star-btn.active { color: #ffd700; opacity:1; }
.toast { position: fixed; right: 20px; bottom: 90px; background: rgba(0,0,0,0.85); color: #fff; padding: 12px 16px; border-radius: 6px; z-index: 3000; display:none; }
.fav-badge { background: rgba(0,86,179,0.18); padding:6px 10px; border-radius:6px; color:var(--accent); font-weight:600; font-size:0.95rem; margin-top:6px; display:inline-block; }
.station-slogan { font-size:1rem; color:#aaa; font-style:italic; margin-top:6px; }
.station-description { font-size:0.9rem; color:#888; margin-top:4px; max-width:480px; line-height:1.4; }
.fav-modal-list { max-height:320px; overflow:auto; border-top:1px solid #222; margin-top:12px; padding-top:8px; }
.fav-item { padding:8px; border-bottom:1px solid #222; display:flex; justify-content:space-between; gap:8px; align-items:center; }
.fav-playing-list {
    position: fixed;
    left: 20px;
    bottom: 90px;
    background: rgba(0,0,0,0.88);
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    z-index: 2500;
    display: none;
    max-width: 280px;
    border: 1px solid #333;
    font-size: 0.9rem;
}
.status-bar {
    height: 70px;
    background: rgba(0,0,0,0.85);
    border-top: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
    z-index: 1;
}
.site-footer {
    height: 34px;
    background: rgba(0,0,0,0.9);
    border-top: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 0.72rem;
    color: #555;
    flex-shrink: 0;
    z-index: 1;
}
.site-footer a { color: #555; text-decoration: none; }
.site-footer a:hover { color: #7289da; }
.footer-discord { display: flex; align-items: center; gap: 5px; }
.footer-discord i { font-size: 0.85rem; color: #7289da; }
.kawaii-overlay { pointer-events:none; position:fixed; inset:0; z-index:9999; overflow:hidden; display:none; }
.kawaii-overlay.visible { display:block; pointer-events:auto; }
.kawaii-heart { position:fixed; width:28px; height:28px; font-size:22px; animation:floatUp 4s linear infinite; opacity:0.95; transform-origin:center; }
@keyframes floatUp {
    0% { transform: translateY(0) scale(0.9); opacity:1; }
    70% { opacity:0.9; }
    100% { transform: translateY(-120vh) scale(1.2); opacity:0; }
}
.kawaii-bubble { position:fixed; left:50%; top:40%; transform:translateX(-50%); background:linear-gradient(180deg,#fff0,#ffd7f0); padding:14px 20px; border-radius:14px; border:1px solid rgba(255,255,255,0.08); color:#fff; font-weight:700; font-size:1.6rem; z-index:10000; text-align:center; text-shadow:0 3px 10px rgba(0,0,0,0.6); pointer-events:auto; }
.kawaii-bubble .close-k { position:absolute; right:8px; top:6px; background:transparent; border:none; color:#fff; font-size:16px; cursor:pointer; }

/* ── Page Panel (AJAX page overlay) ── */
#pagePanel {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 200;
    display: none;
    flex-direction: column;
}
.page-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: rgba(0,0,0,0.95);
    border-bottom: 2px solid var(--accent);
    height: 50px;
    flex-shrink: 0;
}
.page-panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.page-panel-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.7;
    line-height: 1;
    padding: 4px 8px;
    transition: opacity 0.2s;
}
.page-panel-close:hover { opacity: 1; }
#pagePanelFrame {
    flex: 1;
    border: none;
    width: 100%;
    height: 100%;
}

/* ── DJ label ────────────────────────────────────────────────────────────── */
.dj-label {
    font-size: 0.85rem;
    color: #00c8ff;
    margin-top: 4px;
}

/* ── Mobile info button (shown only ≤900px) ─────────────────────────────── */
.info-btn-mobile {
    display: none;
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    background: rgba(0,86,179,0.18);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 6px;
    line-height: 1;
    padding: 0;
}

/* ── Station info bottom sheet (mobile) ─────────────────────────────────── */
.station-info-sheet {
    position: fixed;
    bottom: -100%;
    left: 0; right: 0;
    background: #111;
    border-top: 2px solid var(--accent);
    border-radius: 20px 20px 0 0;
    padding: 16px 20px 28px;
    z-index: 600;
    transition: bottom 0.32s cubic-bezier(.4,0,.2,1);
    max-height: 65vh;
    overflow-y: auto;
}
.station-info-sheet.open { bottom: 0; }
.info-sheet-handle {
    width: 44px; height: 4px;
    background: #444;
    border-radius: 2px;
    margin: 0 auto 14px;
}
.info-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 599;
}
.info-sheet-station-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.info-sheet-slogan {
    font-size: 1rem;
    color: var(--accent);
    font-style: italic;
    margin-bottom: 10px;
}
.info-sheet-desc {
    font-size: 0.9rem;
    color: #bbb;
    line-height: 1.55;
}

/* ── Vote modal tabs ────────────────────────────────────────────────────── */
.vote-tabs {
    display: flex;
    gap: 4px;
    margin: 10px 0 14px;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 0;
}
.vote-tab {
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 6px 6px 0 0;
    opacity: 0.5;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: opacity 0.2s, border-color 0.2s;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 5px;
}
.vote-tab.active {
    opacity: 1;
    border-bottom: 2px solid var(--accent);
    color: var(--accent);
}
.vote-tab:hover { opacity: 0.8; }

.vote-target-wrap { min-height: 38px; }
.vote-target-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ddd;
    padding: 4px 0;
}
.vote-val-btns {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}
.vote-val-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1a1a1a;
    border: 1.5px solid #333;
    padding: 13px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: #fff;
    transition: background 0.15s, border-color 0.15s;
}
.vote-val-btn:has(input:checked) {
    background: rgba(0,86,179,0.28);
    border-color: var(--accent);
}
.vote-val-btn input[type="radio"] { display: none; }

/* ── TMG accent color theming ────────────────────────────────────────────── */
:root { --tmg-color: #0056b3; }
.art-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--tmg-color) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.2s ease, background 1.2s ease;
    z-index: -1;
    filter: blur(18px);
}
.art-glow.visible { opacity: 0.35; }

/* ── TMG meta row (album • release • Spotify) ────────────────────────────── */
.tmg-meta {
    font-size: 0.82rem;
    color: #999;
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.tmg-meta a { color: #1db954; text-decoration: none; }
.tmg-meta a:hover { text-decoration: underline; }
.tmg-meta .tmg-pill {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 2px 9px;
    font-size: 0.78rem;
}

/* ── Category filter pills ────────────────────────────────────────────────── */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 16px;
}
.cat-pill {
    background: rgba(255,255,255,0.07);
    border: 1px solid #333;
    color: #ccc;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    user-select: none;
}
.cat-pill:hover { border-color: var(--accent); color: #fff; }
.cat-pill.active { background: rgba(0,86,179,0.3); border-color: var(--accent); color: #fff; }

/* ── Lyrics panel ─────────────────────────────────────────────────────────── */
.lyrics-panel {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 20;
    display: flex;
    flex-direction: column;
}
.lyrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #222;
    font-size: 0.95rem;
    color: #ccc;
    flex-shrink: 0;
    backdrop-filter: blur(6px);
}
.lyrics-scroll {
    flex: 1;
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
    padding: 20px;
}
.lyrics-content {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}
.lyric-line {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.35);
    transition: color 0.3s, transform 0.3s, font-size 0.3s;
    cursor: default;
    padding: 4px 0;
    border-radius: 6px;
}
.lyric-line.active {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--tmg-color, #00d4ff);
    text-shadow: 0 0 24px var(--tmg-color, #00d4ff);
}
.lyric-line.past { color: rgba(255,255,255,0.18); }

@media (max-width: 900px) {
    .player-view { padding: 16px 14px 110px; grid-template-columns: 1fr; gap: 10px; }
    .album-art { width: 150px; height: 150px; margin: 0 auto; display:block; }
    .album-art-wrap { text-align:center; }
    .right-actions { flex-direction:row; flex-wrap:wrap; justify-content:center; gap:6px; }
    .action-btn { padding:8px 12px; font-size:0.82rem; }
    .sidebar { display:none; }
    .preset-bar { height:50px; overflow-x:auto; }
    .song-title { font-size:1.3rem; }
    .artist-name { font-size:0.95rem; }
    .transport { bottom:12px; gap:10px; }
    .trans-btn { width:52px; height:52px; font-size:1.3rem; }
    .trans-btn.large { width:64px; height:64px; font-size:1.7rem; }
    .trans-btn.channel { width:84px; font-size:0.85rem; }
    .status-bar { height:60px; font-size:1rem; padding:0 12px; }
    #volHud { top:10%; padding:10px 18px; }
    .station-logo-overlay { width:60px; right:4px; bottom:-4px; }
    .kawaii-bubble { font-size:1.2rem; top:45%; }
    .info-btn-mobile { display: flex; }
    .station-slogan, .station-description { display: none !important; }
    .ch-num { font-size:1rem; }
    .song-title > div:first-child { min-width: 0; overflow: hidden; }
    #currentTitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}

/* ── Bottom Navigation Tabs ────────────────────────────────────────────────── */
.bottom-nav { display: flex; gap: 0; }
.nav-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    padding: 6px 18px;
    border-radius: 8px;
    transition: color 0.2s;
    font-size: 0.58rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
    line-height: 1;
}
.nav-tab-btn i { font-size: 1.5rem; margin-bottom: 1px; }
.nav-tab-btn.active { color: var(--accent); }
.nav-tab-btn:hover { color: rgba(255,255,255,0.65); }

/* ── DJ Live Badge (Browse channel cards) ───────────────────────────────────── */
.dj-live-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    border: 1px solid rgba(0,200,255,0.45);
    color: #00c8ff;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.67rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

/* ── Home View ──────────────────────────────────────────────────────────────── */
#homeView {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 10;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
}

/* Hero */
.home-hero {
    padding: 44px 28px 36px;
    background: linear-gradient(160deg, rgba(0,86,179,0.14) 0%, rgba(0,200,255,0.06) 60%, transparent 100%);
    border-bottom: 1px solid rgba(0,200,255,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.home-hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    top: -200px; left: 50%; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0,86,179,0.1) 0%, transparent 65%);
    pointer-events: none;
}

/* Waveform equalizer */
.home-waveform {
    display: flex;
    gap: 3px;
    align-items: center;
    height: 40px;
    position: relative;
    z-index: 1;
}
.wave-bar {
    display: inline-block;
    width: 3px;
    height: 32px;
    background: linear-gradient(to top, rgba(0,86,179,0.5), rgba(0,200,255,0.95));
    border-radius: 2px;
    transform-origin: center bottom;
    animation: wavePulse 1.4s ease-in-out infinite;
}
@keyframes wavePulse {
    0%, 100% { transform: scaleY(0.18); opacity: 0.45; }
    50%       { transform: scaleY(1);    opacity: 1; }
}
.wave-bar:nth-child(8n+1) { animation-delay: 0s; }
.wave-bar:nth-child(8n+2) { animation-delay: 0.175s; }
.wave-bar:nth-child(8n+3) { animation-delay: 0.35s; }
.wave-bar:nth-child(8n+4) { animation-delay: 0.525s; }
.wave-bar:nth-child(8n+5) { animation-delay: 0.7s; }
.wave-bar:nth-child(8n+6) { animation-delay: 0.875s; }
.wave-bar:nth-child(8n+7) { animation-delay: 1.05s; }
.wave-bar:nth-child(8n+8) { animation-delay: 1.225s; }

/* Brand */
.home-brand { text-align: center; position: relative; z-index: 1; }
.home-brand-logo {
    font-size: clamp(2.2rem, 7vw, 3.8rem);
    font-weight: 900;
    letter-spacing: 10px;
    background: linear-gradient(135deg, #0056b3 0%, #00c8ff 50%, #0099cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.home-brand-sub {
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.3);
    margin-top: 6px;
    text-transform: uppercase;
}
.home-live-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0,200,255,0.18);
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.live-pulse-ring {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ff3b3b;
    flex-shrink: 0;
    animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255,59,59,0.6); }
    50%       { opacity: 0.7; transform: scale(0.85); box-shadow: 0 0 0 4px rgba(255,59,59,0); }
}

/* Home sections container */
.home-content { padding-bottom: 100px; flex: 1; }
.home-section { padding: 28px 20px 4px; }
.home-section-last { padding-bottom: 20px; }
.home-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.home-section-title i { color: #00c8ff; }
.home-live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ff3b3b;
    display: inline-block;
    animation: livePulse 1.5s ease-in-out infinite;
}

/* Horizontal scroll strip (Live Now / Favorites) */
.home-cards-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.home-cards-scroll::-webkit-scrollbar { display: none; }

/* Glassmorphism card */
.home-card {
    flex-shrink: 0;
    width: 190px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.22s, background 0.22s, transform 0.22s, box-shadow 0.22s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.home-card:hover {
    background: rgba(0,200,255,0.07);
    border-color: rgba(0,200,255,0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,200,255,0.1);
}
.home-card-logo-wrap { position: relative; padding: 16px 16px 0; }
.home-card-logo {
    width: 60px; height: 60px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    display: block;
}
.home-card-live-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 7px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.home-card-info { padding: 10px 14px 16px; }
.home-card-name { font-size: 0.92rem; font-weight: 700; color: #fff; margin-bottom: 5px; }
.home-card-dj   { font-size: 0.73rem; color: #00c8ff; margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.home-card-song { font-size: 0.76rem; color: rgba(255,255,255,0.45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-card-artist { font-size: 0.71rem; color: rgba(255,255,255,0.3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-card-listeners { font-size: 0.7rem; color: #555; margin-top: 6px; display: flex; align-items: center; gap: 4px; }

/* Live card — red tint */
.home-card-live { border-color: rgba(192,57,43,0.25); }
.home-card-live:hover { border-color: rgba(231,76,60,0.55); background: rgba(192,57,43,0.07); box-shadow: 0 12px 32px rgba(192,57,43,0.12); }

/* Fav card — gold tint */
.home-card-fav { border-color: rgba(255,215,0,0.12); }
.home-card-fav:hover { border-color: rgba(255,215,0,0.35); background: rgba(255,215,0,0.04); }

/* Discover grid */
.home-discover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px;
}
.home-discover-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.055);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    position: relative;
    overflow: hidden;
}
.home-discover-card:hover {
    background: rgba(0,200,255,0.05);
    border-color: rgba(0,200,255,0.22);
    box-shadow: 0 4px 16px rgba(0,200,255,0.06);
}
.home-discover-card.active {
    border-color: rgba(0,86,179,0.6);
    background: rgba(0,86,179,0.1);
}
.home-live-stripe {
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(to bottom, #c0392b, #e74c3c);
    border-radius: 12px 0 0 12px;
}
.home-discover-logo {
    width: 42px; height: 42px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    flex-shrink: 0;
}
.home-discover-info { flex: 1; min-width: 0; }
.home-discover-name { font-size: 0.88rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-discover-song { font-size: 0.76rem; color: rgba(255,255,255,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.home-discover-dj   { font-size: 0.7rem; color: #00c8ff; margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.home-discover-listeners { font-size: 0.7rem; color: #555; white-space: nowrap; display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

@media (max-width: 900px) {
    .home-hero { padding: 28px 16px 24px; gap: 14px; }
    .home-section { padding: 20px 12px 4px; }
    .home-discover-grid { grid-template-columns: 1fr; }
    .home-card { width: 165px; }
    .home-live-count-badge { font-size: 0.68rem; padding: 5px 14px; }
}
