@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-body: #0a0e1a;
    --bg-main: #0f1628;
    --bg-card: #141c33;
    --bg-elevated: #1a2440;
    --bg-highlight: #1e2d52;
    --bg-hover: rgba(255,255,255,0.04);
    --accent: #3b82f6;
    --accent-bright: #60a5fa;
    --accent-glow: #93c5fd;
    --accent-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    --text-primary: #e8ecf5;
    --text-secondary: #7f8ea3;
    --text-muted: #4a5568;
    --danger: #ff4757;
    --glass: rgba(15, 22, 40, 0.7);
    --glass-border: rgba(79, 140, 255, 0.12);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.25);
    --shadow-glow: 0 0 24px rgba(79,140,255,0.15);
    --radius: 14px;
    --radius-sm: 10px;
    --ambient-image: none;
    --ambient-opacity: 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.hidden { display: none !important; }

body {
    background: var(--bg-body);
    background-image: 
        linear-gradient(rgba(79, 140, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 140, 255, 0.04) 1px, transparent 1px),
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(79,140,255,0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(99,102,241,0.08) 0%, transparent 50%);
    background-size: 30px 30px, 30px 30px, 100% 100%, 100% 100%;
    background-position: -1px -1px, -1px -1px, 0 0, 0 0;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

body::before {
    inset: -10%;
    background-image: var(--ambient-image);
    background-size: cover;
    background-position: center;
    filter: blur(120px) saturate(1.25);
    transform: scale(1.12);
    opacity: var(--ambient-opacity);
    z-index: -2;
}

body::after {
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(4, 8, 16, 0.04), rgba(4, 8, 16, 0.54));
    z-index: -1;
}

body.has-ambient-artwork::after {
    opacity: 0.92;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(79,140,255,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(79,140,255,0.35); }

/* ─── Inputs ─── */
.neon-input {
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    width: 100%;
    backdrop-filter: blur(8px);
}
.neon-input:focus { 
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79,140,255,0.15);
    background: var(--bg-highlight);
}
.neon-input::placeholder { color: var(--text-muted); }

/* ─── Buttons ─── */
.btn-glow {
    background: var(--accent-gradient);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 32px;
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(79,140,255,0.3);
}
.btn-glow:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(79,140,255,0.45); }
.btn-glow:active { transform: scale(0.97); }
.btn-glow:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ─── Layout ─── */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.top-bar {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
    background: rgba(10,14,26,0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 10;
}

.top-brand,
.top-search-group,
.top-search-wrap,
.top-actions {
    min-width: 0;
}

.top-search-wrap {
    flex: 1;
}

.top-search-wrap .neon-input {
    height: 48px !important;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.top-search-wrap .neon-input:focus {
    background: rgba(255,255,255,0.08);
}

.top-icon-btn {
    flex-shrink: 0;
}

.mobile-library-btn {
    display: none !important;
}

.middle-row {
    display: flex;
    gap: 10px;
    padding: 10px;
    flex: 1;
    min-height: 0;
}

/* ─── Sidebar ─── */
.sidebar {
    width: 300px;
    flex-shrink: 0;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.sidebar-header {
    padding: 20px 20px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-header .lib-title {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.sidebar-header .lib-title:hover { color: var(--accent-bright); }

.sidebar-filters {
    padding: 0 16px;
    margin-bottom: 10px;
    display: flex;
    gap: 6px;
}
.sidebar-filter-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.sidebar-filter-btn:hover { background: var(--bg-highlight); color: white; border-color: rgba(79,140,255,0.25); }

.library-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 10px;
}
.library-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.library-section:last-child {
    margin-bottom: 0;
}
.library-section-label {
    padding: 0 10px 4px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.library-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}
.library-item:hover { background: rgba(79,140,255,0.08); }
.library-item.is-featured {
    background: linear-gradient(180deg, rgba(124,58,237,0.15), rgba(34,211,238,0.08));
    border: 1px solid rgba(124,58,237,0.18);
}
.library-item .img-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.library-item .img-box.is-round {
    border-radius: 50%;
}
.library-item .img-box img { width: 100%; height: 100%; object-fit: cover; }
.library-item .info { flex: 1; min-width: 0; }
.library-item .title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.library-item .subtitle { font-size: 0.78rem; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }
.library-avatar-fallback {
    font-size: 0.88rem;
    font-weight: 800;
    color: white;
}
.library-empty-copy {
    padding: 4px 10px 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.45;
}

/* ─── Main Content ─── */
.main-content {
    flex: 1;
    min-width: 0;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(16px);
}
.main-gradient-bg {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 300px;
    background: linear-gradient(180deg, rgba(79,140,255,0.12) 0%, rgba(15,22,40,0) 100%);
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.main-gradient-bg::before,
.main-gradient-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.main-gradient-bg::before {
    inset: -18% -12% auto -12%;
    height: 360px;
    background-image:
        linear-gradient(180deg, rgba(8,12,22,0.1) 0%, rgba(8,12,22,0.65) 100%),
        var(--ambient-image);
    background-size: cover;
    background-position: center top;
    filter: blur(46px) saturate(1.2);
    opacity: calc(var(--ambient-opacity) * 0.95);
}

.main-gradient-bg::after {
    background:
        linear-gradient(180deg, rgba(8,12,22,0.04) 0%, rgba(8,12,22,0.86) 100%),
        radial-gradient(circle at top left, rgba(34,197,94,0.16), transparent 30%);
}

.main-header-content {
    position: relative;
    z-index: 1;
    padding: 24px;
}
.main-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.main-filter-btn {
    background: rgba(79,140,255,0.1);
    border: 1px solid rgba(79,140,255,0.15);
    color: var(--text-secondary);
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.main-filter-btn.active { 
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(79,140,255,0.3);
}
.main-filter-btn:hover:not(.active) { background: rgba(79,140,255,0.18); color: white; }

/* Shortcut Cards */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    margin-bottom: 36px;
}
.shortcut-card {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s;
    height: 64px;
    position: relative;
}
.shortcut-card:hover { 
    background: var(--bg-elevated);
    border-color: rgba(79,140,255,0.25);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}
.shortcut-card .thumb { width: 64px; height: 64px; flex-shrink: 0; background: var(--bg-elevated); }
.shortcut-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.shortcut-card .title { font-weight: 700; font-size: 0.9rem; padding: 0 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }

.shortcut-play-btn {
    position: absolute;
    right: 10px;
    width: 36px; height: 36px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    box-shadow: 0 4px 12px rgba(79,140,255,0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    color: white;
}
.shortcut-card:hover .shortcut-play-btn { opacity: 1; }
.shortcut-play-btn:hover { transform: scale(1.1); }
.shortcut-play-btn svg { fill: white; }

/* Track Cards */
.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--accent-gradient);
    border-radius: 4px;
    display: inline-block;
}

.track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.track-list {
    display: block;
}

.search-view-shell {
    display: flex;
    flex-direction: column;
}

.search-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.search-summary {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: -4px 0 24px;
    max-width: 720px;
}

.search-spotlight {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    margin-bottom: 26px;
}

.search-card {
    background: linear-gradient(180deg, rgba(20,28,51,0.96), rgba(15,22,40,0.88));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 20px 42px rgba(0,0,0,0.22);
}

.search-spotlight.is-albums-only {
    display: none;
}

.search-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.search-block-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: white;
}

.search-meta-copy {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.search-albums-section {
    margin-top: 10px;
}

.search-top-result-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 18px;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-top-result-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59,130,246,0.32);
    background: linear-gradient(180deg, rgba(59,130,246,0.12), rgba(255,255,255,0.05));
}

.search-top-cover {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(0,0,0,0.26);
}

.search-top-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-top-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-top-badge {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.search-top-title {
    font-size: 1.8rem;
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 900;
    color: white;
    word-break: break-word;
}

.search-top-meta {
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.search-top-play {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(22,163,74,0.28);
    transition: transform 0.18s ease;
}

.search-top-play:hover {
    transform: scale(1.05);
}

.search-top-empty {
    display: flex;
    gap: 14px;
    align-items: center;
    min-height: 188px;
    color: var(--text-secondary);
}

.search-top-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.search-top-empty-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.search-top-empty-copy {
    font-size: 0.82rem;
    line-height: 1.5;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

.album-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 16px;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.album-card:hover {
    transform: translateY(-3px);
    border-color: rgba(79,140,255,0.32);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.album-cover {
    aspect-ratio: 1/1;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--bg-elevated);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.album-artist {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.album-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.album-detail-shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.album-detail-topbar {
    display: flex;
    justify-content: flex-start;
}

.album-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.album-back-btn:hover {
    background: rgba(79,140,255,0.1);
    border-color: rgba(79,140,255,0.28);
    color: white;
}

.album-detail-hero {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.album-detail-cover,
.album-detail-cover-skeleton {
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    overflow: hidden;
    background: var(--bg-elevated);
    box-shadow: 0 18px 42px rgba(0,0,0,0.3);
}

.album-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-detail-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
}

.album-detail-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(79,140,255,0.12);
    border: 1px solid rgba(79,140,255,0.2);
    color: var(--accent-bright);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.album-detail-title {
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-weight: 900;
    color: white;
    margin-bottom: 12px;
    word-break: break-word;
}

.album-detail-artist {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-bright);
    margin-bottom: 16px;
}

.album-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    margin-bottom: 16px;
}

.album-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.album-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(79,140,255,0.14);
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 700;
}

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

.album-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(34,197,94,0.22);
    background: rgba(34,197,94,0.1);
    color: #86efac;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0 18px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.album-secondary-link:hover {
    transform: translateY(-1px);
    border-color: rgba(34,197,94,0.4);
    background: rgba(34,197,94,0.16);
}

.album-tracklist {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    overflow: hidden;
}

.album-tracklist-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(79,140,255,0.08);
}

.album-track-row {
    width: 100%;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(79,140,255,0.05);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.album-track-row:last-child {
    border-bottom: none;
}

.album-track-row:hover {
    background: rgba(79,140,255,0.08);
}

.album-track-row.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.album-track-row.disabled:hover {
    background: transparent;
}

.album-track-index {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.album-track-main {
    min-width: 0;
}

.album-track-name {
    color: white;
    font-size: 0.94rem;
    font-weight: 700;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-track-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.album-track-query {
    color: var(--text-muted);
}

.album-track-duration {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.track-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}
.track-card:hover { 
    background: var(--bg-elevated);
    border-color: rgba(79,140,255,0.2);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.track-card .thumb {
    aspect-ratio: 1/1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 14px;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-card);
    position: relative;
}
.track-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.track-card:hover .thumb img { transform: scale(1.03); }

.track-card .track-favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(9, 13, 24, 0.68);
    backdrop-filter: blur(14px);
    color: rgba(255,255,255,0.82);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
    z-index: 2;
}

.track-card .track-favorite-btn:hover {
    color: white;
    transform: scale(1.08);
    background: rgba(255,255,255,0.14);
}

.track-card .track-favorite-btn.active {
    color: var(--accent-bright);
    border-color: rgba(30, 215, 96, 0.32);
    background: rgba(30, 215, 96, 0.14);
}

.track-card .play-overlay {
    position: absolute;
    bottom: 8px; right: 8px;
    width: 44px; height: 44px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(79,140,255,0.4);
    border: none;
    cursor: pointer;
}
.track-card:hover .play-overlay { opacity: 1; transform: translateY(0); }
.track-card .play-overlay:hover { transform: translateY(0) scale(1.08); }

.track-card .title { font-size: 0.9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; color: white; }
.track-card .artist { font-size: 0.8rem; color: var(--text-secondary); display: flex; justify-content: space-between; align-items: center; }

.track-list-shell {
    background: rgba(8, 12, 22, 0.26);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 18px;
    overflow: hidden;
}

.track-list-header,
.track-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) minmax(120px, 0.36fr) 56px 72px;
    gap: 14px;
    align-items: center;
}

.track-list-header {
    padding: 12px 18px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.track-row {
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.18s ease;
}

.track-row:hover {
    background: rgba(255,255,255,0.04);
}

.track-row.is-skeleton {
    cursor: default;
}

.track-row-index {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.track-row-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.track-row-thumb,
.track-row-thumb-skeleton {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-elevated);
}

.track-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-row-copy {
    min-width: 0;
}

.track-row-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-row-meta,
.track-row-source,
.track-row-duration {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.track-row-meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-row-source,
.track-row-duration {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.track-row-menu {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.track-row-menu:hover {
    color: white;
    background: rgba(255,255,255,0.08);
}

.track-row-favorite {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.track-row-favorite:hover {
    color: white;
    background: rgba(255,255,255,0.08);
}

.track-row-favorite.active {
    color: var(--accent-bright);
}

/* ─── Right Panel (Now Playing) ─── */
.now-playing-panel {
    width: 340px;
    flex-shrink: 0;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    display: none;
    backdrop-filter: blur(16px);
    transition: width 0.3s ease;
}
.now-playing-panel.visible {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.np-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.np-title-top {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.np-close-btn {
    background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 4px; border-radius: 50%; transition: all 0.2s; display: flex; align-items: center; justify-content: center; height: 30px; width: 30px;
}
.np-close-btn:hover { background: rgba(79,140,255,0.15); color: var(--accent-bright); }

.np-cover-container {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1/1;
    background: var(--bg-elevated);
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), var(--shadow-glow);
}
.np-cover-container img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; }
.np-cover-container #videoPlayerFrame { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.np-cover-container #videoPlayerFrame iframe { width: 100%; height: 100%; border: none; }

.np-video-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(10,14,26,0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(79,140,255,0.25);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    z-index: 10;
}
.np-video-toggle:hover {
    background: rgba(79,140,255,0.2);
    border-color: var(--accent);
    transform: scale(1.05);
}

.np-track-info {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.np-track-info .info-left { flex: 1; min-width: 0; padding-right: 12px; }
.np-track-info .title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; line-height: 1.2; word-break: break-word; color: white; }
.np-track-info .artist { font-size: 0.9rem; color: var(--accent-bright); font-weight: 600; }
.np-favorite-btn {
    background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 4px; transition: all 0.2s; flex-shrink: 0; margin-top: 4px;
}
.np-favorite-btn:hover { color: var(--accent-bright); transform: scale(1.15); }
.np-favorite-btn.active { color: var(--accent); }

.np-box {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
}
.np-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.np-box-title { font-size: 0.9rem; font-weight: 700; color: white; }
.np-box-action { font-size: 0.78rem; font-weight: 600; color: var(--accent-bright); cursor: pointer; transition: color 0.2s; border: none; background: none; }
.np-box-action:hover { color: var(--accent-glow); }

.np-credits-artist { font-weight: 700; font-size: 0.9rem; color: white; margin-bottom: 3px; }
.np-credits-role { font-size: 0.8rem; color: var(--text-secondary); }
.np-subscribe-btn {
    border: 1px solid rgba(79,140,255,0.3);
    background: rgba(79,140,255,0.1);
    color: var(--accent-bright);
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.np-subscribe-btn:hover { background: rgba(79,140,255,0.2); border-color: var(--accent); transform: scale(1.03); }

/* Spotify-like right panel refresh */
.now-playing-panel {
    width: 356px;
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 38%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(10, 14, 26, 0.98));
    border: 1px solid rgba(118, 152, 255, 0.16);
    box-shadow: 0 24px 60px rgba(0,0,0,0.38);
}

.now-playing-panel.visible {
    gap: 14px;
    padding: 18px;
}

.np-header {
    margin-bottom: 0;
}

.np-title-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.np-session-caption {
    font-size: 0.76rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.np-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.76);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
}

.np-icon-btn:hover {
    color: white;
    border-color: rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.np-stage {
    position: relative;
    min-height: 560px;
    padding: 14px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}

.np-cover-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(12,18,30,0.1) 0%, rgba(12,18,30,0.55) 48%, rgba(7,10,18,0.96) 100%),
        var(--np-artwork, url('https://images.unsplash.com/photo-1493225255756-d9584f8606e9?w=800&auto=format&fit=crop'));
    background-size: cover;
    background-position: center;
    filter: saturate(1.08) blur(0);
    transform: scale(1.08);
}

.np-cover-chrome,
.np-stage-overlay {
    position: relative;
    z-index: 2;
}

.np-cover-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.np-session {
    max-width: 72%;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(9, 13, 24, 0.4);
    backdrop-filter: blur(18px);
    font-size: 0.82rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-stage-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.np-stage-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(9, 13, 24, 0.44);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.np-stage-icon:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.16);
}

.np-cover-container {
    position: absolute;
    inset: 0;
    margin: 0;
    aspect-ratio: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.np-cover-container img,
.np-cover-container #videoPlayerFrame,
.np-cover-container #videoPlayerFrame iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-cover-container > .np-video-toggle {
    display: none;
}

#videoPlayerFrame {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background: #000;
}

.np-stage-overlay {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 18px;
    padding-top: 96px;
}

.np-video-toggle-main {
    align-self: flex-start;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(8, 12, 22, 0.44);
    backdrop-filter: blur(12px);
    color: white;
    font-size: 0.84rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.np-video-toggle-main:hover {
    background: rgba(255,255,255,0.16);
    transform: translateY(-1px);
}

.np-track-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.np-track-copy .title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: white;
    line-height: 1.1;
}

.np-track-copy .artist {
    font-size: 0.98rem;
    font-weight: 600;
    color: rgba(255,255,255,0.78);
}

.np-track-side-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.np-share-btn {
    background: rgba(8, 12, 22, 0.44);
    backdrop-filter: blur(12px);
}

.np-favorite-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(8, 12, 22, 0.44);
    color: rgba(255,255,255,0.82);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    margin: 0;
    padding: 0;
}

.np-favorite-btn:hover {
    color: white;
    transform: translateY(-1px) scale(1.03);
}

.np-favorite-btn.active {
    color: #1ed760;
    border-color: rgba(30, 215, 96, 0.38);
    background: rgba(30, 215, 96, 0.12);
}

.np-stage .np-track-info {
    display: none;
}

.np-box {
    margin-bottom: 0;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
}

.np-box-header {
    margin-bottom: 14px;
}

.np-credit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.np-queue-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.np-queue-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-radius: 14px;
    cursor: pointer;
}

.np-queue-item:hover .np-queue-title {
    color: white;
}

.np-queue-thumb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255,255,255,0.04);
}

