@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
    --bg-darkest: #07080c;
    --bg-base: #0b0d14;
    --bg-surface: #10131e;
    --bg-surface-elevated: #161a29;
    --bg-surface-hover: #1e2438;
    --bg-surface-card: rgba(18, 22, 35, 0.75);

    --primary: #10b981;
    --primary-light: #34d399;
    --primary-dark: #059669;
    --primary-glow: rgba(16, 185, 129, 0.35);
    
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-rose: #f43f5e;
    --accent-amber: #f59e0b;

    --text-white: #ffffff;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dim: #475569;

    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.18);
    --border-glow: rgba(16, 185, 129, 0.35);

    --glass-card: rgba(16, 19, 31, 0.75);
    --glass-header: rgba(11, 13, 20, 0.82);
    --glass-blur: blur(28px);

    --sidebar-width: 290px;
    --player-height: 96px;
    --header-height: 74px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --radius-full: 9999px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ====================================================
   AMBIENT GLOWS & ATMOSPHERE
   ==================================================== */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
    animation: driftGlow 20s infinite alternate ease-in-out;
}

.glow-1 {
    top: -150px;
    left: 20%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
}

.glow-2 {
    bottom: -150px;
    right: 15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    animation-delay: -7s;
}

.glow-3 {
    top: 40%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    animation-delay: -14s;
}

@keyframes driftGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.1); }
    100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* App Container */
.app-container {
    display: flex;
    height: calc(100vh - var(--player-height));
    gap: 12px;
    padding: 12px 12px 0 12px;
    position: relative;
    z-index: 1;
}

/* ====================================================
   SIDEBAR
   ==================================================== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, rgba(16, 20, 32, 0.88) 0%, rgba(10, 12, 19, 0.96) 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    gap: 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* Brand Header */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 6px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.brand-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: inherit;
    opacity: 0.4;
    animation: pulseRing 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    z-index: -1;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.6; }
    80%, 100% { transform: scale(1.6); opacity: 0; }
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.6px;
    background: linear-gradient(90deg, #ffffff 0%, #e2e8f0 60%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-sub {
    font-size: 10.5px;
    color: var(--primary-light);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-sub::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

/* Nav Menu */
.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    position: relative;
    border: 1px solid transparent;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    transition: transform 0.25s var(--ease-spring);
}

.nav-item:hover {
    color: var(--text-white);
    background-color: var(--bg-surface-hover);
    border-color: var(--border-glass);
}

.nav-item:hover svg {
    transform: scale(1.15);
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.16) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-light), var(--accent-cyan));
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--primary);
}

.nav-item.active svg {
    color: var(--primary-light);
    stroke: var(--primary-light);
}

.nav-badge {
    margin-left: auto;
    background: rgba(16, 185, 129, 0.2);
    color: var(--primary-light);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Sidebar Library / Server List */
.sidebar-library {
    background: rgba(12, 15, 23, 0.55);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.library-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0 4px 6px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-counter {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.guild-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.guild-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--ease-out);
    border: 1px solid transparent;
}

.guild-card:hover {
    background-color: var(--bg-surface-hover);
    border-color: var(--border-glass);
}

.guild-card.active {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.12) 0%, transparent 100%);
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.guild-card img {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.guild-card-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.guild-card-name {
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: var(--text-primary);
}

.guild-card-status {
    font-size: 11px;
    color: var(--text-muted);
}

/* Voice Channel Status Module */
.voice-status-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.06) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.voice-status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.status-pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary);
    flex-shrink: 0;
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.8); opacity: 0.55; }
}

.voice-info-col {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.voice-title {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.voice-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-voice-join {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--primary-light);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--ease-spring);
    flex-shrink: 0;
}

.btn-voice-join:hover {
    background: var(--primary);
    color: #000;
    transform: scale(1.05);
}

/* System Stats Card */
.sidebar-system-card {
    background: rgba(12, 15, 23, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sys-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sys-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sys-badge.online {
    color: var(--primary-light);
    font-size: 11px;
    font-weight: 700;
}

.sys-specs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    color: var(--text-dim);
    font-weight: 600;
}

/* ====================================================
   MAIN VIEW AREA
   ==================================================== */
.main-view {
    flex: 1;
    background: radial-gradient(circle at 50% 0%, #151928 0%, #090a10 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Sticky Top Bar */
.top-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: var(--glass-header);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    max-width: 520px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    height: 46px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    padding: 0 74px 0 46px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--ease-out);
}

.search-box input:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.search-box svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    stroke: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: stroke 0.2s;
}

