/* ===== RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark theme (default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #14141f;
    --bg-card: rgba(20, 20, 30, 0.85);
    --accent-primary: #ff3366;
    --accent-secondary: #6b4eff;
    --accent-tertiary: #00d4ff;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-dim: rgba(255, 255, 255, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Theme variations */
[data-theme="sunset"] {
    --bg-primary: #2d1b2d;
    --bg-secondary: #442b44;
    --accent-primary: #ff6b6b;
    --accent-secondary: #ffb347;
    --accent-tertiary: #ff8c8c;
}

[data-theme="ocean"] {
    --bg-primary: #0a1a2f;
    --bg-secondary: #0f2742;
    --accent-primary: #4ecdc4;
    --accent-secondary: #45b7d1;
    --accent-tertiary: #96ceb4;
}

[data-theme="forest"] {
    --bg-primary: #1a2f1a;
    --bg-secondary: #2a452a;
    --accent-primary: #a8e6cf;
    --accent-secondary: #d4edda;
    --accent-tertiary: #b8e0b8;
}

[data-theme="midnight"] {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --accent-primary: #9d4edd;
    --accent-secondary: #c77dff;
    --accent-tertiary: #e0aaff;
}

[data-theme="coffee"] {
    --bg-primary: #2c1810;
    --bg-secondary: #3d2b1f;
    --accent-primary: #c06b3e;
    --accent-secondary: #d99a6c;
    --accent-tertiary: #e6b17e;
}

[data-theme="underwater"] {
    --bg-primary: #0a2f4a;
    --bg-secondary: #0f3a5a;
    --accent-primary: #00fff9;
    --accent-secondary: #4ecdc4;
    --accent-tertiary: #a8e6cf;
}

/* ===== BASE STYLES ===== */
body {
    min-height: 100vh;
    background: var(--bg-primary);
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-primary);
    transition: background var(--transition-normal);
    position: relative;
    overflow-x: hidden;
}

/* ===== UNDERWATER BACKGROUND ===== */
.water-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.water-ripple {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(78, 205, 196, 0.1);
    border-radius: 50%;
    animation: ripple 8s linear infinite;
}

@keyframes ripple {
    0% { transform: scale(0); opacity: 0.8; }
    100% { transform: scale(20); opacity: 0; }
}

.water-light {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 255, 249, 0.1), transparent 70%);
    animation: caustics 10s infinite alternate;
}

@keyframes caustics {
    0% { transform: translateX(-10%) scale(1); opacity: 0.3; }
    50% { transform: translateX(10%) scale(1.2); opacity: 0.5; }
    100% { transform: translateX(-5%) scale(0.9); opacity: 0.3; }
}

/* ===== BUBBLES EFFECT ===== */
.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: bubble-float 15s infinite ease-in;
}

@keyframes bubble-float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 0.5; }
    80% { opacity: 0.3; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* ===== FISH EFFECT ===== */
.fish-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.fish {
    position: absolute;
    color: rgba(255, 165, 0, 0.3);
    font-size: 24px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
    animation: fish-swim 20s infinite linear;
    transform-origin: center;
}

@keyframes fish-swim {
    0% { transform: translateX(-100px) translateY(0) rotate(0deg); }
    25% { transform: translateX(25vw) translateY(-20px) rotate(5deg); }
    50% { transform: translateX(50vw) translateY(0) rotate(0deg); }
    75% { transform: translateX(75vw) translateY(20px) rotate(-5deg); }
    100% { transform: translateX(calc(100vw + 100px)) translateY(0) rotate(0deg); }
}

/* ===== RAIN EFFECT ===== */
.rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.rain-container.active {
    opacity: 1;
}

.raindrop {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(transparent, rgba(174, 194, 224, 0.3));
    animation: rain-fall linear infinite;
}

@keyframes rain-fall {
    from { transform: translateY(-100px); }
    to { transform: translateY(100vh); }
}

/* ===== SNOW EFFECT ===== */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.snow-container.active {
    opacity: 1;
}

.snowflake {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    filter: blur(1px);
    animation: snow-fall linear infinite;
}

@keyframes snow-fall {
    from { transform: translateY(-100px) rotate(0deg); }
    to { transform: translateY(100vh) rotate(360deg); }
}

/* ===== STARS EFFECT ===== */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9996;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ===== FIREFLIES EFFECT ===== */
.fireflies-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9995;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fireflies-container.active {
    opacity: 1;
}

.firefly {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffffb0;
    border-radius: 50%;
    box-shadow: 0 0 15px #ffd700;
    filter: blur(1px);
    animation: firefly-float 8s infinite alternate;
}

@keyframes firefly-float {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(20px, -20px) scale(1.2); opacity: 1; }
    100% { transform: translate(-20px, -40px) scale(0.8); opacity: 0.5; }
}

