:root {
    --site-bg: #f4f7fb;
    --site-panel: #ffffff;
    --site-text: #111827;
    --site-muted: #64748b;
    --site-line: rgba(148, 163, 184, 0.24);
    --site-primary: #2563eb;
    --site-primary-dark: #1d4ed8;
    --site-accent: #7c3aed;
    --site-warm: #f97316;
    --site-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    --site-radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 32rem), var(--site-bg);
    color: var(--site-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.98), rgba(124, 58, 237, 0.94));
    color: #ffffff;
    box-shadow: 0 16px 48px rgba(37, 99, 235, 0.22);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
    color: rgba(255, 255, 255, 0.92);
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    font-weight: 700;
}

.mobile-nav.is-open {
    display: grid;
}

.main-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 64px;
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 34px;
    color: #ffffff;
    background: #0f172a;
    box-shadow: var(--site-shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: 38px;
    padding: 58px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.22));
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.66;
    filter: saturate(1.05);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 800;
    font-size: 14px;
}

.hero h1,
.hero h2 {
    margin: 18px 0 16px;
    max-width: 720px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.hero-tags,
.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
    font-weight: 800;
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.36);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-poster-card {
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 26px 76px rgba(2, 6, 23, 0.45);
    transform: rotate(1.2deg);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    left: 58px;
    bottom: 34px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #ffffff;
}

.section {
    margin-top: 46px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.section-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--site-muted);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--site-radius);
    background: var(--site-panel);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 58px rgba(15, 23, 42, 0.14);
}

.movie-cover {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(124, 58, 237, 0.18));
}

.movie-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.32s ease;
}

.movie-card:hover .movie-cover img {
    transform: scale(1.06);
}

.movie-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.movie-body {
    padding: 16px;
}

.movie-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--site-muted);
    font-size: 13px;
    font-weight: 700;
}

.movie-line {
    margin: 0;
    color: var(--site-muted);
    font-size: 14px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    min-height: 172px;
    padding: 24px;
    border-radius: var(--site-radius);
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #0891b2, #2563eb);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.24);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin: 22px 0 26px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.movie-search-input {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--site-text);
    outline: none;
}

.movie-search-input:focus {
    border-color: rgba(37, 99, 235, 0.56);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.filter-chip {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #e0e7ff;
    color: #1d4ed8;
    font-weight: 800;
    cursor: pointer;
}

.filter-chip.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
}

.page-hero {
    padding: 48px;
    border-radius: 32px;
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8, #7c3aed 58%, #0f172a);
    box-shadow: var(--site-shadow);
}

.page-hero h1 {
    margin: 0 0 12px;
    max-width: 900px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.page-hero p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--site-muted);
    font-weight: 700;
}

.breadcrumb a {
    color: var(--site-primary-dark);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 26px;
    align-items: start;
}

.player-card,
.detail-card,
.side-card {
    overflow: hidden;
    border-radius: 28px;
    background: var(--site-panel);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
}

.player-wrap {
    position: relative;
    overflow: hidden;
    background: #020617;
}

.player-wrap video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.62));
    cursor: pointer;
    transition: opacity 0.24s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    width: 84px;
    height: 84px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    font-size: 34px;
    box-shadow: 0 20px 48px rgba(239, 68, 68, 0.36);
    cursor: pointer;
}

.player-info,
.detail-card,
.side-card {
    padding: 24px;
}

.player-info h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.detail-card p,
.side-card p {
    margin: 0 0 14px;
    color: #475569;
}

.poster-panel img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-item {
    display: grid;
    grid-template-columns: 42px 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--site-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
    font-weight: 900;
}

.rank-item img {
    width: 72px;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    object-fit: cover;
}

.rank-item h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.rank-item p {
    margin: 0;
    color: var(--site-muted);
    font-size: 13px;
}

.site-footer {
    padding: 34px 0 42px;
    background: #0f172a;
    color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hidden-card {
    display: none !important;
}

@media (max-width: 1080px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        min-height: 720px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 34px;
    }

    .hero-poster-card {
        max-width: 260px;
        transform: none;
    }

    .hero-dots {
        left: 34px;
    }

    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-panel,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .filter-chips {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .header-inner {
        width: min(100% - 24px, 1180px);
        height: 64px;
    }

    .brand {
        font-size: 20px;
    }

    .main-shell {
        width: min(100% - 24px, 1180px);
        padding-top: 18px;
    }

    .hero {
        border-radius: 24px;
        min-height: 680px;
    }

    .hero-slide {
        padding: 24px;
    }

    .hero h1,
    .hero h2 {
        font-size: 40px;
    }

    .hero p,
    .page-hero p {
        font-size: 16px;
    }

    .section-head,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 30px;
        border-radius: 24px;
    }

    .movie-body {
        padding: 14px;
    }

    .movie-body h3 {
        font-size: 16px;
    }
}
