/* ============================================
   AI LOUNGE AFTER DARK - MEDIA VISUALIZER
   Presented by DJ Smoke Stream
   ============================================ */

:root {
    --primary: #00f0ff;
    --secondary: #ff00ff;
    --accent: #ffff00;
    --tertiary: #ff6b6b;
    --dark: #0a0a0f;
    --darker: #050508;
    --gray: #1a1a2e;
    --light: #ffffff;
    --gradient-cyber: linear-gradient(135deg, #00f0ff 0%, #ff00ff 50%, #ffff00 100%);
    --gradient-fire: linear-gradient(135deg, #ff4500 0%, #ff6b6b 50%, #ffff00 100%);
    --glow-primary: 0 0 20px rgba(0, 240, 255, 0.6), 0 0 40px rgba(0, 240, 255, 0.4), 0 0 60px rgba(0, 240, 255, 0.2);
    --glow-secondary: 0 0 20px rgba(255, 0, 255, 0.6), 0 0 40px rgba(255, 0, 255, 0.4), 0 0 60px rgba(255, 0, 255, 0.2);
    --glow-accent: 0 0 20px rgba(255, 255, 0, 0.6), 0 0 40px rgba(255, 255, 0, 0.4);
    --font-main: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--darker);
    color: var(--light);
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    inset: 0;
    background: var(--darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content { text-align: center; }

.glitch-wrapper { margin-bottom: 40px; }

.glitch {
    font-family: var(--font-main);
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 900;
    color: var(--light);
    position: relative;
    text-shadow: var(--glow-primary);
    animation: glitch 1s infinite;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--primary);
    animation: glitch-1 0.3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
    color: var(--secondary);
    animation: glitch-2 0.3s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

.glitch-sub {
    font-family: var(--font-main);
    font-size: clamp(1rem, 4vw, 2rem);
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5em;
    margin-top: 10px;
    animation: shimmer 2s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    33% { transform: translate(5px, -5px); }
    66% { transform: translate(-5px, 5px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    33% { transform: translate(-5px, 5px); }
    66% { transform: translate(5px, -5px); }
}

@keyframes shimmer {
    0%, 100% { filter: hue-rotate(0deg) brightness(1); }
    50% { filter: hue-rotate(30deg) brightness(1.2); }
}

.loading-bar {
    width: min(300px, 80vw);
    height: 4px;
    background: var(--gray);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 20px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: var(--gradient-cyber);
    animation: loading 2s ease-in-out forwards;
    box-shadow: var(--glow-primary);
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

.loading-text {
    font-family: var(--font-main);
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 0.2em;
    animation: pulse 1s infinite;
    text-shadow: var(--glow-primary);
}

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

/* Main Canvas */
#visualizer-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#video-element {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#video-element.visible {
    opacity: 1;
}

/* UI Overlay */
#ui-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
}

#ui-overlay > * {
    pointer-events: auto;
}

/* Header */
#header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.95) 0%, transparent 100%);
    z-index: 200;
}

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

.brand-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-cyber);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--dark);
    box-shadow: var(--glow-primary);
    animation: iconPulse 3s infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: var(--glow-primary); transform: scale(1); }
    50% { box-shadow: var(--glow-secondary); transform: scale(1.05); }
}

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

.brand-main {
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 900;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.brand-sub {
    font-family: var(--font-main);
    font-size: 0.65rem;
    color: var(--primary);
    letter-spacing: 0.4em;
    text-shadow: var(--glow-primary);
}

.presenter {
    font-family: var(--font-main);
    text-align: center;
}

.presenter span {
    display: block;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.3em;
}

.presenter strong {
    font-size: 1rem;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-controls button {
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary);
    background: rgba(0, 240, 255, 0.1);
    border-radius: 10px;
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-controls button:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: var(--glow-primary);
    transform: scale(1.1);
}

/* Drop Zone */
#drop-zone {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 150;
}

#drop-zone.active {
    opacity: 1;
    visibility: visible;
}

#drop-zone.dragover {
    background: radial-gradient(ellipse at center, rgba(255, 0, 255, 0.15) 0%, transparent 70%);
}

#drop-zone.dragover .drop-icon {
    transform: scale(1.2);
}

#drop-zone.dragover .drop-icon i {
    color: var(--secondary);
    text-shadow: var(--glow-secondary);
}

.drop-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
}

