/* Global Cyberpunk Design System */
:root {
    --bg-dark: #06070a;
    --card-bg: rgba(10, 11, 20, 0.45);
    --card-border: rgba(255, 255, 255, 0.04);
    --text-primary: #f1f3f7;
    --text-secondary: #8e95a3;
    --text-accent: #a78bfa; /* Neon Violet */
    --accent-glow: rgba(167, 139, 250, 0.25);
    
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.2);
    --danger: #f43f5e;
    --danger-glow: rgba(244, 63, 94, 0.2);
    --secondary-btn: rgba(255, 255, 255, 0.03);
    --secondary-btn-hover: rgba(255, 255, 255, 0.08);
    
    --font-stack: 'Outfit', sans-serif;
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.25);
    --pink: #ec4899;
}

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

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

/* Glass & Orb Backgrounds */
.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #0b0d16 0%, #030305 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.18;
    mix-blend-mode: screen;
    pointer-events: none;
}

.orb-1 {
    width: 48vw;
    height: 48vw;
    background: radial-gradient(circle, var(--text-accent) 0%, rgba(139, 92, 246, 0) 70%);
    top: -20%;
    right: -10%;
    animation: floatOrb1 28s infinite alternate ease-in-out;
}

.orb-2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--cyan) 0%, rgba(6, 182, 212, 0) 70%);
    bottom: -15%;
    left: -15%;
    animation: floatOrb2 32s infinite alternate-reverse ease-in-out;
}

.orb-3 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--pink) 0%, rgba(236, 72, 153, 0) 70%);
    top: 35%;
    left: 15%;
    animation: floatOrb3 22s infinite alternate ease-in-out;
}

.orb-4 {
    width: 42vw;
    height: 42vw;
    background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
    bottom: 20%;
    right: 15%;
    animation: floatOrb4 30s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-7%, 10%) scale(1.1); }
}
@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, -8%) scale(1.15); }
}
@keyframes floatOrb3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-8%, -10%) scale(0.9); }
}
@keyframes floatOrb4 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(12%, 8%) scale(1.05); }
}

/* Asymmetrical Deck Container */
.deck-container {
    display: grid;
    grid-template-columns: 280px 1.25fr 360px;
    gap: 1.5rem;
    width: 95%;
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0.5rem;
    z-index: 1;
}

@media (max-width: 1024px) {
    .deck-container {
        grid-template-columns: 1fr;
    }
    .deck-sidebar {
        height: auto !important;
    }
}

