/* ============================================
   IMMERSIVE PLAYER STYLES
   Glassmorphism design with smooth animations
   ============================================ */

/* Player Container - POSITIONED AT TOP OF PAGE */
.immersive-player {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    margin: 0 auto 40px auto;
    border-radius: 8px;
    overflow: visible;
    background: linear-gradient(135deg, rgba(15, 18, 21, 0.98), rgba(30, 35, 40, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7);
}

/* Visual Container */
.visual-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 60px;
    opacity: 1;
    transition: opacity 0.8s ease;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    perspective: 400px; /* Enables 3D child transforms */
}

.visual-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Fallback gradient if image fails */
    background: 
        radial-gradient(ellipse at top left, rgba(212, 175, 55, 0.15), transparent 50%),
        radial-gradient(ellipse at top right, rgba(100, 50, 200, 0.12), transparent 50%),
        radial-gradient(ellipse at bottom, rgba(50, 150, 200, 0.1), transparent 60%),
        linear-gradient(135deg, rgba(15, 18, 21, 0.95), rgba(25, 30, 35, 0.98));
    /* Background image (this is the correct path that was working!) */
    background-image: url('images/room-background.png');
    background-size: cover;
    background-position: center;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.8s ease;
    z-index: 0;
}

/* Animated text overlay - FIXED z-index */
.visual-container::after {
    content: 'Customise your immersive experience in our immersion player';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(212, 175, 55, 0.8);
    font-size: 1.2rem;
    font-weight: 300;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    max-width: 80%;
    line-height: 1.6;
    animation: pulseGlow 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    text-shadow: 
        0 0 20px rgba(212, 175, 55, 0.6),
        0 0 40px rgba(212, 175, 55, 0.4),
        0 0 60px rgba(212, 175, 55, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

@keyframes pulseGlow {
    0%, 100% { 
        opacity: 0.5;
        text-shadow: 
            0 0 20px rgba(212, 175, 55, 0.6),
            0 0 40px rgba(212, 175, 55, 0.4),
            0 0 60px rgba(212, 175, 55, 0.2),
            0 2px 4px rgba(0, 0, 0, 0.8);
    }
    50% { 
        opacity: 1;
        text-shadow: 
            0 0 30px rgba(212, 175, 55, 0.8),
            0 0 60px rgba(212, 175, 55, 0.6),
            0 0 90px rgba(212, 175, 55, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.8);
    }
}

.visual-container.has-content::after {
    opacity: 0 !important;
    pointer-events: none;
}

.visual-container.has-content::before {
    opacity: 0 !important;
    transition: opacity 0.4s ease;
}

.visual-video,
.visual-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: none;
    z-index: 2;
}

/* Player Controls Bar */
.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.85));
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    z-index: 10;
}

.controls-left,
.controls-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.controls-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.button-row {
    display: flex;
    gap: 8px;
}

.clear-below {
    width: auto; /* Only width of text */
    min-width: 70px;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    color: rgba(212, 175, 55, 0.9);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.control-btn .icon {
    font-size: 0.9rem;
    font-weight: 400;
}

.control-btn.master-control {
    padding: 8px 12px;
    min-width: 40px;
    justify-content: center;
}

.control-btn.muted {
    background: rgba(255, 50, 50, 0.1);
    border-color: rgba(255, 50, 50, 0.4);
    color: rgba(255, 100, 100, 0.9);
}

/* Mini Clear Buttons */
.control-btn-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 28px;
    padding: 0 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 50, 50, 0.4);
    border-radius: 4px;
    color: rgba(255, 80, 80, 0.9);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn-mini:hover {
    background: rgba(255, 50, 50, 0.15);
    border-color: rgba(255, 80, 80, 0.7);
    color: rgba(255, 100, 100, 1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 50, 50, 0.3);
}

.control-btn-mini .icon-mini {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1;
}



