/* ==========================================================================
   AI RADIO JOCKEY STUDIO - FM RADIO MUSIC EVENT THEME & CONSOLE STYLES
   Fluid Full-Width Studio Layout & Rich Custom Dropdown Component
   ========================================================================== */

:root {
    --bg-dark: #070a13;
    --bg-surface: #0e1424;
    --bg-card: rgba(18, 25, 44, 0.78);
    --bg-card-hover: rgba(28, 38, 66, 0.88);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-glow: rgba(168, 85, 247, 0.4);
    
    /* FM Radio & Neon Event Palette */
    --fm-amber: #f59e0b;
    --fm-amber-glow: rgba(245, 158, 11, 0.5);
    --fm-cyan: #06b6d4;
    --fm-cyan-glow: rgba(6, 182, 212, 0.4);
    --fm-pink: #ec4899;
    --fm-pink-glow: rgba(236, 72, 153, 0.45);
    --fm-purple: #a855f7;
    --fm-purple-glow: rgba(168, 85, 247, 0.45);
    --fm-green: #10b981;
    --fm-green-glow: rgba(16, 185, 129, 0.5);
    --fm-red: #ef4444;
    --fm-red-glow: rgba(239, 68, 68, 0.6);
    
    --primary-gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f59e0b 100%);
    --radio-gradient: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
    --deck-metal-gradient: linear-gradient(180deg, rgba(30, 41, 67, 0.9) 0%, rgba(15, 22, 38, 0.95) 100%);
    
    --text-main: #f8fafc;
    --text-sub: #94a3b8;
    --text-muted: #64748b;
    
    --font-heading: 'Outfit', 'Noto Sans Devanagari', 'Noto Sans Tamil', 'Noto Sans Malayalam', 'Noto Sans Telugu', 'Noto Sans Kannada', 'Noto Sans Bengali', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', 'Noto Sans Devanagari', 'Noto Sans Tamil', 'Noto Sans Malayalam', 'Noto Sans Telugu', 'Noto Sans Kannada', 'Noto Sans Bengali', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-digital: 'Orbitron', 'Share Tech Mono', monospace;
    --font-mono: 'Share Tech Mono', 'Courier New', monospace;
    
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --transition-smooth: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    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;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0.8rem 1.2rem 2.5rem;
    width: 100%;
}

/* Background Ambient Glows & FM Scanlines */
.glow-ambient {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.glow-ambient-1 {
    top: -120px;
    left: -80px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, rgba(14, 20, 36, 0) 70%);
}

.glow-ambient-2 {
    bottom: 10%;
    right: -100px;
    width: 750px;
    height: 750px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.28) 0%, rgba(14, 20, 36, 0) 70%);
}

.glow-ambient-3 {
    top: 40%;
    left: 45%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.22) 0%, rgba(14, 20, 36, 0) 70%);
}

.radio-scanlines {
    position: fixed;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 100% 3px, 6px 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

/* ==========================================================================
   FM MASTER HEADER & TELEMETRY CLUSTER (FLUID FULL WIDTH)
   ========================================================================== */
.app-header.fm-master-header {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.fm-top-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    background: rgba(14, 20, 36, 0.88);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 0.9rem 1.6rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    width: 100%;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.fm-pulse-logo {
    position: relative;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(245, 158, 11, 0.25) 100%);
    border: 2px solid var(--fm-amber);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--fm-amber);
    box-shadow: 0 0 20px var(--fm-amber-glow);
}

.fm-wave-ring {
    position: absolute;
    inset: -5px;
    border: 1.5px solid var(--fm-amber);
    border-radius: 18px;
    animation: fmWavePulse 2.4s ease-out infinite;
    opacity: 0.6;
}

@keyframes fmWavePulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.25); opacity: 0; }
}

.header-titles {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.brand-title-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.header-titles h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #f59e0b 60%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.header-titles h1 span {
    font-family: var(--font-digital);
    font-size: 1.6rem;
    color: var(--fm-amber);
    -webkit-text-fill-color: var(--fm-amber);
    text-shadow: 0 0 15px var(--fm-amber-glow);
}

/* Glowing ON AIR Neon Sign */
.on-air-sign {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1.5px solid #ef4444;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    box-shadow: 0 0 18px var(--fm-red-glow), inset 0 0 8px rgba(239, 68, 68, 0.3);
    animation: onAirPulse 1.8s ease-in-out infinite alternate;
}

.on-air-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