/* Premium Card Glassmorphism */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border-radius: 28px;
    padding: 1.75rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.card:hover {
    border-color: rgba(167, 139, 250, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 30px rgba(167, 139, 250, 0.03);
}

/* LEFT SIDEBAR */
.deck-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.logo i {
    font-size: 1.8rem;
    color: var(--text-accent);
    text-shadow: 0 0 20px var(--accent-glow);
    animation: rotateDisc 10s infinite linear;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 50%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo h1 span {
    background: linear-gradient(135deg, var(--text-accent) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-status-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.status-badge.online {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--success);
    box-shadow: 0 0 15px var(--success-glow);
}

.status-badge.offline {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: var(--danger);
    box-shadow: 0 0 15px var(--danger-glow);
}

.status-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: currentColor;
}

.status-badge.online .dot {
    animation: blinkDot 1.5s infinite alternate ease-in-out;
}

@keyframes blinkDot {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.vc-details {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1rem;
    font-size: 0.85rem;
}

.vc-info-text {
    color: var(--text-secondary);
    line-height: 1.5;
}

.vc-guild-name {
    color: var(--text-primary);
    font-weight: 600;
}

.vc-channel-name {
    color: var(--cyan);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.volume-deck {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.volume-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.volume-control-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.volume-control-group label i {
    color: var(--text-accent);
}

.slider-container {
    display: flex;
    width: 100%;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: var(--text-accent);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    border: 2px solid #fff;
    transition: transform 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    background: var(--cyan);
}

.settings-link-btn {
    width: 100%;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(167, 139, 250, 0.15) !important;
    color: var(--text-accent) !important;
    box-shadow: 0 5px 15px rgba(167, 139, 250, 0.05);
}

.settings-link-btn:hover {
    background: rgba(167, 139, 250, 0.1) !important;
    border-color: var(--text-accent) !important;
    transform: translateY(-2px);
}

/* CENTER STAGE */
.deck-center {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 520px;
    text-align: center;
    position: relative;
}

.hologram-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 1.5rem;
}

/* Massive 3D Rotating Vinyl Record */
.vinyl-container-large {
    position: relative;
    width: 170px;
    height: 170px;
    margin-bottom: 2.25rem;
}

.vinyl-container-large .vinyl-record {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #2d2f3b 15%, #12131a 16%, #08090d 35%, #000 65%);
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.75), 0 0 30px rgba(167, 139, 250, 0.1), inset 0 0 15px rgba(255, 255, 255, 0.04);
    border: 3px solid rgba(255, 255, 255, 0.03);
    animation: rotateVinyl 4s infinite linear;
    animation-play-state: paused;
    transition: filter 0.4s ease;
}

.deck-center.active .vinyl-record {
    animation-play-state: running;
    filter: drop-shadow(0 0 15px rgba(167, 139, 250, 0.35));
}

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

.vinyl-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 30deg,
        transparent 0deg,
        rgba(255, 255, 255, 0.08) 30deg,
        transparent 60deg,
        transparent 180deg,
        rgba(255, 255, 255, 0.08) 210deg,
        transparent 240deg,
        transparent 360deg
    );
    pointer-events: none;
}

.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--text-accent) 0%, var(--cyan) 50%, var(--pink) 100%);
    box-shadow: inset 0 3px 6px rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.vinyl-center-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-dark);
}

.vinyl-container-large .stylus-arm {
    position: absolute;
    top: -10px;
    right: -25px;
    width: 50px;
    height: 90px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bbb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 4v16M20 4H10v4h10M10 8v8M10 16H6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transform-origin: 85% 15%;
    transform: rotate(-15deg);
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

.deck-center.active .stylus-arm {
    transform: rotate(18deg);
}

/* Hologram metadata */
.hologram-details {
    margin-bottom: 1.25rem;
}

.playing-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--cyan);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 0.3rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.hologram-details h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.deck-center.active .hologram-details h2 {
    background: linear-gradient(90deg, #ffffff 40%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.1);
}

.hologram-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Horizontal visualizer waves */
.visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 30px;
    width: 100%;
}

.visualizer .bar {
    width: 4px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    transition: height 0.3s ease, background-color 0.3s ease;
}

.deck-center.active .bar {
    background: linear-gradient(to top, var(--text-accent), var(--cyan));
    animation: bounceBar 1.2s infinite ease-in-out alternate;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

.deck-center.active .bar-1 { animation-delay: 0.1s; animation-duration: 1s; }
.deck-center.active .bar-2 { animation-delay: 0.3s; animation-duration: 0.8s; }
.deck-center.active .bar-3 { animation-delay: 0.15s; animation-duration: 1.2s; }
.deck-center.active .bar-4 { animation-delay: 0.5s; animation-duration: 0.7s; }
.deck-center.active .bar-5 { animation-delay: 0.35s; animation-duration: 1.1s; }
.deck-center.active .bar-6 { animation-delay: 0.6s; animation-duration: 0.9s; }
.deck-center.active .bar-7 { animation-delay: 0.2s; animation-duration: 1.3s; }
.deck-center.active .bar-8 { animation-delay: 0.45s; animation-duration: 0.8s; }
.deck-center.active .bar-9 { animation-delay: 0.1s; animation-duration: 1.15s; }
.deck-center.active .bar-10 { animation-delay: 0.3s; animation-duration: 0.65s; }
.deck-center.active .bar-11 { animation-delay: 0.25s; animation-duration: 0.95s; }
.deck-center.active .bar-12 { animation-delay: 0.55s; animation-duration: 0.75s; }

@keyframes bounceBar {
    0% { height: 3px; }
    100% { height: 26px; }
}

/* Control Capsule (Circular System) */
.control-capsule {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    width: 100%;
}

.media-deck {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--card-border);
    padding: 0.65rem 1.75rem;
    border-radius: 40px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.btn-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-size: 1.05rem;
}

