:root {
    --bg: #050914;
    --panel: rgba(10, 20, 38, 0.82);
    --panel-strong: rgba(13, 26, 48, 0.96);
    --line: rgba(118, 196, 255, 0.18);
    --text: #f5f7ff;
    --muted: #9ea9c2;
    --cyan: #18f4e8;
    --blue: #4ca8ff;
    --purple: #d15cff;
    --pink: #ff5fd2;
    --green: #5dffba;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background:
        radial-gradient(circle at 15% 0%, rgba(24, 244, 232, 0.12), transparent 34%),
        radial-gradient(circle at 85% 8%, rgba(209, 92, 255, 0.18), transparent 36%),
        linear-gradient(180deg, #050914 0%, #071021 42%, #050914 100%);
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--text);
    font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.025) 25%, transparent 25%) 0 0/28px 28px,
        linear-gradient(225deg, rgba(255,255,255,0.018) 25%, transparent 25%) 0 0/28px 28px;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    width: min(1720px, 100%);
    margin: 0 auto;
    overflow: hidden;
}

.hero {
    position: relative;
    padding: 28px 52px 26px;
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 35%, rgba(209, 92, 255, 0.24), transparent 26%),
        radial-gradient(circle at 65% 40%, rgba(24, 244, 232, 0.16), transparent 31%);
    pointer-events: none;
}

.top-nav {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 360px;
}

.raven-mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(24,244,232,.36);
    border-radius: 20px;
    background: radial-gradient(circle, rgba(24,244,232,.18), rgba(209,92,255,.14));
    box-shadow: 0 0 30px rgba(24,244,232,.16);
    font-size: 36px;
    color: var(--purple);
}

.brand-small,
.brand-big {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 18px;
    background: rgba(7, 13, 28, .48);
    backdrop-filter: blur(14px);
}

.nav-links a {
    padding: 12px 16px;
    border-radius: 14px;
    color: #dbe4ff;
    font-weight: 700;
    font-size: 15px;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--cyan);
    background: rgba(24,244,232,.09);
    box-shadow: inset 0 -2px 0 var(--cyan);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(500px, 1.1fr);
    gap: 34px;
    align-items: center;
    min-height: 250px;
}

.brand-stack {
    display: flex;
    align-items: center;
    gap: 26px;
}

.logo-orb {
    position: relative;
    display: grid;
    place-items: center;
    width: 130px;
    height: 130px;
    border-radius: 38px;
    border: 1px solid rgba(209,92,255,.5);
    background:
        radial-gradient(circle at 25% 22%, rgba(24,244,232,.35), transparent 32%),
        radial-gradient(circle at 65% 70%, rgba(209,92,255,.36), transparent 42%),
        rgba(4, 10, 24, .9);
    box-shadow: 0 0 44px rgba(209,92,255,.26), inset 0 0 34px rgba(24,244,232,.08);
    color: var(--cyan);
}

.logo-orb strong {
    font-size: 70px;
    line-height: 1;
    color: #050914;
    text-shadow:
        -1px 0 var(--cyan),
        0 1px var(--purple),
        1px 0 var(--cyan),
        0 -1px var(--purple);
}

.logo-orb span {
    position: absolute;
    left: 15px;
    top: 10px;
    font-size: 46px;
    color: var(--purple);
}

.logo-orb em {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-style: normal;
    color: var(--cyan);
    font-size: 28px;
}

.eyebrow {
    margin: 0;
    font-size: 32px;
    font-weight: 900;
}