/* ===== ACTIVITY BACKGROUND ===== */
.activity-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.activity-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.3;
    animation: activity-pulse 3s infinite;
}

@keyframes activity-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(2); opacity: 0.6; }
}

/* ===== DRAG & DROP OVERLAY ===== */
.drag-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(107, 78, 255, 0.3);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 4px dashed var(--accent-primary);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.drag-overlay.show {
    opacity: 1;
    pointer-events: none;
}

.drag-overlay i {
    font-size: 5rem;
    margin-right: 20px;
    color: var(--accent-primary);
    animation: bounce 1s infinite alternate;
}

/* ===== FLOATING EXIT BUTTON ===== */
.exit-widget-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-primary);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px -5px var(--accent-primary);
    z-index: 10002;
    transition: all var(--transition-bounce);
    animation: pulse 2s infinite;
}

.exit-widget-btn.show {
    display: flex;
}

.exit-widget-btn:hover {
    transform: scale(1.2) rotate(90deg);
}

/* ===== MAIN DESK CONTAINER ===== */
.desk {
    max-width: 1400px;
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 60px;
    border: 1px solid var(--glass-border);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 100;
}

/* Widget Mode - FLOATING */
.desk.widget-mode {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    padding: var(--spacing-md);
    border-radius: 30px;
    cursor: move;
    user-select: none;
    z-index: 10000;
    animation: widget-appear 0.5s;
    box-shadow: 0 0 50px var(--accent-primary);
    resize: both;
    overflow: auto;
    min-width: 300px;
    min-height: 400px;
}

@keyframes widget-appear {
    from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.desk.widget-mode .header,
.desk.widget-mode .input-tabs,
.desk.widget-mode .input-section,
.desk.widget-mode .queue-section,
.desk.widget-mode .control-bar .ctrl-btn:not(#widgetToggle):not(#playPauseBtn):not(#nextBtn):not(#prevBtn) {
    display: none;
}

.desk.widget-mode .player-stage {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin: 0;
}

.desk.widget-mode .turntable-container {
    height: 180px;
}

.desk.widget-mode .turntable {
    width: 160px;
    height: 160px;
}

.desk.widget-mode .vinyl {
    width: 120px;
    height: 120px;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
}

.desk.widget-mode .label {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
}

.desk.widget-mode .tonearm {
    width: 90px;
    right: -20px;
}

.desk.widget-mode .visualizer-container {
    padding: var(--spacing-sm);
}

.desk.widget-mode #visualizer {
    height: 60px;
}

.desk.widget-mode .track-title {
    font-size: 0.9rem;
}

.desk.widget-mode .control-bar {
    margin: var(--spacing-xs) 0;
    gap: 5px;
}

/* Widget resize handles */
.desk.widget-mode::-webkit-resizer {
    border: 2px solid var(--accent-primary);
    border-radius: 0 0 30px 0;
}