.drop-icon {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.drop-icon i {
    font-size: 4rem;
    color: var(--primary);
    text-shadow: var(--glow-primary);
    animation: float 3s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

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

.drop-rings {
    position: absolute;
    inset: 0;
}

.ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: ringExpand 3s ease-out infinite;
}

.ring:nth-child(2) { animation-delay: 1s; }
.ring:nth-child(3) { animation-delay: 2s; }

@keyframes ringExpand {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.drop-content h1 {
    font-family: var(--font-main);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: none;
}

.drop-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.drop-formats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.drop-formats span {
    padding: 5px 12px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    font-family: var(--font-main);
    font-size: 0.7rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.drop-formats span:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: var(--glow-primary);
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: var(--gradient-cyber);
    border: none;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--glow-primary);
}

.upload-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.5);
}

.or-divider {
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.or-divider::before, .or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
}

.or-divider span {
    font-family: var(--font-main);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.url-input-wrapper {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.url-input-wrapper input {
    flex: 1;
    padding: 15px 20px;
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 12px;
    color: var(--light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.url-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.url-input-wrapper input::placeholder {
    color: rgba(255,255,255,0.4);
}

.url-input-wrapper button {
    width: 55px;
    height: 55px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: var(--dark);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.url-input-wrapper button:hover {
    background: var(--secondary);
    box-shadow: var(--glow-secondary);
    transform: scale(1.1);
}

.demo-btn-wrapper {
    margin-top: 30px;
}

#demo-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--secondary);
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

#demo-btn:hover {
    background: var(--secondary);
    color: var(--dark);
    box-shadow: var(--glow-secondary);
}

/* Controls Panel */
#controls-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 30px;
    background: linear-gradient(0deg, rgba(5, 5, 8, 0.98) 0%, rgba(5, 5, 8, 0.9) 70%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 20px;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    z-index: 200;
}

#controls-panel.active {
    transform: translateY(0);
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
}

#back-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

#back-btn:hover {
    background: var(--primary);
    color: var(--dark);
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 12px;
}

.now-playing-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-cyber);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 1.1rem;
    animation: iconPulse 2s infinite;
}

.now-playing-info {
    display: flex;
    flex-direction: column;
}

.np-title {
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--light);
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-type {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
}

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

.ctrl-btn {
    width: 45px;
    height: 45px;
    background: rgba(0, 240, 255, 0.1);
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ctrl-btn:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: var(--glow-primary);
    transform: scale(1.1);
}

.ctrl-btn.main {
    width: 60px;
    height: 60px;
    background: var(--gradient-cyber);
    border: none;
    color: var(--dark);
    font-size: 1.3rem;
    box-shadow: var(--glow-primary);
}

.ctrl-btn.main:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.8);
}

.controls-right {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

#mute-btn {
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#mute-btn:hover {
    color: var(--secondary);
    text-shadow: var(--glow-secondary);
}

#volume-slider {
    width: 80px;
    -webkit-appearance: none;
    height: 4px;
    background: var(--gray);
    border-radius: 2px;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--glow-primary);
    transition: all 0.2s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.progress-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

#time-current, #time-total {
    font-family: var(--font-main);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    min-width: 45px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--gray);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-cyber);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: var(--glow-primary);
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: var(--glow-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

/* Visualizer Controls */
#visualizer-controls {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    width: 280px;
    background: rgba(5, 5, 8, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    transition: transform 0.4s ease;
    z-index: 180;
    max-height: 80vh;
    overflow-y: auto;
}

#visualizer-controls.active {
    transform: translateY(-50%) translateX(0);
}

#visualizer-controls::-webkit-scrollbar {
    width: 4px;
}

#visualizer-controls::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.viz-section {
    margin-bottom: 20px;
}

.viz-section:last-child {
    margin-bottom: 0;
}

.viz-section > label {
    display: block;
    font-family: var(--font-main);
    font-size: 0.7rem;
    color: var(--primary);
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    text-shadow: var(--glow-primary);
}

.viz-modes {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.viz-mode {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 10px;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.viz-mode:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--primary);
}

.viz-mode.active {
    background: var(--primary);
    color: var(--dark);
    box-shadow: var(--glow-primary);
}

.color-schemes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-scheme {
    width: 35px;
    height: 35px;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-scheme:hover {
    transform: scale(1.15);
}

.color-scheme.active {
    border-color: var(--light);
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

.viz-section.sliders {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.slider-group label {
    font-family: var(--font-main);
    font-size: 0.65rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.1em;
}

.slider-group input {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: var(--gray);
    border-radius: 3px;
    cursor: pointer;
}

.slider-group input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--gradient-cyber);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--glow-primary);
}