.on-air-text {
    font-family: var(--font-digital);
    font-size: 0.8rem;
    font-weight: 900;
    color: #fee2e2;
    letter-spacing: 0.15em;
    text-shadow: 0 0 10px #ef4444;
}

@keyframes onAirPulse {
    0% { opacity: 0.85; filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.4)); }
    100% { opacity: 1; filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.9)); }
}

.header-sub-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
}

.fm-badge-gold {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.fm-badge-cyan {
    background: rgba(6, 182, 212, 0.14);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #38bdf8;
}

.fm-badge-pink {
    background: rgba(236, 72, 153, 0.14);
    border: 1px solid rgba(236, 72, 153, 0.4);
    color: #f472b6;
}

/* Digital LED Readouts */
.fm-telemetry-cluster {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.fm-led-box {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.35rem 0.8rem;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.led-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.1em;
}

.led-digits {
    font-family: var(--font-digital);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.led-amber { color: #f59e0b; text-shadow: 0 0 12px var(--fm-amber-glow); }
.led-cyan { color: #06b6d4; text-shadow: 0 0 12px var(--fm-cyan-glow); }
.led-green { color: #10b981; text-shadow: 0 0 12px var(--fm-green-glow); }

.led-digits small {
    font-size: 0.68rem;
    font-weight: 400;
    color: #94a3b8;
}

/* Aspect Ratio Controls for 16:9 / 4:3 */
.fm-aspect-controls {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.aspect-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.08em;
}

.aspect-btn-group {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2px;
    gap: 3px;
}

.aspect-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.aspect-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.aspect-btn.active {
    color: #070a13;
    background: var(--fm-amber);
    box-shadow: 0 0 12px var(--fm-amber-glow);
}

/* ==========================================================================
   FM BAND TUNER DOCK (FULL WIDTH)
   ========================================================================== */
.fm-tuner-dock {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: linear-gradient(180deg, rgba(20, 29, 52, 0.9) 0%, rgba(10, 15, 28, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--border-radius);
    padding: 0.9rem 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(245, 158, 11, 0.05);
    width: 100%;
}

.tuner-title-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-digital);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--fm-amber);
    letter-spacing: 0.15em;
}

.tuner-scale-container {
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.9);
}

.tuner-scale-track {
    position: relative;
    width: 100%;
    height: 32px;
    display: flex;
    align-items: center;
}

.tuner-ticks {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-digital);
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    position: relative;
    user-select: none;
}

.tuner-ticks::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 0;
}

.tuner-ticks span {
    position: relative;
    z-index: 1;
    background: #090d18;
    padding: 0 0.25rem;
}

.tuner-needle {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 3px;
    background: #ef4444;
    box-shadow: 0 0 14px #ef4444, 0 0 20px rgba(239, 68, 68, 0.8);
    transition: left 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 5;
    pointer-events: none;
}

.needle-glow {
    position: absolute;
    top: -6px;
    left: -4px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

/* Quick Station Presets */
.fm-presets-bar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.preset-label {
    font-family: var(--font-digital);
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.08em;
}

.fm-preset-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.fm-preset-btn .preset-num {
    font-family: var(--font-digital);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--fm-amber);
    background: rgba(245, 158, 11, 0.12);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.fm-preset-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.fm-preset-btn.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(236, 72, 153, 0.25) 100%);
    border-color: var(--fm-amber);
    color: #fff;
    box-shadow: 0 0 16px var(--fm-amber-glow);
}