.np-queue-copy {
    min-width: 0;
}

.np-queue-title,
.np-queue-artist {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-queue-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255,255,255,0.88);
}

.np-queue-artist {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.np-queue-status {
    font-size: 0.72rem;
    color: var(--accent-bright);
    font-weight: 700;
}

.np-queue-empty {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

#npQueueBox.is-open .np-queue-preview {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 2px;
}

/* ─── Player Footer ─── */
.player-footer {
    height: 80px;
    background: rgba(10,14,26,0.85);
    backdrop-filter: blur(24px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    flex-shrink: 0;
}

.footer-left { display: flex; align-items: center; gap: 14px; width: 30%; min-width: 180px; }
.footer-left .thumb { width: 52px; height: 52px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--bg-elevated); position: relative; box-shadow: var(--shadow-card); }
.footer-left .thumb img { width: 100%; height: 100%; object-fit: cover; }
.footer-left .info { min-width: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.footer-left .title { font-size: 0.85rem; font-weight: 600; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.footer-left .artist { font-size: 0.72rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }

.footer-center { display: flex; flex-direction: column; align-items: center; flex: 1; max-width: 722px; padding: 0 16px; }
.player-controls { display: flex; align-items: center; gap: 20px; margin-bottom: 6px; }

.control-btn { background: none; border: none; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.control-btn:hover { color: var(--accent-bright); }
.control-btn.active { color: var(--accent); }
.control-btn.active:hover { color: var(--accent-glow); }

.play-pause-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
    color: white;
    box-shadow: 0 2px 12px rgba(79,140,255,0.35);
}
.play-pause-btn:hover { transform: scale(1.08); box-shadow: 0 4px 20px rgba(79,140,255,0.5); }
.play-pause-btn:active { transform: scale(0.93); }

.progress-container { display: flex; align-items: center; gap: 8px; width: 100%; }
.progress-time { font-size: 0.68rem; color: var(--text-muted); font-weight: 500; min-width: 40px; font-variant-numeric: tabular-nums; }
.progress-time.left { text-align: right; }
.progress-time.right { text-align: left; }

.footer-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; width: 30%; min-width: 180px; }

/* Custom Sliders */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(79,140,255,0.2);
    outline: none;
    cursor: pointer;
    flex: 1;
    transition: background 0.2s;
}
input[type="range"]:hover { background: rgba(79,140,255,0.35); }
input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 0px;
    height: 0px;
    border-radius: 50%;
    background: var(--accent-bright);
    box-shadow: 0 0 8px rgba(79,140,255,0.5);
    transition: all 0.15s;
    margin-top: -4px;
}
.progress-container:hover input[type="range"]::-webkit-slider-thumb,
.footer-right:hover input[type="range"]::-webkit-slider-thumb {
    width: 12px; height: 12px;
}

/* Modals */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(5,8,15,0.8); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 1000;
}
.modal-content {
    background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius); width: 100%; max-width: 420px; padding: 28px; position: relative; box-shadow: 0 24px 48px rgba(0,0,0,0.5), var(--shadow-glow);
}
.modal-close {
    position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-secondary); cursor: pointer; transition: color 0.2s;
}
.modal-close:hover { color: var(--accent-bright); }