/* Volume Mixer */
.volume-mixer {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0 12px;
    border-left: 1px solid rgba(212, 175, 55, 0.1);
    min-width: 200px;
}

.volume-mixer.empty {
    display: none;
}

.volume-mixer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.volume-mixer-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    white-space: nowrap;
}

.volume-mixer-slider {
    width: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.volume-mixer-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: #D4AF37;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-mixer-slider::-webkit-slider-thumb:hover {
    background: #FFD700;
    transform: scale(1.2);
}

.volume-mixer-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #D4AF37;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-mixer-value {
    font-size: 0.6rem;
    color: rgba(212, 175, 55, 0.8);
    font-weight: 600;
    min-width: 25px;
    text-align: center;
}

/* Drawer Base Styles - FULL HEIGHT */
.drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 380px;
    background: rgba(12, 15, 18, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
}

.drawer-left {
    left: 0;
    border-right-width: 1px;
    border-left: none;
}

.drawer-right {
    right: 0;
    border-left-width: 1px;
    border-right: none;
    transform: translateX(100%);
}

.drawer.open {
    transform: translateX(0);
}

/* Smooth close animation */
.drawer.closing {
    transform: translateX(-100%);
}

.drawer-right.closing {
    transform: translateX(100%);
}

/* Drawer Header */
.drawer-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.drawer-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(212, 175, 55, 0.95);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.drawer-close {
    background: transparent;
    border: none;
    color: rgba(220, 50, 50, 0.85); /* Red ⊗ */
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.drawer-close:hover {
    color: #ff3333;
    background: rgba(220, 50, 50, 0.12);
    transform: scale(1.15);
}

/* Drawer Content */
.drawer-content {
    padding: 24px;
}

/* Section with Dropdown/Accordion */
.section {
    margin-bottom: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.section-header:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.35);
}

.section-header h4 {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.section-toggle {
    font-size: 1rem;
    color: rgba(212, 175, 55, 0.7);
    transition: transform 0.3s ease;
    font-weight: 300;
}

.section.expanded .section-toggle {
    transform: rotate(180deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.expanded .section-content {
    max-height: 2000px;
    padding-top: 12px;
}

.section h4 {
    margin: 0 0 12px 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding-bottom: 8px;
}

.section-desc {
    margin: 8px 0 16px 0;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
    font-weight: 300;
}

/* Frequency Section Accordion */
.freq-section-collapsible {
    margin-bottom: 12px;
}

.freq-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.freq-section-header:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.35);
}

.freq-section-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.freq-section-arrow {
    font-size: 0.75rem;
    color: rgba(212, 175, 55, 0.7);
    transition: transform 0.3s ease;
}

.freq-section-collapsible.expanded .freq-section-arrow {
    transform: rotate(180deg);
}

.freq-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.freq-section-collapsible.expanded .freq-section-content {
    max-height: 2000px;
    padding-top: 12px;
}

.freq-section-desc {
    margin: 0 0 12px 0;
    padding: 0 4px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
    font-weight: 300;
}

/* Option Grid (for visual cards) */
.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.option-card:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-1px);
    color: rgba(212, 175, 55, 0.95);
}

.option-card.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
    color: #D4AF37;
}

.card-icon {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(212, 175, 55, 0.7);
}

.card-name {
    text-align: center;
    line-height: 1.4;
}

/* Frequency List */
.freq-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Collapsible Frequency Section */
.freq-section-collapsible {
    margin-bottom: 16px;
}

.freq-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.freq-section-header:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

.freq-section-header.active {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.5);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
}