/* Nav Tabs */
.fm-nav-deck {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-sub);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.nav-tab ion-icon {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.nav-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-tab:hover ion-icon {
    transform: scale(1.1);
}

.nav-tab.active {
    color: #fff;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.nav-tab.active ion-icon {
    color: #a855f7;
}

/* ==========================================================================
   STUDIO CONTAINER & FLUID WIDESCREEN CONSOLE (16:9 & 4:3)
   ========================================================================== */
.studio-container.fm-console-layout {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(420px, 460px) 1fr;
    gap: 1.6rem;
    margin-bottom: 2.5rem;
    align-items: start;
}

/* 16:9 Aspect Ratio Optimization */
body.aspect-16-9 .studio-container.fm-console-layout {
    grid-template-columns: minmax(420px, 460px) 1fr;
    gap: 1.6rem;
}

/* 4:3 Aspect Ratio Mode */
body.aspect-4-3 .studio-container.fm-console-layout {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

body.aspect-4-3 .panel {
    padding: 1.4rem;
}

@media (max-width: 1050px) {
    .studio-container.fm-console-layout {
        grid-template-columns: 1fr !important;
        gap: 1.4rem;
    }
}

/* Hardware Studio Panels */
.panel {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 1.6rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.fm-hardware-deck {
    background: linear-gradient(180deg, rgba(16, 24, 43, 0.9) 0%, rgba(10, 15, 28, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.fm-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.8rem;
}

.fm-panel-header .header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.deck-indicator-led {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px var(--fm-green-glow);
}

.fm-panel-header ion-icon {
    font-size: 1.5rem;
    color: var(--fm-purple);
}

.fm-panel-header h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.hardware-screws {
    display: flex;
    gap: 0.4rem;
}

.screw {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #475569;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Stereo VU Level Meters */
.fm-vu-meters-panel {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    margin-bottom: 1.2rem;
    width: 100%;
}

.vu-meter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.4rem;
    letter-spacing: 0.08em;
}

.vu-status-badge {
    color: var(--fm-green);
    font-family: var(--font-digital);
    font-size: 0.62rem;
}

.vu-meters-rack {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vu-channel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ch-tag {
    font-family: var(--font-digital);
    font-size: 0.68rem;
    font-weight: 800;
    color: #94a3b8;
    width: 12px;
}

.vu-ladder {
    flex: 1;
    display: flex;
    gap: 3px;
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px;
    border-radius: 3px;
}

.vu-seg {
    flex: 1;
    border-radius: 2px;
    opacity: 0.18;
    transition: opacity 0.08s ease;
}

.vu-seg.green { background: #10b981; }
.vu-seg.yellow { background: #f59e0b; }
.vu-seg.red { background: #ef4444; }

.vu-seg.active {
    opacity: 1;
    box-shadow: 0 0 6px currentColor;
}

/* ==========================================================================
   FORM VERTICAL FLOW & FIELD STYLING
   ========================================================================== */
.studio-form.fm-form-chassis {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
    width: 100%;
    min-width: 0;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.form-group label ion-icon {
    color: var(--fm-amber);
    font-size: 1rem;
}

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

.input-wrapper ion-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.15rem;
    color: #94a3b8;
    pointer-events: none;
    z-index: 2;
}

/* Native select / text inputs */
.custom-select-wrap select,
.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    background: rgba(8, 12, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.75rem 1rem 0.75rem 2.7rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
    box-sizing: border-box;
}

.input-wrapper textarea {
    padding-top: 0.8rem;
    resize: vertical;
}

.textarea-wrapper ion-icon {
    top: 1rem;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    border-color: var(--fm-amber);
    box-shadow: 0 0 14px var(--fm-amber-glow);
    background: rgba(14, 20, 36, 0.95);
}

/* ==========================================================================
   RICH CUSTOM FM RADIO DROPDOWN COMPONENT (SMART AUTO-DROPUP & DROPDOWN)
   ========================================================================== */
.fm-custom-select-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    user-select: none;
    z-index: 10;
    box-sizing: border-box;
}

.fm-custom-select-container.open {
    z-index: 1000;
}

.fm-select-trigger {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(14, 20, 36, 0.92) 0%, rgba(8, 12, 22, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 0.65rem 0.85rem 0.65rem 2.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    min-height: 46px;
    position: relative;
    overflow: hidden;
}

.fm-select-trigger:hover {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(20, 28, 50, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.fm-custom-select-container.open .fm-select-trigger {
    border-color: var(--fm-amber);
    box-shadow: 0 0 16px var(--fm-amber-glow);
}

.fm-custom-select-container.open:not(.dropup) .fm-select-trigger {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.fm-custom-select-container.open.dropup .fm-select-trigger {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.fm-select-left-icon {
    position: absolute;
    left: 0.9rem;
    font-size: 1.15rem;
    color: var(--fm-amber);
    display: flex;
    align-items: center;
    pointer-events: none;
    flex-shrink: 0;
}

.fm-select-text-block {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1 1 auto;
    text-align: left;
    overflow: hidden;
}

.fm-select-main-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    max-width: 100%;
}

.fm-select-sub-pill {
    font-size: 0.72rem;
    color: var(--text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.fm-select-chevron {
    font-size: 1.1rem;
    color: #94a3b8;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.fm-custom-select-container.open .fm-select-chevron {
    transform: rotate(180deg);
    color: var(--fm-amber);
}

/* Floating Custom Select Dropdown Popover (Opens Downward by Default) */
.fm-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 15, 28, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(245, 158, 11, 0.15);
    max-height: 250px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    padding: 0.4rem;
    gap: 2px;
    animation: dropdownOpen 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--fm-amber) rgba(0, 0, 0, 0.4);
    z-index: 1001;
    box-sizing: border-box;
}

.fm-custom-select-container.open .fm-select-dropdown {
    display: flex;
}

@keyframes dropdownOpen {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Smart Dropup State (Opens Upwards when near bottom of viewport / panel) */
.fm-custom-select-container.dropup .fm-select-dropdown {
    top: auto;
    bottom: calc(100% + 4px);
    animation: dropdownOpenUp 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(245, 158, 11, 0.15);
}

@keyframes dropdownOpenUp {
    from { opacity: 0; transform: translateY(6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.fm-select-dropdown::-webkit-scrollbar {
    width: 5px;
}

.fm-select-dropdown::-webkit-scrollbar-thumb {
    background: var(--fm-amber);
    border-radius: 4px;
}

.fm-select-group-header {
    font-family: var(--font-digital);
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--fm-purple);
    letter-spacing: 0.1em;
    padding: 0.5rem 0.8rem 0.2rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.3rem;
}

.fm-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.fm-select-option:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
}

.fm-select-option.selected {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border-color: var(--fm-amber);
}

.option-left-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    flex: 1;
}

.option-icon-badge {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.option-text-stack {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.option-main-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.option-sub-text {
    font-size: 0.72rem;
    color: var(--text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.option-check-icon {
    font-size: 1.1rem;
    color: var(--fm-amber);
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.fm-select-option.selected .option-check-icon {
    opacity: 1;
}

/* Sponsor Ad Section */
.sponsor-ad-card {
    background: rgba(236, 72, 153, 0.04);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 10px;
    padding: 0.85rem;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.2rem;
    position: relative;
    z-index: 20;
}

.ad-toggle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.ad-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fce7f3 !important;
    cursor: pointer;
}

.ad-checkbox-label ion-icon {
    color: var(--fm-pink) !important;
    font-size: 1.15rem;
}

.fm-toggle-checkbox {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--fm-pink);
    cursor: pointer;
}

.sub-label {
    font-size: 0.78rem !important;
    color: var(--text-sub) !important;
}

/* Master Transmit Broadcast Button */
.master-transmit-btn {
    position: relative;
    background: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
    border: none;
    padding: 0.95rem 1.6rem;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    margin-top: 0.5rem;
    width: 100%;
    z-index: 5;
}

.btn-glow-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.master-transmit-btn:hover .btn-glow-layer {
    transform: translateX(100%);
}

.master-transmit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.5);
}

.master-transmit-btn:active {
    transform: translateY(1px);
}

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

/* ==========================================================================
   RIGHT PANEL: LIVE BROADCAST STAGE & MULTI-COLUMN JUKEBOX DECK
   ========================================================================== */
.fm-stage-panel {
    background: linear-gradient(180deg, rgba(14, 20, 36, 0.88) 0%, rgba(8, 12, 22, 0.96) 100%);
    overflow: visible;
}

.stage-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    font-family: var(--font-digital);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
}

.stage-telemetry .signal-tag {
    font-family: var(--font-digital);
    font-size: 0.7rem;
    color: var(--fm-cyan);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Stage States */
.stage-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
}

.stage-state.active {
    display: flex;
}

/* Idle Booth */
.fm-idle-booth {
    padding: 2.5rem 1.2rem;
    gap: 0.9rem;
}

.fm-vintage-radio-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
}

.empty-icon {
    font-size: 4.5rem;
    color: rgba(245, 158, 11, 0.4);
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.2));
}

.radio-pulse-circle {
    position: absolute;
    width: 90px;
    height: 90px;
    border: 1.5px dashed rgba(245, 158, 11, 0.3);
    border-radius: 50%;
    animation: spinSlow 20s linear infinite;
}

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

.fm-idle-booth h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.fm-idle-booth p {
    color: var(--text-sub);
    max-width: 480px;
    line-height: 1.6;
    font-size: 0.92rem;
}

.idle-quick-hints {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.idle-quick-hints span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
}

/* Loading Booth & Radar Animation */
.fm-loading-booth {
    padding: 2.5rem 1.2rem;
    gap: 1rem;
}

.fm-radar-loader {
    position: relative;
    width: 72px;
    height: 72px;
    border: 2px solid rgba(6, 182, 212, 0.4);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.radar-sweep {
    position: absolute;
    inset: 0;
    background: conic-gradient(from 0deg, rgba(6, 182, 212, 0.8) 0deg, transparent 60deg, transparent 360deg);
    border-radius: 50%;
    animation: radarSpin 1.8s linear infinite;
}

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

.radar-center {
    position: relative;
    z-index: 2;
    font-size: 1.6rem;
    color: #fff;
}

.sound-wave-loader {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 36px;
}

.sound-wave-loader .bar {
    width: 4px;
    height: 10px;
    background: linear-gradient(180deg, var(--fm-cyan) 0%, var(--fm-pink) 100%);
    border-radius: 8px;
    animation: wave 1s ease-in-out infinite;
}

.sound-wave-loader .bar:nth-child(2) { animation-delay: 0.15s; }
.sound-wave-loader .bar:nth-child(3) { animation-delay: 0.3s; }
.sound-wave-loader .bar:nth-child(4) { animation-delay: 0.45s; }
.sound-wave-loader .bar:nth-child(5) { animation-delay: 0.6s; }
.sound-wave-loader .bar:nth-child(6) { animation-delay: 0.75s; }
.sound-wave-loader .bar:nth-child(7) { animation-delay: 0.9s; }

@keyframes wave {
    0%, 100% { height: 8px; }
    50% { height: 32px; }
}

.fm-loading-booth h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.loader-subtext {
    font-size: 0.88rem;
    color: var(--text-sub);
    max-width: 450px;
    line-height: 1.6;
}

/* ==========================================================================
   OUTPUT STAGE: BILLBOARD, SEGMENT SWITCHERS & PROMPTER
   ========================================================================== */
.fm-output-showcase {
    align-items: stretch;
    text-align: left;
    gap: 1.3rem;
}

/* Live Show Billboard Marquee */
.fm-billboard-marquee {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(236, 72, 153, 0.12) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 0.8rem 1.2rem;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(245, 158, 11, 0.08);
    flex-wrap: wrap;
}

.billboard-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: fit-content;
    flex-shrink: 0;
}

.live-signal-box {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    flex-shrink: 0;
}

.live-signal-box .live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: blink 1.2s infinite;
}

.live-signal-box .live-txt {
    font-family: var(--font-digital);
    font-size: 0.68rem;
    font-weight: 900;
    color: #fecaca;
    letter-spacing: 0.08em;
}

.billboard-left h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.billboard-right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-left: auto;
}

/* Interactive Favorite Channel Button in Billboard */
.btn-fav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.28rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-fav-toggle ion-icon {
    font-size: 1.05rem;
    color: #ef4444;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-fav-toggle:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: #ef4444;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.btn-fav-toggle:hover ion-icon {
    transform: scale(1.2);
}

.btn-fav-toggle.is-fav {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    color: #fff;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.55);
}

.btn-fav-toggle.is-fav ion-icon {
    color: #fff;
    animation: heartBeat 1.6s ease-in-out infinite;
}

/* Favorite Preset Channel in Tuner Bar */
.fm-preset-btn.btn-fav-preset {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
    color: #fca5a5;
}

.fm-preset-btn.btn-fav-preset:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.fm-preset-btn.btn-fav-preset.has-favorite {
    border-color: rgba(239, 68, 68, 0.6);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(245, 158, 11, 0.18) 100%);
    color: #fff;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
}

.heart-pulse-icon {
    color: #ef4444;
    font-size: 0.88rem;
    vertical-align: middle;
    animation: heartBeat 1.8s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.18); }
}

.spin-icon {
    animation: spin 1s linear infinite;
}

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

/* Studio Toast Notifications */
#studio-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: none;
}

.studio-toast {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.65rem 1.1rem;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
    animation: toastSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), toastFadeOut 0.4s ease 3.6s forwards;
}

.studio-toast.toast-success {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.35);
}

.studio-toast.toast-success ion-icon {
    color: #ef4444;
    font-size: 1.2rem;
}

.studio-toast.toast-info ion-icon {
    color: #38bdf8;
    font-size: 1.2rem;
}

.studio-toast.toast-error {
    border-color: #ef4444;
}

.studio-toast.toast-error ion-icon {
    color: #ef4444;
    font-size: 1.2rem;
}

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

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

.billboard-freq-tag {
    font-family: var(--font-digital);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--fm-amber);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
}

/* Multi-Deck Switcher Tabs (Deck 1 to 5) */
.fm-deck-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.4rem;
    overflow-x: auto;
}