/* ===== TONARM INDICATOR ===== */
.tonearm {
    position: absolute;
    right: -5%;
    top: 25%;
    width: 30%;
    height: 8%;
    min-width: 120px;
    max-width: 200px;
    background: linear-gradient(135deg, #ccc, #888);
    transform-origin: 15% 50%;
    transform: rotate(10deg);
    border-radius: 25px 10px 10px 25px;
    transition: transform 0.8s var(--transition-bounce);
    box-shadow: -8px 8px 15px rgba(0,0,0,0.5);
    z-index: 20;
}

.tonearm.playing {
    transform: rotate(32deg);
}

.tonearm.playing .tonearm-indicator {
    opacity: 1;
    animation: indicator-pulse 1s infinite;
}

.tonearm-indicator {
    position: absolute;
    top: -30px;
    right: 20px;
    background: var(--accent-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 0 15px var(--accent-primary);
}

.tonearm-indicator i {
    margin-right: 4px;
    font-size: 0.6rem;
}

@keyframes indicator-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== LYRICS CONTAINER ===== */
.lyrics-container {
    margin-top: 20px;
    padding: 15px;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    max-height: 150px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.lyrics-container::-webkit-scrollbar {
    width: 8px;
}

.lyrics-container::-webkit-scrollbar-track {
    background: var(--glass-bg);
    border-radius: 4px;
}

.lyrics-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
}

.lyric-line {
    padding: 5px 10px;
    text-align: center;
    color: var(--text-secondary);
    transition: all 0.3s;
    font-size: 0.9rem;
}

.lyric-line.active {
    color: var(--accent-primary);
    transform: scale(1.05);
    font-weight: bold;
    text-shadow: 0 0 10px var(--accent-primary);
}

/* ===== FISH & WATER TOGGLE ===== */
.fish-toggle-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    transition: all var(--transition-bounce);
}

.fish-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--accent-primary);
}

.fish-toggle-btn.active {
    background: linear-gradient(135deg, #00fff9, #4ecdc4);
    box-shadow: 0 0 30px #00fff9;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.title {
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.title i {
    color: var(--accent-primary);
    animation: spin 4s linear infinite;
    filter: drop-shadow(0 0 15px var(--accent-primary));
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.badge {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    box-shadow: 0 0 20px var(--accent-primary);
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 20px var(--accent-primary); }
    50% { box-shadow: 0 0 40px var(--accent-secondary); }
}

.time {
    background: var(--glass-bg);
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 1.3rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    font-weight: 500;
    letter-spacing: 2px;
}

/* ===== INPUT TABS ===== */
.input-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 12px 28px;
    border-radius: 40px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tab-btn:hover::before {
    width: 300px;
    height: 300px;
}

.tab-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 20px -5px var(--accent-primary);
}

/* ===== INPUT PANEL ===== */
.input-panel {
    background: var(--glass-bg);
    border-radius: 60px;
    padding: 5px 5px 5px 30px;
    display: flex;
    align-items: center;
    border: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.input-panel::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-primary)20, transparent 70%);
    animation: rotate 10s linear infinite;
    pointer-events: none;
}

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

.input-panel:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px var(--accent-primary);
    transform: scale(1.02);
}

.input-panel i {
    color: var(--accent-secondary);
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
}

#linkInput {
    background: transparent;
    border: none;
    padding: 18px 0;
    color: var(--text-primary);
    width: 100%;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    position: relative;
    z-index: 2;
}

#linkInput::placeholder {
    color: var(--text-dim);
}

.input-note {
    text-align: center;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.input-note i {
    color: var(--accent-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.action-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-bounce);
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px -5px var(--accent-primary);
}

.action-btn:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 15px 30px -5px var(--accent-primary);
}

.action-btn:active {
    transform: scale(0.95);
}

/* ===== FILE UPLOAD AREA ===== */
.file-area {
    background: var(--glass-bg);
    border: 2px dashed var(--glass-border);
    border-radius: 40px;
    padding: 50px;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.file-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-primary)10, transparent 70%);
    animation: rotate 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.file-area:hover::before {
    opacity: 1;
}

.file-area:hover, .file-area.dragover {
    border-color: var(--accent-primary);
    background: rgba(255, 51, 102, 0.1);
    transform: scale(1.02);
}

