/* NewCloud × MDYS 灵感 — 桌面全宽电影官网质感 / 手机保留 App 底栏 */
:root {
    --bg-base: #07080d;
    --bg-surface: #0d1018;
    --bg-card: #12151f;
    --bg-elevated: #171b28;
    --primary: #e50914;
    --primary-soft: #ff4d57;
    --accent: #c9a227;
    --text-main: #f5f5f7;
    --text-secondary: #c7c9d1;
    --text-muted: #8b8f9c;
    --gold: #e8c547;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 999px;
    --border-subtle: rgba(255, 255, 255, 0.07);
    --shadow-neon: 0 18px 50px rgba(0, 0, 0, 0.45);
    --film-vignette: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.55) 100%);
}

body {
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(229, 9, 20, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(201, 162, 39, 0.06), transparent 45%),
        var(--bg-base);
    color: var(--text-main);
}

#app {
    max-width: none;
    width: 100%;
    margin: 0;
    min-height: 100vh;
    background: transparent;
    box-shadow: none;
}

/* ===== 顶栏：桌面全宽 / 手机紧凑 ===== */
.navbar {
    height: 68px;
    min-height: 68px;
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;
    padding: 0 clamp(20px, 4vw, 56px);
    background: rgba(7, 8, 13, 0.82);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid var(--border-subtle);
    left: 0;
    right: 0;
    transform: none;
    max-width: none;
    width: 100%;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
    gap: 8px;
    flex-shrink: 0;
}

.logo i {
    background: none;
    -webkit-text-fill-color: var(--primary);
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.45));
}

.nav-links {
    display: flex;
    gap: 22px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a.active::after {
    background: var(--primary);
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.7);
    width: 18px;
}

.search-box {
    width: 260px;
    flex: 0 0 auto;
}

.search-box input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 10px 16px 10px 40px;
}

.search-box input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(229, 9, 20, 0.45);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.12);
}

.nav-tabs {
    display: none;
}

.container {
    padding: 88px clamp(20px, 4vw, 56px) 48px;
    max-width: 1600px;
}

