/* --- Global & Layout Refinement --- */
body {
    background-color: #000;
    color: #fff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden; /* Prevent laser sweep from causing horizontal scroll */
}

.sidebar {
    background-color: #0a0a0a !important;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.1);
}

.gap-2 { gap: 0.5rem !important; }

/* --- Admin UI: Amethyst Branding --- */
.table-purple-text tbody td {
    color: #c296d4 !important;
}

/* --- Custom Purple Outline Button --- */
.btn-outline-purple {
    color: #bb8fce;
    border: 1px solid #bb8fce;
    background-color: transparent;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-outline-purple:hover {
    color: #000;
    background-color: #bb8fce;
    border-color: #bb8fce;
}

.btn-outline-purple:focus {
    box-shadow: 0 0 0 0.25rem rgba(187, 143, 206, 0.4);
}

.btn-outline-purple:active {
    background-color: #a569bd;
    border-color: #a569bd;
    color: #000;
}

/* --- Hero Branding Section --- */
.hero-section {
    background: radial-gradient(circle, #1a1a1a 0%, #000 100%);
    padding: 80px 0;
    border-bottom: 1px solid #222;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* 128 BPM Room Pulse */
    animation: background-pulse 0.46875s infinite;
}

/* Container to align speakers and logo */
.hero-main-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px; 
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 5;
}

.hero-logo-large {
    display: block !important;
    margin: 0 !important;
    width: auto !important;
    max-width: 500px !important; 
    max-height: 350px !important; 
    filter: drop-shadow(0 0 15px rgba(187, 143, 206, 0.4));
    transition: transform 0.5s ease, filter 0.5s ease;
    animation: purple-pulse 2.33s infinite ease-in-out;
}

/* --- Lighting & Effects --- */

/* Lasers */
.laser-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.laser {
    position: absolute;
    top: 0; width: 2px; height: 1000px;
    opacity: 0.4;
    transform-origin: top;
}

.laser:nth-child(1) { left: 20%; background: #0ff; animation: laser-sweep 3s infinite alternate; }
.laser:nth-child(2) { left: 40%; background: #f0f; animation: laser-sweep 4s infinite alternate-reverse; }
.laser:nth-child(3) { left: 60%; background: #0f0; animation: laser-sweep 2.5s infinite alternate; }
.laser:nth-child(4) { left: 80%; background: #ff0; animation: laser-sweep 5s infinite alternate-reverse; }

/* --- NEW: LED Scrolling Sign --- */
.speaker-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.led-sign {
    width: 140px; /* Matches speaker width */
    height: 35px;
    background: #000;
    border: 3px solid #222;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5), inset 0 0 10px #000;
}

/* The Dot-Matrix Overlay Effect */
.led-sign::before {
    content: " ";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Changed: Made the black dots slightly transparent (0.7) so light leaks through */
    background-image: radial-gradient(circle, rgba(0,0,0,0) 1.2px, rgba(0,0,0,0.7) 1.2px);
    background-size: 3px 3px;
    z-index: 10;
    pointer-events: none;
}

.led-text {
    white-space: nowrap;
    position: absolute;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 5;
    animation: led-scroll 8s linear infinite, led-color-cycle 4s linear infinite;
}

/* --- Speaker Mechanics --- */
.speaker {
    width: 140px;
    height: 300px;
    background: linear-gradient(145deg, #111, #050505);
    border: 4px solid #1a1a1a;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 20px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.woofer {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #222 10%, #080808 80%);
    border: 4px solid #151515;
    border-radius: 50%;
    position: relative;
    animation: speaker-thump 0.46875s infinite ease-in-out;
}

.woofer::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 30px; height: 30px;
    background: #111;
    border-radius: 50%;
    border: 1px solid #bb8fce;
    box-shadow: 0 0 10px rgba(187, 143, 206, 0.3);
}

/* --- Animations --- */

@keyframes led-scroll {
    0% { transform: translateX(140px); }
    100% { transform: translateX(-100%); }
}

@keyframes led-color-cycle {
    0%   { color: #ff3333; text-shadow: 0 0 12px #ff0000, 0 0 20px #ff0000; }
    25%  { color: #33ff33; text-shadow: 0 0 12px #00ff00, 0 0 20px #00ff00; }
    50%  { color: #33ffff; text-shadow: 0 0 12px #00ffff, 0 0 20px #00ffff; }
    75%  { color: #ff33ff; text-shadow: 0 0 12px #ff00ff, 0 0 20px #ff00ff; }
    100% { color: #ff3333; text-shadow: 0 0 12px #ff0000, 0 0 20px #ff0000; }
}

@keyframes purple-pulse {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(187, 143, 206, 0.4)); transform: scale(1); }
    10% { filter: drop-shadow(0 0 60px rgba(187, 143, 206, 0.9)); transform: scale(1.03); }
}

@keyframes speaker-thump {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.15); box-shadow: 0 0 20px rgba(187, 143, 206, 0.4); }
}

@keyframes laser-sweep {
    0% { transform: rotate(-35deg); box-shadow: 0 0 15px currentColor; }
    100% { transform: rotate(35deg); box-shadow: 0 0 25px currentColor; }
}

@keyframes background-pulse {
    0%, 100% { background-color: #000; }
    10% { background-color: #0a0512; }
}

/* --- Other UI Elements --- */
.text-gradient {
    background: linear-gradient(45deg, #bb8fce, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.waveform-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 60px;
}

.bar {
    width: 6px;
    background: #bb8fce;
    border-radius: 2px;
    height: 10px;
    transition: height 0.05s ease;
}
.bar:nth-child(even) { background: #3498db; }
.bar:nth-child(3n) { background: #e74c3c; }

audio.custom-player {
    filter: invert(100%) hue-rotate(180deg) brightness(1.5);
    opacity: 0.8;
}

@media (max-width: 992px) {
    .hero-main-display { gap: 0; }
    .speaker-unit, .laser-container { display: none !important; }
}

/* Force Bootstrap Icons to use their own font-family */
[class^="bi-"]::before, 
[class*=" bi-"]::before {
    font-family: "bootstrap-icons" !important;
    display: inline-block;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1;
    vertical-align: -.125em;
    -webkit-font-smoothing: antialiased;
}

/* Specific styling for the Barbie Glass */
.bi-glass-cocktail {
    filter: drop-shadow(0 0 5px rgba(255, 105, 180, 0.5));
}