.segment-tab {
    flex: 1;
    min-width: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-sub);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    user-select: none;
}

.segment-tab * {
    pointer-events: none;
}

.tab-cue-light {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #64748b;
}

.segment-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.segment-tab.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(236, 72, 153, 0.25) 100%);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
}

.segment-tab.active .tab-cue-light {
    background: #a855f7;
    box-shadow: 0 0 8px #a855f7;
}

.segment-tab.active ion-icon {
    color: #a855f7;
}


.fm-segment-box {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

/* Audio Console & Canvas Spectrum Visualizer */
.fm-audio-console {
    background: linear-gradient(180deg, rgba(12, 18, 32, 0.95) 0%, rgba(6, 9, 17, 0.98) 100%);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 14px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(168, 85, 247, 0.05);
    width: 100%;
}

.audio-metadata {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.pulse-ring {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fm-purple) 0%, var(--fm-pink) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 0 15px var(--fm-purple-glow);
}

.pulse-ring::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--fm-purple);
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.metadata-text {
    flex: 1;
}

.metadata-text h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.metadata-text span {
    font-size: 0.8rem;
    color: var(--text-sub);
}

.visualizer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-digital);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--fm-cyan);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.18rem 0.5rem;
    border-radius: 50px;
}

.viz-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--fm-cyan);
    box-shadow: 0 0 6px var(--fm-cyan);
}

