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

:root {
    /* Professional DJ Color Palette */
    --bg-primary: #0a0b0f;
    --bg-secondary: #12141c;
    --bg-tertiary: #1a1d2e;
    --bg-card: #1e2135;
    --bg-hover: #282c44;

    --text-primary: #e8eaf0;
    --text-secondary: #8b8fa3;
    --text-muted: #5a5e72;

    --accent-primary: #00d4aa;
    --accent-secondary: #7c3aed;
    --accent-blue: #3b82f6;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;

    --border-color: #2a2e42;
    --border-light: #363a52;

    --gradient-main: linear-gradient(135deg, #0a0b0f 0%, #12141c 50%, #0a0b0f 100%);
    --gradient-card: linear-gradient(180deg, #1e2135 0%, #181b2e 100%);
    --gradient-accent: linear-gradient(90deg, #00d4aa, #7c3aed);

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(0, 212, 170, 0.15);

    --font-mono: 'Courier New', Courier, monospace;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-main);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
}

/* ===== TOP BAR (80px) ===== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, #12141c 0%, #0e1017 100%);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 32px;
}

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

.logo-icon {
    font-size: 28px;
}

.logo h1 {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

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

/* ===== TOP MENU ===== */
.top-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 3px;
    border: 1px solid var(--border-color);
}

.menu-btn {
    padding: 6px 16px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.menu-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.menu-btn.active {
    color: var(--text-primary);
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 12px rgba(0, 212, 170, 0.1);
}

.menu-btn.active[data-target="playlist"] {
    color: var(--accent-primary);
}

.menu-btn.active[data-target="settings"] {
    color: var(--accent-blue);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.5);
    animation: pulse-dot 2s infinite;
}

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

.status-text {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.master-clock {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 2px;
    padding: 4px 16px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* ===== SECOND BAR (100px) ===== */
.second-bar {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, #0e1017 0%, #12141c 100%);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.second-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 32px;
    gap: 32px;
}

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

.transport-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transport-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    transform: translateY(-1px);
}

.play-btn {
    width: 52px;
    height: 52px;
    background: var(--gradient-accent);
    border: none;
    font-size: 20px;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

.play-btn:hover {
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.5);
    transform: translateY(-1px) scale(1.05);
}

.bpm-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.bpm-control label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: 600;
}

.bpm-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--border-color);
}

.bpm-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: var(--bg-hover);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.bpm-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.bpm-value {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-primary);
    min-width: 40px;
    text-align: center;
}

.master-volume {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.master-volume label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: 600;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-hover);
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 170, 0.3);
}

/* ===== MAIN CONTENT (4 Columns) ===== */
.main-content {
    position: fixed;
    top: 180px;    /* 80px + 100px */
    bottom: 60px;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 16px;
    overflow-y: auto;
}

.column {
    background: var(--gradient-card);
    border-right: 1px solid var(--border-color);
    padding: 16px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.column:last-child {
    border-right: none;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 0 12px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-card);
}

.deck-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.deck-title-group h2 {
    white-space: nowrap;
}

.playlist-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.playlist-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 212, 170, 0.2);
    transform: translateY(-1px);
}

.column-header h2 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
}

/* ===== DECK STICKY HEADER (título + controles fixos) ===== */
.deck-header-sticky {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-card);
    margin: -16px -16px 16px -16px;
    padding: 16px 16px 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.deck-header-sticky .column-header {
    margin-bottom: 12px;
    border-bottom: none;
    padding-bottom: 0;
}