h1 {
    margin: -6px 0 8px;
    font-size: clamp(48px, 6vw, 84px);
    line-height: .95;
    letter-spacing: -3px;
    background: linear-gradient(90deg, var(--cyan), #d6e5ff 42%, var(--purple), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    margin: 0;
    color: #f2f7ff;
    font-size: 17px;
}

.hero-art {
    position: relative;
    min-height: 240px;
}

.wave {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 96px;
    transform: translateY(-50%);
    opacity: .86;
    background:
        linear-gradient(90deg, transparent, rgba(24,244,232,.75), rgba(76,168,255,.5), rgba(209,92,255,.72), transparent),
        repeating-linear-gradient(90deg, transparent 0 12px, rgba(24,244,232,.38) 12px 14px, transparent 14px 19px);
    filter: blur(.2px) drop-shadow(0 0 24px rgba(24,244,232,.35));
    clip-path: polygon(0 47%, 6% 51%, 10% 44%, 13% 58%, 16% 35%, 18% 70%, 20% 32%, 22% 68%, 24% 40%, 26% 58%, 31% 45%, 35% 60%, 40% 42%, 44% 70%, 48% 30%, 52% 74%, 56% 35%, 61% 62%, 65% 44%, 70% 58%, 76% 42%, 82% 52%, 90% 45%, 100% 50%, 100% 100%, 0 100%);
}

.mic {
    position: absolute;
    right: 88px;
    top: 26px;
    width: 160px;
    height: 190px;
    transform: rotate(-13deg);
    filter: drop-shadow(0 0 26px rgba(209,92,255,.55));
}

.mic-head {
    width: 120px;
    height: 150px;
    border-radius: 54px;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,.92) 0 10px, rgba(8,16,32,.9) 10px 18px),
        linear-gradient(135deg, #f8fbff, #738098);
    border: 5px solid #dce6ff;
    box-shadow: inset 0 0 18px rgba(0,0,0,.65);
}

.mic-body {
    width: 64px;
    height: 48px;
    margin-left: 27px;
    margin-top: -8px;
    border-radius: 14px;
    background: linear-gradient(180deg, #dfe8ff, #303a53);
}

.mic-stand {
    width: 20px;
    height: 86px;
    margin-left: 48px;
    margin-top: -2px;
    border-radius: 12px;
    background: linear-gradient(180deg, #dfe8ff, #151b2b);
}

.note {
    position: absolute;
    color: var(--green);
    font-size: 30px;
    text-shadow: 0 0 16px currentColor;
}

.note-1 { right: 48px; top: 24px; }
.note-2 { right: 312px; top: 46px; color: var(--pink); }
.note-3 { right: 240px; bottom: 28px; color: var(--purple); }

.content {
    padding: 0 52px 20px;
}

.search-panel,
.library-card,
.side-card,
.stat-card,
.player-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(13,26,48,.86), rgba(7,14,30,.78));
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.search-panel {
    margin-top: -12px;
    padding: 0 0 20px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.search-box {
    display: flex;
    align-items: center;
    width: min(930px, 100%);
    height: 58px;
    border: 1px solid rgba(118,196,255,.46);
    border-radius: 14px;
    background: rgba(8, 16, 34, .82);
    box-shadow: 0 0 24px rgba(24,244,232,.12);
    overflow: hidden;
}

.search-box span {
    padding-left: 20px;
    font-size: 28px;
    color: #c6d0e6;
}

.search-box input {
    flex: 1;
    height: 100%;
    padding: 0 18px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: 18px;
}

.search-box button {
    align-self: stretch;
    padding: 0 28px;
    border: 0;
    color: white;
    font-size: 16px;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(24,244,232,.72), rgba(24,122,170,.78));
    cursor: pointer;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid rgba(24,244,232,.32);
    border-radius: 10px;
    color: var(--cyan);
    background: rgba(6,17,34,.75);
    font-weight: 800;
}

.chip:nth-child(2),
.chip.active {
    border-color: rgba(209,92,255,.55);
    color: #f3a4ff;
    background: rgba(209,92,255,.13);
}

.chip.muted {
    border-color: rgba(255,255,255,.12);
    color: var(--muted);
}

.letters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.letters a {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 32px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 7px;
    color: #e6edff;
    background: rgba(16,25,43,.9);
    font-weight: 900;
}

.letters a.active,
.letters a:hover {
    color: var(--bg);
    background: linear-gradient(135deg, var(--cyan), var(--purple));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.stat-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    min-height: 92px;
    padding: 18px;
    border-radius: 14px;
}

.stat-card .stat-icon {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    color: var(--cyan);
    font-size: 30px;
    box-shadow: 0 0 18px rgba(24,244,232,.32);
}

.stat-card.purple .stat-icon {
    border-color: var(--purple);
    color: var(--purple);
    box-shadow: 0 0 18px rgba(209,92,255,.32);
}

.stat-card strong {
    font-size: 28px;
}

.stat-card p {
    margin: 3px 0 0;
    color: #c9d3e9;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 26px;
    align-items: start;
}

.library-card,
.side-card,
.player-card {
    border-radius: 16px;
}

.library-card {
    padding: 18px 20px 24px;
    overflow: hidden;
}

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

.section-heading h2,
.side-card h3 {
    margin: 0;
}

.section-heading span,
.side-title a {
    color: #c6d3f1;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 10px;
    padding: 8px 12px;
    background: rgba(255,255,255,.04);
}

.table-wrap {
    overflow-x: auto;
    margin-top: 14px;
}

.song-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.song-table th,
.song-table td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    text-align: left;
}