/* Canvas Audio Spectrum Visualizer */
.canvas-visualizer-wrap {
    width: 100%;
    height: 65px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
}

.audio-spectrum-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.audio-gen-placeholder {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--fm-amber);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0;
}

.fm-native-audio {
    width: 100%;
    border-radius: 8px;
    outline: none;
    filter: invert(0.85) hue-rotate(180deg);
}

/* Teleprompter Script */
.fm-teleprompter-chassis {
    background: rgba(10, 15, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

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

.prompter-left {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--fm-purple);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.prompter-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-prompter-tool {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-prompter-tool:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
    color: #fff;
}

.prompter-badge {
    font-family: var(--font-digital);
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.18rem 0.45rem;
    border-radius: 4px;
}

.fm-script-display {
    background: rgba(0, 0, 0, 0.5);
    border-left: 4px solid var(--fm-purple);
    border-radius: 0 10px 10px 0;
    padding: 1.1rem 1.3rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #f1f5f9;
    font-style: normal;
    white-space: pre-wrap;
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--fm-purple) rgba(0, 0, 0, 0.3);
}

.fm-script-display::-webkit-scrollbar {
    width: 5px;
}

.fm-script-display::-webkit-scrollbar-thumb {
    background: var(--fm-purple);
    border-radius: 4px;
}

/* ==========================================================================
   YOUTUBE MUSIC QUEUE (RESPONSIVE MULTI-COLUMN GRID)
   ========================================================================== */
.fm-playlist-chassis {
    background: rgba(10, 15, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.yt-brand-icon {
    color: #ef4444;
    font-size: 1.3rem;
}

.fm-track-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 0.8rem;
    width: 100%;
}

@media (max-width: 500px) {
    .fm-track-list {
        grid-template-columns: 1fr;
    }
}

.song-card-yt {
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.song-card-yt:hover {
    transform: translateY(-2px);
    background: rgba(26, 35, 62, 0.96);
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
}

.song-card-yt.now-playing {
    grid-column: 1 / -1;
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.35);
}

.song-card-yt.now-playing::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #ef4444, #f59e0b);
}

.song-card-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    width: 100%;
}