.deck-transport {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.column-badge {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--bg-hover);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ===== DECK COLUMNS ===== */
.deck-column .deck-status {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 1px;
}

.deck-column .deck-status.stopped {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.deck-column .deck-status.playing {
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent-primary);
}

.deck-column .deck-status.loaded {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.deck-column .deck-status.paused {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange);
}

.vinyl-art {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.vinyl-disc {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, #1a1d2e 0%, #0a0b0f 100%);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: spin 4s linear infinite;
    animation-play-state: paused;
}

.vinyl-disc-2 {
    animation-direction: reverse;
}

.vinyl-disc::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(0, 212, 170, 0.05) 10deg,
        transparent 20deg,
        rgba(124, 58, 237, 0.05) 30deg,
        transparent 40deg,
        rgba(0, 212, 170, 0.03) 50deg,
        transparent 60deg,
        rgba(124, 58, 237, 0.03) 70deg,
        transparent 80deg,
        rgba(0, 212, 170, 0.05) 90deg,
        transparent 100deg
    );
}

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

.vinyl-label {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-accent);
    z-index: 1;
}

.track-info {
    text-align: center;
    margin-bottom: 16px;
}

.track-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.track-artist {
    font-size: 12px;
    color: var(--text-muted);
}

.waveform-placeholder {
    margin-bottom: 16px;
    padding: 8px 0;
}

.waveform-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 50px;
}

.waveform-bars span {
    flex: 1;
    background: linear-gradient(to top, var(--accent-primary), transparent);
    border-radius: 1px;
    opacity: 0.3;
    height: calc(20% + (var(--i, 0) * 5%));
}

.waveform-bars span:nth-child(1) { height: 30%; --i: 1; }
.waveform-bars span:nth-child(2) { height: 55%; --i: 2; }
.waveform-bars span:nth-child(3) { height: 35%; --i: 3; }
.waveform-bars span:nth-child(4) { height: 70%; --i: 4; }
.waveform-bars span:nth-child(5) { height: 45%; --i: 5; }
.waveform-bars span:nth-child(6) { height: 80%; --i: 6; }
.waveform-bars span:nth-child(7) { height: 50%; --i: 7; }
.waveform-bars span:nth-child(8) { height: 90%; --i: 8; }
.waveform-bars span:nth-child(9) { height: 60%; --i: 9; }
.waveform-bars span:nth-child(10) { height: 75%; --i: 10; }
.waveform-bars span:nth-child(11) { height: 40%; --i: 11; }
.waveform-bars span:nth-child(12) { height: 65%; --i: 12; }
.waveform-bars span:nth-child(13) { height: 85%; --i: 13; }
.waveform-bars span:nth-child(14) { height: 50%; --i: 14; }
.waveform-bars span:nth-child(15) { height: 70%; --i: 15; }

.deck-volume-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.deck-volume-control label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: 600;
}

.deck-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-hover);
    outline: none;
}

.deck-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.deck-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.deck-transport {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.deck-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deck-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.prev-btn,
.next-btn {
    color: var(--accent-blue);
}

.play-pause-btn {
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    border: none;
    font-size: 18px;
    box-shadow: 0 0 16px rgba(0, 212, 170, 0.25);
}

.play-pause-btn:hover {
    box-shadow: 0 0 24px rgba(0, 212, 170, 0.4);
    border: none;
}

.stop-btn {
    color: var(--accent-red);
}

.stop-btn:hover {
    border-color: var(--accent-red);
}

.pitch-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pitch-control label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.pitch-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-hover);
    outline: none;
}

.pitch-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-secondary);
    cursor: pointer;
}

/* ===== DECK QUEUE (Fila do deck) ===== */
.deck-player {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.deck-queue {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

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

.queue-header > span {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: 600;
}

.queue-clear-btn {
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--accent-red);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.queue-clear-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--accent-red);
}

.queue-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    overflow-y: auto;
}