.song-table th {
    background: rgba(255,255,255,.035);
    color: #dfe7ff;
}

.song-table th:first-child {
    color: var(--cyan);
}

.song-table th:nth-child(2) {
    color: #f0a4ff;
}

.song-table th:nth-child(3) {
    color: #70b8ff;
}

.song-table tr:hover td {
    background: rgba(24,244,232,.035);
}

.artist-link {
    color: var(--cyan);
    font-weight: 900;
}

.play-col {
    width: 150px;
    text-align: right !important;
}

.play-button {
    display: inline-flex;
    justify-content: center;
    min-width: 118px;
    padding: 8px 12px;
    border: 1px solid rgba(24,244,232,.66);
    border-radius: 8px;
    color: var(--cyan);
    background: rgba(24,244,232,.08);
    font-weight: 900;
}

.play-button:hover,
.play-button.is-hot {
    color: #031019;
    background: var(--cyan);
    box-shadow: 0 0 18px rgba(24,244,232,.42);
}

.empty {
    padding: 26px !important;
    text-align: center !important;
    color: var(--muted);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    color: #cbd7ee;
}

.pagination a {
    padding: 9px 14px;
    border-radius: 10px;
    background: rgba(209,92,255,.12);
    border: 1px solid rgba(209,92,255,.34);
    color: #f0a4ff;
    font-weight: 900;
}

.sidebar {
    display: grid;
    gap: 12px;
}

.side-card {
    padding: 18px;
}

.top-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.top-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.top-list a {
    color: #f5f7ff;
    font-weight: 800;
}

.top-list span {
    color: #c7d2ee;
    background: rgba(255,255,255,.06);
    border-radius: 8px;
    padding: 5px 8px;
}

.quick-picks {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.quick-picks a {
    display: grid;
    gap: 2px;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid rgba(24,244,232,.22);
    background: rgba(24,244,232,.08);
}

.quick-picks a:nth-child(2) {
    border-color: rgba(209,92,255,.32);
    background: rgba(209,92,255,.12);
}

.quick-picks strong {
    color: #8ffdf4;
}

.quick-picks span,
.side-card p,
.recent-list a {
    color: #c5cfe6;
}

.outline-button {
    display: inline-flex;
    margin-top: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(209,92,255,.75);
    color: #f0a4ff;
    border-radius: 10px;
    font-weight: 900;
}

.recent-list {
    margin: 12px 0 0;
    padding-left: 18px;
}

.recent-list li {
    margin-bottom: 9px;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 28px 52px 38px;
    border-top: 1px solid var(--line);
    color: #c8d2ec;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-raven {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: rgba(209,92,255,.12);
    border: 1px solid rgba(209,92,255,.28);
    font-size: 34px;
    color: var(--purple);
}

.footer-brand p,
.footer-links p {
    margin: 5px 0 0;
    color: var(--muted);
}

.footer-wave {
    text-align: center;
}

.footer-wave span {
    display: block;
    height: 44px;
    margin-bottom: 6px;
    background:
        linear-gradient(90deg, transparent, rgba(209,92,255,.7), rgba(24,244,232,.55), rgba(209,92,255,.7), transparent),
        repeating-linear-gradient(90deg, transparent 0 9px, rgba(209,92,255,.35) 9px 11px, transparent 11px 15px);
    clip-path: polygon(0 50%,5% 52%,8% 44%,12% 61%,16% 38%,20% 72%,24% 20%,28% 80%,32% 32%,38% 66%,45% 28%,50% 72%,55% 22%,60% 70%,66% 36%,74% 62%,82% 40%,90% 56%,100% 50%,100% 100%,0 100%);
}

.footer-wave strong {
    color: var(--cyan);
}

.footer-links {
    text-align: right;
}

.footer-links a {
    margin-left: 15px;
    color: #d9e2ff;
}

.player-page {
    display: grid;
    place-items: center;
    padding: 20px 0 30px;
}

.player-card {
    width: min(1380px, 100%);
    padding: 24px;
}

.back-link {
    color: var(--cyan);
    font-weight: 900;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0 22px;
}

.pulse-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 28px var(--cyan);
}