.profile-recap-panel {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 16px;
    display: grid;
    gap: 14px;
    background:
        radial-gradient(circle at 92% 8%, rgba(128, 101, 255, 0.28), transparent 34%),
        linear-gradient(145deg, rgba(33, 48, 88, 0.58), rgba(14, 20, 38, 0.74));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.profile-recap-kicker {
    display: inline-flex;
    margin-bottom: 7px;
    color: var(--accent-bright);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-recap-panel strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    letter-spacing: -0.03em;
}

.profile-recap-panel p {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.45;
}

.profile-recap-test-btn {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #071020;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff 0%, #dbeafe 52%, #c7d2fe 100%);
    box-shadow: 0 10px 28px rgba(79, 140, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-recap-test-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(79, 140, 255, 0.32);
}

.hidden { display: none !important; }

/* ─── Animations ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.track-card { animation: fadeInUp 0.4s ease backwards; }
.track-card:nth-child(1) { animation-delay: 0.02s; }
.track-card:nth-child(2) { animation-delay: 0.04s; }
.track-card:nth-child(3) { animation-delay: 0.06s; }
.track-card:nth-child(4) { animation-delay: 0.08s; }
.track-card:nth-child(5) { animation-delay: 0.10s; }
.track-card:nth-child(6) { animation-delay: 0.12s; }
.animate-fade { animation: fadeInUp 0.35s ease backwards; }

/* ─── Skeleton Loader ─── */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-highlight) 50%, var(--bg-elevated) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.6s infinite;
    border-radius: var(--radius-sm);
}

/* ─── Favorite Button ─── */
.favorite-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.favorite-btn:hover { color: var(--accent-bright); transform: scale(1.2); }
.favorite-btn.active { color: var(--accent); }

/* ─── Right-click Context Menu ─── */
.context-menu {
    position: fixed;
    z-index: 9000;
    background: rgba(15, 22, 40, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 6px;
    min-width: 220px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 24px rgba(79,140,255,0.08);
    animation: fadeInUp 0.15s ease;
}
.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}
.context-menu-item:hover { background: rgba(79,140,255,0.12); color: white; }
.context-menu-item.active { color: var(--accent-bright); }
.context-menu-item svg { flex-shrink: 0; }
.context-menu-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 4px 8px;
}
.context-menu-label {
    padding: 6px 12px 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* ─── Admin Dashboard ─── */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.admin-table th {
    text-align: left;
    padding: 16px 24px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
}
.admin-table td {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(79,140,255,0.05);
    vertical-align: middle;
}
.admin-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-owner {
    background: rgba(139,92,246,0.15);
    color: #a78bfa;
    border: 1px solid rgba(139,92,246,0.3);
}
.badge-admin {
    background: rgba(16,185,129,0.15);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.3);
}
.badge-user {
    background: rgba(79,140,255,0.15);
    color: var(--accent-bright);
    border: 1px solid rgba(79,140,255,0.3);
}
.badge-danger {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.3);
}
.glass-strong {
    background: rgba(15,22,40,0.85);
    border: 1px solid rgba(79,140,255,0.15);
    backdrop-filter: blur(24px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.glass {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}
.nav-link:hover {
    background: rgba(79,140,255,0.08);
    color: white;
}
.nav-link.active {
    background: var(--accent-gradient);
    color: white;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}
.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(79,140,255,0.15);
    top: -100px;
    left: -100px;
}
.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(139,92,246,0.12);
    bottom: -50px;
    right: -50px;
}

