/* ===================================================
   3D Christmas Tree - Visual Presentation & UI Styles (100% Offline & Zero External CDN)
   =================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #040810;
    transition: background 0.8s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #ffffff;
    user-select: none;
}

/* ===================================================
   6 Aesthetic Themes Background & Accents
   =================================================== */

/* 1. 暖金绿 */
body.theme-emeraldGold,
body.theme-emerald_gold {
    background: radial-gradient(circle at 50% 45%, #0d231c 0%, #051118 45%, #02050a 100%);
}

/* 2. 极光蓝 */
body.theme-auroraBlue,
body.theme-ice_blue {
    background: radial-gradient(circle at 50% 45%, #0c213b 0%, #061124 45%, #020612 100%);
}
body.theme-auroraBlue .lock-card,
body.theme-ice_blue .lock-card {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(56, 189, 248, 0.2);
}
body.theme-auroraBlue .lock-title,
body.theme-auroraBlue .opening-title,
body.theme-ice_blue .lock-title,
body.theme-ice_blue .opening-title {
    background: linear-gradient(135deg, #ffffff 0%, #bae6fd 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3. 樱花粉 */
body.theme-sakuraPink,
body.theme-rose_snow_gold {
    background: radial-gradient(circle at 50% 45%, #2a1024 0%, #140818 45%, #07030a 100%);
}
body.theme-sakuraPink .lock-card,
body.theme-rose_snow_gold .lock-card {
    border-color: rgba(244, 114, 182, 0.45);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(244, 114, 182, 0.2);
}
body.theme-sakuraPink .lock-title,
body.theme-sakuraPink .opening-title,
body.theme-rose_snow_gold .lock-title,
body.theme-rose_snow_gold .opening-title {
    background: linear-gradient(135deg, #ffffff 0%, #fbcfe8 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 4. 香槟白 */
body.theme-champagneWhite,
body.theme-champagne_white {
    background: radial-gradient(circle at 50% 45%, #1e1b18 0%, #100f12 45%, #050507 100%);
}
body.theme-champagneWhite .lock-card,
body.theme-champagne_white .lock-card {
    border-color: rgba(254, 240, 138, 0.45);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(254, 240, 138, 0.2);
}
body.theme-champagneWhite .lock-title,
body.theme-champagneWhite .opening-title,
body.theme-champagne_white .lock-title,
body.theme-champagne_white .opening-title {
    background: linear-gradient(135deg, #ffffff 0%, #fef3c7 50%, #fde68a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 5. 黑金流沙 */
body.theme-obsidianGold,
body.theme-obsidian_gold {
    background: radial-gradient(circle at 50% 45%, #16140f 0%, #0a0907 45%, #030302 100%);
}
body.theme-obsidianGold .lock-card,
body.theme-obsidian_gold .lock-card {
    border-color: rgba(234, 179, 8, 0.45);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(234, 179, 8, 0.2);
}
body.theme-obsidianGold .lock-title,
body.theme-obsidianGold .opening-title,
body.theme-obsidian_gold .lock-title,
body.theme-obsidian_gold .opening-title {
    background: linear-gradient(135deg, #ffffff 0%, #fef08a 50%, #eab308 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 6. 紫罗兰星云 */
body.theme-violetNebula,
body.theme-mystic_aurora {
    background: radial-gradient(circle at 50% 45%, #240d3a 0%, #11061e 45%, #05020a 100%);
}
body.theme-violetNebula .lock-card,
body.theme-mystic_aurora .lock-card {
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(168, 85, 247, 0.2);
}
body.theme-violetNebula .lock-title,
body.theme-violetNebula .opening-title,
body.theme-mystic_aurora .lock-title,
body.theme-mystic_aurora .opening-title {
    background: linear-gradient(135deg, #ffffff 0%, #e9d5ff 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#tree-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: grab;
}

#tree-container:active {
    cursor: grabbing;
}

#fx-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* ===================================================
   Opening Mask & Luxury Ceremony
   =================================================== */

.opening-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(16, 28, 48, 0.95) 0%, rgba(4, 8, 16, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.2s;
}

.opening-mask.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.opening-content {
    text-align: center;
    max-width: 560px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInScale 1.5s ease-out;
}

.star-badge {
    font-family: 'Cinzel', serif;
    letter-spacing: 4px;
    font-size: 13px;
    color: #e5b972;
    text-shadow: 0 0 12px rgba(229, 185, 114, 0.6);
    margin-bottom: 16px;
    opacity: 0.9;
}

.opening-title {
    font-family: 'Cinzel', serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    background: linear-gradient(135deg, #ffffff 0%, #fae29c 45%, #ffd700 80%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.35));
    margin-bottom: 16px;
}

.opening-subtitle {
    font-family: 'Noto Serif SC', serif;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 36px;
    max-width: 440px;
}

.glow-button {
    position: relative;
    padding: 16px 42px;
    border-radius: 40px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 170, 0, 0.1) 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.25), inset 0 0 15px rgba(255, 215, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.glow-button:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0 45px rgba(255, 215, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.85);
}

.glow-button:active {
    transform: translateY(1px) scale(0.98);
}

.opening-tip {
    margin-top: 22px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1px;
}

/* ===================================================
   Password Lock Card Styles
   =================================================== */

.lock-card {
    background: rgba(14, 22, 38, 0.82);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 24px;
    padding: 38px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(255, 215, 0, 0.18);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    max-width: 460px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    transition: all 0.3s ease;
}

.lock-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #fae29c 60%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.lock-hint {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: center;
    max-width: 380px;
}

.lock-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    align-items: center;
}

.lock-input {
    width: 100%;
    max-width: 360px;
    padding: 14px 18px;
    background: rgba(8, 12, 22, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: #ffffff;
    font-size: 15px;
    letter-spacing: 1.5px;
    outline: none;
    text-align: center;
    transition: all 0.3s ease;
}

.lock-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.45);
    background: rgba(12, 18, 32, 0.95);
}

.lock-input.input-error {
    border-color: #f43f5e !important;
    box-shadow: 0 0 22px rgba(244, 63, 94, 0.55) !important;
}

.lock-btn {
    width: 100%;
    max-width: 360px;
    padding: 14px;
    font-size: 15px;
}

.lock-error-text {
    margin-top: 14px;
    font-size: 13px;
    color: #fb7185;
    min-height: 20px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s ease;
    text-align: center;
}

.lock-error-text.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-8px); }
    30%, 60%, 90% { transform: translateX(8px); }
}

.shake {
    animation: shake 0.45s ease-in-out;
}

/* ===================================================
   Floating UI Overlay
   =================================================== */

.ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 统一纯净录屏模式：瞬间强制隐藏所有屏幕悬浮 UI 控件，零常驻角标防录屏穿帮 */
body.clean-record-mode .ui-overlay,
body.pure-mode .ui-overlay,
.ui-overlay.hidden,
body.clean-record-mode .top-brand,
body.clean-record-mode .controls-panel,
body.clean-record-mode .recording-tip,
body.clean-record-mode .stage-tip {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* 确保 3D 画布与打开的拍立得/视频弹窗不受影响 */
body.clean-record-mode #tree-container,
body.clean-record-mode #fx-canvas {
    visibility: visible !important;
}

body.clean-record-mode #photo-modal:not(.hidden),
body.clean-record-mode #video-modal:not(.hidden) {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* 纯净录屏模式 1 秒极轻提示（无任何常驻角标） */
.clean-mode-toast {
    position: fixed;
    top: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: rgba(10, 16, 28, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 16px rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 8px 22px;
    border-radius: 30px;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    user-select: none;
}

.clean-mode-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.clean-mode-toast.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
}

.top-brand {
    position: absolute;
    top: 24px;
    left: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(10, 16, 28, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.tree-icon {
    font-size: 18px;
    filter: drop-shadow(0 0 8px #ffd700);
}

.project-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
}

.controls-panel {
    position: absolute;
    bottom: 30px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
}

.morph-btn {
    height: 46px;
    padding: 0 18px;
    border-radius: 28px;
    border: 1px solid rgba(255, 215, 0, 0.45);
    background: linear-gradient(135deg, rgba(16, 26, 46, 0.88) 0%, rgba(28, 18, 48, 0.85) 100%);
    color: #ffffff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 215, 0, 0.22);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.morph-btn:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(255, 215, 0, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 215, 0, 0.45);
}

.morph-btn:active {
    transform: translateY(1px) scale(0.98);
}

.morph-icon {
    font-size: 16px;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6));
    transition: transform 0.4s ease;
}

.morph-btn:hover .morph-icon {
    transform: rotate(30deg) scale(1.15);
}

.morph-text {
    white-space: nowrap;
    background: linear-gradient(135deg, #ffffff 0%, #fae29c 60%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Theme accent adaptations for morph-btn */
body.theme-rose_snow_gold .morph-btn {
    border-color: rgba(244, 114, 182, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(244, 114, 182, 0.25);
}
body.theme-rose_snow_gold .morph-text {
    background: linear-gradient(135deg, #ffffff 0%, #fbcfe8 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.theme-ice_blue .morph-btn {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(56, 189, 248, 0.25);
}
body.theme-ice_blue .morph-text {
    background: linear-gradient(135deg, #ffffff 0%, #bae6fd 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.theme-obsidian_gold .morph-btn {
    border-color: rgba(234, 179, 8, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(234, 179, 8, 0.25);
}
body.theme-obsidian_gold .morph-text {
    background: linear-gradient(135deg, #ffffff 0%, #fef08a 50%, #eab308 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.theme-mystic_aurora .morph-btn {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(168, 85, 247, 0.25);
}
body.theme-mystic_aurora .morph-text {
    background: linear-gradient(135deg, #ffffff 0%, #e9d5ff 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(12, 20, 36, 0.7);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: rgba(255, 215, 0, 0.18);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 10px 28px rgba(255, 215, 0, 0.25);
}

.recording-tip {
    position: absolute;
    bottom: 36px;
    left: 28px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

/* ===================================================
   Photo Memory Modal (Frosted Glass Polaroid)
   =================================================== */

.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 500;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.photo-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.photo-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 8, 16, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.photo-card-wrap {
    position: relative;
    z-index: 10;
    max-width: 460px;
    width: 90%;
    perspective: 1200px;
}

.polaroid-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
    transform: rotateX(0deg);
    transition: transform 0.4s ease;
}

.photo-media-box {
    width: 100%;
    height: 290px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #000000;
}

.photo-media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.photo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    color: #ffd700;
    letter-spacing: 1px;
    backdrop-filter: blur(6px);
}

.photo-meta {
    padding: 18px 8px 12px 8px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.card-desc {
    font-family: 'Noto Serif SC', serif;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    min-height: 52px;
}

.modal-card-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px 0 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nav-btn:hover {
    background: rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.5);
}

.modal-counter {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.modal-close-btn {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(20, 24, 38, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: #ff4757;
    transform: rotate(90deg);
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
    .opening-title { font-size: 28px; }
    .opening-subtitle { font-size: 13px; }
    .glow-button { padding: 14px 32px; font-size: 15px; }
    .top-brand { top: 16px; left: 16px; }
    .controls-panel { bottom: 20px; right: 16px; }
    .recording-tip { display: none; }
    .photo-media-box { height: 220px; }
}

/* ===================================================
   Live Photo Badge & Photo Exclusive Audio Bar
   =================================================== */
.photo-live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 12px rgba(255, 59, 48, 0.45);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5;
    pointer-events: none;
}
.photo-live-badge.hidden {
    display: none !important;
}
.photo-live-badge .live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 8px #ff3b30;
    animation: liveDotPulse 1.4s infinite ease-in-out;
}
@keyframes liveDotPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.35); opacity: 1; }
}

.photo-audio-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.photo-audio-bar.hidden {
    display: none !important;
}
.photo-audio-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border: none;
    color: #0b0f19;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}
.photo-audio-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.7);
}
.photo-audio-progress-wrap {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.photo-audio-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    border-radius: 2px;
    transition: width 0.1s linear;
}
.photo-audio-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    font-family: monospace;
    flex-shrink: 0;
}
.photo-audio-tag {
    font-size: 10px;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ===================================================
   Climax Easter Egg Video Theater Modal
   =================================================== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 550;
    transition: opacity 0.4s ease, visibility 0.4s;
}
.video-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 6, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.video-card-wrap {
    position: relative;
    z-index: 10;
    max-width: 560px;
    width: 92%;
    perspective: 1200px;
}
.video-theater-card {
    background: rgba(20, 24, 35, 0.88);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 50px rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    position: relative;
    animation: videoCardPop 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
@keyframes videoCardPop {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.theater-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.theater-badge {
    font-size: 12px;
    font-weight: 600;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}
.theater-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-family: monospace;
}
.theater-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 14px 0;
    letter-spacing: 0.5px;
}
.theater-media-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.theater-media-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.theater-desc {
    font-family: 'Noto Serif SC', serif;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 14px;
    min-height: 48px;
}