.now-playing p,
.now-playing h2 {
    margin: 0;
}

.now-playing p {
    color: var(--muted);
}

.now-playing h2 {
    margin: 3px 0;
    font-size: 30px;
}

.now-playing span {
    color: #f0a4ff;
}

.cdg-border {
    display: grid;
    place-items: center;
    width: 648px;
    height: 432px;
    max-width: 100%;
    margin: 0 auto;
    background: #000;
    border: 1px solid rgba(24,244,232,.4);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 36px rgba(24,244,232,.18);
}

#cdg_canvas {
    width: 576px;
    height: 384px;
    padding: 24px;
    image-rendering: auto;
}

.audio-player {
    display: block;
    width: 648px;
    max-width: 100%;
    margin: 18px auto 10px;
}

.cdg-status {
    width: 648px;
    max-width: 100%;
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 10px;
    color: #81fff7;
    background: rgba(255,255,255,.06);
    font-family: Consolas, monospace;
}

.player-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.player-actions button,
.player-actions a {
    border: 1px solid rgba(209,92,255,.5);
    border-radius: 10px;
    padding: 10px 16px;
    color: #f0a4ff;
    background: rgba(209,92,255,.12);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 1180px) {
    .hero,
    .content,
    .site-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero-grid,
    .dashboard-grid,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .hero-art {
        display: none;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

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

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

@media (max-width: 720px) {
    .hero,
    .content,
    .site-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .top-nav {
        display: block;
    }

    .brand-link {
        min-width: 0;
    }

    .nav-links {
        margin-top: 16px;
        justify-content: flex-start;
    }

    .brand-stack {
        display: block;
    }

    .logo-orb {
        width: 92px;
        height: 92px;
        border-radius: 28px;
        margin-bottom: 14px;
    }

    h1 {
        font-size: 48px;
    }

    .search-box {
        height: auto;
        flex-wrap: wrap;
    }

    .search-box input {
        min-height: 56px;
    }

    .search-box button {
        width: 100%;
        min-height: 48px;
    }

    .stats-grid,
    .sidebar {
        grid-template-columns: 1fr;
    }

    .song-table {
        min-width: 720px;
    }

    .site-footer {
        text-align: left;
    }

    .footer-links {
        text-align: left;
    }

    .footer-links a {
        margin-left: 0;
        margin-right: 14px;
    }
}

/* Added for MP4 playback and media labels */
.media-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(24,244,232,.38);
    color: var(--cyan);
    background: rgba(24,244,232,.08);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .04em;
}

.media-pill.mp4 {
    border-color: rgba(209,92,255,.52);
    color: #f0a4ff;
    background: rgba(209,92,255,.13);
}

.video-frame {
    width: min(1100px, 100%);
    margin: 0 auto;
    border: 1px solid rgba(24,244,232,.4);
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 36px rgba(24,244,232,.18);
}

.karaoke-video {
    display: block;
    width: 100%;
    max-height: 72vh;
    background: #000;
}

.missing-file-box {
    width: min(900px, 100%);
    margin: 0 auto 18px;
    padding: 18px;
    border: 1px solid rgba(255,95,210,.42);
    border-radius: 14px;
    background: rgba(255,95,210,.08);
    color: #ffdff6;
}

.missing-file-box h3 {
    margin-top: 0;
}

.missing-file-box code {
    display: inline-block;
    margin-top: 6px;
    color: #04140a;
    overflow-wrap: anywhere;
}

/* Shared admin/upload layout */
.admin-wrap {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto 40px;
}

.admin-card {
    border: 1px solid rgba(118, 196, 255, 0.18);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(13,26,48,.92), rgba(7,14,30,.86));
    box-shadow: 0 24px 80px rgba(0,0,0,.45);
    padding: 26px;
}

.admin-card h2 {
    margin: 12px 0 8px;
    font-size: 42px;
    letter-spacing: -1px;
}

.admin-card .sub {
    margin: 0 0 24px;
    color: #aeb9d5;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.admin-field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.admin-field.full {
    grid-column: 1 / -1;
}

.admin-field label {
    font-weight: 800;
    color: #e9efff;
}