.song-left-section {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1;
}

.song-thumb-box {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0f172a;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.song-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.song-thumb-box:hover .song-thumb-img {
    transform: scale(1.12);
}

.song-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.song-thumb-box:hover .song-thumb-overlay,
.song-card-yt.now-playing .song-thumb-overlay {
    opacity: 1;
}

.song-thumb-overlay ion-icon {
    font-size: 1.6rem;
    color: #fff;
}

.song-info-box {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.song-title-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.song-title-text {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.song-meta-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.song-artist-text {
    font-size: 0.8rem;
    color: var(--text-sub);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-ytm-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    border-radius: 50px;
}

.badge-sub-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
}

.song-duration-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.7rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.08rem 0.38rem;
    border-radius: 5px;
}

/* Song Actions */
.song-right-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.btn-play-inline, .btn-play-studio {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.42rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.btn-play-inline:hover, .btn-play-studio:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.55);
}

.btn-yt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-sub);
    font-size: 1.05rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-yt-icon:hover {
    color: #fff;
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.05);
}

/* Equalizer inside Card */
.card-sound-equalizer {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.song-card-yt.now-playing .card-sound-equalizer {
    display: inline-flex;
}

.card-sound-equalizer .eq-bar {
    width: 2.5px;
    height: 30%;
    background: #ef4444;
    border-radius: 2px;
    animation: eqBounce 0.65s ease-in-out infinite alternate;
}

.card-sound-equalizer .eq-bar:nth-child(2) { animation-delay: 0.2s; height: 90%; }
.card-sound-equalizer .eq-bar:nth-child(3) { animation-delay: 0.4s; height: 60%; }

@keyframes eqBounce {
    0% { height: 25%; }
    100% { height: 100%; }
}

/* Inline Player Drawer */
.song-inline-player-drawer {
    display: none;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeIn 0.3s ease;
}

.inline-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.inline-now-playing-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #f87171;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btn-close-inline-player {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-sub);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-close-inline-player:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fff;
    border-color: rgba(239, 68, 68, 0.5);
}