/* ─── Blur & Fade Reveal ─── */
@keyframes blurRevealIn {
    0% { filter: blur(15px); opacity: 0; transform: translateY(15px) scale(0.96); }
    100% { filter: blur(0); opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes blurRevealOut {
    0% { filter: blur(0); opacity: 1; transform: translateY(0) scale(1); }
    100% { filter: blur(15px); opacity: 0; transform: translateY(-15px) scale(0.96); }
}

.reveal-wrapper {
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.reveal-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: none;
}

.reveal-text.active-in {
    display: block;
    animation: blurRevealIn 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.reveal-text.active-out {
    display: block;
    animation: blurRevealOut 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@media (max-width: 900px) {
    body {
        min-width: 0;
    }

    .top-bar {
        height: auto;
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px;
    }

    .top-brand {
        flex: 1;
    }

    .top-brand span {
        font-size: 1rem !important;
    }

    .top-search-group {
        order: 3;
        width: 100%;
    }

    .top-search-wrap {
        width: auto !important;
        max-width: none !important;
        flex: 1;
    }

    .mobile-library-btn {
        display: flex !important;
    }

    .middle-row {
        padding: 8px;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        border-radius: 20px;
    }

    .main-header-content {
        padding: 18px 14px 18px;
    }

    .main-filters {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 16px;
    }

    .main-filter-btn {
        padding: 8px 14px;
    }

    .main-header-content .reveal-wrapper {
        margin-left: 0 !important;
        height: auto;
        margin-bottom: 8px;
    }

    .reveal-text {
        font-size: 1.08rem;
    }

    .shortcuts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 24px;
    }

    .search-summary {
        margin-bottom: 18px;
        font-size: 0.84rem;
    }

    .search-spotlight {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 18px;
    }

    .search-card {
        padding: 14px;
        border-radius: 18px;
    }

    .search-top-result-card {
        gap: 14px;
    }

    .search-top-title {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.12rem;
        margin-bottom: 14px;
    }

    .section-title::before {
        height: 18px;
    }

    .track-grid,
    .album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .track-card,
    .album-card {
        padding: 12px;
    }

    .track-card .title,
    .album-title {
        font-size: 0.84rem;
    }

    .track-card .artist,
    .album-artist {
        font-size: 0.74rem;
    }

    .track-list-header,
    .track-row {
        grid-template-columns: 22px minmax(0, 1fr) 48px 70px;
        gap: 10px;
    }

    .track-list-header .track-col-meta,
    .track-row .track-col-meta {
        display: none;
    }

    .track-list-header,
    .track-row {
        padding-left: 12px;
        padding-right: 12px;
    }

    .track-row-thumb,
    .track-row-thumb-skeleton {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .track-row-title {
        font-size: 0.84rem;
    }

    .track-row-meta {
        font-size: 0.72rem;
    }

    .artist-profile-hero {
        min-height: 0;
        padding: 16px;
        border-radius: 24px;
    }

    .artist-profile-topbar {
        margin-bottom: 18px;
    }

    .artist-profile-hero-content {
        grid-template-columns: 1fr;
        gap: 18px;
        align-items: start;
    }

    .artist-profile-avatar,
    .artist-profile-avatar-skeleton {
        width: min(220px, 100%);
        border-radius: 22px;
    }

    .artist-profile-name {
        font-size: clamp(2.1rem, 10vw, 3.2rem);
        margin-bottom: 12px;
    }

    .artist-profile-meta {
        font-size: 0.82rem;
        gap: 8px;
    }

    .artist-profile-actions {
        gap: 10px;
    }

    .artist-profile-follow-btn,
    .artist-profile-link {
        min-height: 42px;
        padding: 0 14px;
    }

    .artist-release-grid,
    .artist-profile-related-grid,
    .artist-about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .artist-home-section {
        margin-top: 28px;
    }

    .artist-home-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .artist-home-copy {
        text-align: left;
        max-width: none;
    }

    .artist-circle-grid-home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .now-playing-panel {
        position: fixed;
        inset: 10px 10px 92px 10px;
        width: auto;
        z-index: 80;
        display: none !important;
        border-radius: 24px;
        box-shadow: 0 18px 48px rgba(0,0,0,0.5);
    }

    .now-playing-panel.mobile-open {
        display: flex !important;
        flex-direction: column;
        padding: 18px;
    }

    .np-cover-container {
        max-height: none;
        aspect-ratio: 1/1 !important;
    }

    .now-playing-panel.mobile-open {
        padding: 14px;
        gap: 12px;
    }

    .np-stage {
        min-height: calc(100vh - 200px);
        border-radius: 22px;
        padding: 12px;
    }

    .np-stage-overlay {
        gap: 14px;
        padding-top: 88px;
    }

    .np-track-copy .title {
        font-size: 1.65rem;
    }

    .np-track-copy .artist {
        font-size: 1.05rem;
    }

    .np-credit-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .np-subscribe-btn {
        width: 100%;
    }

    .player-footer {
        height: auto;
        padding: 10px 12px;
        gap: 10px;
    }

    .footer-left {
        width: auto;
        min-width: 0;
        flex: 1;
        gap: 10px;
    }

    .footer-left .thumb {
        width: 44px;
        height: 44px;
    }

    .footer-center {
        flex: 1;
        padding: 0 8px;
    }

    .player-controls {
        gap: 14px;
        margin-bottom: 4px;
    }

    #shuffleBtn,
    #repeatBtn,
    .footer-right .control-btn:nth-child(2),
    #volumeSlider,
    .progress-time {
        display: none;
    }

    .footer-right {
        width: auto;
        min-width: 0;
        gap: 8px;
    }

    .progress-container {
        gap: 0;
    }
}

@media (max-width: 380px) {
    .track-grid,
    .album-grid,
    .artist-circle-grid-home {
        grid-template-columns: 1fr;
    }

    .top-actions {
        gap: 8px;
    }

    .track-list-header,
    .track-row {
        grid-template-columns: minmax(0, 1fr) 44px 64px;
    }

    .track-list-header span:first-child,
    .track-row-index {
        display: none;
    }

    .artist-release-grid,
    .artist-profile-related-grid,
    .artist-about-grid {
        grid-template-columns: 1fr;
    }
}

/* Onboarding */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background:
        radial-gradient(circle at top left, rgba(96,165,250,0.18), transparent 38%),
        radial-gradient(circle at bottom right, rgba(37,99,235,0.22), transparent 40%),
        rgba(6, 10, 20, 0.88);
    backdrop-filter: blur(18px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.onboarding-overlay.hidden {
    display: none !important;
}

.onboarding-shell {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px;
}

.onboarding-panel {
    width: min(760px, 100%);
    max-height: calc(100vh - 56px);
    background: rgba(15, 22, 40, 0.9);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 28px;
    padding: 36px;
    box-shadow: 0 28px 80px rgba(0,0,0,0.45), 0 0 42px rgba(59,130,246,0.14);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: auto 0;
}

.onboarding-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(96,165,250,0.18);
    color: var(--accent-bright);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.onboarding-title-wrap {
    height: 56px;
    margin-bottom: 10px;
}

.onboarding-title-wrap .reveal-text {
    display: block;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    line-height: 1.1;
}

.onboarding-subtitle {
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 560px;
}

.onboarding-step {
    background: rgba(11, 18, 34, 0.72);
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 22px;
    padding: 22px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.onboarding-step.hidden {
    display: none !important;
}

.onboarding-step.limit-hit {
    border-color: rgba(248, 113, 113, 0.42);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
    transform: translateY(-1px);
}

.onboarding-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.onboarding-step-label {
    color: white;
    font-size: 1rem;
    font-weight: 700;
}

.onboarding-step-count {
    color: var(--accent-bright);
    font-size: 0.84rem;
    font-weight: 700;
}

.onboarding-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.onboarding-chip {
    appearance: none;
    border: 1px solid rgba(96, 165, 250, 0.16);
    background: rgba(255,255,255,0.03);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.onboarding-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.34);
    background: rgba(59,130,246,0.1);
}

.onboarding-chip.selected {
    background: linear-gradient(135deg, rgba(30,58,138,0.95), rgba(59,130,246,0.95));
    border-color: transparent;
    color: white;
    box-shadow: 0 10px 24px rgba(37,99,235,0.28);
}

.onboarding-chip.limit-hit {
    border-color: rgba(248, 113, 113, 0.55);
    color: #fecaca;
}

.onboarding-search-block {
    margin-bottom: 20px;
}

.onboarding-search-input-wrap {
    position: relative;
}

.onboarding-search-input {
    padding-right: 132px;
}

.onboarding-search-hint {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.onboarding-subsection {
    margin-top: 20px;
}

.onboarding-subsection-title {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.artist-home-section {
    margin-top: 40px;
}

.artist-home-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.artist-home-copy {
    color: var(--text-secondary);
    font-size: 0.88rem;
    max-width: 340px;
    text-align: right;
}

.artist-circle-grid {
    display: grid;
    gap: 18px;
}

.artist-circle-grid-home {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.artist-circle-grid-onboarding {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

.artist-circle-card {
    background: rgba(18, 26, 46, 0.82);
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 24px;
    padding: 16px 14px 14px;
    text-align: center;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.artist-circle-card.selectable {
    cursor: pointer;
}

.artist-circle-card:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.26);
    box-shadow: 0 14px 28px rgba(0,0,0,0.28);
}

.artist-circle-card.selected {
    border-color: rgba(96, 165, 250, 0.55);
    background: linear-gradient(180deg, rgba(29, 78, 216, 0.22), rgba(17, 24, 39, 0.88));
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12), 0 18px 38px rgba(37,99,235,0.2);
}

.artist-circle-card.limit-hit {
    border-color: rgba(248, 113, 113, 0.45);
}

.artist-circle-avatar {
    width: 92px;
    height: 92px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(15,23,42,0.88));
    box-shadow: 0 14px 26px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.artist-circle-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-circle-initials {
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.artist-card-name {
    color: white;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    min-height: 2.3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.artist-card-meta {
    color: var(--text-muted);
    font-size: 0.74rem;
    margin-top: 6px;
    min-height: 1.1em;
}

.artist-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.artist-follow-btn,
.artist-spotify-link {
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(96, 165, 250, 0.16);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.artist-follow-btn {
    background: rgba(255,255,255,0.04);
    color: white;
    cursor: pointer;
}

.artist-follow-btn:hover,
.artist-spotify-link:hover {
    transform: translateY(-1px);
}

.artist-follow-btn.is-following {
    background: rgba(34,197,94,0.14);
    border-color: rgba(74, 222, 128, 0.26);
    color: #bbf7d0;
}

.artist-spotify-link {
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.artist-select-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    min-height: 20px;
    color: var(--accent-bright);
    font-size: 0.76rem;
    font-weight: 700;
}

.artist-circle-card.profile-link {
    cursor: pointer;
}

.artist-profile-shell {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.artist-profile-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    min-height: 360px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(10,14,26,0.18), rgba(10,14,26,0.88));
}

.artist-profile-hero.is-loading {
    background: rgba(18, 26, 46, 0.82);
}

.artist-profile-hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.15);
    opacity: 0.95;
}

.artist-profile-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6,10,18,0.08), rgba(6,10,18,0.88)),
        radial-gradient(circle at top left, rgba(34,197,94,0.18), transparent 28%);
    pointer-events: none;
}

.artist-profile-topbar,
.artist-profile-hero-content {
    position: relative;
    z-index: 1;
}

.artist-profile-topbar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 24px;
}

.artist-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(6,10,18,0.46);
    color: white;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.artist-back-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(96,165,250,0.35);
    background: rgba(15,22,40,0.72);
}

.artist-profile-hero-content {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 24px;
    align-items: end;
}

.artist-profile-avatar,
.artist-profile-avatar-skeleton {
    width: min(240px, 100%);
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 22px 44px rgba(0,0,0,0.38);
    background: rgba(15,22,40,0.8);
}

.artist-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-profile-copy {
    min-width: 0;
}

.artist-profile-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: white;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.artist-profile-name {
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
    word-break: break-word;
}

.artist-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    color: rgba(255,255,255,0.82);
    font-size: 0.92rem;
    font-weight: 600;
}

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

.artist-profile-follow-btn,
.artist-profile-link {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: white;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    cursor: pointer;
}

.artist-profile-follow-btn:hover,
.artist-profile-link:hover {
    transform: translateY(-1px);
    border-color: rgba(96,165,250,0.28);
}

.artist-profile-follow-btn.is-following {
    background: rgba(34,197,94,0.16);
    border-color: rgba(74,222,128,0.28);
    color: #bbf7d0;
}

.artist-profile-link {
    background: rgba(34,197,94,0.12);
    color: #86efac;
    border-color: rgba(34,197,94,0.2);
}

.artist-profile-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.artist-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.artist-discography-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.artist-filter-chip {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.artist-filter-chip.active {
    background: white;
    color: #111827;
    border-color: transparent;
}

.artist-release-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.artist-profile-related-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

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

.artist-about-card {
    background: rgba(18,26,46,0.7);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.artist-about-card strong {
    color: white;
    font-size: 1rem;
    line-height: 1.35;
}

.artist-about-label {
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.onboarding-error {
    min-height: 24px;
    margin-top: 18px;
    color: #fca5a5;
    font-size: 0.86rem;
    font-weight: 600;
}

.onboarding-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
}

.onboarding-secondary-btn {
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.onboarding-secondary-btn:hover {
    background: rgba(59,130,246,0.08);
    border-color: rgba(96, 165, 250, 0.3);
    color: white;
}

.onboarding-actions .btn-glow[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 720px) {
    .onboarding-shell {
        padding: 16px;
        align-items: flex-start;
    }

    .onboarding-panel {
        padding: 24px;
        border-radius: 22px;
        max-height: calc(100vh - 32px);
    }

    .onboarding-title-wrap {
        height: auto;
        min-height: 74px;
    }

    .artist-home-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .album-detail-hero {
        grid-template-columns: 1fr;
    }

    .album-detail-actions {
        flex-direction: column;
    }

    .album-detail-actions .btn-glow,
    .album-secondary-link {
        width: 100%;
    }

    .album-tracklist-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .album-track-row {
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .album-track-duration {
        grid-column: 2 / 3;
        justify-self: flex-start;
    }

    .artist-home-copy {
        text-align: left;
    }

    .artist-circle-grid-home,
    .artist-circle-grid-onboarding {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .artist-circle-avatar {
        width: 82px;
        height: 82px;
    }

    .onboarding-search-input {
        padding-right: 16px;
    }

    .onboarding-search-hint {
        position: static;
        display: block;
        transform: none;
        margin-top: 8px;
    }

    .onboarding-actions {
        flex-direction: column;
    }

    .onboarding-actions .btn-glow,
    .onboarding-secondary-btn {
        width: 100%;
    }
}

/* Cover-only right panel */
.np-stage-icon,
.np-video-toggle,
.np-video-toggle-main,
#videoPlayerFrame {
    display: none !important;
}

.np-stage {
    min-height: 520px;
}

.np-stage-overlay {
    padding-top: 28px;
}

.np-session-caption {
    content: normal;
}
/* ─── Premium Enhancements & Micro-interactions ─── */
.premium-section {
    margin-bottom: 42px;
    padding: 24px;
    border-radius: 28px;
    background: radial-gradient(circle at top left, rgba(79, 140, 255, 0.08), transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-badge {
    background: var(--accent-gradient);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(79, 140, 255, 0.3);
}

/* Hover Micro-interactions */
.track-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.track-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.track-card:hover .play-btn {
    opacity: 1;
    transform: translateY(0) scale(1.1);
}

/* Metadata Card */
.np-metadata-card {
    margin: 12px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.np-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.np-meta-label {
    color: var(--text-muted);
    font-weight: 600;
}

.np-meta-value {
    color: white;
    font-weight: 700;
    text-transform: capitalize;
}

.np-album-btn {
    margin-top: 4px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.np-album-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-bright);
}

/* Lyrics Container */
.np-lyrics-container {
    margin: 12px;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(30, 215, 96, 0.08), transparent);
    border: 1px solid rgba(30, 215, 96, 0.15);
    max-height: 400px;
    overflow: hidden;
    position: relative;
}

.np-lyrics-header {
    font-size: 0.75rem;
    font-weight: 800;
    color: #1ed760;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.np-lyrics-content {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
    overflow-y: auto;
    max-height: 320px;
    mask-image: linear-gradient(180deg, transparent, white 20%, white 80%, transparent);
}

.np-lyrics-content p {
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.np-lyrics-content p.active {
    color: white;
    transform: scale(1.05);
}

/* Audio Visualizer */
.audio-visualizer {
    width: 120px;
    height: 32px;
    margin-right: 12px;
    opacity: 0.7;
}

/* Pulse animation for recommendations */
@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.fav-toggle-btn.animating svg,
.np-favorite-btn.animating svg {
    animation: heartPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    fill: #1ed760 !important;
}

.time-remaining {
    color: var(--accent-bright);
    font-weight: 700;
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Custom scrollbar for lyrics */
.np-lyrics-content::-webkit-scrollbar { width: 4px; }
.np-lyrics-content::-webkit-scrollbar-track { background: transparent; }
.np-lyrics-content::-webkit-scrollbar-thumb { background: rgba(30, 215, 96, 0.3); border-radius: 10px; }

/* NeonWave Studio additions */
.sidebar-filter-btn.is-accent {
    color: #d9e7ff;
    border-color: rgba(103, 151, 255, 0.4);
    background: linear-gradient(135deg, rgba(70, 111, 255, 0.22), rgba(150, 85, 255, 0.16));
}

.eyebrow {
    display: inline-block;
    color: #91b5ff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.premium-action-btn {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(151, 181, 255, 0.28);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.07);
    color: #f7f9ff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.premium-action-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(134, 173, 255, 0.7);
    background: rgba(119, 155, 255, 0.15);
}

.premium-action-btn.is-primary {
    color: #07101f;
    border-color: transparent;
    background: linear-gradient(135deg, #9fc4ff, #7589ff 55%, #a777ff);
    box-shadow: 0 12px 35px rgba(91, 115, 255, 0.32);
}

.premium-action-btn.compact {
    min-height: 34px;
    padding: 0 13px;
    margin-left: auto;
}

.playlist-hero {
    position: relative;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 28px;
    align-items: end;
    margin: 8px 0 26px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid rgba(144, 174, 255, 0.18);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 20%, rgba(111, 91, 255, 0.36), transparent 38%),
        linear-gradient(145deg, rgba(27, 39, 78, 0.92), rgba(9, 13, 28, 0.96));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.playlist-hero-art {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 25px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent),
        linear-gradient(145deg, #527cff, #775af8 55%, #dc72ff);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.28), 0 20px 40px rgba(49, 55, 160, 0.4);
}

.playlist-hero-art span {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.08em;
}

.playlist-hero-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    opacity: 0.16;
    filter: blur(28px);
}

.playlist-hero-copy h2 {
    margin: 8px 0 6px;
    color: white;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.playlist-hero-copy p {
    color: #aeb9d8;
    font-size: 0.9rem;
}

.playlist-hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.playlist-track-shell {
    display: grid;
    gap: 7px;
}

.playlist-track-row {
    display: grid;
    grid-template-columns: 48px 48px minmax(0, 1fr) auto 40px;
    gap: 12px;
    align-items: center;
    min-height: 66px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.playlist-track-row:hover {
    transform: translateX(3px);
    border-color: rgba(135, 169, 255, 0.18);
    background: rgba(255, 255, 255, 0.055);
}

.playlist-drag-handle {
    color: #697795;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.playlist-track-art {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
    background: linear-gradient(135deg, #27375d, #182039);
}

.playlist-track-art.is-local {
    background: linear-gradient(135deg, #4b72ff, #9c5cff);
}

.playlist-track-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-track-copy {
    min-width: 0;
}

.playlist-track-copy strong,
.playlist-track-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-track-copy strong {
    color: white;
    font-size: 0.9rem;
}

.playlist-track-copy span {
    margin-top: 4px;
    color: #8d99b8;
    font-size: 0.76rem;
}

.playlist-order-actions {
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.18s;
}

.playlist-track-row:hover .playlist-order-actions {
    opacity: 1;
}

.playlist-order-actions button,
.playlist-remove-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    color: #c9d4ef;
    cursor: pointer;
}

.playlist-order-actions button:disabled {
    opacity: 0.25;
    cursor: default;
}

.playlist-remove-btn:hover {
    color: #ff8f9a;
    border-color: rgba(255, 101, 121, 0.35);
}

.playlist-empty-state,
.local-library-empty {
    padding: 70px 30px;
    text-align: center;
    border: 1px dashed rgba(140, 169, 255, 0.25);
    border-radius: 24px;
    background: rgba(80, 105, 180, 0.05);
}

.playlist-empty-icon,
.local-library-empty-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #537cff, #a55fff);
    font-size: 1.7rem;
    font-weight: 900;
}

.playlist-empty-state h3,
.local-library-empty h3 {
    margin: 0 0 8px;
    color: white;
}

.playlist-empty-state p,
.local-library-empty p {
    margin: 0 0 20px;
    color: #8794b2;
}

.local-library-icon,
.local-track-art {
    display: grid !important;
    place-items: center;
    color: white;
    font-size: 0.68rem;
    font-weight: 900;
    background: linear-gradient(135deg, #436df4, #a65dff) !important;
}

.local-library-entry {
    position: relative;
}

.library-inline-add {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(137, 170, 255, 0.28);
    border-radius: 9px;
    background: rgba(106, 138, 255, 0.12);
    color: white;
    cursor: pointer;
}

.local-library-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(62, 94, 184, 0.22), rgba(132, 78, 194, 0.16));
    border: 1px solid rgba(139, 170, 255, 0.16);
}

.local-library-toolbar h2 {
    margin: 5px 0;
    color: white;
    font-size: 2rem;
}

.local-library-toolbar p {
    margin: 0;
    color: #98a5c5;
}

.track-row-menu.danger:hover {
    color: #ff7d8c;
}

.local-import-status {
    position: fixed;
    left: 50%;
    bottom: 112px;
    z-index: 10000;
    min-width: 240px;
    max-width: min(460px, 80vw);
    transform: translateX(-50%);
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    background: rgba(17, 24, 48, 0.94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.local-import-status:not(:empty) {
    padding: 13px 18px;
    border: 1px solid rgba(135, 169, 255, 0.28);
}

.loop-status-badge {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #cfe0ff;
    font-size: 0.62rem;
    font-weight: 800;
    white-space: nowrap;
    background: rgba(91, 130, 255, 0.17);
    border: 1px solid rgba(124, 160, 255, 0.27);
}

.loop-status-badge.is-visible {
    display: inline-flex;
}

.loop-status-badge[data-mode="one"] {
    color: #f0dcff;
    background: rgba(172, 91, 255, 0.17);
    border-color: rgba(190, 125, 255, 0.3);
}

.np-lyrics-container {
    margin: 8px 12px 12px;
    padding: 18px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(92, 121, 255, 0.16), transparent 45%),
        rgba(255, 255, 255, 0.035);
    border-color: rgba(128, 162, 255, 0.16);
}

.np-lyrics-header {
    display: flex;
    justify-content: space-between;
    color: #91b5ff;
}

.lyrics-source {
    color: #66799f;
    font-size: 0.62rem;
}

.np-lyrics-content {
    scroll-behavior: smooth;
    mask-image: linear-gradient(180deg, white 0%, white 88%, transparent);
}

.np-lyrics-content .lyrics-line {
    margin: 0 0 18px;
    color: rgba(229, 236, 255, 0.35);
    font-size: 1.02rem;
    line-height: 1.45;
    transform-origin: left center;
}

.np-lyrics-content .lyrics-line.active {
    color: #ffffff;
    transform: scale(1.025);
    text-shadow: 0 0 24px rgba(137, 174, 255, 0.35);
}

.lyrics-state {
    padding: 34px 8px;
    color: #7f8ba8;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 900px) {
    .playlist-hero {
        grid-template-columns: 110px 1fr;
        padding: 20px;
    }

    .playlist-hero-copy h2 {
        font-size: 2.4rem;
    }
}

/* 📱 Mobile Interface Adaptation (Spotify Style) */
.mobile-nav, 
.library-header-mobile, 
.library-filters-mobile, 
.search-categories-panel, 
.search-title-mobile, 
#mobileSearchHeader,
.mobile-player-ui { 
    display: none !important; 
}

@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
        padding-bottom: 140px !important;
    }

    .sidebar, .top-bar, .main-filters {
        display: none !important;
    }

    .now-playing-panel {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 3000;
        background: #121212;
        padding: 0;
        overflow-y: auto;
    }

    .now-playing-panel.mobile-active {
        display: flex !important;
        flex-direction: column;
    }

    .main-content {
        padding: 12px !important;
        margin-bottom: 40px;
    }

    /* Grid adjustments */
    .track-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .premium-section {
        padding: 12px !important;
        border-radius: 16px !important;
        margin-bottom: 24px !important;
    }

    .section-header h2 {
        font-size: 1.1rem !important;
    }

    /* 🏠 Home Grid (Spotify Style) */
    .shortcuts-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 32px !important;
    }
    
    .shortcut-card {
        background: rgba(255, 255, 255, 0.06) !important;
        height: 56px !important;
        border-radius: 6px !important;
        border: none !important;
    }
    
    .shortcut-card .thumb {
        width: 56px !important;
        height: 56px !important;
    }
    
    .shortcut-card .title {
        font-size: 0.75rem !important;
        padding: 0 8px !important;
    }

    /* 🔍 Search View (Spotify Style) */
    .search-categories-panel,
    #mobileSearchHeader {
        display: block !important;
        padding-top: 10px;
    }
    
    .search-title-mobile {
        font-size: 2rem;
        font-weight: 900;
        color: white;
        margin-bottom: 16px;
        letter-spacing: -0.04em;
    }
    
    .search-bar-mobile {
        background: white;
        color: #121212;
        padding: 4px 16px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 24px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    
    .search-bar-mobile input {
        flex: 1;
        background: transparent;
        border: none;
        outline: none;
        height: 40px;
        color: #121212;
        font-weight: 700;
        font-size: 1rem;
        font-family: inherit;
    }
    
    .search-bar-mobile input::placeholder {
        color: #777;
        font-weight: 500;
    }
    
    .category-heading {
        font-size: 1rem;
        font-weight: 800;
        color: white;
        margin-bottom: 16px;
    }
    
    .category-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 32px;
    }
    
    .category-card {
        aspect-ratio: 1.6 / 1;
        border-radius: 8px;
        padding: 12px;
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }
    
    .category-card span {
        font-size: 1rem;
        font-weight: 800;
        color: white;
        position: relative;
        z-index: 1;
    }
    
    .category-card img {
        position: absolute;
        width: 64px;
        height: 64px;
        bottom: -10px;
        right: -10px;
        transform: rotate(25deg);
        border-radius: 4px;
    }
    
    .video-discover-row {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 20px;
        margin-bottom: 20px;
        scrollbar-width: none;
    }
    
    .video-card {
        min-width: 140px;
        aspect-ratio: 0.7 / 1;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
    }
    
    .video-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .video-label {
        position: absolute;
        bottom: 10px;
        left: 10px;
        font-size: 0.9rem;
        font-weight: 900;
        color: white;
        line-height: 1.1;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }

    /* 🔈 Mini Player Transformation */
    .player-footer {
        position: fixed;
        bottom: calc(78px + env(safe-area-inset-bottom));
        left: 8px;
        right: 8px;
        height: 58px !important;
        background: rgba(33, 33, 33, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0 8px !important;
        z-index: 2000;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
        animation: slideUp 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }

    @keyframes slideUp {
        from { transform: translateY(20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }

    .footer-left {
        flex: 1;
        width: auto !important;
        overflow: hidden;
        gap: 10px !important;
    }

    .footer-left .thumb {
        width: 42px !important;
        height: 42px !important;
        border-radius: 6px !important;
    }

    .footer-left .info {
        max-width: 180px;
    }

    .footer-left .title {
        font-size: 0.8rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .footer-left .artist {
        font-size: 0.72rem !important;
    }

    .footer-center {
        width: auto !important;
        background: transparent !important;
    }

    .footer-center .progress-container,
    .footer-center .control-btn:not(.play-pause-btn),
    .footer-center #shuffleBtn,
    .footer-center #repeatBtn {
        display: none !important;
    }

    .footer-center .player-controls {
        width: auto !important;
        margin: 0 !important;
        gap: 12px !important;
    }

    .play-pause-btn {
        width: 40px !important;
        height: 40px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: white !important;
    }

    .footer-right {
        width: auto !important;
        gap: 4px !important;
    }

    .footer-right .control-btn:not(:first-child),
    .footer-right #volumeSlider {
        display: none !important;
    }

    /* 🧭 Mobile Bottom Nav */
    .mobile-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: linear-gradient(180deg, rgba(18,18,18,0.9) 0%, rgba(0,0,0,1) 100%);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 2500;
        padding-bottom: env(safe-area-inset-bottom);
        align-items: center;
        justify-content: space-around;
    }

    .nav-item {
        flex: 1;
        background: none;
        border: none;
        color: var(--text-muted);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        font-size: 0.62rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        padding: 8px 0;
    }

    .nav-item.active {
        color: white;
    }

    .nav-item svg {
        width: 24px;
        height: 24px;
        opacity: 0.7;
        transition: all 0.2s;
    }

    .nav-item.active svg {
        opacity: 1;
        transform: scale(1.05);
    }

    /* Full Screen Now Playing for Mobile */
    .now-playing-panel.mobile-active {
        display: block !important;
        position: fixed;
        inset: 0 !important;
        width: 100% !important;
        height: 100dvh !important;
        z-index: 3000;
        border-radius: 0;
        background: #121212;
        padding: 0 !important;
    }

    .now-playing-panel.mobile-active .mobile-player-ui {
        display: flex !important;
    }

    .now-playing-panel.mobile-active > *:not(.mobile-player-ui) {
        display: none !important;
    }

    .mobile-player-ui {
        display: none; /* Keep none by default even on mobile, unless mobile-active is on aside */
        flex-direction: column;
        height: 100%;
        padding: 0 24px env(safe-area-inset-bottom);
        background: linear-gradient(180deg, var(--mp-bg-color, rgba(83,83,83,0.5)) 0%, rgba(18,18,18,1) 60%, rgba(18,18,18,1) 100%);
        transition: background 0.8s ease;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .mp-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 40px 0 24px;
        height: 100px;
    }

    .mp-header-info {
        text-align: center;
        flex: 1;
    }

    .mp-subtitle {
        display: block;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-weight: 700;
        color: rgba(255,255,255,0.7);
        margin-bottom: 2px;
    }

    .mp-context-name {
        font-size: 0.82rem;
        font-weight: 700;
        color: white;
    }

    .mp-icon-btn {
        background: none;
        border: none;
        color: white;
        padding: 8px;
        cursor: pointer;
    }

    .mp-artwork-container {
        width: 100%;
        aspect-ratio: 1/1;
        margin-bottom: 40px;
        padding: 4px;
    }

    .mp-artwork-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }

    .mp-track-info-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 24px;
    }

    .mp-track-copy {
        min-width: 0;
        flex: 1;
    }

    .mp-title {
        font-size: 1.4rem;
        font-weight: 900;
        letter-spacing: -0.02em;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mp-artist {
        font-size: 1rem;
        color: rgba(255,255,255,0.7);
        font-weight: 600;
    }

    .mp-track-actions {
        display: flex;
        gap: 12px;
    }

    .mp-action-btn {
        background: none;
        border: none;
        color: white;
        padding: 4px;
    }

    .mp-action-btn.active {
        color: var(--accent-bright);
    }

    /* 📚 Library View (Spotify Style) */
    .library-header-mobile {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0 20px;
    }
    
    .lib-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .user-avatar-small {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #f59e0b; /* Orangeish like Spotify profile */
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 0.8rem;
    }
    
    .lib-title-main {
        font-size: 1.5rem;
        font-weight: 900;
        color: white;
    }
    
    .lib-actions {
        display: flex;
        gap: 20px;
        color: white;
    }
    
    .library-filters-mobile {
        display: flex;
        gap: 8px;
        margin-bottom: 24px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .library-filters-mobile::-webkit-scrollbar {
        display: none;
    }

    .lib-filter-pill {
        background: rgba(255,255,255,0.1);
        border: none;
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        white-space: nowrap;
    }
    
    .lib-filter-pill.active {
        background: #3b82f6; /* Blue as requested */
        color: white;
    }

    /* 🆕 Library Collections Styling */
    .library-sort-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        color: white;
        font-size: 0.85rem;
        font-weight: 600;
    }

    .lib-sort-left {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .lib-row-item {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 16px;
        cursor: pointer;
    }

    .lib-row-img {
        width: 56px;
        height: 56px;
        border-radius: 4px;
        overflow: hidden;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lib-row-img.is-round {
        border-radius: 50% !important;
    }

    .lib-row-img.gradient-liked {
        background: linear-gradient(135deg, #450af5 0%, #c4efd9 100%);
    }

    .lib-row-img.fallback-img {
        background: #282828;
        color: #b3b3b3;
    }

    .lib-row-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .lib-row-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .lib-row-title {
        color: white;
        font-weight: 700;
        font-size: 1rem;
    }

    .lib-row-meta {
        color: #b3b3b3;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
    }

    /* 🧭 Mobile Bottom Nav Enhancements */
    .nav-item.active {
        color: #3b82f6 !important; /* Royal Blue */
    }

    .nav-item.active svg {
        fill: #3b82f6 !important;
        stroke: #3b82f6 !important;
    }

    .nav-item span {
        margin-top: 2px;
    }

    .mp-progress-section {
        margin-bottom: 24px;
    }

    .mp-slider {
        width: 100%;
        margin-bottom: 8px;
        accent-color: white;
    }

    .mp-time-labels {
        display: flex;
        justify-content: space-between;
        font-size: 0.75rem;
        color: rgba(255,255,255,0.5);
        font-weight: 600;
    }

    .artist-link {
        cursor: pointer;
        transition: color 0.2s ease, opacity 0.2s ease;
    }

    .artist-link:hover {
        color: var(--accent-bright) !important;
        text-decoration: underline;
        opacity: 0.85;
    }

    .np-cover-container {
        aspect-ratio: 1 / 1;
        width: 100%;
        overflow: hidden;
    }

    .mp-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 32px;
    }

    .mp-ctrl-btn {
        background: none;
        border: none;
        color: white;
        padding: 8px;
    }

    .mp-play-btn {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: white;
        color: black;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .mp-bottom-actions {
        display: flex;
        align-items: center;
        margin-bottom: 32px;
    }

    .mp-action-icon {
        background: none;
        border: none;
        color: rgba(255,255,255,0.7);
        padding: 8px;
    }

    .mp-action-spacer {
        flex: 1;
    }

    .mp-discover-card {
        position: relative;
        background: #242424;
        border-radius: 12px;
        padding: 16px;
        overflow: hidden;
        margin-bottom: 32px;
        min-height: 200px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .mp-discover-bg {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        filter: brightness(0.6);
        z-index: 0;
    }

    .mp-discover-content {
        position: relative;
        z-index: 1;
    }

    .mp-discover-badge {
        font-size: 0.7rem;
        text-transform: uppercase;
        font-weight: 800;
        color: white;
        margin-bottom: 8px;
        display: block;
    }

    .mp-discover-content h3 {
        font-size: 1.2rem;
        font-weight: 800;
        margin-bottom: 12px;
    }

    .mp-follow-btn {
        background: transparent;
        border: 1px solid white;
        color: white;
        padding: 8px 16px;
        border-radius: 999px;
        font-size: 0.8rem;
        font-weight: 700;
    }
}

/* ────────────────────────── KARAOKE OVERLAY STYLES ────────────────────────── */
.karaoke-overlay {
    --karaoke-color-primary: rgb(20, 24, 38);
    --karaoke-color-dark: rgb(8, 10, 16);
    --karaoke-color-light: rgb(40, 48, 70);

    position: fixed;
    inset: 0;
    z-index: 1200; /* overlay above everything */
    display: flex;
    flex-direction: column;
    padding: 40px 60px;
    box-sizing: border-box;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.karaoke-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.karaoke-bg-gradient {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(135deg, var(--karaoke-color-dark) 0%, var(--karaoke-color-primary) 50%, var(--karaoke-color-dark) 100%);
    transition: background 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.karaoke-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 90vh;
    background: radial-gradient(circle, var(--karaoke-color-light) 0%, transparent 70%);
    opacity: 0.18;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    animation: karaokePulseGlow 12s infinite alternate ease-in-out;
}

@keyframes karaokePulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }
    100% {
        transform: translate(-45%, -55%) scale(1.15);
        opacity: 0.22;
    }
}

.karaoke-header {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    z-index: 10;
}

.karaoke-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.karaoke-mini-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(79, 140, 255, 0.3);
}

.karaoke-brand span {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.karaoke-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    outline: none;
}

.karaoke-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.08) rotate(90deg);
}

.karaoke-content {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 60px;
    height: calc(100% - 80px);
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
    z-index: 5;
    box-sizing: border-box;
}

.karaoke-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    height: 100%;
    padding-bottom: 20px;
}

.karaoke-cover-wrapper {
    width: 85%;
    max-width: 380px;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 255, 255, 0.03);
    margin-bottom: 35px;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
}

.karaoke-cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.karaoke-cover-wrapper:hover img {
    transform: scale(1.03);
}

.karaoke-track-info {
    margin-bottom: 30px;
    width: 100%;
    padding: 0 20px;
}

.karaoke-track-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin: 0 0 10px 0;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.karaoke-track-artist {
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.karaoke-mini-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.karaoke-ctrl-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.karaoke-ctrl-btn:hover {
    color: #ffffff;
    transform: scale(1.12);
}

.karaoke-play-btn {
    background: #ffffff;
    border: none;
    color: #000000;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.karaoke-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.25);
}

.karaoke-right {
    height: 90%;
    width: 100%;
    overflow-y: scroll; /* hide scrollbar custom style */
    mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
    padding: 100px 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.karaoke-right::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.karaoke-right {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.karaoke-lyrics-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-right: 40px;
}

.karaoke-lyrics-content .lyrics-line {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 32px 0;
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    text-align: left;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: left center;
}

.karaoke-lyrics-content .lyrics-line:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: scale(1.02);
}

.karaoke-lyrics-content .lyrics-line.active {
    color: rgba(255, 255, 255, 0.25);
    transform: scale(1.07);
    text-shadow: none;
}

.karaoke-lyrics-content .lyrics-line.active .lyric-char {
    color: rgba(255, 255, 255, 0.25);
    transition: color 0.1s ease, text-shadow 0.15s ease;
}

.karaoke-lyrics-content .lyrics-line.active .lyric-char.revealed {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.65), 0 0 5px rgba(255, 255, 255, 0.45);
}

.karaoke-lyrics-content .lyrics-line.past {
    color: rgba(255, 255, 255, 0.5);
}

/* For non-synced plain lyrics, make them all legible */
.karaoke-lyrics-content:not(:has(.lyrics-line[data-time])) .lyrics-line,
.karaoke-lyrics-content:not(:has(.active)) .lyrics-line {
    color: rgba(255, 255, 255, 0.8) !important;
    transform: none !important;
}

.karaoke-lyrics-content .lyrics-state {
    font-size: 1.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-top: 40px;
}

/* 📱 RESPONSIVE MEDIA QUERIES FOR KARAOKE OVERLAY */
@media (max-width: 768px) {
    .karaoke-overlay {
        padding: 24px 20px;
    }
    
    .karaoke-header {
        height: 50px;
        margin-bottom: 10px;
    }
    
    .karaoke-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        gap: 24px;
        height: calc(100% - 60px);
        align-items: stretch;
    }
    
    .karaoke-left {
        flex-direction: row;
        align-items: center;
        text-align: left;
        justify-content: flex-start;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        gap: 16px;
        width: 100%;
        height: auto;
    }
    
    .karaoke-cover-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 0;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }
    
    .karaoke-track-info {
        margin-bottom: 0;
        flex-grow: 1;
        padding: 0;
        width: auto;
    }
    
    .karaoke-track-title {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }
    
    .karaoke-track-artist {
        font-size: 0.9rem;
    }
    
    .karaoke-mini-controls {
        gap: 12px;
    }
    
    .karaoke-play-btn {
        width: 40px;
        height: 40px;
    }
    
    .karaoke-play-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .karaoke-ctrl-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .karaoke-right {
        height: 100%;
        padding: 20px 0 60px 0;
        mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 90%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 90%, transparent 100%);
    }
    
    .karaoke-lyrics-content {
        padding-right: 10px;
    }
    
    .karaoke-lyrics-content .lyrics-line {
        font-size: 1.45rem;
        margin: 0 0 20px 0;
        text-shadow: none;
    }
    
    .karaoke-lyrics-content .lyrics-line.active {
        transform: scale(1.05);
        text-shadow: none;
    }
    .karaoke-lyrics-content .lyrics-line.active .lyric-char.revealed {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
    }
}

/* ─── Auto-Updater Fullscreen Overlay ─── */
.updater-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.updater-overlay.hidden {
    display: none !important;
}

.updater-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(8, 11, 21, 0.82);
    backdrop-filter: blur(30px) saturate(1.4);
    -webkit-backdrop-filter: blur(30px) saturate(1.4);
}

