:root {
    --bg-color: #0b0b0f;
    --card-bg: rgba(20, 20, 30, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f4f4f7;
    --text-secondary: #9494a8;
    --accent-pink: #ff3366;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-glow: rgba(255, 51, 102, 0.35);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

/* Ambient background glow */
.glow-bg {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 70%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(80px);
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 2.5rem 1.5rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 1.5rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-area h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.accent-text {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent-pink);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-pink);
    animation: pulse 2s infinite;
}

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

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-green);
    letter-spacing: 0.05em;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
}

/* Grid Layout */
.grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
}

@media (max-width: 900px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
}

/* Premium Card Glassmorphism */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.card-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Player Content */
.player-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    padding: 1rem 0;
}

.player-circle-container {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--accent-glow);
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.player-circle:hover {
    transform: scale(1.06);
    box-shadow: 0 15px 40px rgba(255, 51, 102, 0.5);
}

.player-circle:active {
    transform: scale(0.96);
}

.player-circle svg {
    width: 55px;
    height: 55px;
    color: white;
    transition: var(--transition-smooth);
}

.player-circle.playing {
    animation: pulseGlow 2.5s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 10px 30px var(--accent-glow); }
    100% { box-shadow: 0 15px 50px rgba(139, 92, 246, 0.6); }
}

/* Wave animation when playing */
.waves-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.player-circle.playing + .waves-container {
    opacity: 1;
}

.stroke {
    display: block;
    position: relative;
    background: var(--accent-purple);
    height: 100%;
    width: 4px;
    border-radius: 50px;
    animation: waveAnim 1.2s infinite ease-in-out;
}

.stroke:nth-child(1) { animation-delay: 0.1s; height: 30%; }
.stroke:nth-child(2) { animation-delay: 0.3s; height: 45%; }
.stroke:nth-child(3) { animation-delay: 0.6s; height: 60%; }
.stroke:nth-child(4) { animation-delay: 0.4s; height: 45%; }
.stroke:nth-child(5) { animation-delay: 0.2s; height: 30%; }

@keyframes waveAnim {
    0% { transform: scaleY(1); }
    50% { transform: scaleY(1.8); }
    100% { transform: scaleY(1); }
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.track-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff, #dcdcdf);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.track-artist {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 0.9rem 1.8rem;
    border-radius: 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.btn-skip {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(255, 51, 102, 0.2);
    width: 100%;
}

.btn-skip:hover {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.18), rgba(139, 92, 246, 0.18));
    border-color: rgba(255, 51, 102, 0.4);
    transform: scale(1.01);
}

/* Personas / Characters */
.personas-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.persona-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 1.25rem;
    transition: var(--transition-smooth);
}

.persona-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.persona-avatar {
    font-size: 2.2rem;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.persona-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.role-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.2rem;
}

.dj-badge {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #a78bfa;
}

.caller-badge {
    background: rgba(255, 51, 102, 0.15);
    border: 1px solid rgba(255, 51, 102, 0.25);
    color: #fda4af;
}

.persona-details h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.persona-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* List Items (Queue & History) */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.list-container::-webkit-scrollbar {
    width: 6px;
}
.list-container::-webkit-scrollbar-track {
    background: transparent;
}
.list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    transition: var(--transition-smooth);
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.list-item.music {
    border-left: 4px solid var(--accent-pink);
}

.list-item.banter {
    border-left: 4px solid var(--accent-purple);
}

.list-item-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.item-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.item-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.item-badge.badge-music {
    background: rgba(255, 51, 102, 0.08);
    color: var(--accent-pink);
}

.item-badge.badge-banter {
    background: rgba(139, 92, 246, 0.08);
    color: var(--accent-purple);
}

.item-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-green);
    letter-spacing: 0.05em;
}

.item-status.pending {
    color: #eab308;
}

.item-status.processing {
    color: #3b82f6;
    animation: blinkStatus 1.5s infinite;
}

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

/* Skeletons */
.skeleton-item {
    height: 55px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.02) 75%);
    background-size: 200% 100%;
    animation: loadingSkeleton 1.8s infinite;
    border-radius: 14px;
}

@keyframes loadingSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Volume Control styling */
.volume-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.25rem;
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.volume-container:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.volume-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.volume-icon:hover {
    color: var(--text-primary);
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
    transition: background 0.3s;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: transform 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-percentage {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 36px;
    text-align: right;
}

/* Playout Pressures */
.pressures-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pressure-bar-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pressure-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pressure-value {
    font-family: var(--font-mono);
    font-weight: 700;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.host-fill {
    background: linear-gradient(90deg, var(--accent-purple), #a78bfa);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.caller-fill {
    background: linear-gradient(90deg, var(--accent-pink), #fda4af);
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

.news-fill {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}
