/* =====================================================================
STYLE SYSTEM — SPOT WEB PLAYER (PREMIUM GLASSMORPHISM)
===================================================================== */
:root {
    --bg-dark: #070913;
    --card-bg: rgba(13, 17, 34, 0.55);
    --card-border: rgba(255, 255, 255, 0.06);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-teal: hsl(168, 85%, 52%);
    --accent-teal-glow: rgba(5, 250, 180, 0.3);
    --accent-violet: hsl(272, 85%, 65%);
    --accent-violet-glow: rgba(168, 85, 247, 0.35);
    --accent-blue: hsl(208, 90%, 55%);
    --accent-blue-glow: rgba(59, 130, 246, 0.35);
    --accent-red: #ef4444;
    --accent-red-glow: rgba(239, 68, 68, 0.3);
    --sidebar-width: 340px;
    --header-height: 70px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', sans-serif;
}

/* Base Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.01); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

/* Background Glows */
.ambient-glow {
    position: absolute; width: 45vw; height: 45vw; border-radius: 50%;
    filter: blur(140px); z-index: -1; pointer-events: none; opacity: 0.22;
}
.glow-1 { top: -10%; left: -10%; background: radial-gradient(circle, var(--accent-teal) 0%, transparent 70%); }
.glow-2 { bottom: -10%; right: 15%; background: radial-gradient(circle, var(--accent-violet) 0%, transparent 70%); }
.glow-3 { top: 30%; right: -10%; background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%); }