/* ===== 首页 Hero 横幅轮播 ===== */
.hero-banner {
    position: relative;
    margin: 0 0 36px;
    border-radius: 18px;
    overflow: hidden;
    background: #0a0c12;
    aspect-ratio: 21 / 9;
    min-height: 280px;
    max-height: 520px;
    box-shadow: var(--shadow-neon);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.08) brightness(0.72);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 8, 13, 0.92) 0%, rgba(7, 8, 13, 0.55) 42%, rgba(7, 8, 13, 0.2) 70%, rgba(7, 8, 13, 0.55) 100%),
        linear-gradient(180deg, transparent 35%, rgba(7, 8, 13, 0.95) 100%),
        var(--film-vignette);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(20px, 4vw, 48px);
    max-width: 620px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.hero-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.hero-chip {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.hero-chip.hot {
    background: rgba(229, 9, 20, 0.2);
    border-color: rgba(229, 9, 20, 0.45);
    color: #ffb3b7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hero-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e50914, #b20710);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 28px rgba(229, 9, 20, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-play:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(229, 9, 20, 0.45);
}

.hero-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.hero-more:hover { background: rgba(255, 255, 255, 0.14); }

.hero-dots {
    position: absolute;
    right: 24px;
    bottom: 22px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    border: none;
    cursor: pointer;
    padding: 0;
}

.hero-dot.active {
    width: 22px;
    border-radius: 999px;
    background: var(--primary);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}

.hero-nav.prev { left: 16px; }
.hero-nav.next { right: 16px; }
.hero-nav:hover { background: rgba(229, 9, 20, 0.75); }

.hero-skeleton {
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 280px;
    border-radius: 18px;
    margin-bottom: 36px;
    background: linear-gradient(90deg, #12151f 25%, #1a1f2e 50%, #12151f 75%);
    background-size: 200% 100%;
    animation: heroShine 1.4s ease infinite;
}

@keyframes heroShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== 分区 ===== */
.categories { display: flex; }
.section { margin-bottom: 36px; }
.section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.section-title::before {
    background: linear-gradient(180deg, #e50914, #c9a227);
    box-shadow: none;
    width: 4px;
    height: 18px;
    border-radius: 2px;
}
.view-more { color: var(--text-muted); }
.view-more:hover { color: var(--primary-soft); }

/* ===== 海报网格：电影滤镜 ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 22px 16px;
}

.card {
    aspect-ratio: auto;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    margin: 0;
    transition: transform 0.35s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: none;
}

.card-cover {
    position: relative;
    width: 100%;
    padding-top: 148%;
    border-radius: 12px;
    overflow: hidden;
    background: #151821;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.78) 100%),
        radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;
    opacity: 0.85;
}

.card-poster {
    position: absolute;
    inset: 0;
    transition: transform 0.55s ease, filter 0.55s ease;
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.06) saturate(1.08) brightness(0.92);
}

.card:hover .card-poster {
    transform: scale(1.06);
    filter: none;
}

.card:hover .card-poster img {
    filter: contrast(1.1) saturate(1.15) brightness(1);
}

.card-poster::after { display: none; }
.card-overlay { display: none; }
.play-btn { display: none; }

.card-cover .card-play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.25);
}

.card:hover .card-play { opacity: 1; }

.card-play span {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 9, 20, 0.92);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 10px 28px rgba(229, 9, 20, 0.4);
}

.badge-top-left {
    top: 10px;
    left: auto;
    right: 10px;
    z-index: 3;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.95), rgba(178, 7, 16, 0.95));
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.card-title-below {
    display: block;
    margin-top: 10px;
    padding: 0 2px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    color: #f3f3f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta-below {
    display: block;
    margin-top: 3px;
    padding: 0 2px;
    font-size: 12px;
    color: var(--text-muted);
}

.skeleton-card {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    background: linear-gradient(90deg, #12151f 25%, #1a1f2e 50%, #12151f 75%);
    background-size: 200% 100%;
}

/* ===== 底栏：仅手机 ===== */
.mobile-tabbar {
    display: none;
    background: rgba(10, 12, 18, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    left: 0;
    transform: none;
    max-width: none;
    width: 100%;
}

.tab-item.active { color: #fff; }
.tab-item.active i {
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(229, 9, 20, 0.55));
    transform: none;
}
.tab-item.active::before {
    background: var(--primary);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.6);
}

.back-to-top {
    background: rgba(18, 21, 31, 0.92);
    border: 1px solid rgba(229, 9, 20, 0.35);
    border-radius: 14px;
    bottom: 28px;
    right: 24px;
}
.back-to-top:hover { background: var(--primary); border-color: var(--primary); }

.site-footer {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
    border-top: 1px solid var(--border-subtle);
    padding-bottom: 40px;
}

.btn-play,
.ep-btn.active,
.page-btn.active,
.filter-item.active,
.tag.active {
    background: linear-gradient(135deg, #e50914, #b20710) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(229, 9, 20, 0.28) !important;
}

.glass-panel {
    background: rgba(18, 21, 31, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

.detail-score { color: var(--gold); }
.player-wrap {
    border-radius: 14px;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.end-tips {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 8px 0 20px;
    letter-spacing: 0.04em;
}

/* ===== 手机 ===== */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        min-height: 0;
        flex-wrap: wrap;
        padding: 10px 12px 0;
        gap: 8px 12px;
        row-gap: 4px;
    }
    .logo { order: 1; }
    .search-box {
        order: 2;
        width: auto;
        flex: 1;
        max-width: none;
        min-width: 140px;
    }
    .nav-links { display: none; }
    .nav-tabs {
        order: 3;
        display: flex;
        width: 100%;
        gap: 2px;
        overflow-x: auto;
        padding: 0 0 10px;
        background: transparent;
        scrollbar-width: none;
    }
    .nav-tabs::-webkit-scrollbar { display: none; }
    .nav-tabs a {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 14px;
        color: var(--text-muted);
        white-space: nowrap;
        position: relative;
        font-weight: 600;
    }
    .nav-tabs a.active { color: #fff; }
    .nav-tabs a.active::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 2px;
        transform: translateX(-50%);
        width: 16px;
        height: 2px;
        border-radius: 2px;
        background: var(--primary);
    }
    .mobile-tabbar { display: block; }
    .container {
        padding: 108px 12px 84px;
    }
    .hero-banner {
        aspect-ratio: 16 / 10;
        min-height: 200px;
        border-radius: 12px;
        margin-bottom: 22px;
    }
    .hero-nav { display: none; }
    .hero-title { font-size: 24px; }
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 10px;
    }
    .site-footer { padding-bottom: 88px; }
    .back-to-top { bottom: 78px; right: 14px; }
}

@media (min-width: 1200px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 26px 18px;
    }
}