.viz-section.toggles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toggle-item input {
    display: none;
}

.toggle-item span {
    font-family: var(--font-main);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.toggle-item input:checked + span {
    color: var(--primary);
    text-shadow: var(--glow-primary);
}

.toggle-item::before {
    content: '';
    width: 36px;
    height: 20px;
    background: var(--gray);
    border-radius: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    margin-left: -34px;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.toggle-item input:checked ~ span::before {
    background: var(--primary);
}

.toggle-item:has(input:checked)::before {
    background: rgba(0, 240, 255, 0.3);
}

.toggle-item:has(input:checked)::after {
    margin-left: -18px;
    background: var(--primary);
    box-shadow: var(--glow-primary);
}

/* Playlist Panel */
#playlist-panel {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(-100%);
    width: 300px;
    max-height: 70vh;
    background: rgba(5, 5, 8, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    transition: transform 0.4s ease;
    z-index: 180;
    display: flex;
    flex-direction: column;
}

#playlist-panel.active {
    transform: translateY(-50%) translateX(0);
}

.playlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.playlist-header h3 {
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

#clear-playlist {
    width: 35px;
    height: 35px;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 8px;
    color: #ff6b6b;
    cursor: pointer;
    transition: all 0.3s ease;
}

#clear-playlist:hover {
    background: #ff6b6b;
    color: var(--dark);
}

#playlist-items {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

#playlist-items::-webkit-scrollbar {
    width: 4px;
}

#playlist-items::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-item:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--primary);
}

.playlist-item.active {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.playlist-item-thumb {
    width: 45px;
    height: 45px;
    background: var(--gradient-cyber);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.playlist-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

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

.playlist-item-title {
    font-family: var(--font-main);
    font-size: 0.8rem;
    color: var(--light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item-type {
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
}

.playlist-item-remove {
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.playlist-item-remove:hover {
    color: #ff6b6b;
    background: rgba(255, 100, 100, 0.2);
}

.add-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 240, 255, 0.1);
    border: 2px dashed rgba(0, 240, 255, 0.3);
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 0.8rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-more-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--primary);
}

/* Toggle Buttons */
#toggle-playlist, #toggle-controls {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(5, 5, 8, 0.9);
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 190;
}

#toggle-playlist {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#toggle-controls {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#toggle-playlist:hover, #toggle-controls:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: var(--glow-primary);
}

#toggle-playlist.active, #toggle-controls.active {
    background: var(--primary);
    color: var(--dark);
}

/* Responsive */
@media (max-width: 900px) {
    #header {
        padding: 15px 20px;
    }
    
    .presenter {
        display: none;
    }
    
    #controls-panel {
        flex-wrap: wrap;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .controls-left {
        min-width: auto;
        flex: 1;
    }
    
    .controls-right {
        order: 3;
        width: 100%;
    }
    
    .volume-control {
        display: none;
    }
    
    #visualizer-controls, #playlist-panel {
        width: calc(100% - 40px);
        max-width: 350px;
    }
    
    #toggle-playlist {
        left: 10px;
        bottom: 100px;
        top: auto;
        transform: none;
    }
    
    #toggle-controls {
        right: 10px;
        bottom: 100px;
        top: auto;
        transform: none;
    }
}

@media (max-width: 600px) {
    .brand-text {
        display: none;
    }
    
    .drop-content {
        padding: 20px;
    }
    
    .drop-icon {
        width: 100px;
        height: 100px;
    }
    
    .drop-icon i {
        font-size: 2.5rem;
    }
    
    .upload-btn {
        padding: 15px 30px;
        font-size: 0.9rem;
    }
    
    .url-input-wrapper {
        flex-direction: column;
    }
    
    .url-input-wrapper button {
        width: 100%;
        height: 50px;
    }
    
    .np-title {
        max-width: 100px;
    }
    
    .viz-modes {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.shake {
    animation: shake 0.1s ease-in-out;
}

/* Glow effects for active states */
.glow-pulse {
    animation: glowPulse 1s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { filter: drop-shadow(0 0 5px var(--primary)); }
    50% { filter: drop-shadow(0 0 20px var(--primary)) drop-shadow(0 0 40px var(--secondary)); }
}