/* ── LOGIN MODAL ─────────────────────────────────────────────── */
.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 9, 19, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: rgba(13, 17, 34, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(5, 250, 180, 0.08);
    animation: loginFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.login-logo-icon {
    font-size: 32px;
    animation: pulse 2s infinite alternate;
}

.login-logo h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 32px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 30%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.input-group input:focus {
    border-color: var(--accent-teal);
    background: rgba(5, 250, 180, 0.04);
    box-shadow: 0 0 0 4px rgba(5, 250, 180, 0.08);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.login-btn {
    width: 100%;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-blue) 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    color: var(--bg-dark);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(5, 250, 180, 0.25);
}

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

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(5, 250, 180, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-error {
    margin-top: 4px;
    padding: 12px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* ── USER INFO & LOGOUT ─────────────────────────────────────── */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.user-info svg {
    width: 14px;
    height: 14px;
    color: var(--accent-teal);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.logout-btn svg {
    width: 16px;
    height: 16px;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: var(--accent-red);
    color: var(--accent-red);
    box-shadow: 0 0 14px var(--accent-red-glow);
    transform: rotate(-8deg);
}

/* App Layout */
.app-container { display: flex; width: 100vw; height: 100vh; backdrop-filter: blur(8px); z-index: 10; }

/* Sidebar */
.sidebar {
    width: var(--sidebar-width); border-right: 1px solid var(--card-border);
    background: rgba(8, 10, 20, 0.7); display: flex; flex-direction: column; height: 100%;
}
.sidebar-header { padding: 24px 20px 16px 20px; }
.logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.logo-icon { font-size: 26px; animation: pulse 2s infinite alternate; }
.logo h1 {
    font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 30%, var(--accent-teal) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.search-box { position: relative; width: 100%; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); }
.search-box input {
    width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px; padding: 12px 12px 12px 38px; color: var(--text-primary);
    font-family: var(--font-sans); font-size: 14px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-box input:focus {
    outline: none; border-color: var(--accent-teal); background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 12px var(--accent-teal-glow);
}
.track-count { font-size: 12px; color: var(--text-muted); font-weight: 500; padding: 0 20px 8px 20px; }
#total-tracks-badge { color: var(--accent-teal); font-weight: 600; }

/* Playlist */
.playlist-container { flex: 1; overflow-y: auto; padding: 0 12px 20px 12px; }
.tracks-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tracks-list li {
    display: flex; align-items: center; padding: 12px; border-radius: 8px; cursor: pointer;
    background: transparent; border: 1px solid transparent; transition: all 0.2s ease;
}
.tracks-list li:hover { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.04); }
.tracks-list li.active {
    background: rgba(5, 250, 180, 0.07); border-color: rgba(5, 250, 180, 0.15);
    box-shadow: inset 0 0 8px rgba(5, 250, 180, 0.04);
}
.track-skeleton {
    height: 48px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px;
}
.track-item-num {
    font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--text-muted);
    min-width: 28px; text-align: right; margin-right: 12px;
}
.tracks-list li.active .track-item-num { color: var(--accent-teal); }
.track-item-meta { flex: 1; overflow: hidden; }
.track-item-title { font-size: 13.5px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-item-artist { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.tracks-list li.active .track-item-artist { color: rgba(255, 255, 255, 0.5); }

/* Main Content */
.main-content { flex: 1; height: 100%; overflow-y: auto; display: flex; flex-direction: column; }
.main-header {
    height: var(--header-height); padding: 0 32px; display: flex; justify-content: space-between;
    align-items: center; border-bottom: 1px solid var(--card-border); background: rgba(7, 9, 19, 0.2);
}
.current-session-info { display: flex; align-items: center; gap: 8px; }
.status-indicator { width: 8px; height: 8px; border-radius: 50%; background-color: var(--accent-teal); box-shadow: 0 0 10px var(--accent-teal); }
.status-indicator.loading { background-color: var(--accent-violet); box-shadow: 0 0 10px var(--accent-violet); animation: flash 1s infinite alternate; }
#session-status-text { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.api-badge {
    display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 6px 14px;
    font-size: 12px; font-weight: 500; color: var(--text-secondary);
}
.api-badge svg { width: 12px; height: 12px; color: var(--accent-teal); }

/* Dashboard Grid */
.dashboard-grid {
    flex: 1; display: grid; grid-template-columns: 1.1fr 1.2fr; gap: 24px;
    padding: 24px 32px; height: calc(100% - var(--header-height)); overflow: hidden;
}

/* Player Section */
.player-section { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.player-card {
    background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 24px;
    padding: 32px; backdrop-filter: blur(20px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex; flex-direction: column; align-items: center; position: relative;
    max-width: 440px; margin: 0 auto; width: 100%;
}

.player-top-bar {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 0 4px; margin-bottom: 20px;
}

.my-wave-btn {
    display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-secondary);
    padding: 8px 16px; border-radius: 24px; font-size: 13px; font-weight: 600;
    font-family: var(--font-sans); cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.my-wave-btn svg { width: 16px; height: 16px; transition: transform 0.4s ease; }
.my-wave-btn:hover {
    background: rgba(59, 130, 246, 0.15); border-color: var(--accent-blue);
    color: var(--accent-blue); box-shadow: 0 0 14px var(--accent-blue-glow);
}
.my-wave-btn:hover svg { transform: scale(1.15); }
.my-wave-btn.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
    border-color: var(--accent-violet); color: #fff;
    box-shadow: 0 0 18px var(--accent-violet-glow), inset 0 0 10px rgba(255,255,255,0.15);
    animation: wave-pulse 2s infinite alternate;
}
.my-wave-btn.active svg { transform: rotate(12deg) scale(1.1); }

@keyframes wave-pulse {
    0% { box-shadow: 0 0 14px var(--accent-violet-glow); }
    100% { box-shadow: 0 0 28px var(--accent-blue-glow), 0 0 12px var(--accent-teal-glow); }
}

/* Vinyl */
.vinyl-container { position: relative; width: 200px; height: 200px; margin-bottom: 28px; }
.vinyl-disk {
    width: 100%; height: 100%; border-radius: 50%;
    background: radial-gradient(circle, #222 0%, #111 60%, #050505 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 0 6px rgba(255, 255, 255, 0.02);
    position: relative; transition: box-shadow 0.5s ease;
    animation: rotate 18s linear infinite; animation-play-state: paused;
}
.player-card.playing .vinyl-disk {
    animation-play-state: running; box-shadow: 0 12px 36px rgba(0,0,0,0.7), 0 0 24px var(--accent-teal-glow);
}
.vinyl-grooves {
    position: absolute; top: 5%; left: 5%; right: 5%; bottom: 5%;
    border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.03);
}
.vinyl-grooves::before {
    content: ''; position: absolute; top: 15%; left: 15%; right: 15%; bottom: 15%;
    border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.02);
}
.vinyl-center {
    position: absolute; width: 32%; height: 32%; top: 34%; left: 34%;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-blue) 100%);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
}
.vinyl-center-dot { width: 12px; height: 12px; background: var(--bg-dark); border-radius: 50%; }
.music-note-bubble {
    position: absolute; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex; align-items: center; justify-content: center; bottom: 0; right: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.music-note-bubble svg { width: 18px; height: 18px; color: var(--text-primary); }
.player-card.playing .music-note-bubble {
    color: var(--accent-teal); background: rgba(5, 250, 180, 0.1);
    border-color: var(--accent-teal); box-shadow: 0 0 15px var(--accent-teal-glow);
}

/* Track Info & Meta */
.player-track-info { text-align: center; margin-bottom: 20px; width: 100%; }
.player-track-info h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text-primary); margin-bottom: 6px; letter-spacing: -0.3px; }
.player-track-info p { font-size: 14px; color: var(--text-secondary); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Visualizer */
.visualizer { display: flex; align-items: flex-end; gap: 3px; height: 32px; margin-bottom: 24px; }
.visualizer .bar { width: 4px; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; transition: height 0.2s ease, background-color 0.3s ease; }
.player-card.playing .visualizer .bar {
    background: linear-gradient(180deg, var(--accent-teal) 0%, var(--accent-blue) 100%);
    animation: bounce 0.8s ease-in-out infinite alternate;
}
.player-card.playing .visualizer .bar:nth-child(2)  { animation-delay: 0.1s; }
.player-card.playing .visualizer .bar:nth-child(3)  { animation-delay: 0.3s; }
.player-card.playing .visualizer .bar:nth-child(4)  { animation-delay: 0.15s; }
.player-card.playing .visualizer .bar:nth-child(5)  { animation-delay: 0.4s; }
.player-card.playing .visualizer .bar:nth-child(6)  { animation-delay: 0.2s; }
.player-card.playing .visualizer .bar:nth-child(7)  { animation-delay: 0.35s; }
.player-card.playing .visualizer .bar:nth-child(8)  { animation-delay: 0.1s; }
.player-card.playing .visualizer .bar:nth-child(9)  { animation-delay: 0.45s; }
.player-card.playing .visualizer .bar:nth-child(10) { animation-delay: 0.25s; }
.player-card.playing .visualizer .bar:nth-child(11) { animation-delay: 0.05s; }
.player-card.playing .visualizer .bar:nth-child(12) { animation-delay: 0.3s; }
.player-card.playing .visualizer .bar:nth-child(13) { animation-delay: 0.15s; }
.player-card.playing .visualizer .bar:nth-child(14) { animation-delay: 0.35s; }
.player-card.playing .visualizer .bar:nth-child(15) { animation-delay: 0.2s; }

/* Progress */
.progress-container {
    width: 100%; display: flex; align-items: center; gap: 12px; font-size: 11px;
    font-weight: 600; color: var(--text-muted); font-family: var(--font-display); margin-bottom: 24px;
}
.progress-bar-bg { flex: 1; height: 4px; background: rgba(255, 255, 255, 0.08); border-radius: 10px; cursor: pointer; position: relative; overflow: hidden; }
.progress-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-teal), var(--accent-blue)); border-radius: 10px; transition: width 0.1s linear; }