.search-box input:focus ~ svg {
    stroke: var(--primary-light);
}

.search-key-hint {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.guild-dropdown-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-icon {
    position: absolute;
    left: 14px;
    color: #5865F2;
    pointer-events: none;
}

.guild-dropdown {
    background-color: var(--bg-surface);
    color: var(--text-white);
    border: 1px solid var(--border-glass);
    padding: 10px 20px 10px 38px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: var(--ease-out);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 36px;
}

.guild-dropdown:hover {
    border-color: var(--border-glass-hover);
    background-color: var(--bg-surface-hover);
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    padding: 4px 14px 4px 4px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--ease-out);
    position: relative;
}

.user-badge:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.user-badge img {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.user-badge span {
    font-size: 13px;
    font-weight: 700;
}

.user-status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
}

/* Scrollable Content */
.content-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px 36px 80px 36px;
    position: relative;
}

/* Tab Views */
.tab-view {
    display: none;
}
.tab-view.active {
    display: block;
    animation: tabEnter 0.35s var(--ease-out);
}

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

/* ====================================================
   HERO CANVAS & VINYL RECORD STUDIO
   ==================================================== */
.hero-canvas {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    padding: 44px;
    display: flex;
    gap: 44px;
    align-items: center;
    background: linear-gradient(135deg, rgba(23, 28, 44, 0.85) 0%, rgba(12, 14, 22, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    margin-bottom: 40px;
    backdrop-filter: blur(24px);
}

.hero-bg-art {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(0.25);
    pointer-events: none;
    z-index: 0;
    transition: background-image 0.8s ease;
}

.hero-mesh-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.18) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.14) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Vinyl Sleeve & Rotating Disc Wrapper */
.vinyl-container {
    position: relative;
    width: 250px;
    height: 250px;
    flex-shrink: 0;
    z-index: 1;
}

/* The Vinyl Disc */
.vinyl-disc {
    position: absolute;
    top: 5px;
    right: -25px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: 
        repeating-radial-gradient(circle at center, #111115 0, #111115 2px, #08080a 3px, #18181f 4px),
        radial-gradient(circle, #25252b 10%, #0d0d10 60%, #000 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: transform 0.6s var(--ease-spring);
}

.vinyl-shine {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255, 255, 255, 0.08) 60deg,
        transparent 120deg,
        transparent 180deg,
        rgba(255, 255, 255, 0.08) 240deg,
        transparent 300deg,
        transparent 360deg
    );
    pointer-events: none;
}

.vinyl-center-label {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    border: 4px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.6);
}

.vinyl-center-hole {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000000;
}

/* Spinning animation when playing */
.vinyl-disc.spinning {
    transform: translateX(45px);
    animation: rotateVinyl 8s linear infinite;
}

@keyframes rotateVinyl {
    from { transform: translateX(45px) rotate(0deg); }
    to { transform: translateX(45px) rotate(360deg); }
}

.hero-art-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.art-overlay-glass {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -40px 60px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    z-index: 2;
    flex: 1;
}

.hero-tag-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-tag {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-tech {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.6px;
}

.badge-tech.glow {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--primary-light);
}

.hero-title {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.8px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.hero-artist {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.4;
}

.hero-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-hero-play {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--primary-glow);
    transition: var(--ease-spring);
}

.btn-hero-play:hover {
    transform: scale(1.1);
    box-shadow: 0 14px 38px rgba(16, 185, 129, 0.65);
}

.btn-hero-play svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

.btn-pill {
    padding: 12px 22px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-pill:hover {
    border-color: var(--border-glass-hover);
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-pill-accent {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.12));
    border-color: rgba(16, 185, 129, 0.3);
}

.btn-pill-accent:hover {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
    border-color: var(--primary-light);
}

.btn-pill-primary {
    background: var(--primary);
    color: #000;
    border: none;
    font-weight: 800;
}

.btn-pill-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-pill-danger {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
}

.btn-pill-danger:hover {
    background-color: rgba(248, 113, 113, 0.15);
    border-color: #f87171;
}

.btn-text-link {
    background: none;
    border: none;
    color: var(--primary-light);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--ease-out);
}

.btn-text-link:hover {
    text-decoration: underline;
    color: #fff;
}

/* Visualizer Bars */
.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 18px;
}

.bar {
    width: 3.5px;
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    border-radius: 2px;
    animation: bounceEq 1.2s infinite ease-in-out;
}

.bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.bar:nth-child(2) { height: 90%; animation-delay: 0.3s; }
.bar:nth-child(3) { height: 60%; animation-delay: 0.15s; }
.bar:nth-child(4) { height: 100%; animation-delay: 0.45s; }
.bar:nth-child(5) { height: 75%; animation-delay: 0.25s; }
.bar:nth-child(6) { height: 50%; animation-delay: 0.35s; }
.bar:nth-child(7) { height: 85%; animation-delay: 0.2s; }
.bar:nth-child(8) { height: 65%; animation-delay: 0.5s; }

@keyframes bounceEq {
    0%, 100% { height: 25%; }
    50% { height: 100%; }
}

/* ====================================================
   SECTIONS: CURATED MIXES & HOT TRACKS
   ==================================================== */
.home-section {
    margin-bottom: 44px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.section-sub {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Curated Mix Cards Grid */
.curated-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.curated-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 24px;
    overflow: hidden;
    cursor: pointer;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s var(--ease-spring);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.curated-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.25);
}

.curated-glow {
    position: absolute;
    inset: 0;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.card-vpop .curated-glow {
    background: linear-gradient(135deg, #e11d48 0%, #f97316 100%);
}
.card-lofi .curated-glow {
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
}
.card-gaming .curated-glow {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
}
.card-edm .curated-glow {
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
}

.curated-card:hover .curated-glow {
    opacity: 1;
}

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

.curated-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.35);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    color: #fff;
    display: inline-block;
    margin-bottom: 8px;
}

.curated-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.curated-desc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.curated-play-fab {
    position: absolute;
    bottom: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: all 0.25s var(--ease-spring);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    z-index: 2;
}

