/* 
 * BLACK FM - CSS Stylesheet
 * Cyberpunk, Glassmorphic & Modern Retro Design
 */

:root {
    --bg-dark: #07070a;
    --bg-panel: rgba(15, 15, 22, 0.65);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-focus: rgba(0, 255, 204, 0.5);
    
    /* Neon Palette */
    --neon-green: #00ffcc;
    --neon-purple: #9b51e0;
    --neon-pink: #ff007f;
    --neon-blue: #00d9ff;
    
    /* Text colors */
    --text-main: #f0f0f5;
    --text-muted: #8a8a9e;
    --text-dimmed: #525266;
    
    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Glowing Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    animation: orb-float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--neon-purple);
    top: 10%;
    left: 10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--neon-green);
    bottom: 10%;
    right: 15%;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--neon-pink);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes orb-float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(40px, 30px) scale(1.15);
    }
}

/* Glassmorphic Container */
.glassmorphism {
    background: var(--bg-panel);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* App Wrapper */
.app-container {
    width: 100%;
    max-width: 550px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    z-index: 1;
    transition: max-width 0.4s ease;
}

body.is-dj .app-container {
    max-width: 1100px;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(0, 255, 204, 0.08);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 12px;
}

.glow-icon-green {
    color: var(--neon-green);
    filter: drop-shadow(0 0 5px var(--neon-green));
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.brand-text h1 .accent-text {
    color: var(--neon-pink);
    text-shadow: 0 0 8px rgba(255, 0, 127, 0.6);
}

.brand-text .subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    font-weight: bold;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    font-weight: bold;
    color: var(--text-muted);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
    animation: pulse 1.5s infinite;
}

.status-indicator.buffering .pulse-dot {
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

.status-indicator.stopped .pulse-dot {
    background: var(--text-dimmed);
    box-shadow: none;
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 12px var(--neon-green);
    }
    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

/* Grid Layout */
.app-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.is-dj .app-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
}

body.is-guest .control-panel {
    display: none !important;
}

.panel {
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* LEFT: PLAYER PANEL */
.player-panel {
    align-items: center;
    justify-content: center;
    overflow: visible !important; /* Allow search dropdown to overlay outside panel if needed */
}

.deck-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

/* Canvas Visualizer Overlay */
.visualizer-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.75;
    border-radius: 24px;
}

/* Vinyl / Disk */
.vinyl-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 25px;
    z-index: 2;
    cursor: pointer;
}

.vinyl {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #18181f 0%, #0d0d12 40%, #050508 70%, #000000 100%);
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.02),
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 255, 204, 0.15);
    position: relative;
    border: 6px solid #1c1c24;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    animation: rotate 15s linear infinite;
    animation-play-state: paused;
}

.vinyl.playing {
    animation-play-state: running;
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.03),
        0 15px 35px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(0, 255, 204, 0.3),
        0 0 60px rgba(155, 81, 224, 0.15);
}

.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #07070a;
    border-radius: 50%;
    z-index: 10;
    box-shadow: inset 0 0 4px rgba(255,255,255,0.4);
}

.vinyl-lines {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.015) 3px,
        rgba(0, 0, 0, 0.3) 4px
    );
}

.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-pink) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid #111116;
}

.label-brand {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
}

.label-freq {
    font-size: 0.45rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

.play-state-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 5;
}

.play-state-overlay i {
    width: 44px;
    height: 44px;
    color: #ffffff;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.6));
}

