/* 
   Premium Vision - MACcms V10 High-End Design System
   Cinematic Dark Theme with Glassmorphism
*/

:root {
    --primary-color: #d4af37; /* Cinema Gold */
    --accent-color: #e50914; /* Dramatic Red */
    --bg-black: #050505;
    --bg-surface: #111111;
    --text-main: #f0f0f0;
    --text-muted: #8a8a8a;
    
    /* 核心杀手锏：动态色彩变量，由 JS 实时更新 */
    --magic-light: rgba(212, 175, 55, 0.15); 
    --magic-glow: 0px 0px 40px rgba(212, 175, 55, 0.1);
    
    --header-h: 80px;
    --card-w: 180px;
    --radius-lg: 16px;
    --font-heading: 'Syncopate', 'Inter', sans-serif;
    --transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    background-color: var(--bg-black);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: calc(var(--header-h) + 40px);
}

/* 杀手锏：全站动态环境光图层 */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% -20%, var(--magic-light), transparent 70%);
    pointer-events: none;
    z-index: -1;
    transition: background 1s ease;
}

/* 重新设计的高端通知条 */
#notice-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--primary-color);
    font-size: 11px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    text-transform: uppercase;
}

/* 导航栏重塑 - IKEA IMAX Style */
header {
    position: fixed;
    top: 35px;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, rgba(5,5,5,0.95), transparent);
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(0, 0, 0, 0.98);
    height: 70px;
}

/* 品牌文字 Logo 艺术 */
.logo-text {
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}

/* 核心修复：强制 CSS Grid 比例约束 */
.vod-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 30px;
    padding: 30px 0;
}

@media (max-width: 1200px) { .vod-grid { grid-template-columns: repeat(4, 1fr) !important; } }
@media (max-width: 768px) { .vod-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 15px; } }

/* 影片卡牌：MAX 质感 */
.vod-card {
    position: relative;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    overflow: hidden;
}

.vod-card:hover {
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px var(--magic-light);
    z-index: 50;
}

.card-poster {
    width: 100%;
    aspect-ratio: 2/3 !important;
    position: relative;
    overflow: hidden;
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s;
    filter: brightness(0.9);
}

.vod-card:hover .card-poster img {
    filter: brightness(1.1);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.glass-dark {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

/* Animations */
.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive Grid System */
.container {
    padding: 0 4%;
    max-width: 1500px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
}

/* Utility Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #f7dc6f);
    color: #000;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

/* Swiper Pagination Gold */
.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--primary-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none; /* Hide on mobile, use drawer */
    }
}

/* 搜索触发器 UI */
.search-trigger {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.search-trigger:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-color);
}

.search-trigger .text {
    font-size: 13px;
    color: var(--text-muted);
}

/* 幽灵登录按钮 */
.login-ghost {
    padding: 10px 25px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.login-ghost:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* 搜索图层关闭按钮 */
.search-close {
    position: absolute;
    top: 40px; right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
}

.search-close:hover { opacity: 1; transform: rotate(90deg); }

.search-popular { margin-top: 50px; }
.search-popular h3 { color: var(--primary-color); font-size: 18px; margin-bottom: 20px; }

/* 用户头像适配 */
.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    padding: 2px;
    position: relative;
}

.user-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.vip-badge {
    position: absolute;
    bottom: -5px; right: -5px;
    background: linear-gradient(45deg, #ffd700, #ffa500);
    font-size: 10px; color: #000; font-weight: 900;
    padding: 2px 5px; border-radius: 4px; border: 1px solid #000;
}