.queue-empty {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 12px 0;
    font-style: italic;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.queue-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-hover);
    color: var(--accent-primary);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.queue-title {
    flex: 1;
    font-size: 12px;
    color: var(--text-primary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queue-title.played {
    color: var(--accent-red);
    text-decoration: line-through;
    opacity: 0.7;
}

.queue-remove {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.queue-remove:hover {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.15);
}

/* ===== SEARCH COLUMN ===== */
.search-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.file-action-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.file-action-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.file-count {
    font-size: 11px;
    color: var(--text-muted);
    padding: 6px 10px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s;
}

.search-box:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(0, 212, 170, 0.1);
}

.search-icon {
    font-size: 14px;
    margin-right: 8px;
    opacity: 0.5;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    padding: 12px 0;
    font-family: inherit;
}

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

.search-results {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.result-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
    transform: translateX(2px);
}

.result-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-title.played {
    color: var(--accent-red);
    text-decoration: line-through;
    opacity: 0.7;
}

.result-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.assign-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assign-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.assign-btn.btn-a.active {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.assign-btn.btn-b.active {
    background: var(--accent-secondary);
    color: #fff;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

.result-bpm {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    padding: 2px 8px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 4px;
}

/* ===== PLAY / MIXER COLUMN ===== */
.mixer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.crossfader-section {
    text-align: center;
}

.crossfader-section label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.crossfader-container {
    padding: 0 8px;
}

.crossfader {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--accent-blue), var(--bg-hover) 50%, var(--accent-red));
    outline: none;
}

.crossfader::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--accent-primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 170, 0.3);
}

.crossfader-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

.channel-strips {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.channel label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 600;
}

.channel-volume {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-hover);
    outline: none;
    writing-mode: vertical-lr;
    direction: rtl;
    height: 80px;
}

.channel-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
}

.equalizer {
    display: flex;
    justify-content: space-around;
    gap: 8px;
}

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

.eq-band label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 600;
}

.eq-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-hover);
    outline: none;
    writing-mode: vertical-lr;
    direction: rtl;
    height: 60px;
}

.eq-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-secondary);
    cursor: pointer;
}

/* ===== BOTTOM BAR (60px) ===== */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(0deg, #12141c 0%, #0e1017 100%);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.bottom-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 32px;
    gap: 24px;
}

.bottom-left {
    min-width: 200px;
}

.bottom-info {
    font-size: 12px;
    color: var(--text-secondary);
}

.bottom-info strong {
    color: var(--accent-primary);
}

.bottom-center {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-hover);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.time-display {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.bottom-right {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 200px;
    justify-content: flex-end;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== PLAYLIST MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 11, 15, 0.85);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal {
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalIn 0.25s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.modal-close {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-hover);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--accent-red);
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.15);
}

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    flex: 1;
}

.modal-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-field label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
    font-weight: 600;
}

.modal-field input[type="text"] {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.modal-field input[type="text"]:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(0, 212, 170, 0.15);
}

.modal-field input[type="text"]::placeholder {
    color: var(--text-muted);
}

.modal-file-actions {
    display: flex;
    gap: 8px;
}

.modal-file-btn {
    flex: 1;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.modal-file-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.modal-search-box {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
}

.modal-search-box:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(0, 212, 170, 0.1);
}

.modal-search-box .search-input {
    padding: 8px 0;
    font-size: 13px;
}

.modal-track-list {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-tertiary);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-track-empty {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 20px 12px;
    font-style: italic;
}

.modal-track {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    background: var(--bg-hover);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
}

.modal-track:hover {
    border-color: var(--border-light);
}

.modal-track.checked {
    border-color: var(--accent-primary);
    background: rgba(0, 212, 170, 0.08);
}

.modal-track input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.modal-track-title {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-track-index {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    flex-shrink: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.modal-btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.modal-btn-cancel {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.modal-btn-cancel:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.modal-btn-save {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    box-shadow: 0 0 16px rgba(0, 212, 170, 0.25);
}

.modal-btn-save:hover {
    box-shadow: 0 0 24px rgba(0, 212, 170, 0.4);
    transform: translateY(-1px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .top-bar-content,
    .second-bar-content,
    .bottom-bar-content {
        padding: 0 16px;
    }

    .master-clock {
        font-size: 14px;
    }

    .transport-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .play-btn {
        width: 44px;
        height: 44px;
    }
}

