:root {
    --bg-primary: #07090e;
    --bg-card: rgba(18, 26, 44, 0.7);
    --bg-card-hover: rgba(26, 38, 64, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-primary: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.18) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(168, 85, 247, 0.08) 0px, transparent 60%);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.player-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Unified Monolithic Studio Deck Card */
.monolith-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.monolith-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

.deck-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 10px;
}

.deck-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 36px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* Mobile Responsiveness */
@media (max-width: 820px) {
    .player-container {
        max-width: 100%;
        padding: 0;
    }
    .monolith-card {
        padding: 24px 20px;
        border-radius: var(--radius-lg);
    }
    .monolith-body {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .deck-left {
        padding-right: 0;
    }
    .deck-right {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 24px;
    }
}

/* Strict Mobile Portrait Mode (320px - 600px) */
@media (max-width: 600px) {
    body {
        padding: 8px;
    }

    .player-container {
        width: 100%;
        overflow-x: hidden;
    }

    .monolith-card {
        padding: 16px 12px;
        border-radius: var(--radius-md);
        gap: 18px;
    }

    .header-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .brand-title {
        font-size: 14px;
    }

    .brand-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .album-art-wrapper {
        max-height: 180px;
    }

    .track-title {
        font-size: 16px;
    }
}

/* Header & Badges */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent-primary), #a855f7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.brand-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-live {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-offline {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Vinyl Album Art */
.album-art-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    max-height: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0f172a;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 36px rgba(0,0,0,0.45);
}

.album-art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.album-art-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.album-art-placeholder span {
    font-size: 44px;
}

/* Track Details */
.track-meta {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.track-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    word-break: break-word;
}

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

/* Progress Bar for Listener Player */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0 6px 0;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), #a855f7);
    border-radius: 4px;
    transition: width 0.3s linear;
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Plyr Custom Styling */
.plyr {
    --plyr-color-main: #6366f1;
    --plyr-audio-controls-background: rgba(15, 23, 42, 0.8);
    --plyr-audio-control-color: #94a3b8;
    --plyr-audio-control-color-hover: #f8fafc;
    border-radius: var(--radius-md);
}

.plyr--audio .plyr__controls {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
}

/* Request Form Section */

.section-title {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    background: rgba(15, 23, 42, 0.95);
}

.btn-request {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-primary), #4f46e5);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-request:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-request:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(8px);
}
