:root {
    --bg: #f8fafc;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --accent: #f59e0b;
    --card: #ffffff;
    --dark: #020617;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.7;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.88);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.site-logo::before,
.footer-logo::before {
    content: "";
    width: 34px;
    height: 34px;
    margin-right: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), #7c3aed);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.30);
}

.desktop-nav,
.quick-nav-inner,
.mobile-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link,
.mobile-link,
.quick-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: #334155;
    font-weight: 700;
    transition: all 0.24s ease;
}

.nav-link:hover,
.mobile-link:hover,
.quick-nav a:hover,
.nav-link.is-active,
.mobile-link.is-active {
    color: #ffffff;
    background: var(--brand);
}

.quick-nav {
    border-top: 1px solid rgba(226, 232, 240, 0.7);
    background: rgba(248, 250, 252, 0.75);
}

.quick-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 20px;
    overflow-x: auto;
}

.quick-nav a {
    white-space: nowrap;
    font-size: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #eff6ff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #1e3a8a;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 20px 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    color: #ffffff;
    background: #020617;
}

.hero-slider {
    position: relative;
    min-height: 680px;
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.06) contrast(1.03);
    transform: scale(1.04);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 20%, rgba(37, 99, 235, 0.45), transparent 32%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.68) 48%, rgba(2, 6, 23, 0.22)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
    align-items: center;
    gap: 54px;
    padding: 86px 20px 74px;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #dbeafe;
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
    margin: 22px 0 16px;
    font-size: clamp(40px, 6.6vw, 78px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.hero p {
    max-width: 670px;
    color: #dbeafe;
    font-size: 19px;
    line-height: 1.85;
}

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

.btn-primary,
.btn-secondary,
.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: all 0.24s ease;
}

.btn-primary {
    color: #ffffff;
    background: var(--brand);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
}

.btn-dark {
    color: #ffffff;
    background: #0f172a;
}

.btn-dark:hover {
    background: #1e293b;
}

.hero-panel {
    padding: 18px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
}

.hero-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 26px;
}

.hero-panel-meta {
    padding: 18px 4px 4px;
}

.hero-panel-meta strong {
    display: block;
    font-size: 21px;
    font-weight: 900;
}

.hero-panel-meta span {
    color: #bfdbfe;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.58);
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-control:hover {
    background: rgba(37, 99, 235, 0.86);
}

.hero-control.prev {
    left: 20px;
}

.hero-control.next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 5;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: all 0.24s ease;
}

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

.search-band {
    position: relative;
    z-index: 8;
    max-width: 980px;
    margin: -38px auto 0;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.search-box input,
.filter-row input,
.filter-row select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 0 16px;
    color: var(--ink);
    background: #ffffff;
    outline: none;
}

.search-box input:focus,
.filter-row input:focus,
.filter-row select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.main-section {
    padding: 70px 0;
}

.main-section.compact {
    padding: 44px 0;
}

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

.section-head h1,
.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4.2vw, 46px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.section-head p {
    max-width: 660px;
    margin: 8px 0 0;
    color: var(--muted);
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e2e8f0;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

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

.movie-card-body {
    padding: 18px;
}

.movie-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 850;
}

.movie-card h3 {
    margin: 8px 0;
    font-size: 19px;
    line-height: 1.32;
    font-weight: 950;
}

.movie-card h3 a:hover {
    color: var(--brand);
}

.movie-card p {
    margin: 0;
    min-height: 62px;
    color: var(--muted);
    font-size: 14px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span {
    padding: 4px 9px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    min-height: 172px;
    padding: 24px;
    border-radius: 26px;
    color: #ffffff;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.28), transparent 32%),
        linear-gradient(135deg, #1d4ed8, #0f172a);
    box-shadow: 0 24px 50px rgba(37, 99, 235, 0.18);
    transition: transform 0.26s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

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

.category-card p {
    margin: 0;
    color: #dbeafe;
}

.ranking-wrap {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 56px 82px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.88);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.rank-row b {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    background: #0f172a;
}

.rank-row img {
    width: 82px;
    height: 104px;
    object-fit: cover;
    border-radius: 16px;
}

.rank-row strong {
    display: block;
    font-size: 18px;
    font-weight: 950;
}

.rank-row p {
    margin: 4px 0 0;
    color: var(--muted);
}

.rank-card-grid {
    display: grid;
    gap: 14px;
}

.rank-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.88);
}

.rank-card img {
    width: 86px;
    height: 112px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.rank-info strong {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 950;
}

.rank-info em {
    margin-top: 8px;
    color: var(--muted);
    font-style: normal;
}

.filter-panel {
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.86);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 12px;
}

.empty-state {
    display: none;
    padding: 26px;
    text-align: center;
    color: var(--muted);
}

.empty-state.is-visible {
    display: block;
}

.detail-hero {
    padding: 46px 0 36px;
    background:
        radial-gradient(circle at 85% 10%, rgba(37, 99, 235, 0.32), transparent 32%),
        linear-gradient(135deg, #020617, #0f172a 55%, #111827);
    color: #ffffff;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #bfdbfe;
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.48fr) minmax(320px, 0.72fr);
    gap: 28px;
    align-items: start;
}

.player-card {
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.35);
}

.player-box {
    position: relative;
    background: #000000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(2, 6, 23, 0.28);
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-toggle {
    display: inline-grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.95);
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.45);
    cursor: pointer;
}

.play-toggle::before {
    content: "";
    margin-left: 7px;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 28px solid #ffffff;
}

.detail-side {
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
}

.detail-side h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-side p {
    margin: 0 0 18px;
    color: #dbeafe;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.detail-meta span {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: #e0f2fe;
}

.article-card {
    padding: 30px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.86);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 950;
}

.article-card p {
    margin: 0 0 18px;
    color: #334155;
}

.detail-cover {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 22px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.related-card {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.86);
}

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

.related-card strong {
    display: block;
    padding: 12px;
    font-size: 14px;
    line-height: 1.35;
}

.site-footer {
    margin-top: 30px;
    padding: 46px 0;
    background: #020617;
    color: #cbd5e1;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-inner p {
    max-width: 640px;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    background: var(--brand);
    color: #ffffff;
}

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

    .ranking-wrap,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

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

    .menu-toggle {
        display: inline-block;
    }

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

    .quick-nav-inner {
        padding-bottom: 10px;
    }

    .hero,
    .hero-slider,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 64px;
    }

    .hero-panel {
        max-width: 330px;
    }

    .hero-control {
        display: none;
    }

    .search-box,
    .filter-row {
        grid-template-columns: 1fr;
    }

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

    .rank-row {
        grid-template-columns: 42px 70px 1fr;
    }

    .rank-row .btn-dark {
        grid-column: 2 / -1;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 540px) {
    .header-inner,
    .container,
    .footer-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .site-logo {
        font-size: 18px;
    }

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

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

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

    .section-head {
        display: block;
    }

    .detail-meta {
        grid-template-columns: 1fr;
    }

    .article-card,
    .detail-side {
        padding: 22px;
        border-radius: 24px;
    }
}