.vinyl-wrapper:hover .play-state-overlay {
    opacity: 1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Track Info */
.track-info {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 320px;
    z-index: 2;
}

.badge-container {
    margin-bottom: 8px;
}

.badge {
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    display: inline-block;
    text-transform: uppercase;
}

.badge-music {
    background: rgba(0, 255, 204, 0.1);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.badge-jingle {
    background: rgba(255, 0, 127, 0.1);
    color: var(--neon-pink);
    border: 1px solid rgba(255, 0, 127, 0.2);
}

.track-info h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

.track-info h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Progress bar */
.progress-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 380px;
    gap: 12px;
    margin-bottom: 25px;
    font-size: 0.7rem;
    color: var(--text-muted);
    z-index: 2;
}

.progress-bar-wrapper {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    border-radius: 3px;
    position: relative;
}

.progress-handle {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 0%;
    box-shadow: 0 0 10px var(--neon-green);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

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

/* Player buttons */
.player-controls {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
    z-index: 2;
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid transparent;
}

.ctrl-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.ctrl-btn i {
    width: 20px;
    height: 20px;
}

.ctrl-btn.play-btn {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--neon-blue) 100%);
    color: #050508;
    box-shadow: 
        0 4px 15px rgba(0, 255, 204, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.ctrl-btn.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 
        0 6px 20px rgba(0, 255, 204, 0.45),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.ctrl-btn.play-btn i {
    width: 28px;
    height: 28px;
    fill: currentColor;
    margin-left: 2px; /* Center adjustment for play icon triangle */
}

/* Extra controls */
.extra-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 380px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    z-index: 2;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    position: relative;
}

.icon-btn:hover {
    color: #ffffff;
}

.icon-btn.active {
    color: var(--neon-pink);
    filter: drop-shadow(0 0 5px var(--neon-pink));
}

.icon-btn i {
    width: 18px;
    height: 18px;
}

.volume-slider-wrapper {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.volume-bar {
    height: 100%;
    background: var(--text-main);
    border-radius: 2px;
}

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

/* Button label tooltip styling */
.btn-label-tooltip {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    color: #ffffff;
    font-size: 0.6rem;
    padding: 3px 6px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    white-space: nowrap;
    border: 1px solid var(--border-glass);
}

.icon-btn:hover .btn-label-tooltip {
    opacity: 1;
}

/* Next Track Info styling */
.next-track-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    font-size: 0.75rem;
    width: 100%;
    max-width: 380px;
    color: var(--text-muted);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.03);
    z-index: 2;
}

.next-track-container i {
    width: 15px;
    height: 15px;
    color: var(--neon-green);
    filter: drop-shadow(0 0 3px var(--neon-green));
}

.next-track-label {
    font-weight: bold;
    color: var(--text-dimmed);
    letter-spacing: 1px;
}

.next-track-title {
    color: var(--text-main);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

/* RIGHT: PLAYLIST & CONFIGURATION PANEL */
.control-panel {
    display: flex;
    flex-direction: column;
}

.panel-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 20px;
    gap: 10px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 15px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: #ffffff;
}

.tab-btn.active {
    color: var(--neon-green);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

.tab-content {
    display: none;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.tab-content.active {
    display: flex;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.count-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 12px;
    color: var(--text-muted);
}

/* Upload Zone */
.upload-zone {
    border: 1.5px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.15);
}

.upload-zone:hover {
    border-color: var(--neon-green);
    background: rgba(0, 255, 204, 0.02);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.04);
}

.upload-zone.dragover {
    border-color: var(--neon-pink);
    background: rgba(255, 0, 127, 0.05);
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.08);
}

.upload-icon {
    width: 36px;
    height: 36px;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: color 0.3s;
}

.upload-zone:hover .upload-icon {
    color: var(--neon-green);
}

.upload-zone.dragover .upload-icon {
    color: var(--neon-pink);
}

.upload-zone p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.upload-zone p span {
    color: var(--neon-green);
    text-decoration: underline;
    font-weight: 600;
}

/* Lists */
.scrollable-list {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 5px;
}

/* Scrollbar styling */
.scrollable-list::-webkit-scrollbar {
    width: 6px;
}

.scrollable-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.scrollable-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.scrollable-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Track Card */
.track-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.02);
    padding: 10px 16px;
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.track-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateX(3px);
}

.track-card.active {
    background: rgba(0, 255, 204, 0.05);
    border-color: rgba(0, 255, 204, 0.2);
}

.card-play-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.track-card.active .card-play-icon {
    background: var(--neon-green);
}

.card-play-icon i {
    width: 14px;
    height: 14px;
    color: var(--text-main);
    transition: color 0.2s;
}

.track-card.active .card-play-icon i {
    color: #050508;
    fill: currentColor;
}

.card-meta {
    flex-grow: 1;
    overflow: hidden;
}

.card-meta h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-card.active .card-meta h4 {
    color: var(--neon-green);
}

.card-meta p {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-duration {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 10px;
    flex-shrink: 0;
}

.delete-track-btn {
    background: transparent;
    border: none;
    color: var(--text-dimmed);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    margin-left: 8px;
    opacity: 0;
    transition: all 0.2s;
}

.track-card:hover .delete-track-btn {
    opacity: 1;
}

.delete-track-btn:hover {
    color: var(--neon-pink);
    background: rgba(255, 0, 127, 0.08);
}

.delete-track-btn i {
    width: 14px;
    height: 14px;
}

/* Jingle Badge in Playlist */
.track-card.jingle-card {
    border-left: 3px solid var(--neon-pink);
}

.track-card.jingle-card.active {
    background: rgba(255, 0, 127, 0.04);
    border-color: rgba(255, 0, 127, 0.2);
    border-left-width: 4px;
}

.track-card.jingle-card.active .card-play-icon {
    background: var(--neon-pink);
}

.track-card.jingle-card.active .card-meta h4 {
    color: var(--neon-pink);
}

/* Settings Form */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

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

.setting-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
}