.admin-field input,
.admin-field select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(118,196,255,.25);
    border-radius: 12px;
    padding: 0 14px;
    color: #f5f7ff;
    background: rgba(8,16,34,.82);
    outline: none;
}

.admin-field input[type="file"] {
    padding: 12px;
    height: auto;
}

.hint {
    color: #9ea9c2;
    font-size: 13px;
}

.admin-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.admin-button {
    border: 0;
    border-radius: 12px;
    padding: 13px 22px;
    color: #031019;
    background: linear-gradient(135deg, #18f4e8, #d15cff);
    font-weight: 950;
    cursor: pointer;
}

.admin-link {
    color: #18f4e8;
    font-weight: 800;
}

.notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(24,244,232,.34);
    background: rgba(24,244,232,.08);
    color: #dffcff;
}

.notice.error {
    border-color: rgba(255,95,210,.45);
    background: rgba(255,95,210,.09);
    color: #ffdff6;
}

.replace-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c9d3e9;
    font-weight: 700;
}

.replace-row input {
    width: auto;
    min-height: auto;
}

.file-block {
    display: none;
}

.file-block.active {
    display: block;
}

.load-time {
    margin-top: 4px !important;
    color: #9ea9c2 !important;
    font-size: 12px !important;
}

@media (max-width: 720px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

/* Discovery home page */
.home-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid rgba(118, 196, 255, 0.18);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(13,26,48,.92), rgba(31,16,54,.82));
    box-shadow: 0 24px 80px rgba(0,0,0,.35);
}

.home-hero-copy h2 {
    margin: 0 0 10px;
    color: #f5f7ff;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1;
    letter-spacing: -1.5px;
}

.home-hero-copy p:last-child {
    max-width: 760px;
    margin: 0;
    color: #aeb9d5;
    font-size: 17px;
    line-height: 1.6;
}

.home-search-form {
    display: grid;
    gap: 14px;
}

.home-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.compact-stats {
    margin-bottom: 24px;
}

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

.discovery-card {
    border: 1px solid rgba(118, 196, 255, 0.16);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(13,26,48,.92), rgba(7,14,30,.82));
    box-shadow: 0 18px 55px rgba(0,0,0,.28);
    padding: 20px;
}

.discovery-card .section-heading {
    margin-bottom: 14px;
}

.discovery-list,
.artist-rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.discovery-song-row,
.artist-rank-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(118,196,255,.12);
    background: rgba(8,16,34,.58);
}

.discovery-song-row > div:first-child,
.artist-rank-list li > a {
    min-width: 0;
}

.song-title-link,
.artist-rank-list a {
    display: block;
    color: #28fff0;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-title-link:hover,
.artist-rank-list a:hover {
    color: #9ffff8;
}

.discovery-song-row span,
.discovery-song-row small,
.artist-rank-list span {
    display: block;
    color: #9ea9c2;
    font-size: 13px;
    margin-top: 3px;
}

.discovery-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.play-count-pill {
    display: inline-flex !important;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    color: #e9efff !important;
    background: rgba(209,92,255,.18);
    border: 1px solid rgba(209,92,255,.25);
    font-size: 12px !important;
    font-weight: 800;
    margin: 0 !important;
}

.mini-play-button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #031019;
    background: linear-gradient(135deg, #18f4e8, #d15cff);
    font-weight: 950;
    text-decoration: none;
}

.new-release-badge,
.song-title-link .new-release-badge,
.song-table .new-release-badge {
    display: inline-block !important;
    padding: 1px 6px 2px !important;
    min-height: 18px !important;
    border-radius: 2px !important;
    color: #fff !important;
    background: #3b86d9 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 18px !important;
    letter-spacing: 0 !important;
    text-transform: lowercase !important;
    vertical-align: middle !important;
    margin: 0 0 0 5px !important;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.20) !important;
}