.curated-card:hover .curated-play-fab {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.curated-play-fab:hover {
    transform: scale(1.15);
    background: #10b981;
    color: #fff;
}

.curated-play-fab svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Hot Tracks Grid */
.hot-tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.hot-track-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: var(--bg-surface-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.hot-track-item:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.hot-track-thumb-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

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

.hot-track-play-hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hot-track-item:hover .hot-track-play-hover {
    opacity: 1;
}

.hot-track-play-hover svg {
    width: 22px;
    height: 22px;
    fill: #10b981;
}

.hot-track-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

.hot-track-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-track-artist {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-track-duration {
    font-size: 11.5px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

/* ====================================================
   TABLE / PLAYLIST (Queue View)
   ==================================================== */
.table-container {
    background: rgba(14, 18, 29, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.spotify-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.spotify-table th {
    text-align: left;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(10, 13, 20, 0.7);
}

.spotify-table td {
    padding: 12px 20px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.spotify-table tbody tr {
    transition: var(--ease-out);
}

.spotify-table tbody tr:hover {
    background-color: var(--bg-surface-hover);
}

.track-row-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.track-row-title img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.track-meta-title {
    font-weight: 700;
    color: #fff;
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-meta-artist {
    font-size: 12.5px;
    color: var(--text-secondary);
}

.btn-icon-action {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--ease-out);
}

.btn-icon-action:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
}

.btn-icon-action.delete:hover {
    color: #f87171;
    background-color: rgba(248, 113, 113, 0.15);
}

.empty-queue-art {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
}

.empty-queue-art svg {
    stroke: var(--text-dim);
}

/* ====================================================
   SEARCH / GENRE BROWSE TILES
   ==================================================== */
.genre-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.genre-tile {
    position: relative;
    height: 105px;
    border-radius: var(--radius-lg);
    padding: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.genre-tile:hover {
    transform: scale(1.05);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.6);
}

.genre-tile span {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.genre-tile .tile-icon {
    position: absolute;
    bottom: -5px;
    right: 5px;
    font-size: 48px;
    transform: rotate(18deg);
    opacity: 0.9;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s var(--ease-spring);
}

.genre-tile:hover .tile-icon {
    transform: rotate(8deg) scale(1.15);
}

.tile-1 { background: linear-gradient(135deg, #e11d48, #fb7185); }
.tile-2 { background: linear-gradient(135deg, #1d4ed8, #60a5fa); }
.tile-3 { background: linear-gradient(135deg, #6d28d9, #c084fc); }
.tile-4 { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.tile-5 { background: linear-gradient(135deg, #059669, #34d399); }
.tile-6 { background: linear-gradient(135deg, #ea580c, #fb923c); }
.tile-7 { background: linear-gradient(135deg, #b45309, #f59e0b); }
.tile-8 { background: linear-gradient(135deg, #be185d, #f472b6); }

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
}

.song-card {
    background: linear-gradient(180deg, rgba(22, 27, 42, 0.75) 0%, rgba(13, 16, 26, 0.9) 100%);
    border: 1px solid var(--border-glass);
    padding: 16px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    position: relative;
    transition: var(--ease-spring);
    backdrop-filter: blur(14px);
}

.song-card:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-glass-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

.song-card-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    margin-bottom: 14px;
}

.song-card-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.card-play-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px) scale(0.85);
    transition: var(--ease-spring);
    box-shadow: 0 10px 24px var(--primary-glow);
    cursor: pointer;
}

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

.card-play-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.7);
}

.card-play-btn svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}

.song-card-title {
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.song-card-artist {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Queue Tab Specifics */
.queue-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 14px;
}

/* ====================================================
   BOTTOM PLAYER BAR (Floating Luxury Glass Dock)
   ==================================================== */
.player-bar {
    height: var(--player-height);
    background: rgba(10, 12, 19, 0.94);
    backdrop-filter: blur(36px);
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: relative;
    z-index: 100;
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Left: Track Info */
.player-left {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 30%;
    min-width: 230px;
}

.player-thumb-wrap {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.player-thumb {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 1;
}

.player-thumb-glow {
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
    filter: blur(8px);
    opacity: 0.4;
    z-index: 0;
}

.player-track-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.player-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.player-title:hover {
    text-decoration: underline;
}

.player-artist {
    font-size: 12.5px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-heart {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--ease-spring);
    padding: 6px;
}

.player-heart:hover {
    color: #f87171;
    transform: scale(1.2);
}

/* Center: Playback Controls & Seekbar */
.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    max-width: 740px;
    gap: 6px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 22px;
}

.btn-ctrl {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ease-spring);
    position: relative;
    padding: 6px;
}

.btn-ctrl:hover {
    color: #fff;
    transform: scale(1.15);
}

.btn-ctrl.active {
    color: var(--primary-light);
}

.btn-ctrl.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 4px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--primary);
}

.btn-play-pause {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: #ffffff;
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--ease-spring);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

.btn-play-pause:hover {
    transform: scale(1.1);
    background: #f8fafc;
}

.btn-play-pause svg {
    width: 20px;
    height: 20px;
    fill: #000;
}

/* Seekbar & Tooltip */
.player-seekbar-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.seek-time {
    font-size: 11.5px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 40px;
    text-align: center;
}

.slider-container {
    flex: 1;
    height: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.slider-track {
    width: 100%;
    height: 4.5px;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
    transition: height 0.15s ease;
}

.slider-container:hover .slider-track {
    height: 6px;
}

.slider-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-cyan) 100%);
    border-radius: var(--radius-full);
}

.slider-container:hover .slider-progress {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.slider-thumb {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: #fff;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.slider-container:hover .slider-thumb {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
}

.seek-tooltip {
    position: absolute;
    top: -28px;
    transform: translateX(-50%);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass-hover);
    color: #fff;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.slider-container:hover .seek-tooltip {
    opacity: 1;
}

/* Right: Volume & Status */
.player-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    width: 30%;
    min-width: 230px;
}

.player-voice-pill {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-voice-pill .pill-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--primary);
}

.volume-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 130px;
}

/* ====================================================
   THEATER / FULLSCREEN IMMERSIVE OVERLAY
   ==================================================== */
.theater-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #06070a;
    z-index: 9999;
    display: none;
    flex-direction: column;
    padding: 44px 64px;
    box-sizing: border-box;
    animation: fadeIn 0.4s var(--ease-out);
}

.theater-overlay.active {
    display: flex;
}

.theater-backdrop-blur {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-size: cover;
    background-position: center;
    filter: blur(100px) brightness(0.3);
    pointer-events: none;
    z-index: 0;
}

.theater-radial-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, #06070a 90%);
    pointer-events: none;
    z-index: 0;
}

.theater-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.theater-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.theater-art-container {
    position: relative;
    width: 400px;
    height: 400px;
    flex-shrink: 0;
}

.theater-art {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    object-fit: cover;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
}

.theater-art-glow {
    position: absolute;
    inset: -10px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
    filter: blur(25px);
    opacity: 0.35;
    z-index: 0;
}

.theater-info {
    max-width: 550px;
}

.theater-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 12px;
    color: #fff;
    letter-spacing: -1px;
}

.theater-artist {
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.theater-controls-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 115px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10000;
}

.toast {
    background: rgba(22, 27, 42, 0.92);
    border: 1px solid var(--border-glass-hover);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 600;
    backdrop-filter: blur(20px);
    animation: toastIn 0.3s var(--ease-spring);
}

@keyframes toastIn {
    from { transform: translateX(60px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Modal Join Voice */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(14px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.25s var(--ease-out);
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass-hover);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 90%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
}

.modal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
}

.btn-close-modal:hover {
    color: #fff;
}

.select-styled-wrap {
    width: 100%;
}

.voice-select {
    width: 100%;
    background-color: var(--bg-surface-elevated);
    color: #fff;
    border: 1px solid var(--border-glass);
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.voice-select:focus {
    border-color: var(--primary);
}

.modal-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 6px;
}

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

/* ====================================================
   DISCORD LOGIN GATE
   ==================================================== */
.login-gate {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(circle at center, rgba(16, 21, 35, 0.97) 0%, rgba(6, 7, 10, 0.99) 100%);
    backdrop-filter: blur(28px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.4s var(--ease-out);
}

.login-gate.hidden {
    display: none !important;
}

.login-gate-card {
    background: linear-gradient(135deg, rgba(22, 28, 44, 0.9) 0%, rgba(13, 16, 26, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 44px 38px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.login-gate-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 130px;
    background: radial-gradient(ellipse, rgba(88, 101, 242, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.login-brand-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #5865F2 0%, #10b981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 12px 30px rgba(88, 101, 242, 0.45);
    margin-bottom: 6px;
}

.login-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.8px;
    background: linear-gradient(90deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-sub {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.login-feature-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin: 8px 0 14px 0;
}

.login-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    padding: 12px 16px;
    border-radius: var(--radius-md);
}

.login-feature-item .feature-icon {
    font-size: 20px;
    line-height: 1;
    margin-top: 2px;
}

.login-feature-item strong {
    font-size: 13px;
    color: #fff;
    display: block;
    margin-bottom: 2px;
}

.login-feature-item p {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.btn-discord-login {
    width: 100%;
    padding: 16px 24px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #5865F2 0%, #4752c4 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.45);
    transition: all 0.25s var(--ease-spring);
    cursor: pointer;
    border: none;
}

.btn-discord-login:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 38px rgba(88, 101, 242, 0.65);
    background: linear-gradient(135deg, #6775f5 0%, #4752c4 100%);
}

.login-footer-note {
    font-size: 11.5px;
    color: var(--text-dim);
    margin-top: 4px;
}

.mobile-header-brand {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

.mobile-mini-progress {
    display: none;
}

/* ====================================================
   MOBILE RESPONSIVE DESIGN (Smartphone & Tablet)
   ==================================================== */
@media (max-width: 768px) {
    body {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    .app-container {
        padding: 0;
        height: calc(100dvh - 122px);
        gap: 0;
    }

    .sidebar {
        display: none !important;
    }

    .main-view {
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: #08090f;
    }

    /* Top Header on Mobile */
    .top-header {
        height: 56px;
        padding: 0 14px;
        gap: 10px;
    }

    .mobile-header-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .mobile-mini-icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
    }

    .mobile-brand-title {
        font-size: 16px !important;
        font-weight: 900;
    }

    .header-left {
        display: none; /* Mobile uses Tab Search */
    }

    .header-right {
        margin-left: auto;
        gap: 8px;
    }

    .guild-dropdown {
        padding: 6px 26px 6px 30px;
        font-size: 12px;
        max-width: 140px;
        height: 34px;
    }

    .user-badge {
        padding: 3px;
        border-radius: 50%;
    }

    .user-badge span {
        display: none;
    }

    .user-badge img {
        width: 30px;
        height: 30px;
    }

    .user-status-dot {
        position: absolute;
        bottom: 2px;
        right: 2px;
        width: 8px;
        height: 8px;
        border: 2px solid #10131e;
    }

    /* Scrollable Content */
    .content-body {
        padding: 16px 14px 28px 14px;
    }

    /* Hero Canvas on Mobile */
    .hero-canvas {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 22px 16px;
        gap: 18px;
        margin-bottom: 28px;
        border-radius: var(--radius-lg);
    }

    .vinyl-container {
        width: 160px;
        height: 160px;
    }

    .vinyl-disc {
        width: 150px;
        height: 150px;
    }

    .vinyl-disc.spinning {
        transform: translateX(25px);
    }

    .vinyl-center-label {
        width: 54px;
        height: 54px;
    }

    .vinyl-center-hole {
        width: 12px;
        height: 12px;
    }

    .hero-art-wrapper {
        width: 160px;
        height: 160px;
        border-radius: var(--radius-md);
    }

    .hero-info {
        align-items: center;
        width: 100%;
        gap: 8px;
    }

    .hero-tag-row {
        justify-content: center;
        gap: 6px;
    }

    .hero-title {
        font-size: 22px;
        letter-spacing: -0.4px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-artist {
        font-size: 14px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .hero-meta {
        font-size: 11.5px;
    }

    .hero-actions {
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin-top: 6px;
    }

    .btn-hero-play {
        width: 52px;
        height: 52px;
    }

    .btn-hero-play svg {
        width: 22px;
        height: 22px;
    }

    .btn-pill {
        padding: 9px 16px;
        font-size: 12px;
    }

    /* Curated Mixes on Mobile */
    .curated-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .curated-card {
        min-height: 110px;
        padding: 16px 18px;
    }

    .curated-title {
        font-size: 16px;
    }

    .curated-play-fab {
        opacity: 1;
        transform: none;
        width: 38px;
        height: 38px;
    }

    .curated-play-fab svg {
        width: 18px;
        height: 18px;
    }

    /* Hot Tracks Grid on Mobile */
    .hot-tracks-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hot-track-item {
        padding: 8px 12px;
    }

    .hot-track-thumb-wrap {
        width: 44px;
        height: 44px;
    }

    .hot-track-title {
        font-size: 13px;
    }

    /* Table on Mobile */
    .spotify-table th:nth-child(3),
    .spotify-table td:nth-child(3),
    .spotify-table th:nth-child(4),
    .spotify-table td:nth-child(4) {
        display: none; /* Hide Duration & Requester on phone */
    }

    .spotify-table th,
    .spotify-table td {
        padding: 10px 12px;
    }

    .track-meta-title {
        max-width: 180px;
        font-size: 13px;
    }

    /* Genre Tiles (Search Tab) */
    .genre-tiles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .genre-tile {
        height: 85px;
        padding: 12px;
    }

    .genre-tile span {
        font-size: 15px;
    }

    .genre-tile .tile-icon {
        font-size: 32px;
    }

    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .song-card {
        padding: 10px;
    }

    .song-card-title {
        font-size: 13px;
    }

    .song-card-artist {
        font-size: 11.5px;
    }

    .card-play-btn {
        opacity: 1;
        transform: none;
        width: 40px;
        height: 40px;
        bottom: 8px;
        right: 8px;
    }

    .card-play-btn svg {
        width: 18px;
        height: 18px;
    }

    /* FLOATING MINI-PLAYER (Docked above bottom nav) */
    .player-bar {
        position: fixed;
        bottom: calc(56px + env(safe-area-inset-bottom, 0px));
        left: 8px;
        right: 8px;
        height: 56px;
        border-radius: 14px;
        background: rgba(18, 22, 34, 0.95);
        backdrop-filter: blur(24px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
        padding: 0 12px;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-mini-progress {
        display: block;
        position: absolute;
        top: 0;
        left: 12px;
        right: 12px;
        height: 2px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
        overflow: hidden;
    }

    .mobile-mini-fill {
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
        transition: width 0.3s ease;
    }

    .player-left {
        width: auto;
        min-width: 0;
        flex: 1;
        overflow: hidden;
        gap: 10px;
        cursor: pointer;
    }

    .player-thumb-wrap {
        width: 40px;
        height: 40px;
    }

    .player-heart {
        display: none;
    }

    .player-title {
        font-size: 13px;
    }

    .player-artist {
        font-size: 11px;
    }

    .player-center {
        width: auto;
        flex: 0;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .player-seekbar-wrap {
        display: none;
    }

    .player-controls {
        gap: 6px;
    }

    .btn-ctrl {
        display: none;
    }

    .btn-ctrl#btn-ctrl-next {
        display: flex;
        padding: 4px;
    }

    .btn-play-pause {
        width: 38px;
        height: 38px;
    }

    .btn-play-pause svg {
        width: 18px;
        height: 18px;
    }

    .player-right {
        display: none;
    }

    /* MOBILE BOTTOM NAVIGATION BAR */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(56px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: rgba(10, 12, 19, 0.98);
        backdrop-filter: blur(28px);
        border-top: 1px solid var(--border-glass);
        display: flex;
        align-items: center;
        justify-content: space-around;
        z-index: 1001;
    }

    .mobile-nav-item {
        flex: 1;
        height: 100%;
        background: none;
        border: none;
        color: var(--text-muted);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: 10.5px;
        font-weight: 700;
        font-family: inherit;
        cursor: pointer;
        transition: color 0.2s;
        position: relative;
    }

    .mobile-nav-item svg {
        width: 20px;
        height: 20px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2.2;
    }

    .mobile-nav-item.active {
        color: var(--primary-light);
    }

    .mobile-badge-wrap {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-badge-count {
        position: absolute;
        top: -4px;
        right: -8px;
        background: var(--primary);
        color: #000;
        font-size: 9px;
        font-weight: 800;
        padding: 1px 5px;
        border-radius: var(--radius-full);
    }

    /* Theater Mode on Mobile */
    .theater-overlay {
        padding: 24px 20px;
        justify-content: space-between;
    }

    .theater-body {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .theater-art-container {
        width: 240px;
        height: 240px;
    }

    .theater-title {
        font-size: 24px;
        line-height: 1.2;
    }

    .theater-artist {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .theater-controls-row {
        justify-content: center;
    }

    /* Login Gate on Mobile */
    .login-gate-card {
        padding: 32px 20px;
        gap: 14px;
    }

    .login-title {
        font-size: 24px;
    }

    .btn-discord-login {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* ====================================================
   MULTI-BOT ROOMS SWITCHER BAR
   ==================================================== */
.rooms-switcher-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(12px);
    transition: all 0.3s var(--ease-out);
}

.rooms-chips-list {
    display: flex;
    align-items: center;
    gap: 6px;
}

.room-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s var(--ease-spring);
}

.room-chip:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-1px);
}

.room-chip.active {
    background: linear-gradient(135deg, var(--primary), #059669);
    border-color: rgba(255, 255, 255, 0.25);
    color: #000;
    box-shadow: 0 2px 10px var(--primary-glow);
}

/* ====================================================
   MINI AUDIO WAVEFORM IN PLAYER BAR
   ==================================================== */
.player-mini-waveform {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    padding: 0 4px;
}

.player-mini-waveform span {
    width: 3px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 2px;
    transition: height 0.2s ease;
}

.player-mini-waveform.playing span {
    animation: waveBounce 0.9s infinite ease-in-out alternate;
}

.player-mini-waveform.playing span:nth-child(1) { animation-duration: 0.6s; animation-delay: 0.0s; }
.player-mini-waveform.playing span:nth-child(2) { animation-duration: 0.8s; animation-delay: 0.2s; }
.player-mini-waveform.playing span:nth-child(3) { animation-duration: 0.5s; animation-delay: 0.4s; }
.player-mini-waveform.playing span:nth-child(4) { animation-duration: 0.7s; animation-delay: 0.1s; }
.player-mini-waveform.playing span:nth-child(5) { animation-duration: 0.65s; animation-delay: 0.3s; }

@keyframes waveBounce {
    0% { height: 4px; }
    100% { height: 18px; }
}

/* Quick tool button icon round */
.btn-icon-round {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.2s var(--ease-spring);
}

.btn-icon-round:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: scale(1.08);
}

.btn-icon-round.active {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--primary-light);
}

.sleep-indicator-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--primary);
}

/* ====================================================
   LYRICS & KARAOKE VIEW (TAB 4)
   ==================================================== */
.lyrics-card {
    background: rgba(16, 19, 31, 0.65);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 32px;
    backdrop-filter: var(--glass-blur);
    min-height: calc(100vh - 240px);
    display: flex;
    flex-direction: column;
}

.lyrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.lyrics-track-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.lyrics-track-info img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.lyrics-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.lyrics-artist {
    font-size: 14.5px;
    color: var(--text-secondary);
    margin-top: 3px;
}

.lyrics-viewport {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    max-height: 520px;
    scroll-behavior: smooth;
}

.lyrics-lines-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 0;
}

.lyric-line {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.28);
    transition: all 0.4s var(--ease-out);
    cursor: pointer;
    border-radius: var(--radius-md);
    padding: 6px 14px;
    width: fit-content;
}

.lyric-line:hover {
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(4px);
}

.lyric-line.active {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.4), 0 0 10px rgba(6, 182, 212, 0.4);
    transform: scale(1.02) translateX(8px);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), transparent);
    border-left: 3px solid var(--primary);
}

.lyric-line.past {
    color: rgba(255, 255, 255, 0.45);
}

.lyrics-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.lyrics-musical-note {
    font-size: 48px;
    margin-bottom: 16px;
    animation: pulseFloat 2s infinite ease-in-out;
}

@keyframes pulseFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ====================================================
   MODALS: SLEEP TIMER, EQUALIZER & SHORTCUTS
   ==================================================== */
.modal-sm { max-width: 440px; }
.modal-md { max-width: 600px; }

.sleep-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.sleep-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s var(--ease-spring);
}

.sleep-btn:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #fff;
    transform: translateY(-2px);
}

.sleep-btn.active {
    background: var(--primary);
    color: #000;
    font-weight: 700;
}

.sleep-btn.sleep-cancel {
    grid-column: span 2;
    text-align: center;
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.2);
}

.sleep-status-bar {
    margin-top: 14px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* EQUALIZER BOARD */
.eq-presets-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.eq-preset-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease-spring);
}

.eq-preset-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.eq-preset-chip.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary));
    color: #000;
    border-color: transparent;
    font-weight: 700;
}

.eq-sliders-board {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.25);
    padding: 24px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    height: 220px;
}

.eq-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.eq-meter {
    width: 14px;
    height: 140px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 7px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.eq-meter-fill {
    width: 100%;
    background: linear-gradient(to top, var(--primary), var(--accent-cyan));
    border-radius: 7px;
    transition: height 0.35s var(--ease-spring);
    box-shadow: 0 0 10px var(--primary-glow);
}

.eq-band span {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

/* SHORTCUTS GRID */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
}

kbd {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    font-weight: 700;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

/* ====================================================
   ENHANCED REAL SYNCED LYRICS & KARAOKE STYLING
   ==================================================== */
.lyrics-card {
    position: relative;
    overflow: hidden;
    background: rgba(14, 17, 27, 0.82);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    backdrop-filter: var(--glass-blur);
    min-height: calc(100vh - 230px);
    display: flex;
    flex-direction: column;
}

.lyrics-ambient-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-size: cover;
    background-position: center;
    filter: blur(90px) brightness(0.22) saturate(200%);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
    transition: background-image 1.2s ease-in-out;
}

.lyrics-header,
.lyrics-viewport {
    position: relative;
    z-index: 1;
}

.lyrics-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lyrics-sync-controls {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    padding: 3px 6px;
    gap: 5px;
    transition: all 0.2s var(--ease-out);
}

.lyrics-sync-controls:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.sync-title {
    font-size: 10.5px;
    color: var(--text-muted);
    padding-left: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-sync-offset {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s var(--ease-out);
}

.btn-sync-offset:hover {
    background: var(--primary);
    color: #050608;
    border-color: var(--primary);
    transform: scale(1.06);
}

.sync-offset-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-light);
    min-width: 40px;
    text-align: center;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.sync-offset-label:hover {
    background: rgba(255, 255, 255, 0.12);
    text-decoration: underline;
}

.lyrics-search-mini {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    padding: 4px 6px 4px 14px;
    transition: all 0.25s var(--ease-out);
}

.lyrics-search-mini:focus-within {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 14px var(--primary-glow);
}

.lyrics-search-mini input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 12.5px;
    font-weight: 500;
    width: 170px;
}

.btn-lyrics-search {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.2s var(--ease-spring);
}

.btn-lyrics-search:hover {
    background: var(--primary);
    color: #000;
    transform: scale(1.1);
}

.lyric-line {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -0.6px;
    color: rgba(255, 255, 255, 0.28);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border-radius: var(--radius-lg);
    padding: 10px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: fit-content;
    max-width: 90%;
}

.lyric-line:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(8px);
}

.lyric-line.active {
    font-size: 38px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 35px rgba(16, 185, 129, 0.7), 0 0 65px rgba(6, 182, 212, 0.4);
    transform: scale(1.03) translateX(14px);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 182, 212, 0.06) 60%, transparent 100%);
    border-left: 5px solid var(--primary);
}

.lyric-line.past {
    color: rgba(255, 255, 255, 0.45);
}

.lyric-time-badge {
    font-size: 11.5px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0;
    margin-left: 20px;
    transition: opacity 0.2s ease;
}

.lyric-line:hover .lyric-time-badge,
.lyric-line.active .lyric-time-badge {
    opacity: 0.75;
}

.lyrics-loading-state {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-secondary);
}

.lyrics-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 18px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spinLyrics 0.8s linear infinite;
}

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

@media (max-width: 768px) {
    .lyric-line {
        font-size: 20px;
        padding: 8px 14px;
        max-width: 100%;
    }
    .lyric-line.active {
        font-size: 24px;
        transform: scale(1.02) translateX(6px);
    }
    .lyrics-search-mini input {
        width: 120px;
    }
}