.file-area i {
    font-size: 4rem;
    color: var(--accent-secondary);
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.file-area h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.file-info {
    margin-top: 20px;
    color: var(--accent-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== PLAYER STAGE ===== */
.player-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 50px 0;
}

/* Turntable Container */
.turntable-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 500px;
}

/* Turntable */
.turntable {
    position: relative;
    width: min(450px, 45vw);
    height: min(450px, 45vw);
    aspect-ratio: 1 / 1;
}

/* Plinth */
.plinth {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2a2a35, #1a1a25);
    border-radius: 50%;
    box-shadow: 0 30px 40px -15px black,
                inset 0 -15px 25px rgba(0, 0, 0, 0.8),
                inset 0 15px 25px rgba(255, 255, 255, 0.1);
}

/* Vinyl Record */
.vinyl {
    position: absolute;
    top: 12%;
    left: 12%;
    width: 76%;
    height: 76%;
    background: linear-gradient(145deg, #222, #000);
    border-radius: 50%;
    box-shadow: 0 0 0 12px #333, 0 20px 30px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
}

/* Vinyl drop zone indicator */
.vinyl::after {
    content: '📀 DROP MP3 HERE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: clamp(0.8rem, 2vw, 1rem);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid var(--accent-primary);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
}

.vinyl:hover::after {
    opacity: 1;
}

.vinyl.drop-hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 12px #333, 0 0 50px var(--accent-primary);
    transform: scale(1.02);
}

.vinyl.drop-hover::after {
    content: '🎵 RELEASE TO PLAY!';
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    opacity: 1;
    animation: pulse 1s infinite;
}

.vinyl.spinning {
    animation: spin 3.2s linear infinite;
}

.vinyl::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: repeating-radial-gradient(circle at 50% 50%, 
        rgba(255,255,255,0.1) 0px, 
        transparent 2px, 
        transparent 8px);
    animation: groove-shimmer 4s linear infinite;
}

@keyframes groove-shimmer {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Label */
.label {
    width: 35%;
    height: 35%;
    background: radial-gradient(circle at 30% 30%, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: white;
    box-shadow: 0 0 40px var(--accent-primary);
    animation: label-pulse 2s infinite alternate;
    position: relative;
    z-index: 3;
}

@keyframes label-pulse {
    from { box-shadow: 0 0 30px var(--accent-primary); }
    to { box-shadow: 0 0 60px var(--accent-secondary); }
}

.vinyl-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent-primary)30, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.vinyl.spinning + .vinyl-glow {
    opacity: 1;
}

/* Tonearm with indicator */
.tonearm {
    position: absolute;
    right: -5%;
    top: 25%;
    width: 30%;
    height: 8%;
    min-width: 120px;
    max-width: 200px;
    background: linear-gradient(135deg, #ccc, #888);
    transform-origin: 15% 50%;
    transform: rotate(10deg);
    border-radius: 25px 10px 10px 25px;
    transition: transform 0.8s var(--transition-bounce);
    box-shadow: -8px 8px 15px rgba(0,0,0,0.5);
    z-index: 20;
}

.tonearm.playing {
    transform: rotate(32deg);
}

.tonearm.playing .tonearm-indicator {
    opacity: 1;
    animation: indicator-pulse 1s infinite;
}

.tonearm-indicator {
    position: absolute;
    top: -30px;
    right: 20px;
    background: var(--accent-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 0 15px var(--accent-primary);
    pointer-events: none;
    z-index: 30;
}

.tonearm-indicator i {
    margin-right: 4px;
    font-size: 0.6rem;
    animation: spin 2s linear infinite;
}

/* Visualizer Container */
.visualizer-container {
    background: var(--glass-bg);
    border-radius: 40px;
    padding: 30px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.visualizer-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 30%, var(--accent-primary)10, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

#visualizer {
    width: 100%;
    height: 220px;
    border-radius: 20px;
    margin-bottom: 25px;
    background: rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.now-playing {
    text-align: center;
    margin: 25px 0;
    position: relative;
    z-index: 2;
}

.track-status {
    color: var(--accent-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.track-status .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: status-pulse 1.5s infinite;
}

@keyframes status-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.track-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 12px 0;
    text-shadow: 0 0 15px var(--accent-primary);
    word-break: break-word;
}

.track-meta {
    color: var(--text-secondary);
    font-size: 1rem;
    font-family: monospace;
    letter-spacing: 2px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 25px 0;
    cursor: pointer;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    transition: width 0.1s linear;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-primary);
    animation: thumb-pulse 2s infinite;
}

@keyframes thumb-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.volume-control i {
    color: var(--accent-secondary);
    font-size: 1.2rem;
}

.volume-control input {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    outline: none;
}

.volume-control input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px var(--accent-primary);
    transition: transform var(--transition-fast);
}

.volume-control input::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.volume-level {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.volume-level .level-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.1s ease;
}

/* ===== CONTROL BAR ===== */
.control-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 35px 0 25px;
    position: relative;
    z-index: 2;
}

.ctrl-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 14px 28px;
    border-radius: 50px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-fast);
    font-size: 1rem;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.ctrl-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ctrl-btn:hover::before {
    width: 300px;
    height: 300px;
}