@media (max-width: 940px) {
    .home-hero-panel,
    .discovery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .home-hero-panel {
        padding: 20px;
    }

    .discovery-song-row,
    .artist-rank-list li {
        align-items: flex-start;
        flex-direction: column;
    }

    .discovery-row-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Song request page + upload queue */
.request-hero-panel {
    align-items: stretch;
}

.request-help-card {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 22px;
    border-radius: 20px;
    border: 1px solid rgba(24,244,232,.22);
    background: rgba(8,16,34,.62);
}

.request-help-card strong {
    color: #18f4e8;
    font-size: 18px;
}

.request-help-card p {
    margin: 0;
    color: #aeb9d5;
    line-height: 1.55;
}

.request-wrap {
    margin-top: 0;
}

.muted-label {
    color: #9ea9c2;
    font-size: 13px;
    font-weight: 700;
}

.compact-notice {
    padding: 9px 12px;
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 10px;
}

.upload-dashboard {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.request-queue-card {
    position: sticky;
    top: 18px;
}

.request-queue-list {
    display: grid;
    gap: 10px;
    max-height: 620px;
    overflow: auto;
    padding-right: 4px;
}

.request-queue-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(118,196,255,.14);
    background: rgba(8,16,34,.56);
}

.request-queue-item.selected {
    border-color: rgba(24,244,232,.55);
    box-shadow: 0 0 0 1px rgba(24,244,232,.16) inset;
}

.request-queue-item strong {
    display: block;
    color: #f5f7ff;
    font-size: 14px;
    line-height: 1.35;
}

.request-queue-item small {
    display: block;
    color: #9ea9c2;
    margin-top: 4px;
    line-height: 1.35;
}

.request-queue-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.request-queue-actions form {
    margin: 0;
}

.mini-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(24,244,232,.38);
    background: rgba(24,244,232,.08);
    color: #18f4e8;
    font-weight: 900;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

button.mini-action {
    font-family: inherit;
}

.mini-action.danger {
    color: #ffdff6;
    border-color: rgba(255,95,210,.36);
    background: rgba(255,95,210,.08);
}

.upload-options-row {
    display: grid;
    gap: 10px;
}

@media (max-width: 980px) {
    .upload-dashboard {
        grid-template-columns: 1fr;
    }

    .request-queue-card {
        position: static;
    }
}

@media (max-width: 560px) {
    .request-queue-item {
        grid-template-columns: 1fr;
    }

    .request-queue-actions {
        justify-content: flex-start;
    }
}

/* Upload page: keep upload form first, request queue below it */
.upload-dashboard {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
}

.upload-dashboard > .admin-card:not(.request-queue-card) {
    order: 1;
}

.upload-dashboard > .request-queue-card {
    order: 2;
    position: static;
    top: auto;
}

.upload-dashboard .request-queue-list {
    max-height: 460px;
}


/* Local admin area */
.admin-hero-panel {
    margin-bottom: 22px;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.admin-tile {
    display: grid;
    gap: 10px;
    min-height: 170px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(118,196,255,.18);
    background: linear-gradient(180deg, rgba(13,26,48,.92), rgba(7,14,30,.86));
    box-shadow: 0 18px 55px rgba(0,0,0,.30);
    color: #f5f7ff;
    text-decoration: none;
}

.admin-tile:hover {
    border-color: rgba(24,244,232,.44);
    transform: translateY(-1px);
}

.admin-tile span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(24,244,232,.18), rgba(209,92,255,.18));
    color: #18f4e8;
    font-size: 22px;
}

.admin-tile strong {
    font-size: 20px;
}

.admin-tile p {
    margin: 0;
    color: #aeb9d5;
    line-height: 1.45;
}

.wide-admin-wrap {
    width: min(1240px, calc(100% - 32px));
}

.admin-filter-form {
    margin: 16px 0 20px;
}

.admin-filter-form .search-box select,
.admin-filter-form .search-box input[type="number"] {
    min-height: 44px;
    border: 1px solid rgba(118,196,255,.25);
    border-radius: 12px;
    padding: 0 12px;
    color: #f5f7ff;
    background: rgba(8,16,34,.82);
}

.admin-table th,
.admin-table td {
    vertical-align: middle;
}

.file-health-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.file-health {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid rgba(118,196,255,.18);
    background: rgba(8,16,34,.56);
}

.file-health.ok strong {
    color: #18f4e8;
}

.file-health.bad strong {
    color: #ff9add;
}

.admin-request-list {
    max-height: none;
}

.admin-status-chips {
    margin: 12px 0 18px;
}

.report-list {
    display: grid;
    gap: 12px;
}

.report-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(118,196,255,.16);
    background: rgba(8,16,34,.56);
}

.report-card strong {
    color: #f5f7ff;
}

.report-card p {
    margin: 6px 0;
    color: #c9d3e9;
}