.setting-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.setting-group select, 
.setting-group input[type="text"] {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s;
}

.setting-group select:focus, 
.setting-group input[type="text"]:focus {
    border-color: var(--border-focus);
}

/* Range input styled */
.range-input-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.range-input-container input[type="range"] {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.05);
    height: 6px;
    border-radius: 3px;
    outline: none;
}

.range-input-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--neon-green);
    cursor: pointer;
    box-shadow: 0 0 6px var(--neon-green);
}

.range-input-container span {
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 24px;
}

/* Input rows */
.input-row {
    display: flex;
    gap: 10px;
}

.input-row input {
    flex-grow: 1;
}

.action-btn, .danger-btn {
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--neon-blue) 100%);
    color: #050508;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
    transition: transform 0.2s, opacity 0.2s;
}

.action-btn:hover {
    transform: translateY(-1px);
}

.danger-btn {
    background: rgba(255, 0, 127, 0.08);
    border: 1px solid rgba(255, 0, 127, 0.2);
    color: var(--neon-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
}

.danger-btn:hover {
    background: rgba(255, 0, 127, 0.15);
    border-color: rgba(255, 0, 127, 0.3);
}

.danger-btn i {
    width: 14px;
    height: 14px;
}

.reset-group {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    margin-top: 10px;
}

/* Footer */
.app-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    margin-top: 20px;
    font-size: 0.75rem;
    color: var(--text-dimmed);
    border: 1px solid var(--border-glass);
    background: rgba(10, 10, 15, 0.4);
    border-radius: 16px;
    backdrop-filter: blur(5px);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links .divider {
    color: rgba(255,255,255,0.03);
}

.footer-action-link {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.footer-action-link:hover {
    color: var(--neon-green);
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.3);
}

.footer-action-link i {
    width: 14px;
    height: 14px;
}

/* DJ indicator button & header control wrapper */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dj-indicator-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.dj-indicator-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.dj-indicator-btn i {
    width: 14px;
    height: 14px;
}

.dj-indicator-btn.dj-active {
    background: rgba(0, 255, 204, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}

/* Modal Window styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

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

.modal-content {
    width: 95%;
    max-width: 400px;
    border-radius: 24px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

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

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.modal-body input[type="password"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    outline: none;
    font-size: 0.95rem;
    letter-spacing: 4px;
    text-align: center;
    transition: border-color 0.2s;
}

.modal-body input[type="password"]:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.1);
}

.error-text {
    color: var(--neon-pink);
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

.help-text {
    font-size: 0.7rem;
    color: var(--text-dimmed);
    text-align: center;
    margin: 0;
}

.help-text code {
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

/* Responsive Layout */
@media (max-width: 768px) {
    body {
        display: block !important;
        overflow-x: hidden;
        width: 100%;
        height: auto;
    }

    .app-container {
        margin: 0;
        padding: 12px;
        width: 100%;
        max-width: 100% !important;
        overflow-x: hidden;
    }

    .app-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px;
    }
    
    .panel {
        padding: 18px;
        border-radius: 20px;
    }

    /* Compact Header on Mobile */
    .app-header {
        padding: 12px 14px;
        margin-bottom: 12px;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .brand {
        gap: 10px;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .brand-logo i {
        width: 18px;
        height: 18px;
    }

    .brand-text h1 {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .brand-text .subtitle {
        font-size: 0.55rem;
        letter-spacing: 1.5px;
    }

    .header-controls {
        gap: 8px;
        width: auto !important;
        justify-content: flex-end !important;
    }

    .dj-indicator-btn {
        padding: 6px 10px;
        font-size: 0.65rem;
        border-radius: 14px;
    }

    .status-indicator {
        padding: 5px 8px;
        font-size: 0.65rem;
        border-radius: 14px;
    }

    /* Player Adjustments */
    .vinyl-wrapper {
        width: 130px;
        height: 130px;
        margin-bottom: 15px;
    }

    .vinyl-label {
        width: 50px;
        height: 50px;
    }

    .label-brand {
        font-size: 0.4rem;
    }

    .label-freq {
        font-size: 0.35rem;
    }

    .track-info h2 {
        font-size: 1.2rem;
    }

    .track-info h3 {
        font-size: 0.8rem;
    }

    .progress-container {
        margin-bottom: 15px;
        gap: 8px;
    }

    .player-controls {
        gap: 16px;
        margin-bottom: 15px;
    }

    .ctrl-btn {
        width: 38px;
        height: 38px;
    }

    .ctrl-btn.play-btn {
        width: 56px;
        height: 56px;
    }

    .ctrl-btn.play-btn i {
        width: 24px;
        height: 24px;
    }

    .extra-controls {
        padding-top: 15px;
    }

    .volume-slider-wrapper {
        width: 60px;
    }

    .toggle-buttons {
        gap: 10px;
    }

    .next-track-container {
        margin-top: 15px;
        padding: 8px 12px;
        border-radius: 10px;
        font-size: 0.7rem;
    }

    /* DJ Control Panel Mobile view */
    .panel-tabs {
        gap: 5px;
        margin-bottom: 15px;
    }

    .tab-btn {
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .upload-zone {
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 15px;
    }

    .upload-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 6px;
    }

    .upload-zone p {
        font-size: 0.75rem;
    }

    .track-card {
        padding: 8px 12px;
        border-radius: 10px;
    }

    .card-play-icon {
        width: 26px;
        height: 26px;
        margin-right: 10px;
    }

    .card-meta h4 {
        font-size: 0.75rem;
    }

    .card-meta p {
        font-size: 0.65rem;
    }

    .settings-form {
        gap: 15px;
    }

    .setting-group select,
    .setting-group input[type="text"] {
        padding: 8px 12px;
        font-size: 0.75rem;
        border-radius: 8px;
    }

    .action-btn, .danger-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
        border-radius: 8px;
    }

    .modal-content {
        padding: 20px;
        border-radius: 20px;
    }

    /* Footer Mobile view */
    .app-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 12px;
        margin-top: 12px;
    }

    .footer-links {
        flex-direction: row;
        gap: 12px;
    }

    .footer-links .divider {
        display: inline;
    }
}

/* Artist and Like Button alignment */
.artist-like-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 5px;
}

.like-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    flex-shrink: 0;
}

