/* * Micker Cine APP - Core Styles v41.1
 * 包含：基础排版、玻璃拟态卡片、侧边栏动画、筛选器样式
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&display=swap');

:root { 
    --sr-bg: #0b0c15; 
    --sr-card: rgba(20, 25, 40, 0.7);
    --sr-accent: #62D2D8;
    --sr-pink: #F472B6;
}

/* 基础设置 */
body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--sr-bg); 
    color: #E2E8F0;
    background-image: linear-gradient(to bottom, rgba(11, 12, 21, 0.9), #0b0c15), url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='stars' width='200' height='200' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='10' cy='10' r='1' fill='white' opacity='0.15'/%3E%3Ccircle cx='120' cy='80' r='1.5' fill='white' opacity='0.1'/%3E%3Ccircle cx='50' cy='160' r='1' fill='white' opacity='0.1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23stars)'/%3E%3C/svg%3E");
    background-attachment: fixed; 
    overflow-x: hidden; 
    padding-top: env(safe-area-inset-top);
    -webkit-tap-highlight-color: transparent;
}

/* 筛选按钮 */
.filter-btn { 
    font-size: 0.75rem; 
    padding: 6px 12px; 
    border-radius: 8px; 
    border: 1px solid rgba(255,255,255,0.1); 
    background: rgba(255,255,255,0.03); 
    color: #94a3b8; 
    transition: 0.2s; 
    white-space: nowrap; 
    margin-bottom: 6px; 
    cursor: pointer;
}
.filter-btn:focus-visible {
    outline: 2px solid rgba(98, 210, 216, 0.55);
    outline-offset: 2px;
}
.filter-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}
.filter-btn.active { 
    background: rgba(98, 210, 216, 0.15); 
    border-color: var(--sr-accent); 
    color: var(--sr-accent); 
    font-weight: bold; 
    box-shadow: 0 0 10px rgba(98, 210, 216, 0.2); 
}
.filter-btn.active-all { 
    background: #334155 !important; 
    color: #fff !important; 
    border-color: #475569 !important;
}

/* 玻璃拟态卡片 */
.glass-panel { 
    background: var(--sr-card); 
    backdrop-filter: blur(16px); 
    border: 1px solid rgba(255,255,255,0.08); 
    border-radius: 16px; 
    position: relative; 
    overflow: hidden; 
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}
.glass-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 240px at 0% 0%, rgba(255, 255, 255, 0.08), transparent 60%);
    pointer-events: none;
}

/* 高亮动画 */
.highlight-focus { 
    animation: focus-pulse 1.5s infinite; 
    border-color: #A29BFE !important; 
    z-index: 50; 
    box-shadow: 0 0 30px rgba(162, 155, 254, 0.4); 
}
@keyframes focus-pulse { 
    50% { box-shadow: 0 0 0 10px rgba(162, 155, 254, 0); } 
}

/* 侧边栏 (Drawer) */
#queue-drawer { 
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 85%; 
    max-width: 360px; 
    height: 100vh; 
    background: rgba(11, 15, 25, 0.98); 
    backdrop-filter: blur(30px); 
    border-left: 1px solid rgba(255,255,255,0.1); 
    z-index: 2000; 
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    box-shadow: -10px 0 50px rgba(0,0,0,0.8); 
    display: flex; 
    flex-direction: column; 
    will-change: right;
}
#queue-drawer.open { right: 0; }

/* 浮动按钮 (FAB) */
.queue-trigger { 
    position: fixed; 
    bottom: 40px; 
    right: 20px; 
    width: 60px; 
    height: 60px; 
    background: linear-gradient(135deg, #7c3aed, #db2777); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-size: 1.5rem; 
    cursor: pointer; 
    z-index: 900; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    border: 2px solid rgba(255,255,255,0.2); 
    transition: transform 0.2s;
}
.queue-trigger:focus-visible {
    outline: 2px solid rgba(98, 210, 216, 0.55);
    outline-offset: 3px;
}
.queue-trigger:active { transform: scale(0.95); }
.queue-badge { 
    position: absolute; 
    top: 0; 
    right: 0; 
    background: #ef4444; 
    color: white; 
    font-size: 0.7rem; 
    font-weight: bold; 
    width: 22px; 
    height: 22px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 2px solid #0b0c15; 
}

/* 搜索框 */
.search-box { 
    background: rgba(0,0,0,0.4); 
    border: 1px solid rgba(255,255,255,0.1); 
    color: white; 
    padding: 10px 15px 10px 40px; 
    border-radius: 99px; 
    width: 100%; 
    transition: 0.3s; 
}
.search-box::placeholder {
    color: #94a3b8;
}
.search-box:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(98, 210, 216, 0.18), 0 0 15px rgba(98, 210, 216, 0.2);
}
.search-box:focus { 
    border-color: var(--sr-accent); 
    background: rgba(0,0,0,0.6); 
    outline: none; 
    box-shadow: 0 0 15px rgba(98, 210, 216, 0.2); 
}

/* 提示框 (Toast) */
#toast { 
    position: fixed; 
    top: 100px; 
    left: 50%; 
    transform: translateX(-50%) translateY(20px); 
    background: rgba(0,0,0,0.85); 
    color: white; 
    padding: 10px 24px; 
    border-radius: 99px; 
    opacity: 0; 
    pointer-events: none; 
    transition: 0.3s; 
    z-index: 9999; 
    font-weight: bold; 
    border: 1px solid rgba(255,255,255,0.1); 
    white-space: nowrap;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 55px rgba(0,0,0,0.6);
}

/* 相机菜单 */
#camera-menu { 
    transform-origin: top left; 
    transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
#camera-menu.hidden { 
    transform: scale(0.95); 
    opacity: 0; 
    pointer-events: none; 
    display: none; 
}
#camera-menu:not(.hidden) { 
    transform: scale(1); 
    opacity: 1; 
    pointer-events: auto; 
    display: flex; 
}

/* 加载动画 */
#load-more-status, #empty-state { transition: opacity 0.3s; }

/* 🟢 修复：弹窗居中 */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-overlay.hidden { display: none; }

.modal-overlay.flex-show { display: flex !important; }

.modal-content {
    background: #18181b;
    border: 1px solid #3f3f46;
    width: 90%;
    max-width: 420px;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    position: relative;
}

.locked-blur { filter: blur(14px); opacity: 0.2; pointer-events: none; }
.lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 30;
    background: rgba(11, 12, 21, 0.75);
    pointer-events: auto;
}
.unlock-btn {
    margin-top: 10px;
    padding: 6px 20px;
    background: linear-gradient(90deg, #db2777, #9333ea);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 99px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(219, 39, 119, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform 0.15s, filter 0.15s;
}
.unlock-btn:active { transform: scale(0.98); }
.unlock-btn:focus-visible {
    outline: 2px solid rgba(98, 210, 216, 0.55);
    outline-offset: 3px;
}