.report-card small {
    color: #9ea9c2;
}

.report-issue-panel {
    display: none;
    margin-top: 22px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(118,196,255,.16);
    background: rgba(8,16,34,.56);
}

.report-issue-panel.is-open {
    display: block;
}

.report-issue-panel h3 {
    margin: 0 0 6px;
}

.report-form {
    margin-top: 14px;
}

@media (max-width: 980px) {
    .admin-dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 620px) {
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin dashboard polish */
.access-denied-wrap {
    margin-top: 32px;
}

.access-denied-card {
    text-align: center;
    padding: 42px 28px;
}

.access-denied-card .admin-link {
    display: inline-block;
    margin-bottom: 18px;
}

.access-denied-card h2 {
    margin: 0;
    font-size: clamp(42px, 7vw, 74px);
    line-height: .95;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #ffffff, #18f4e8 45%, #d15cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.admin-control-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
    gap: 22px;
    align-items: stretch;
    margin: 0 0 24px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(118,196,255,.20);
    border-radius: 28px;
    background:
        radial-gradient(circle at 16% 10%, rgba(24,244,232,.22), transparent 32%),
        radial-gradient(circle at 92% 20%, rgba(209,92,255,.20), transparent 36%),
        linear-gradient(135deg, rgba(13,26,48,.96), rgba(7,14,30,.88));
    box-shadow: 0 26px 90px rgba(0,0,0,.46);
}

.admin-control-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 310px;
    height: 310px;
    border-radius: 999px;
    background: rgba(24,244,232,.08);
    filter: blur(4px);
    pointer-events: none;
}

.admin-control-copy {
    position: relative;
    z-index: 1;
}

.admin-control-copy h2 {
    margin: 4px 0 10px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: .92;
    letter-spacing: -3px;
}

.admin-control-copy p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: #c8d3ee;
    font-size: 18px;
    line-height: 1.55;
}

.admin-control-stats {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}

.admin-control-stats div {
    padding: 16px 18px;
    border: 1px solid rgba(118,196,255,.18);
    border-radius: 20px;
    background: rgba(8,16,34,.55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.admin-control-stats strong {
    display: block;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -1px;
    color: #fff;
}

.admin-control-stats span {
    display: block;
    margin-top: 5px;
    color: #9ea9c2;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fancy-admin-grid {
    gap: 20px;
}

.fancy-admin-grid .admin-tile {
    position: relative;
    overflow: hidden;
    min-height: 205px;
    padding: 24px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 20% 0%, rgba(24,244,232,.13), transparent 34%),
        linear-gradient(180deg, rgba(13,26,48,.94), rgba(7,14,30,.88));
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.fancy-admin-grid .admin-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(135deg, rgba(24,244,232,.08), rgba(209,92,255,.09));
    transition: opacity .16s ease;
}

.fancy-admin-grid .admin-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(24,244,232,.50);
    box-shadow: 0 24px 70px rgba(0,0,0,.42), 0 0 34px rgba(24,244,232,.08);
}

.fancy-admin-grid .admin-tile:hover::before {
    opacity: 1;
}

.fancy-admin-grid .admin-tile span,
.fancy-admin-grid .admin-tile strong,
.fancy-admin-grid .admin-tile p,
.fancy-admin-grid .admin-tile em {
    position: relative;
    z-index: 1;
}

.fancy-admin-grid .admin-tile span {
    width: 54px;
    height: 54px;
    border-radius: 20px;
    font-size: 26px;
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

.fancy-admin-grid .admin-tile strong {
    font-size: 23px;
    letter-spacing: -.4px;
}

.fancy-admin-grid .admin-tile em {
    align-self: end;
    color: #18f4e8;
    font-style: normal;
    font-weight: 950;
}

.primary-admin-tile {
    border-color: rgba(24,244,232,.34);
    background:
        radial-gradient(circle at 20% 0%, rgba(24,244,232,.25), transparent 34%),
        radial-gradient(circle at 100% 20%, rgba(209,92,255,.18), transparent 34%),
        linear-gradient(180deg, rgba(13,26,48,.98), rgba(7,14,30,.90)) !important;
}

.quiet-admin-tile {
    opacity: .92;
}

@media (max-width: 860px) {
    .admin-control-hero {
        grid-template-columns: 1fr;
    }
}

.recent-list .new-release-badge {
    display: inline-block !important;
}