/* Controls */
.player-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 28px; }
.control-btn {
    background: transparent; border: none; cursor: pointer; color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.control-btn svg { width: 22px; height: 22px; }
.control-btn:hover { color: var(--text-primary); transform: scale(1.1); }
.control-btn:active { transform: scale(0.95); }
.play-btn { width: 58px; height: 58px; background: var(--text-primary); color: var(--bg-dark); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); }
.play-btn svg { width: 24px; height: 24px; fill: currentColor; margin-left: 2px; }
.player-card.playing .play-btn { background: var(--accent-teal); color: var(--bg-dark); box-shadow: 0 0 20px var(--accent-teal-glow); }
.player-card.playing .play-btn svg { margin-left: 0; }

/* Similar Trigger */
.similar-trigger-btn {
    width: 100%; background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border: 1px solid rgba(168, 85, 247, 0.4); color: var(--text-primary); border-radius: 14px; padding: 14px;
    font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center;
    justify-content: center; gap: 10px; font-family: var(--font-sans); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.similar-trigger-btn svg { width: 16px; height: 16px; color: var(--accent-violet); transition: transform 0.4s ease; }
.similar-trigger-btn:hover { background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%); border-color: var(--accent-violet); box-shadow: 0 0 16px var(--accent-violet-glow); }
.similar-trigger-btn:hover svg { transform: rotate(15deg) scale(1.1); }

/* Meta Buttons (Like/Dislike/Shuffle) */
.player-track-meta-container { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 20px; gap: 16px; }
.player-track-meta-container .player-track-info { flex: 1; text-align: center; margin-bottom: 0; overflow: hidden; }
.meta-action-btn {
    background: transparent; border: none; cursor: pointer; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.04); transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.meta-action-btn svg { width: 16px; height: 16px; }