.btn-yt-red {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

.btn-yt-red:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

.btn-ytm-link {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.35);
    color: #c084fc;
}

.btn-ytm-link:hover {
    background: #a855f7;
    border-color: #a855f7;
    color: #fff;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.btn-drawer-yt {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-drawer-yt:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.inline-iframe-wrapper {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    aspect-ratio: 16 / 9;
    min-height: 220px;
    height: 260px;
}

.inline-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 220px;
    border: none;
    display: block;
}

/* Fallback Embed Notice Box */
.inline-player-embed-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1.5rem;
    text-align: center;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-radius: 10px;
    gap: 0.8rem;
}

.notice-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 1.6rem;
}

.notice-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    max-width: 460px;
}

.notice-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
}

.notice-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}

.notice-desc strong {
    color: #e2e8f0;
}

.notice-actions {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-notice-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-notice-yt {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.btn-notice-yt:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.6);
}

.btn-notice-ytm {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #e9d5ff;
}

.btn-notice-ytm:hover {
    background: rgba(168, 85, 247, 0.4);
    border-color: #c084fc;
    color: #fff;
    transform: translateY(-2px);
}

.inline-player-hint {
    font-size: 0.7rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

/* ==========================================================================
   YOUTUBE MUSIC LIVE EXPLORER DECK
   ========================================================================== */
.fm-explorer-deck {
    background: rgba(10, 15, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 0.4rem;
    width: 100%;
}

.yt-explorer-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.explorer-brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--fm-purple);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.yt-search-bar-wrapper {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    width: 100%;
}

.yt-search-input-box {
    flex: 1;
}

.yt-search-action-btn {
    margin-top: 0;
    padding: 0.75rem 1.3rem;
    border-radius: 10px;
    font-size: 0.88rem;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--fm-purple) 0%, var(--fm-pink) 100%);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.35);
}

.yt-quick-chips {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.chip-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--fm-amber);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 0.2rem;
}

.yt-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.28rem 0.7rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.yt-chip:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    color: #fff;
    transform: translateY(-1px);
}

/* Footer */
.app-footer.fm-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-sub);
    font-size: 0.82rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: #e2e8f0;
}

.footer-brand ion-icon {
    color: var(--fm-amber);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.sound-wave-loader-mini {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 16px;
}

.sound-wave-loader-mini .bar {
    width: 3px;
    height: 6px;
    background: var(--primary-gradient);
    border-radius: 4px;
    animation: wave-mini 1s ease-in-out infinite;
}

.sound-wave-loader-mini .bar:nth-child(2) { animation-delay: 0.2s; }
.sound-wave-loader-mini .bar:nth-child(3) { animation-delay: 0.4s; }

@keyframes wave-mini {
    0%, 100% { height: 6px; }
    50% { height: 14px; }
}

/* ==========================================================================
   MANAGEMENT ANALYTICS & ACOUSTIC INGESTION UI
   ========================================================================== */
.upload-dropzone {
    border: 2px dashed rgba(236, 72, 153, 0.4);
    background: rgba(14, 20, 36, 0.75);
    border-radius: 12px;
    padding: 1.3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    box-sizing: border-box;
}

.upload-dropzone:hover, .upload-dropzone.drag-over {
    border-color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
    border: 1px solid rgba(236, 72, 153, 0.5);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.upload-btn:hover {
    background: rgba(236, 72, 153, 0.4);
    transform: translateY(-1px);
}

.dropzone-text-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.file-name-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
    word-break: break-all;
}

.file-specs-text {
    font-size: 0.72rem;
    color: var(--text-sub);
}

.clear-file-action {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0.2rem;
}

.quick-demo-box {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

.quick-demo-title {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--fm-amber);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.quick-demo-buttons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.demo-preset-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.demo-preset-btn:hover {
    background: rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.5);
    color: #fff;
    transform: translateY(-1px);
}

/* 4-Card KPI Metric Grid */
.analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    width: 100%;
}

