/**
 * ==============================================================================
 * BẢO TÀNG NGHỆ THUẬT 3D - BẢNG ĐIỀU KHIỂN & GIAO DIỆN KÍNH MỜ (STYLE.CSS)
 * ==============================================================================
 */

/* Tùy chỉnh thanh cuộn siêu mỏng */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.4);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.8);
}

/* Hiệu ứng kính mờ Glassmorphism cao cấp */
.glass-panel {
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.glass-pill {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-pill:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(245, 158, 11, 0.4);
}

/* Hiệu ứng sóng âm thanh Audio Visualizer */
.audio-bar {
    width: 3px;
    height: 12px;
    background-color: #f59e0b;
    border-radius: 9999px;
    animation: soundWave 1.2s ease-in-out infinite;
}
.audio-bar:nth-child(1) { animation-delay: 0.1s; }
.audio-bar:nth-child(2) { animation-delay: 0.3s; }
.audio-bar:nth-child(3) { animation-delay: 0.2s; }
.audio-bar:nth-child(4) { animation-delay: 0.4s; }

@keyframes soundWave {
    0%, 100% { height: 6px; }
    50% { height: 22px; }
}

/* Con trỏ ngắm tâm màn hình (Reticle / Crosshair) */
.aim-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s, background-color 0.2s;
}
.aim-dot.hovering {
    transform: scale(2.2);
    background-color: #f59e0b;
    box-shadow: 0 0 12px #f59e0b;
}

/* Extreme Zoom Canvas styling */
#zoomCanvas {
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}
#zoomCanvas:active {
    cursor: grabbing;
}

/* Playlist item list */
.playlist-art-item {
    transition: all 0.2s ease-in-out;
}
.playlist-art-item:hover {
    color: #fbbf24;
    background-color: rgba(251, 191, 36, 0.08);
    transform: translateX(3px);
}

/* Boxed exhibition container shadow & framing */
.museum-box-framed {
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 158, 11, 0.05);
}

/* Sidebar auto-collapse toggle button pulse */
@keyframes sidebarBtnPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px 4px rgba(245, 158, 11, 0.15); }
}

/* Sidebar panel smooth transitions */
#sidebarPanel {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ==============================================================================
 * BGM WIDGET & EQUALIZER VISUALIZER STYLES
 * ============================================================================== */
.bgm-bar {
    display: inline-block;
    width: 2.5px;
    height: 12px;
    background: linear-gradient(to top, #d97706, #fbbf24);
    border-radius: 9999px;
    animation: bgmWave 1.1s ease-in-out infinite alternate;
}
.bgm-bar:nth-child(1) { animation-delay: 0.1s; height: 8px; }
.bgm-bar:nth-child(2) { animation-delay: 0.35s; height: 14px; }
.bgm-bar:nth-child(3) { animation-delay: 0.2s; height: 10px; }
.bgm-bar:nth-child(4) { animation-delay: 0.45s; height: 16px; }

.bgm-bar.paused {
    animation-play-state: paused !important;
    height: 3px !important;
    opacity: 0.4;
}

@keyframes bgmWave {
    0% { height: 4px; }
    50% { height: 16px; }
    100% { height: 7px; }
}

/* Custom Volume Slider */
.bgm-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    outline: none;
    transition: background 0.2s;
}
.bgm-slider:hover {
    background: rgba(255, 255, 255, 0.25);
}
.bgm-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.bgm-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.9);
}
.bgm-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f59e0b;
    border: none;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
    cursor: pointer;
}

/* Autoplay notification pulse ring */
@keyframes bgmPulseRing {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 0.2; }
    100% { transform: scale(0.95); opacity: 0.8; }
}
.bgm-pulse-ring {
    animation: bgmPulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==============================================================================
 * BGM WIDGET AUTO-HIDE & MINIMIZED BUTTON
 * ============================================================================== */
:root {
    --bgm-min-opacity: 0.5;
}

#bgmWidget {
    transition: opacity 0.4s ease, transform 0.3s ease;
}

#bgmPill {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#bgmWidget.is-minimized {
    opacity: var(--bgm-min-opacity);
    cursor: pointer;
}

#bgmWidget.is-minimized:hover,
#bgmWidget:hover,
#bgmWidget:focus-within {
    opacity: 1 !important;
}

#bgmWidget.is-minimized #bgmPill {
    padding: 0;
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 12px rgba(245, 158, 11, 0.25);
    justify-content: center;
}

#bgmWidget.is-minimized #bgmPill:hover {
    transform: scale(1.08);
    border-color: rgba(245, 158, 11, 0.9);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7), 0 0 16px rgba(245, 158, 11, 0.4);
}

#bgmWidget.is-minimized .bgm-hide-on-mini {
    display: none !important;
}

#bgmMiniIcon {
    display: none;
}

#bgmWidget.is-minimized #bgmMiniIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}