.meta-action-btn:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
.dislike-btn:hover { color: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.2); }
.like-btn:hover { color: #ec4899; box-shadow: 0 0 10px rgba(236, 72, 153, 0.2); }
.like-btn.active { color: #ec4899 !important; background: rgba(236, 72, 153, 0.08) !important; border-color: rgba(236, 72, 153, 0.3) !important; box-shadow: 0 0 12px rgba(236, 72, 153, 0.25) !important; }
.shuffle-btn.active { color: var(--accent-teal) !important; background: rgba(5, 250, 180, 0.06) !important; border-color: rgba(5, 250, 180, 0.2) !important; box-shadow: inset 0 0 8px rgba(5, 250, 180, 0.05), 0 0 12px var(--accent-teal-glow) !important; }

/* Recommendations */
.recommendations-section { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-title h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.title-icon { width: 18px; height: 18px; color: var(--accent-violet); }
.recommendations-count-badge { background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.3); color: var(--accent-violet); font-size: 11px; font-weight: 700; font-family: var(--font-display); padding: 3px 8px; border-radius: 12px; }
.recommendations-container { flex: 1; overflow-y: auto; background: rgba(13, 17, 34, 0.25); border: 1px solid var(--card-border); border-radius: 20px; padding: 20px; position: relative; backdrop-filter: blur(10px); }
.rec-placeholder-message { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px; color: var(--text-secondary); }
.icon-circle { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.icon-circle svg { width: 28px; height: 28px; color: var(--accent-violet); animation: float 4s ease-in-out infinite; }
.rec-placeholder-message h4 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; }
.rec-placeholder-message p { font-size: 13px; color: var(--text-muted); max-width: 280px; line-height: 1.5; }
.shimmer-container { display: flex; flex-direction: column; gap: 12px; }
.shimmer-card { height: 80px; border-radius: 12px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.02) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.recommendations-list { display: flex; flex-direction: column; gap: 12px; }
.rec-card {
    background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px; padding: 16px; display: flex; justify-content: space-between;
    align-items: center; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer;
}
.rec-card:hover { background: rgba(255, 255, 255, 0.04); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.rec-card.source-direct { border-left: 3px solid var(--accent-teal); }
.rec-card.source-artist { border-left: 3px solid var(--accent-violet); }
.rec-card.source-popular { border-left: 3px solid var(--accent-blue); }
.rec-card-info { flex: 1; overflow: hidden; margin-right: 12px; }
.rec-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.rec-title { font-weight: 600; font-size: 14px; color: var(--text-primary); }
.rec-artist { font-size: 12.5px; color: var(--text-secondary); }
.rec-badge { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.2px; }
.rec-badge.direct { background: rgba(5, 250, 180, 0.1); color: var(--accent-teal); }
.rec-badge.artist { background: rgba(168, 85, 247, 0.1); color: var(--accent-violet); }
.rec-badge.popular { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); }
.rec-card-actions { display: flex; align-items: center; gap: 8px; }
.rec-action-btn {
    width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08); display: flex; align-items: center;
    justify-content: center; cursor: pointer; color: var(--text-secondary); transition: all 0.2s ease;
}
.rec-action-btn svg { width: 14px; height: 14px; }
.rec-action-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); }
.rec-action-btn.btn-yt:hover { background: #ff0000; border-color: #ff0000; color: white; }

/* Error Card */
.error-card { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.25); border-radius: 12px; padding: 16px; color: #fca5a5; font-size: 13px; text-align: center; display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.error-card h5 { font-weight: 600; font-size: 14px; }
.error-card button { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4); color: #fca5a5; padding: 8px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.error-card button:hover { background: rgba(239, 68, 68, 0.25); }

/* Helpers & Animations */
.hidden { display: none !important; }
.rotate-animation { animation: rotate 1.5s linear infinite !important; }
@keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes bounce { 0% { height: 4px; } 100% { height: 28px; } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.95; } 100% { transform: scale(1.08); opacity: 1; } }
@keyframes flash { 0% { opacity: 0.4; } 100% { opacity: 1; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; overflow-y: auto; }
    .player-section { height: auto; }
    .recommendations-section { height: 500px; }
}
@media (max-width: 768px) {
    .app-container { flex-direction: column; }
    .sidebar { width: 100%; height: 300px; }
    .main-content { height: calc(100vh - 300px); }
    .header-right { gap: 8px; }
    .user-info span { display: none; }
    .login-card { padding: 36px 24px; }
}