.ctrl-btn:hover {
    background: var(--accent-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px -8px var(--accent-primary);
    border-color: transparent;
}

.ctrl-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    box-shadow: 0 10px 20px -5px var(--accent-primary);
}

.ctrl-btn i {
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

/* ===== QUEUE SECTION ===== */
.queue-section {
    margin-top: 35px;
    border-top: 1px solid var(--glass-border);
    padding-top: 25px;
}

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

.queue-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
}

.queue-header h3 i {
    color: var(--accent-primary);
    animation: spin 4s linear infinite;
}

.queue-list {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

.queue-list::-webkit-scrollbar {
    width: 10px;
}

.queue-list::-webkit-scrollbar-track {
    background: var(--glass-bg);
    border-radius: 5px;
}

.queue-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 5px;
}

.queue-item {
    background: var(--glass-bg);
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    animation: slide-in 0.3s;
}

@keyframes slide-in {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.queue-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
    border-color: var(--accent-primary);
}

.queue-item.playing {
    border-left: 6px solid var(--accent-primary);
    background: linear-gradient(90deg, rgba(255,51,102,0.15), transparent);
    box-shadow: 0 5px 15px rgba(255,51,102,0.2);
}

.queue-item i {
    color: var(--accent-secondary);
    font-size: 1.2rem;
}

.queue-item .track-info {
    flex: 1;
    min-width: 0;
}

.queue-item .track-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.queue-item .track-details {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== EQUALIZER ===== */
.equalizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 40px;
    margin: 20px 0;
}

.equalizer-bar {
    width: 6px;
    background: linear-gradient(to top, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    animation: equalize 0.5s infinite alternate;
}

@keyframes equalize {
    from { height: 10px; }
    to { height: 40px; }
}

.equalizer-bar:nth-child(1) { animation-delay: 0s; }
.equalizer-bar:nth-child(2) { animation-delay: 0.1s; }
.equalizer-bar:nth-child(3) { animation-delay: 0.2s; }
.equalizer-bar:nth-child(4) { animation-delay: 0.3s; }
.equalizer-bar:nth-child(5) { animation-delay: 0.4s; }
.equalizer-bar:nth-child(6) { animation-delay: 0.5s; }
.equalizer-bar:nth-child(7) { animation-delay: 0.6s; }
.equalizer-bar:nth-child(8) { animation-delay: 0.7s; }

/* ===== YOUTUBE FALLBACK ===== */
.youtube-fallback {
    background: rgba(255, 51, 102, 0.2);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    margin: 25px 0;
    animation: slide-down 0.5s;
    border: 1px solid var(--accent-primary);
    position: relative;
    z-index: 3;
}

@keyframes slide-down {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.youtube-fallback i {
    font-size: 2.5rem;
    color: #ff0000;
    margin-bottom: 15px;
}

.youtube-fallback button {
    background: #ff0000;
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 40px;
    cursor: pointer;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.youtube-fallback button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px #ff0000;
}

/* ===== TOOLTIP ===== */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 20px;
    position: absolute;
    z-index: 10000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ===== NOTIFICATION ===== */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    color: var(--text-primary);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10001;
    transition: transform 0.3s;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

.notification i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.notification.success i {
    color: var(--success);
}

.notification.error i {
    color: var(--error);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
    .player-stage {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .turntable-container {
        min-height: 400px;
    }
    
    .tonearm {
        display: none;
    }
}

@media (max-width: 700px) {
    .desk {
        padding: var(--spacing-lg);
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .control-bar {
        gap: 10px;
    }
    
    .ctrl-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 500px) {
    .desk {
        padding: var(--spacing-md);
        border-radius: 30px;
    }
    
    .input-panel {
        padding-left: 15px;
    }
    
    #linkInput {
        padding: 12px 0;
    }
    
    .action-btn {
        width: 45px;
        height: 45px;
    }
    
    .vinyl::after {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--accent-primary); }
    50% { box-shadow: 0 0 40px var(--accent-secondary); }
}

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

.shake {
    animation: shake 0.3s;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* Heart animation */
.heart {
    color: var(--accent-primary);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.2); }
    50% { transform: scale(1.1); }
    70% { transform: scale(1.2); }
}