.btn-circle span {
    display: none; /* Hide internal span text in circle buttons */
}

.btn-circle:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px) scale(1.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-main {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--text-accent) 0%, #7c3aed 100%);
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
    border: none;
}

.btn-main:hover {
    background: linear-gradient(135deg, #b79afe 0%, #8b5cf6 100%);
    box-shadow: 0 8px 22px rgba(139, 92, 246, 0.6);
}

.btn-loop-song {
    background: rgba(167, 139, 250, 0.12) !important;
    color: var(--text-accent) !important;
    border-color: rgba(167, 139, 250, 0.4) !important;
}

.btn-loop-queue {
    background: rgba(16, 185, 129, 0.12) !important;
    color: var(--success) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

.btn-247-active {
    background: rgba(6, 182, 212, 0.15) !important;
    color: var(--cyan) !important;
    border-color: rgba(6, 182, 212, 0.4) !important;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.3) !important;
}

.btn-autoplay-active {
    background: rgba(236, 72, 153, 0.15) !important;
    color: var(--pink) !important;
    border-color: rgba(236, 72, 153, 0.4) !important;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.3) !important;
}

.stop-capsule-btn {
    width: 100%;
    max-width: 250px;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 20px;
}

/* RIGHT PANEL: Search & Queue */
.deck-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.deck-right h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.85rem;
}

/* Inputs and Forms */
.owner-selector-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.owner-selector-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    padding: 0.9rem 2.5rem 0.9rem 1.15rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: var(--font-stack);
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
}

.select-wrapper select:focus {
    outline: none;
    border-color: var(--text-accent);
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.2);
}

.select-wrapper select option {
    background-color: #0d0f17;
    color: var(--text-primary);
}

.select-chevron {
    position: absolute;
    right: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
}

.input-group input {
    width: 100%;
    padding: 0.95rem 1rem 0.95rem 2.75rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: var(--font-stack);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--text-accent);
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.2);
}

.search-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.btn {
    padding: 0.9rem 1.5rem;
    border-radius: 14px;
    border: none;
    font-family: var(--font-stack);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--text-accent) 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(139, 92, 246, 0.5);
}

.play-btn-full {
    width: 100%;
}

/* Queue Up Next */
.queue-box {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.queue-header {
    margin-bottom: 0.65rem;
}

.queue-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.queue-list-wrapper {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
}

.queue-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.queue-list li {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInItem 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2) both;
    transition: all 0.3s ease;
}

.queue-list li:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(167, 139, 250, 0.12);
    transform: translateX(3px);
}

@keyframes slideInItem {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.queue-list li .song-title {
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80%;
}

.queue-list li .song-position {
    font-size: 0.7rem;
    color: var(--text-accent);
    background: rgba(167, 139, 250, 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-weight: bold;
}

.empty-queue-msg {
    text-align: center;
    color: var(--text-secondary);
    padding: 1.5rem 0 !important;
    border: none !important;
    background: transparent !important;
    font-style: italic;
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}

.toast {
    background: rgba(8, 9, 16, 0.9);
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--text-accent);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 14px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 260px;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.25);
    backdrop-filter: blur(10px);
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-left-color: var(--success); }
.toast.danger { border-left-color: var(--danger); }

/* Scrollbars */
.queue-list-wrapper::-webkit-scrollbar {
    width: 5px;
}
.queue-list-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.queue-list-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.queue-list-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 139, 250, 0.2);
}

/* Mobile Navigation & Header (Hidden by default on Desktop) */
.mobile-header {
    display: none;
}
.mobile-nav {
    display: none;
}

/* ==========================================================================
   MOBILE & RESPONSIVE LAYOUT STYLING
   ========================================================================== */