.like-btn:hover {
    color: var(--neon-pink);
    background: rgba(255, 0, 127, 0.08);
    border-color: rgba(255, 0, 127, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
    transform: scale(1.1);
}

.like-btn.liked {
    color: var(--neon-pink);
    background: rgba(255, 0, 127, 0.12);
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
}

.like-btn.liked i {
    fill: var(--neon-pink);
}

.like-btn i {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.like-btn:active i {
    transform: scale(0.8);
}

/* Playlist Selector Pills */
.playlist-selector-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 380px;
    margin-top: 20px;
    z-index: 2;
}

.playlist-selector-label {
    font-size: 0.65rem;
    font-weight: bold;
    color: var(--text-dimmed);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: left;
}

.playlist-selector-pills {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.pill-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 8px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.pill-btn i {
    width: 12px;
    height: 12px;
}

.pill-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.pill-btn.active {
    color: var(--neon-green);
    background: rgba(0, 255, 204, 0.08);
    border-color: var(--neon-green);
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.2);
}

/* Special highlight for favorites active */
.pill-btn[data-playlist="favorites"].active {
    color: var(--neon-pink);
    background: rgba(255, 0, 127, 0.08);
    border-color: var(--neon-pink);
    box-shadow: 0 0 8px rgba(255, 0, 127, 0.2);
}

/* Special highlight for most played active */
.pill-btn[data-playlist="most-played"].active {
    color: var(--neon-blue);
    background: rgba(0, 217, 255, 0.08);
    border-color: var(--neon-blue);
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.2);
}

/* Extra stats indicators in track list */
.card-heart-icon {
    display: inline-flex;
    align-items: center;
}

.card-play-count {
    font-size: 0.65rem;
    color: var(--text-dimmed);
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Visualizer Bars Container */
.visualizer-bars-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 40px;
    width: 100%;
    max-width: 260px;
    margin: 5px auto 20px auto;
    z-index: 2;
    padding-bottom: 2px;
}

.visualizer-bars-container .bar {
    width: 4px;
    height: 4px;
    background: linear-gradient(to top, var(--neon-green), var(--neon-blue));
    border-radius: 2px;
    transition: height 0.1s ease;
    box-shadow: 0 0 5px rgba(0, 255, 204, 0.4);
}

/* Coloring variations across the visualizer spectrum */
.visualizer-bars-container .bar:nth-child(3n) {
    background: linear-gradient(to top, var(--neon-blue), var(--neon-purple));
    box-shadow: 0 0 5px rgba(0, 217, 255, 0.4);
}