.updater-overlay-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 440px;
    width: 90%;
    padding: 40px;
    border-radius: 24px;
    background: rgba(20, 28, 51, 0.45);
    border: 1px solid rgba(79, 140, 255, 0.15);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(79, 140, 255, 0.1);
    animation: updaterFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes updaterFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.updater-logo-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 24px;
}

.updater-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(79, 140, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.updater-logo-glow {
    position: absolute;
    inset: -15px;
    background: radial-gradient(circle, rgba(79, 140, 255, 0.3) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.updater-overlay-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.updater-overlay-message {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 320px;
}

.updater-circle-wrap {
    margin-bottom: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.updater-loader-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.updater-loader-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.updater-loader-ring circle {
    fill: none;
    stroke-width: 6;
}

.updater-loader-ring .ring-track {
    stroke: rgba(255, 255, 255, 0.04);
}

.updater-loader-ring .ring-progress {
    stroke: var(--accent);
    filter: drop-shadow(0 0 6px var(--accent-bright));
    stroke-linecap: round;
    transition: stroke-dashoffset 0.25s ease;
}

.ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
    font-family: 'Inter', monospace;
}

.updater-install-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
    animation: pulseGlow 2s infinite;
}

.updater-install-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
}

.updater-install-btn:active {
    transform: scale(0.97);
}

.updater-install-btn.hidden {
    display: none !important;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
    }
    50% {
        box-shadow: 0 8px 32px rgba(16, 185, 129, 0.6);
    }
}