@media (max-width: 1024px) {
    body {
        align-items: flex-start !important;
        padding: 1rem 0.5rem !important;
        height: auto !important;
        overflow-y: auto !important;
    }

    .deck-container {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        width: 100% !important;
        max-width: 680px !important;
        margin: 0.5rem auto !important;
        padding: 0 0.5rem !important;
    }
    
    .deck-sidebar {
        min-height: auto !important;
        gap: 1.5rem !important;
    }
    
    .sidebar-status-section {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: rgba(6, 7, 10, 0.7);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 0 1.25rem;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
    
    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .mobile-logo i {
        font-size: 1.4rem;
        color: var(--text-accent);
        text-shadow: 0 0 10px var(--accent-glow);
        animation: rotateDisc 10s infinite linear;
    }
    
    .mobile-logo h2 {
        font-size: 1.2rem;
        font-weight: 800;
        background: linear-gradient(135deg, #fff 50%, #c7d2fe 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .mobile-logo h2 span {
        background: linear-gradient(135deg, var(--text-accent) 0%, var(--cyan) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .mobile-settings-btn {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-primary);
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .mobile-settings-btn:hover, .mobile-settings-btn:focus {
        border-color: var(--text-accent);
        color: var(--text-accent);
        box-shadow: 0 0 10px var(--accent-glow);
    }
    
    .mobile-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65px;
        background: rgba(6, 7, 10, 0.75);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        padding: 0 1rem;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--text-secondary);
        cursor: pointer;
        transition: all 0.25s ease;
        gap: 3px;
        padding: 6px 14px;
        border-radius: 12px;
    }
    
    .mobile-nav-item i {
        font-size: 1.2rem;
    }
    
    .mobile-nav-item span {
        font-size: 0.65rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .mobile-nav-item.active {
        color: var(--text-accent);
        text-shadow: 0 0 10px var(--accent-glow);
        background: rgba(167, 139, 250, 0.06);
    }
    
    body {
        align-items: flex-start !important;
        padding: 60px 0 65px 0 !important; /* Top header and bottom nav room */
        height: auto !important;
        overflow-y: auto !important;
    }
    
    .deck-container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 1rem !important;
    }
    
    .deck-sidebar, .deck-center, .deck-right {
        display: none !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        min-height: calc(100vh - 155px) !important;
    }
    
    .deck-sidebar.active-tab, .deck-center.active-tab, .deck-right.active-tab {
        display: flex !important;
    }

    /* On mobile, hide the redundant logo & setup portal link in the sidebar */
    .deck-sidebar .logo {
        display: none !important;
    }
    .deck-sidebar .settings-link-btn {
        display: none !important;
    }

    .card {
        padding: 1.25rem !important;
        border-radius: 20px !important;
    }
    
    .vinyl-container-large {
        width: 150px !important;
        height: 150px !important;
        margin-bottom: 1.75rem !important;
    }
    
    .vinyl-label {
        width: 50px !important;
        height: 50px !important;
    }
    
    .vinyl-container-large .stylus-arm {
        width: 42px !important;
        height: 75px !important;
        right: -18px !important;
    }
    
    .control-capsule {
        padding: 0.5rem 0.25rem !important;
        margin-top: 1rem !important;
    }
    
    .media-deck {
        padding: 0.5rem 1.25rem !important;
        gap: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1rem !important;
        border-radius: 16px !important;
    }
    
    /* Convert Loop Button to circular button on small screens */
    #loop-btn {
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        justify-content: center !important;
        aspect-ratio: 1 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    #loop-btn span {
        display: none !important;
    }
    
    #loop-btn i {
        margin: 0 !important;
        font-size: 1rem !important;
    }
    
    .media-deck {
        gap: 0.5rem !important;
        justify-content: space-around !important;
        width: 100% !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    .btn-circle {
        width: 42px !important;
        height: 42px !important;
        font-size: 0.95rem !important;
    }
    
    #play-pause-btn {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.1rem !important;
    }
    
    .volume-container {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: stretch !important;
    }
    
    .volume-slider-wrapper {
        width: 100% !important;
    }
}
