:root {
    color-scheme: light;
    --blue-900: #0f2f66;
    --blue-800: #16458d;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;
    --gray-950: #0f172a;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 24px 80px rgba(15, 23, 42, 0.24);
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-700), #38bdf8);
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    color: var(--gray-900);
    font-size: 20px;
    font-weight: 800;
}

.brand-text small {
    color: var(--gray-500);
    font-size: 12px;
    margin-top: 4px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.desktop-nav a {
    border-bottom: 2px solid transparent;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 700;
    padding: 24px 10px 21px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--blue-600);
    border-color: var(--blue-600);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--gray-700);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 8px 0 16px;
    border-top: 1px solid var(--gray-200);
}

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

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--gray-700);
    font-weight: 700;
}

.mobile-nav a:hover {
    color: var(--blue-700);
    background: var(--blue-50);
}

.main-page {
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: 600px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-900), var(--blue-800) 52%, var(--blue-600));
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    transform: scale(1.04);
    transition: background-image 0.4s ease;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(96, 165, 250, 0.32), transparent 26%),
        radial-gradient(circle at 78% 38%, rgba(14, 165, 233, 0.22), transparent 32%),
        linear-gradient(90deg, rgba(15, 47, 102, 0.96), rgba(15, 47, 102, 0.58), rgba(37, 99, 235, 0.18));
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 46px;
    align-items: center;
    width: min(100% - 32px, var(--container));
    min-height: 600px;
    margin: 0 auto;
    padding: 64px 0;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    font-weight: 700;
}

.hero h1 {
    margin: 22px 0 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero h1 span {
    display: block;
    color: #bfdbfe;
}

.hero p {
    max-width: 660px;
    margin: 24px 0 0;
    color: #dbeafe;
    font-size: 20px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--blue-700);
    background: var(--white);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
}

.btn-primary:hover {
    background: var(--blue-50);
}

.btn-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

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

.hero-slide {
    display: none;
    min-height: 440px;
}

.hero-slide.is-active {
    display: grid;
    grid-template-rows: 1fr auto;
}

.hero-slide img {
    width: 100%;
    height: 290px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.hero-slide-body {
    padding: 22px;
}

.hero-slide-body h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
}

.hero-slide-body p {
    margin: 10px 0 18px;
    color: #dbeafe;
    font-size: 15px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
}

.hero-meta span,
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 700;
}

.hero-dots {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
}

.hero-dots button.is-active {
    width: 26px;
    border-radius: 999px;
    background: var(--white);
}

.section {
    padding: 72px 0;
}

.section-white {
    background: var(--white);
}

.section-inner {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

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

.section-heading h2,
.page-title h1 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-title p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--gray-600);
    font-size: 17px;
}

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

.feature-item {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    color: var(--blue-700);
    background: var(--blue-100);
    font-size: 24px;
    font-weight: 900;
}

.feature-item h3 {
    margin: 16px 0 6px;
    font-size: 19px;
}

.feature-item p {
    margin: 0;
    color: var(--gray-600);
}

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

.category-card {
    position: relative;
    min-height: 190px;
    padding: 24px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-700), #0ea5e9);
    box-shadow: var(--shadow-sm);
}

.category-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    top: -70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.category-card h3 {
    position: relative;
    margin: 0;
    font-size: 24px;
}

.category-card p {
    position: relative;
    margin: 12px 0 22px;
    color: rgba(255, 255, 255, 0.86);
}

.category-card span {
    position: relative;
    font-weight: 800;
}

.filter-bar {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.search-field {
    display: grid;
    gap: 6px;
    flex: 1;
}

.search-field span {
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 800;
}

.search-field input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    color: var(--gray-900);
    background: var(--gray-50);
    padding: 0 14px;
    outline: none;
}

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

.clear-search {
    height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background: var(--blue-600);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

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

.poster-play {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    color: var(--blue-700);
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-size: 12px;
    font-weight: 900;
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 20px;
    line-height: 1.3;
}

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

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-row span {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--blue-700);
    background: var(--blue-50);
    font-size: 12px;
    font-weight: 800;
}

.page-hero {
    padding: 60px 0;
    color: var(--white);
    background:
        radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.32), transparent 28%),
        linear-gradient(135deg, var(--blue-900), var(--blue-700));
}

.page-title {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.page-title h1,
.page-title p {
    color: var(--white);
}

.page-title p {
    color: #dbeafe;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #dbeafe;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.breadcrumb a:hover {
    color: var(--white);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 66px 120px minmax(0, 1fr) 150px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.rank-index {
    color: var(--blue-700);
    font-size: 26px;
    font-weight: 900;
    text-align: center;
}

.rank-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    background: var(--blue-900);
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.rank-info p {
    margin: 0;
    color: var(--gray-600);
}

.rank-side {
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.detail-main {
    background: var(--gray-50);
}

.detail-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 16% 12%, rgba(96, 165, 250, 0.30), transparent 30%),
        linear-gradient(135deg, var(--blue-950, #071936), var(--blue-800));
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 30px;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 42px 0 56px;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000;
    box-shadow: var(--shadow-lg);
}

.video-shell video {
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.22));
}

.video-shell.is-playing .video-overlay {
    opacity: 0;
}

.play-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border: 0;
    border-radius: 50%;
    color: var(--blue-700);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
    pointer-events: auto;
}

.player-status {
    position: absolute;
    left: 16px;
    bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.52);
    font-size: 13px;
    font-weight: 700;
}

.detail-info {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.detail-info h1 {
    margin: 12px 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
}

.detail-info p {
    color: #dbeafe;
    font-size: 17px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 48px 0 76px;
}

.content-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.content-card + .content-card {
    margin-top: 22px;
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.content-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 17px;
}

.side-card {
    position: sticky;
    top: 96px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.side-link {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--gray-200);
}

.side-link:first-of-type {
    border-top: 0;
}

.side-link img {
    width: 84px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
    background: var(--blue-900);
}

.side-link strong {
    display: block;
    line-height: 1.3;
}

.side-link span {
    color: var(--gray-500);
    font-size: 13px;
}

.site-footer {
    color: var(--gray-300);
    background: var(--gray-900);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 32px;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 48px 0;
}

.footer-logo {
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
}

.footer-brand p {
    max-width: 520px;
    color: #cbd5e1;
}

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

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    text-align: center;
}

.hidden-by-search {
    display: none !important;
}

.empty-state {
    display: none;
    padding: 34px;
    border-radius: var(--radius-lg);
    color: var(--gray-600);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

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

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

    .nav-toggle {
        display: block;
    }

    .hero-inner,
    .detail-hero-inner,
    .detail-content,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .rank-row {
        grid-template-columns: 58px 110px minmax(0, 1fr);
    }

    .rank-side {
        grid-column: 3;
        text-align: left;
    }

    .side-card {
        position: static;
    }

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

@media (max-width: 720px) {
    .hero,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 42px 0;
    }

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

    .section {
        padding: 48px 0;
    }

    .section-heading {
        display: block;
    }

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

    .filter-bar {
        display: grid;
    }

    .hero-slide img {
        height: 220px;
    }

    .rank-row {
        grid-template-columns: 42px 92px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-index {
        font-size: 20px;
    }

    .rank-info p {
        display: none;
    }

    .detail-info {
        padding: 20px;
    }
}