.kpi-card {
    background: linear-gradient(180deg, rgba(16, 24, 43, 0.92) 0%, rgba(10, 15, 28, 0.97) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ec4899, #a855f7);
}

.kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpi-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-sub);
}

.kpi-icon {
    font-size: 1.25rem;
    color: var(--fm-pink);
}

.kpi-value-row {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.kpi-big-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.kpi-scale {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-sub);
}

.kpi-sentiment-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #f472b6;
}

.kpi-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    overflow: hidden;
    margin-top: 0.2rem;
}

.kpi-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ec4899 0%, #a855f7 100%);
    border-radius: 50px;
    transition: width 0.8s ease;
}

.kpi-subtext {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Timeline & Insights Lists */
.topics-timeline-list, .insights-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.topic-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.topic-card:hover {
    background: rgba(26, 35, 62, 0.95);
    border-color: rgba(236, 72, 153, 0.4);
}

.topic-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.topic-duration-badge {
    font-family: var(--font-digital);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--fm-amber);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    white-space: nowrap;
}

.topic-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

.topic-sentiment-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    white-space: nowrap;
}

.insight-card {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.2rem;
    border-radius: 10px;
    border-left: 3px solid var(--fm-amber);
    transition: var(--transition-smooth);
}

.insight-card:hover {
    background: rgba(26, 35, 62, 0.95);
    border-color: rgba(245, 158, 11, 0.4);
}

.insight-icon-box {
    font-size: 1.4rem;
    color: var(--fm-amber);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.insight-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.insight-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.insight-detail {
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.6;
}

.song-coherence-quote {
    font-size: 0.82rem;
    color: var(--text-sub);
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    border-left: 3px solid #ef4444;
    margin-top: 0.6rem;
}

/* ==========================================================================
   INTERACTIVE FM TUNER, PIPELINE STEPPER & TELEPROMPTER ZOOM CONTROLS
   ========================================================================== */
.tuner-scale-container {
    cursor: pointer;
    user-select: none;
    transition: var(--transition-smooth);
}

.tuner-scale-container:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 15px rgba(245, 158, 11, 0.15);
}

/* DJ Studio Keyboard Shortcuts Legend */
.dj-shortcuts-legend {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.4rem;
}

.shortcut-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-sub);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
}

.shortcut-tag kbd {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
}

/* Dynamic Generation Stepper */
.broadcast-pipeline-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    max-width: 480px;
    margin-top: 0.8rem;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.pipeline-step .step-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.pipeline-step.active {
    color: #fff;
}

.pipeline-step.active .step-badge {
    background: linear-gradient(135deg, var(--fm-amber) 0%, var(--fm-pink) 100%);
    border-color: var(--fm-amber);
    color: #fff;
    box-shadow: 0 0 16px var(--fm-amber-glow);
    animation: pulseStep 1.2s infinite alternate;
}

.pipeline-step.done .step-badge {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
}

.pipeline-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    max-width: 45px;
}

@keyframes pulseStep {
    0% { transform: scale(0.95); box-shadow: 0 0 8px var(--fm-amber-glow); }
    100% { transform: scale(1.1); box-shadow: 0 0 20px var(--fm-pink-glow); }
}

/* Teleprompter Font Resizer */
.prompter-font-resizer {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.btn-font-zoom {
    background: transparent;
    border: none;
    color: var(--text-sub);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.45rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-font-zoom:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-font-zoom:active {
    background: var(--fm-purple);
    color: #fff;
}

/* Custom Dropdown Fast Search Input Filter */
.fm-dropdown-search-box {
    padding: 0.4rem 0.5rem 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    background: rgba(10, 15, 28, 0.98);
    z-index: 10;
}

.fm-dropdown-search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    outline: none;
    box-sizing: border-box;
}

.fm-dropdown-search-input:focus {
    border-color: var(--fm-amber);
    box-shadow: 0 0 8px var(--fm-amber-glow);
}