.visualizer-bars-container .bar:nth-child(3n+1) {
    background: linear-gradient(to top, var(--neon-pink), var(--neon-purple));
    box-shadow: 0 0 5px rgba(255, 0, 127, 0.4);
}

/* Pure CSS Simulated Animation fallback when not playing/paused */
.visualizer-bars-container.simulated .bar {
    animation: simulated-pulse 0.8s infinite ease-in-out alternate;
}

/* Pause simulated animation when audio is paused */
.visualizer-bars-container.paused .bar {
    animation-play-state: paused !important;
    height: 4px !important;
}

@keyframes simulated-pulse {
    0% {
        height: 6px;
    }
    100% {
        height: 32px;
    }
}

/* Animation delays to create wave effect for fallback */
.visualizer-bars-container.simulated .bar:nth-child(1) { animation-delay: 0.1s; }
.visualizer-bars-container.simulated .bar:nth-child(2) { animation-delay: 0.4s; }
.visualizer-bars-container.simulated .bar:nth-child(3) { animation-delay: 0.2s; }
.visualizer-bars-container.simulated .bar:nth-child(4) { animation-delay: 0.6s; }
.visualizer-bars-container.simulated .bar:nth-child(5) { animation-delay: 0.3s; }
.visualizer-bars-container.simulated .bar:nth-child(6) { animation-delay: 0.7s; }
.visualizer-bars-container.simulated .bar:nth-child(7) { animation-delay: 0.15s; }
.visualizer-bars-container.simulated .bar:nth-child(8) { animation-delay: 0.5s; }
.visualizer-bars-container.simulated .bar:nth-child(9) { animation-delay: 0.25s; }
.visualizer-bars-container.simulated .bar:nth-child(10) { animation-delay: 0.8s; }
.visualizer-bars-container.simulated .bar:nth-child(11) { animation-delay: 0.35s; }
.visualizer-bars-container.simulated .bar:nth-child(12) { animation-delay: 0.65s; }
.visualizer-bars-container.simulated .bar:nth-child(13) { animation-delay: 0.45s; }
.visualizer-bars-container.simulated .bar:nth-child(14) { animation-delay: 0.9s; }
.visualizer-bars-container.simulated .bar:nth-child(15) { animation-delay: 0.55s; }
.visualizer-bars-container.simulated .bar:nth-child(16) { animation-delay: 0.75s; }

/* Song Search Container */
.search-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin-top: 15px;
    z-index: 10;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input-wrapper input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    color: #ffffff;
    padding: 10px 35px 10px 35px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.8rem;
    outline: none;
    transition: all 0.3s;
}

.search-input-wrapper input:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.15);
}

.search-icon {
    position: absolute;
    left: 12px;
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    display: none;
}

.search-clear-btn:hover {
    color: #ffffff;
}

/* Search Dropdown Results */
.search-results-container {
    position: absolute;
    bottom: calc(100% + 8px); /* Open upwards so it's fully visible and fits the screen nicely */
    left: 0;
    width: 100%;
    background: rgba(15, 15, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 255, 204, 0.05);
    max-height: 240px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    z-index: 100;
}

.search-results-container::-webkit-scrollbar {
    width: 4px;
}

.search-results-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.search-result-card {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 10px;
    text-align: left;
}

.search-result-card:hover {
    background: rgba(0, 255, 204, 0.06);
}

.search-result-card i {
    width: 12px;
    height: 12px;
    color: var(--neon-green);
    flex-shrink: 0;
}

.search-result-info {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-result-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-artist {
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-duration {
    font-size: 0.65rem;
    color: var(--text-dimmed);
    flex-shrink: 0;
}

.search-no-results {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: 12px;
}

/* Mobile responsive adjustments for search */
@media (max-width: 768px) {
    .search-container {
        max-width: 100%;
        margin-top: 12px;
    }
    
    .search-input-wrapper input {
        padding: 8px 30px 8px 30px;
        font-size: 0.75rem;
        border-radius: 10px;
    }
    
    .search-icon {
        left: 10px;
        width: 12px;
        height: 12px;
    }
    
    .search-clear-btn {
        right: 10px;
        font-size: 0.95rem;
    }
    
    .search-results-container {
        max-height: 200px;
    }
    
    .search-result-card {
        padding: 6px 10px;
        gap: 8px;
    }
    
    .search-result-title {
        font-size: 0.7rem;
    }
    
    .search-result-artist {
        font-size: 0.6rem;
    }
}