/* Release Notes container */
.updater-notes-container {
    width: 100%;
    margin-top: -12px;
    margin-bottom: 24px;
    text-align: left;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 160px;
    overflow-y: auto;
    box-sizing: border-box;
}

.updater-notes-container.hidden {
    display: none !important;
}

.updater-notes-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 8px;
}

.updater-notes-content {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    white-space: pre-wrap;
    font-family: inherit;
}

.updater-notes-content p {
    margin: 0 0 6px 0;
}

.updater-notes-content p:last-child {
    margin: 0;
}

.updater-notes-content ul, .updater-notes-content ol {
    margin: 0 0 6px 0;
    padding-left: 20px;
}

.updater-notes-content li {
    margin-bottom: 4px;
}

.updater-notes-content strong {
    color: white;
}

/* Custom scrollbar for notes */
.updater-notes-container::-webkit-scrollbar {
    width: 6px;
}

.updater-notes-container::-webkit-scrollbar-track {
    background: transparent;
}

.updater-notes-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

.updater-notes-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ─── Changelog Modal (Nouveautés) ─── */
.changelog-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.changelog-modal.hidden {
    display: none !important;
}

.changelog-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 11, 21, 0.75);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.changelog-dialog {
    position: relative;
    z-index: 1;
    background: rgba(20, 28, 51, 0.65);
    border: 1px solid rgba(79, 140, 255, 0.2);
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    padding: 36px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7),
                0 0 40px rgba(79, 140, 255, 0.08);
    animation: changelogSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes changelogSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.changelog-header {
    text-align: center;
    margin-bottom: 28px;
}