.freq-section-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(212, 175, 55, 0.95);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.freq-section-arrow {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.freq-section-header.active .freq-section-arrow {
    transform: rotate(180deg);
}

.freq-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.freq-section-content.open {
    max-height: 2000px;
    padding: 10px;
}

.freq-section-desc {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
    margin-bottom: 10px;
    padding: 0 4px;
}

.freq-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.freq-item:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

.freq-item.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.freq-hz {
    font-weight: 600;
    color: rgba(212, 175, 55, 0.95);
    letter-spacing: 0.3px;
}

.freq-benefit {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 300;
}

/* Music List */
.music-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.music-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-item:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

.music-item.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.music-icon {
    font-size: 0.8rem;
    color: rgba(212, 175, 55, 0.7);
}

.music-name {
    flex: 1;
    font-weight: 400;
}

/* Volume Control */
.volume-control {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.volume-control label {
    display: block;
    margin-bottom: 10px;
    color: #D4AF37;
    font-size: 0.85rem;
    font-weight: 500;
}

.volume-slider {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #D4AF37;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: #FFD700;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #D4AF37;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

#volumeValue,
#guidedVolumeValue {
    display: inline-block;
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

/* Drone Toggle */
.special-section {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.drone-toggle {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background: rgba(212, 175, 55, 0.3);
    border-color: #D4AF37;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    left: 26px;
    background: #D4AF37;
}

.toggle-text {
    flex: 1;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

.drone-desc {
    margin: 0;
    padding-left: 62px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Action Buttons */
.action-btn {
    width: 100%;
    padding: 10px;
    background: rgba(255, 50, 50, 0.08);
    border: 1px solid rgba(255, 50, 50, 0.25);
    border-radius: 4px;
    color: rgba(255, 100, 100, 0.9);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn:hover {
    background: rgba(255, 50, 50, 0.15);
    border-color: rgba(255, 50, 50, 0.4);
}

.action-btn span {
    margin-right: 6px;
    font-size: 0.8rem;
}

/* Scrollbar Styling */
.drawer::-webkit-scrollbar {
    width: 8px;
}

.drawer::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.drawer::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}

.drawer::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .immersive-player {
        height: auto; /* Let it expand to fit controls */
        min-height: 450px;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
    }
    
    .visual-container {
        position: relative; /* Changed from absolute */
        width: 100%;
        height: 350px; /* Fixed player window height */
        order: 1; /* First */
    }
    
    .drawer {
        width: 100%;
        max-width: 340px;
    }
    
    .player-controls {
        position: relative; /* Changed from absolute */
        order: 2; /* Second, after visual container */
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        padding: 12px;
        align-items: flex-start;
        height: auto; /* Let it expand to fit all buttons */
        min-height: auto;
        overflow: visible; /* No hidden overflow */
        box-sizing: border-box;
    }
    
    /* Top row: Videos/Geometry LEFT, Frequency/GuidedJourney/Music RIGHT */
    .controls-left,
    .controls-right {
        flex: 1;
        min-width: 45%;
        max-width: 48%;
        height: auto; /* Remove constraints */
        overflow: visible; /* No scrolling */
    }
    
    /* Bottom row: Help + Mixer + Mute centered, full width */
    .controls-center {
        order: 3;
        flex-basis: 100%;
        width: 100%;
        flex-direction: row;
        gap: 4px;
        margin-top: 8px;
        height: auto;
        overflow: visible;
        box-sizing: border-box;
        align-items: center;
    }
    
    .button-row {
        width: 100%;
        flex-direction: column;
        gap: 4px;
    }
    
    .control-btn {
        width: 100%;
        padding: 8px 10px;
        font-size: 0.7rem;
        justify-content: center;
    }
    
    .control-btn .label {
        display: inline;
    }
    
    .control-btn-mini.clear-below {
        width: auto;
        min-width: 60px;
        padding: 6px 10px;
        font-size: 0.6rem;
        flex-shrink: 0;
    }
    
    /* MOBILE: Compact volume mixer */
    .volume-mixer {
        flex: 1;
        justify-content: flex-start;
        padding: 4px;
        border: 1px solid rgba(212, 175, 55, 0.1);
        border-radius: 4px;
        background: rgba(0, 0, 0, 0.2);
        min-width: 0;
        max-width: none;
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        box-sizing: border-box;
    }
    
    .volume-mixer-item {
        min-width: 55px;
        flex-shrink: 0;
    }
    
    .volume-mixer-label {
        font-size: 0.5rem;
    }
    
    .volume-mixer-slider {
        width: 35px;
    }
    
    .volume-mixer-value {
        font-size: 0.5rem;
    }
    
    .control-btn.master-control {
        padding: 6px 8px;
        min-width: 36px;
        max-width: 44px;
        width: auto;
        flex-shrink: 0;
    }
    
    .control-btn.master-control .icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .immersive-player {
        height: 380px;
        margin-bottom: 20px;
    }
    
    .option-grid {
        grid-template-columns: 1fr;
    }
    
    .drawer {
        max-width: 300px;
    }
}

/* ========== VIDEO LOADING OVERLAY ========== */
.video-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    gap: 20px;
}

.video-loading-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Three concentric pulsing rings */
.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #FFD700;
    animation: spinnerRotate 1.4s linear infinite;
}

.spinner-ring-2 {
    inset: 10px;
    border-top-color: #FFA500;
    animation-duration: 1.0s;
    animation-direction: reverse;
}

.spinner-ring-3 {
    inset: 20px;
    border-top-color: #FFE066;
    animation-duration: 0.7s;
}

@keyframes spinnerRotate {
    to { transform: rotate(360deg); }
}

/* Pulsing centre dot */
.loading-spinner::after {
    content: '';
    position: absolute;
    inset: 32px;
    border-radius: 50%;
    background: #FFD700;
    opacity: 0.6;
    animation: spinnerPulse 1.4s ease-in-out infinite;
}

@keyframes spinnerPulse {
    0%, 100% { transform: scale(0.8); opacity: 0.4; }
    50%       { transform: scale(1.2); opacity: 0.9; }
}

.loading-text {
    color: rgba(255, 215, 0, 0.85);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    animation: loadingTextPulse 2s ease-in-out infinite;
}

@keyframes loadingTextPulse {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1.0; }
}

/* ========== HELP DRAWER SECTIONS ========== */
.help-section {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.help-section:last-child {
    border-bottom: none;
}

.help-section h3 {
    color: #D4AF37;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.help-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 8px 0;
}

.help-section ol,
.help-section ul {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 12px 0;
    padding-left: 24px;
}

.help-section li {
    margin: 6px 0;
}

.help-section strong {
    color: #D4AF37;
    font-weight: 400;
}

/* ========== FOOTER ========== */
.page-footer {
    position: relative;
    width: 100%;
    padding: 20px 32px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-link {
    color: #D4AF37;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #FFE066;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.footer-separator {
    color: rgba(212, 175, 55, 0.3);
    font-size: 0.75rem;
}

.footer-btn {
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-donate {
    background: rgba(255, 75, 75, 0.15);
    border-color: rgba(255, 75, 75, 0.4);
}

.footer-donate:hover {
    background: rgba(255, 75, 75, 0.25);
    border-color: rgba(255, 75, 75, 0.6);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .footer-left,
    .footer-right {
        width: 100%;
        justify-content: center;
    }
}

/* ========== PORTAL ANIMATION ========== */
.portal-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border-radius: 8px 8px 0 0;
    opacity: 1;
    animation: portalFadeOut 0.8s ease 6s forwards;
}

.portal-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    opacity: 0;
    animation: portalVideoFadeIn 0.6s ease forwards;
}

@keyframes portalVideoFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes portalFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ========== CORNER FLOATING ANIMATIONS ========== */
/* Each corner slowly drifts in its outer region, avoiding the center */

/* Top-left corner - floats around upper-left perimeter */
@keyframes cornerFloat1 {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-8vw, -5vh);
    }
    50% {
        transform: translate(-12vw, 8vh);
    }
    75% {
        transform: translate(-5vw, 12vh);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* Top-right corner - floats around upper-right perimeter */
@keyframes cornerFloat2 {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(8vw, -5vh);
    }
    50% {
        transform: translate(12vw, 8vh);
    }
    75% {
        transform: translate(5vw, 12vh);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* Bottom-left corner - floats around lower-left perimeter */
@keyframes cornerFloat3 {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-8vw, 5vh);
    }
    50% {
        transform: translate(-12vw, -8vh);
    }
    75% {
        transform: translate(-5vw, -12vh);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* Bottom-right corner - floats around lower-right perimeter */
@keyframes cornerFloat4 {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(8vw, 5vh);
    }
    50% {
        transform: translate(12vw, -8vh);
    }
    75% {
        transform: translate(5vw, -12vh);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* ========== MOBILE RESPONSIVE CORNER ANIMATIONS ========== */
@media (max-width: 768px) {
    /* Smaller sizes for mobile, positions are percentage-based so adjust naturally */
    .corner-merkaba {
        width: 35px !important;
        height: 35px !important;
    }
    
    .corner-merkaba svg {
        width: 35px !important;
        height: 35px !important;
    }
    
    .corner-3d-geometry {
        width: 40px !important;
        height: 40px !important;
    }
    
    .corner-3d-geometry canvas {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* Floating stays in outer regions on mobile - smaller movements */
    @keyframes cornerFloat1 {
        0%, 100% { transform: translate(0, 0); }
        25% { transform: translate(-5vw, -3vh); }
        50% { transform: translate(-8vw, 5vh); }
        75% { transform: translate(-3vw, 8vh); }
    }
    
    @keyframes cornerFloat2 {
        0%, 100% { transform: translate(0, 0); }
        25% { transform: translate(5vw, -3vh); }
        50% { transform: translate(8vw, 5vh); }
        75% { transform: translate(3vw, 8vh); }
    }
    
    @keyframes cornerFloat3 {
        0%, 100% { transform: translate(0, 0); }
        25% { transform: translate(-5vw, 3vh); }
        50% { transform: translate(-8vw, -5vh); }
        75% { transform: translate(-3vw, -8vh); }
    }
    
    @keyframes cornerFloat4 {
        0%, 100% { transform: translate(0, 0); }
        25% { transform: translate(5vw, 3vh); }
        50% { transform: translate(8vw, -5vh); }
        75% { transform: translate(3vw, -8vh); }
    }
}
        height: 50px !important;
    }
}

@media (max-width: 480px) {
    /* Even smaller for tiny screens, percentage positioning adjusts naturally */
    .corner-merkaba {
        width: 28px !important;
        height: 28px !important;
    }
    
    .corner-merkaba svg {
        width: 28px !important;
        height: 28px !important;
    }
    
    .corner-3d-geometry {
        width: 32px !important;
        height: 32px !important;
    }
    
    .corner-3d-geometry canvas {
        width: 32px !important;
        height: 32px !important;
    }
    
    /* Very gentle floating in outer regions on small screens */
    @keyframes cornerFloat1 {
        0%, 100% { transform: translate(0, 0); }
        25% { transform: translate(-3vw, -2vh); }
        50% { transform: translate(-5vw, 3vh); }
        75% { transform: translate(-2vw, 5vh); }
    }
    
    @keyframes cornerFloat2 {
        0%, 100% { transform: translate(0, 0); }
        25% { transform: translate(3vw, -2vh); }
        50% { transform: translate(5vw, 3vh); }
        75% { transform: translate(2vw, 5vh); }
    }
    
    @keyframes cornerFloat3 {
        0%, 100% { transform: translate(0, 0); }
        25% { transform: translate(-3vw, 2vh); }
        50% { transform: translate(-5vw, -3vh); }
        75% { transform: translate(-2vw, -5vh); }
    }
    
    @keyframes cornerFloat4 {
        0%, 100% { transform: translate(0, 0); }
        25% { transform: translate(3vw, 2vh); }
        50% { transform: translate(5vw, -3vh); }
        75% { transform: translate(2vw, -5vh); }
    }
}