.changelog-icon-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
}

.changelog-logo {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(79, 140, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.changelog-badge {
    position: absolute;
    bottom: -6px;
    right: -10px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1.5px solid #0f172a;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.changelog-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.02em;
    margin: 0 0 6px 0;
}

.changelog-subtitle {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.changelog-subtitle span {
    color: var(--accent);
    font-weight: 700;
}

.changelog-body {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 28px;
    max-height: 220px;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Custom scrollbar for changelog */
.changelog-body::-webkit-scrollbar {
    width: 6px;
}

.changelog-body::-webkit-scrollbar-track {
    background: transparent;
}

.changelog-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-item {
    position: relative;
    padding-left: 24px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 12px;
}

.changelog-item:last-child {
    margin-bottom: 0;
}

.changelog-item::before {
    content: "✦";
    position: absolute;
    left: 4px;
    color: var(--accent);
    font-size: 0.85rem;
}

.changelog-footer {
    display: flex;
    justify-content: center;
}

.changelog-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
    color: white;
    font-weight: 800;
    font-size: 0.92rem;
    border: none;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.changelog-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
}

.changelog-btn:active {
    transform: scale(0.98);
}

/* Weekly listening recap */
.weekly-recap-section {
    margin: 4px 0 30px;
}

.weekly-recap-card {
    position: relative;
    isolation: isolate;
    min-height: 190px;
    padding: 34px 36px;
    border: 1px solid rgba(143, 120, 255, 0.28);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    cursor: pointer;
    background:
        radial-gradient(circle at 82% 12%, rgba(144, 104, 255, 0.42), transparent 30%),
        radial-gradient(circle at 12% 110%, rgba(48, 151, 255, 0.32), transparent 42%),
        linear-gradient(125deg, #171834 0%, #111a36 45%, #172346 100%);
    box-shadow:
        0 24px 55px rgba(3, 6, 18, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.weekly-recap-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(90deg, transparent, #000 42%, #000);
}

.weekly-recap-card:hover {
    transform: translateY(-4px);
    border-color: rgba(172, 145, 255, 0.55);
    box-shadow:
        0 30px 70px rgba(3, 6, 18, 0.48),
        0 0 50px rgba(105, 89, 255, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.weekly-recap-card-copy {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.weekly-recap-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b9c9ff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.weekly-recap-kicker::before {
    content: '';
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #77baff, #b784ff);
    box-shadow: 0 0 12px rgba(131, 163, 255, 0.8);
}

.weekly-recap-card h2 {
    margin: 13px 0 8px;
    color: #fff;
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.weekly-recap-card p {
    color: rgba(224, 230, 248, 0.68);
    font-size: 0.9rem;
    line-height: 1.5;
}

.weekly-recap-open-btn,
.weekly-recap-reveal-btn,
.weekly-recap-profile-btn {
    border: 0;
    color: #10152a;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, #fff 0%, #dce8ff 52%, #c9b5ff 100%);
    box-shadow: 0 12px 34px rgba(133, 153, 255, 0.26);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.weekly-recap-open-btn {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.weekly-recap-open-btn:hover,
.weekly-recap-reveal-btn:hover,
.weekly-recap-profile-btn:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 18px 44px rgba(133, 153, 255, 0.38);
}

.weekly-recap-orbit {
    position: absolute;
    z-index: 0;
    border: 1px solid rgba(208, 199, 255, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

.weekly-recap-orbit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d8cdff;
    box-shadow: 0 0 18px #9a87ff;
}

.weekly-recap-orbit-one {
    width: 260px;
    height: 260px;
    top: -150px;
    right: 14%;
    animation: weeklyRecapOrbit 13s linear infinite;
}

.weekly-recap-orbit-two {
    width: 420px;
    height: 420px;
    right: -145px;
    bottom: -310px;
    animation: weeklyRecapOrbit 19s linear infinite reverse;
}

.weekly-recap-modal {
    position: fixed;
    inset: 0;
    z-index: 9500;
    padding: 24px;
    display: grid;
    place-items: center;
    overflow: auto;
    background:
        radial-gradient(circle at 50% 20%, rgba(105, 82, 210, 0.24), transparent 34%),
        rgba(3, 6, 15, 0.84);
    backdrop-filter: blur(22px) saturate(1.15);
    animation: weeklyRecapBackdropIn 0.32s ease both;
}

.weekly-recap-dialog {
    position: relative;
    width: min(100%, 980px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid rgba(171, 156, 255, 0.24);
    border-radius: 30px;
    background:
        radial-gradient(circle at 80% 0%, rgba(113, 84, 219, 0.18), transparent 30%),
        linear-gradient(145deg, rgba(21, 25, 48, 0.98), rgba(7, 11, 24, 0.99));
    box-shadow:
        0 45px 100px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    animation: weeklyRecapDialogIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.weekly-recap-dialog::-webkit-scrollbar {
    width: 5px;
}

.weekly-recap-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 12;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    cursor: pointer;
    background: rgba(8, 12, 25, 0.62);
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.weekly-recap-close:hover {
    transform: rotate(6deg) scale(1.06);
    background: rgba(63, 69, 105, 0.72);
}

.weekly-recap-intro {
    position: relative;
    min-height: 580px;
    padding: 82px 9%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.weekly-recap-intro::before,
.weekly-recap-intro::after {
    content: '';
    position: absolute;
    width: 370px;
    height: 370px;
    border: 1px solid rgba(145, 132, 255, 0.16);
    border-radius: 50%;
    pointer-events: none;
}

.weekly-recap-intro::before {
    left: -190px;
    bottom: -170px;
}

.weekly-recap-intro::after {
    top: -210px;
    right: -130px;
}

.weekly-recap-lock-mark {
    position: relative;
    width: 130px;
    height: 130px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 950;
    letter-spacing: -0.08em;
    background:
        radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
        linear-gradient(145deg, #387ff4, #6447d2 58%, #b867e8);
    box-shadow:
        0 28px 60px rgba(83, 75, 210, 0.35),
        0 0 70px rgba(103, 97, 236, 0.2);
    transform: rotate(-7deg);
    animation: weeklyRecapMarkFloat 4.2s ease-in-out infinite;
}

.weekly-recap-lock-mark::after {
    content: '';
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(192, 183, 255, 0.22);
    border-radius: 46px;
}

.weekly-recap-intro h2 {
    max-width: 670px;
    margin: 18px 0 14px;
    color: #fff;
    font-size: clamp(2.15rem, 6vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.weekly-recap-intro p {
    max-width: 590px;
    color: rgba(221, 227, 246, 0.64);
    font-size: 1rem;
    line-height: 1.65;
}

.weekly-recap-reveal-btn {
    margin-top: 30px;
    min-height: 54px;
    padding: 0 26px;
    border-radius: 17px;
}

.weekly-recap-results {
    padding: 58px;
    animation: weeklyRecapResultsIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.weekly-recap-hero {
    position: relative;
    min-height: 350px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 25px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(230px, 0.82fr) 1.18fr;
    align-items: center;
    gap: 48px;
    background:
        linear-gradient(115deg, rgba(75, 85, 173, 0.22), transparent 55%),
        rgba(255, 255, 255, 0.025);
}

.weekly-recap-hero-glow {
    position: absolute;
    width: 430px;
    height: 430px;
    left: -110px;
    top: -70px;
    border-radius: 50%;
    background: rgba(103, 82, 224, 0.34);
    filter: blur(80px);
    pointer-events: none;
}

.weekly-recap-hero-art {
    position: relative;
    z-index: 1;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 950;
    background: linear-gradient(145deg, #326be1, #7a4cce);
    box-shadow: 0 30px 55px rgba(0, 0, 0, 0.38);
    transform: rotate(-2deg);
}

.weekly-recap-hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.weekly-recap-hero-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.weekly-recap-number {
    position: absolute;
    right: 0;
    top: -68px;
    color: rgba(255, 255, 255, 0.045);
    font-size: clamp(7rem, 16vw, 11rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.1em;
    pointer-events: none;
}

.weekly-recap-hero-copy h2 {
    position: relative;
    margin: 20px 0 10px;
    color: #fff;
    font-size: clamp(2.2rem, 6vw, 4.7rem);
    line-height: 0.92;
    letter-spacing: -0.07em;
    overflow-wrap: anywhere;
}

.weekly-recap-hero-copy p {
    position: relative;
    color: rgba(222, 229, 248, 0.67);
    line-height: 1.55;
}

.weekly-recap-profile-btn {
    position: relative;
    margin-top: 25px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
}

.weekly-recap-stat-grid {
    margin: 18px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.weekly-recap-stat-grid > div {
    min-height: 126px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 19px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.028);
}

.weekly-recap-stat-grid strong {
    color: #fff;
    font-size: 2.1rem;
    line-height: 1;
    letter-spacing: -0.06em;
}

.weekly-recap-stat-grid span {
    margin-top: 8px;
    color: rgba(211, 218, 239, 0.56);
    font-size: 0.75rem;
}

.weekly-recap-highlight {
    padding: 25px 27px;
    border: 1px solid rgba(124, 168, 255, 0.19);
    border-radius: 20px;
    display: grid;
    grid-template-columns: 58px 0.85fr 1.4fr 1fr;
    align-items: center;
    gap: 18px;
    background: linear-gradient(100deg, rgba(48, 111, 218, 0.18), rgba(118, 80, 210, 0.12));
}

.weekly-recap-highlight-cover {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #2c5fbf, #6544a9);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.weekly-recap-highlight-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.weekly-recap-highlight span {
    color: #83b6ff;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.weekly-recap-highlight strong {
    color: #fff;
    font-size: 1.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weekly-recap-highlight small {
    color: rgba(216, 224, 245, 0.58);
    text-align: right;
}

.weekly-recap-columns {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px;
}

.weekly-recap-columns h3 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 1rem;
    letter-spacing: -0.025em;
}

.weekly-recap-list {
    display: grid;
    gap: 8px;
}

.weekly-recap-rank-row,
.weekly-recap-track-row {
    width: 100%;
    min-width: 0;
    padding: 9px;
    border: 1px solid transparent;
    border-radius: 15px;
    display: grid;
    grid-template-columns: 26px 46px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    color: inherit;
    text-align: left;
    background: rgba(255, 255, 255, 0.025);
}

.weekly-recap-rank-row {
    font: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.weekly-recap-rank-row:hover {
    transform: translateX(4px);
    border-color: rgba(133, 166, 255, 0.2);
    background: rgba(98, 119, 205, 0.1);
}

.weekly-recap-rank {
    color: #8490ae;
    font-size: 0.73rem;
    font-weight: 900;
    text-align: center;
}

.weekly-recap-rank-thumb {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    background: linear-gradient(145deg, #2c5fbf, #6544a9);
}

.weekly-recap-rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.weekly-recap-rank-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.weekly-recap-rank-copy strong,
.weekly-recap-rank-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weekly-recap-rank-copy strong {
    color: #f5f7ff;
    font-size: 0.83rem;
}

.weekly-recap-rank-copy small {
    color: #77839f;
    font-size: 0.68rem;
}

.weekly-recap-particle {
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: 44%;
    width: 7px;
    height: 12px;
    border-radius: 2px;
    pointer-events: none;
    background: var(--particle-color);
    box-shadow: 0 0 10px var(--particle-color);
    animation: weeklyRecapParticle 1.3s cubic-bezier(0.2, 0.8, 0.3, 1) var(--particle-delay) both;
}

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

@keyframes weeklyRecapBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes weeklyRecapDialogIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.965);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes weeklyRecapMarkFloat {
    0%, 100% { transform: translateY(0) rotate(-7deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
}

@keyframes weeklyRecapResultsIn {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes weeklyRecapParticle {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.3) rotate(0);
    }
    15% { opacity: 1; }
    100% {
        opacity: 0;
        transform: translate(var(--particle-x), var(--particle-y)) scale(1) rotate(520deg);
    }
}

@media (max-width: 760px) {
    .weekly-recap-card {
        min-height: 240px;
        padding: 28px 24px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-end;
    }

    .weekly-recap-open-btn {
        width: 100%;
        justify-content: center;
    }

    .weekly-recap-modal {
        padding: 10px;
        align-items: end;
    }

    .weekly-recap-dialog {
        max-height: calc(100vh - 20px);
        border-radius: 25px;
    }

    .weekly-recap-intro {
        min-height: 590px;
        padding: 76px 24px 48px;
    }

    .weekly-recap-lock-mark {
        width: 105px;
        height: 105px;
        border-radius: 30px;
    }

    .weekly-recap-results {
        padding: 58px 16px 24px;
    }

    .weekly-recap-hero {
        min-height: 0;
        padding: 18px;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .weekly-recap-hero-art {
        width: min(78vw, 290px);
        margin: 0 auto;
    }

    .weekly-recap-number {
        top: -30px;
    }

    .weekly-recap-stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .weekly-recap-stat-grid > div:last-child {
        grid-column: 1 / -1;
    }

    .weekly-recap-highlight {
        grid-template-columns: 58px 1fr;
    }

    .weekly-recap-highlight strong,
    .weekly-recap-highlight small {
        grid-column: 2;
    }

    .weekly-recap-highlight small {
        text-align: left;
    }

    .weekly-recap-columns {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .weekly-recap-orbit,
    .weekly-recap-lock-mark,
    .weekly-recap-particle {
        animation: none !important;
    }
}

/* Custom weekly recap fallback logo styles and staggered reveal transitions */
.recap-lock-logo {
    width: 65%;
    height: 65%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.25));
}

.recap-fallback-logo {
    width: 50% !important;
    height: 50% !important;
    object-fit: contain !important;
    opacity: 0.85;
}

.weekly-recap-rank-thumb .recap-fallback-logo {
    width: 55% !important;
    height: 55% !important;
}

.local-library-icon img,
.local-track-art img {
    width: 55%;
    height: 55%;
    object-fit: contain;
    opacity: 0.95;
}

/* Staggered Reveal Animations */
.weekly-recap-hero {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    animation: weeklyRecapFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.15s;
}

.weekly-recap-stat-grid > div {
    opacity: 0;
    transform: translateY(20px);
    animation: weeklyRecapFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.weekly-recap-stat-grid > div:nth-child(1) { animation-delay: 0.5s; }
.weekly-recap-stat-grid > div:nth-child(2) { animation-delay: 0.62s; }
.weekly-recap-stat-grid > div:nth-child(3) { animation-delay: 0.74s; }

.weekly-recap-highlight {
    opacity: 0;
    transform: translateY(20px);
    animation: weeklyRecapFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.9s;
}

.weekly-recap-columns > section {
    opacity: 0;
    transform: translateY(20px);
    animation: weeklyRecapFadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.weekly-recap-columns > section:nth-child(1) { animation-delay: 1.1s; }
.weekly-recap-columns > section:nth-child(2) { animation-delay: 1.25s; }

.weekly-recap-list > * {
    opacity: 0;
    transform: translateX(-15px);
    animation: weeklyRecapFadeInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.weekly-recap-columns > section:nth-child(1) .weekly-recap-list > *:nth-child(1) { animation-delay: 1.3s; }
.weekly-recap-columns > section:nth-child(1) .weekly-recap-list > *:nth-child(2) { animation-delay: 1.38s; }
.weekly-recap-columns > section:nth-child(1) .weekly-recap-list > *:nth-child(3) { animation-delay: 1.46s; }
.weekly-recap-columns > section:nth-child(1) .weekly-recap-list > *:nth-child(4) { animation-delay: 1.54s; }
.weekly-recap-columns > section:nth-child(1) .weekly-recap-list > *:nth-child(5) { animation-delay: 1.62s; }

.weekly-recap-columns > section:nth-child(2) .weekly-recap-list > *:nth-child(1) { animation-delay: 1.45s; }
.weekly-recap-columns > section:nth-child(2) .weekly-recap-list > *:nth-child(2) { animation-delay: 1.53s; }
.weekly-recap-columns > section:nth-child(2) .weekly-recap-list > *:nth-child(3) { animation-delay: 1.61s; }

@keyframes weeklyRecapFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes weeklyRecapFadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* PWA iPhone polish */
html.is-ios {
    min-height: 100%;
    background: #050912;
}

html.is-ios body {
    min-height: 100dvh;
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    background:
        radial-gradient(circle at 20% -10%, rgba(59, 130, 246, 0.22), transparent 38%),
        var(--bg-main);
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
}

html.is-standalone body {
    user-select: none;
    -webkit-user-select: none;
}

html.is-standalone input,
html.is-standalone textarea,
html.is-standalone [contenteditable="true"] {
    user-select: text;
    -webkit-user-select: text;
}

html.is-ios input,
html.is-ios textarea,
html.is-ios select {
    font-size: 16px !important;
}

.pwa-install-sheet {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(3, 7, 18, 0), rgba(3, 7, 18, 0.82) 52%);
    animation: pwaSheetFade 0.25s ease-out;
}

.pwa-install-card {
    position: relative;
    width: min(430px, 100%);
    padding: 22px;
    border-radius: 28px;
    color: white;
    background:
        radial-gradient(circle at 16% 0%, rgba(59, 130, 246, 0.24), transparent 42%),
        rgba(10, 17, 36, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 50px rgba(37, 99, 235, 0.16);
    backdrop-filter: blur(24px);
    transform-origin: bottom center;
    animation: pwaSheetUp 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-install-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
    font-size: 22px;
    line-height: 1;
}

.pwa-install-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 36px;
}

.pwa-install-head img {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.pwa-install-kicker {
    color: #8ab4ff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pwa-install-card h2 {
    margin: 4px 0 0;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
}

.pwa-install-card p {
    margin: 16px 0 14px;
    color: #b8c6e7;
    line-height: 1.45;
}

.pwa-install-card ol {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: pwa-step;
}

.pwa-install-card li {
    counter-increment: pwa-step;
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #e9eefc;
}

.pwa-install-card li::before {
    content: counter(pwa-step);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eaf2ff, #b9ccff);
    color: #081226;
    font-weight: 900;
}

.pwa-install-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 18px;
}

.pwa-install-actions button {
    border: 0;
    border-radius: 999px;
    padding: 13px 16px;
    font-weight: 900;
}

.pwa-install-ok {
    color: #081226;
    background: white;
}

.pwa-install-later {
    color: #dbe6ff;
    background: rgba(255, 255, 255, 0.09);
}

@keyframes pwaSheetFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pwaSheetUp {
    from { opacity: 0; transform: translateY(22px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
    html.is-ios .app-container {
        min-height: calc(100dvh - env(safe-area-inset-top));
        padding-bottom: calc(150px + env(safe-area-inset-bottom)) !important;
    }

    html.is-ios .main-content {
        padding-top: calc(14px + env(safe-area-inset-top)) !important;
    }

    html.is-ios .player-footer {
        bottom: calc(78px + env(safe-area-inset-bottom));
    }

    html.is-ios .mobile-nav {
        height: calc(70px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
    }

    html.is-ios .now-playing-panel.mobile-active {
        min-height: 100dvh !important;
    }

    html.is-ios .mobile-player-ui {
        padding-top: env(safe-area-inset-top);
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}
