:root {
    --blue-900: #1e3a8a;
    --blue-800: #1e40af;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --cyan-500: #06b6d4;
    --emerald-600: #059669;
    --green-600: #16a34a;
    --red-500: #ef4444;
    --yellow-500: #eab308;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.10), 0 2px 4px -2px rgb(0 0 0 / 0.10);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.10);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.12), 0 8px 10px -6px rgb(0 0 0 / 0.12);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--white);
    background: linear-gradient(90deg, var(--blue-700), var(--cyan-500));
    box-shadow: var(--shadow-lg);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    color: var(--blue-700);
    background: var(--white);
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
}

.brand-text {
    font-size: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
    font-weight: 600;
}

.nav-link {
    position: relative;
    opacity: 0.88;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    transform: translateY(-1px);
}

.nav-link.active::after {
    position: absolute;
    right: 0;
    bottom: -20px;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--white);
    content: "";
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: rgb(255 255 255 / 0.14);
    cursor: pointer;
}

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

.mobile-menu {
    display: none;
    padding: 10px 16px 18px;
    background: var(--blue-700);
}

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

.mobile-link {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
}

.mobile-link:hover,
.mobile-link.active {
    background: rgb(255 255 255 / 0.14);
}

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

.hero::before {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 12%, rgb(255 255 255 / 0.18), transparent 28%),
        radial-gradient(circle at 12% 80%, rgb(6 182 212 / 0.25), transparent 32%),
        linear-gradient(90deg, rgb(0 0 0 / 0.54), rgb(0 0 0 / 0.14));
    content: "";
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 48px;
    align-items: center;
    min-height: 600px;
    padding: 56px 0;
}

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

.hero-kicker {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgb(255 255 255 / 0.35);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.14);
    backdrop-filter: blur(12px);
    font-weight: 700;
}

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

.hero h1 span {
    display: block;
    margin-top: 8px;
    color: #bfdbfe;
    font-size: clamp(28px, 3.6vw, 44px);
}

.hero p {
    margin: 0 0 30px;
    color: #dbeafe;
    font-size: clamp(18px, 2vw, 24px);
}

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

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

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.btn-primary {
    color: var(--blue-700);
    background: var(--white);
}

.btn-outline {
    color: var(--white);
    border-color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    color: var(--blue-700);
    background: var(--white);
}

.hero-panel {
    position: relative;
    min-height: 430px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 24px;
    background: var(--gray-900);
    box-shadow: var(--shadow-2xl);
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

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

.hero-slide::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgb(0 0 0 / 0.84), rgb(0 0 0 / 0.12) 62%, rgb(0 0 0 / 0.24));
    content: "";
}

.hero-slide-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    padding: 28px;
}

.hero-slide-content h2 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.18;
}

.hero-slide-content p {
    display: -webkit-box;
    margin: 0 0 16px;
    overflow: hidden;
    color: var(--gray-200);
    font-size: 15px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.hero-tags span,
.tag-list span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.18);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.48);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 30px;
    background: var(--white);
}

.floating-stat {
    position: absolute;
    right: 0;
    bottom: 28px;
    z-index: 3;
    display: flex;
    gap: 24px;
    padding: 20px 24px;
    border: 1px solid rgb(255 255 255 / 0.22);
    border-radius: 18px;
    background: rgb(255 255 255 / 0.16);
    backdrop-filter: blur(12px);
}

.floating-stat strong {
    display: block;
    font-size: 28px;
}

.section {
    padding: 72px 0;
}

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

.section-soft {
    background: linear-gradient(135deg, #f0fdf4, #eff6ff);
}

.section-gray {
    background: var(--gray-100);
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
}

.section-subtitle {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--gray-600);
    font-size: 16px;
}

.search-box {
    display: flex;
    gap: 12px;
    align-items: center;
    width: min(540px, 100%);
    padding: 10px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
}

.search-box span {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: var(--blue-600);
    flex: none;
}

.feature-strip {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scroll-snap-type: x proximity;
}

.feature-strip .movie-card {
    width: 310px;
    flex: 0 0 310px;
    scroll-snap-align: start;
}

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

.movie-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgb(229 231 235 / 0.8);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.movie-card.hidden {
    display: none;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-900), var(--cyan-500));
}

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

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

.poster-wrap::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgb(0 0 0 / 0.52), transparent 45%);
    opacity: 0;
    transition: opacity 0.25s ease;
    content: "";
}

.movie-card:hover .poster-wrap::after {
    opacity: 1;
}

.year-pill,
.card-badge {
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--white);
    background: rgb(0 0 0 / 0.72);
    font-size: 12px;
    font-weight: 800;
}

.card-badge {
    top: 10px;
    bottom: auto;
    background: var(--red-500);
}

.play-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: rgb(59 130 246 / 0.86);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.84);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
    padding: 14px;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 7px;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 16px;
    line-height: 1.32;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

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

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    color: var(--gray-500);
    font-size: 12px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 24px;
    border-radius: 22px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-700), var(--cyan-500));
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, var(--emerald-600), var(--cyan-500));
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #7c3aed, var(--blue-600));
}

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

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

.category-card p {
    margin: 0;
    color: rgb(255 255 255 / 0.86);
    font-size: 14px;
}

.category-card ul {
    position: relative;
    z-index: 1;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    color: rgb(255 255 255 / 0.9);
    font-size: 13px;
}

.category-card::after {
    position: absolute;
    right: -34px;
    bottom: -38px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.14);
    content: "";
}

.page-hero {
    padding: 64px 0 52px;
    color: var(--white);
    background:
        radial-gradient(circle at 82% 18%, rgb(255 255 255 / 0.18), transparent 28%),
        linear-gradient(135deg, var(--blue-900), var(--blue-700) 55%, var(--cyan-500));
}

.page-hero h1 {
    max-width: 880px;
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: #dbeafe;
    font-size: 18px;
}

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

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

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 86px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.rank-row img {
    width: 86px;
    height: 118px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-row h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-row p {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-row strong {
    color: var(--blue-600);
    font-size: 18px;
}

.rank-number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    font-weight: 900;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.player-shell {
    overflow: hidden;
    border-radius: 24px;
    background: var(--gray-950);
    box-shadow: var(--shadow-2xl);
}

.video-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--gray-950);
}

.video-box video {
    width: 100%;
    height: 100%;
    background: var(--gray-950);
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    padding: 24px;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgb(0 0 0 / 0.7), rgb(0 0 0 / 0.22));
    cursor: pointer;
}

.play-overlay.hidden {
    display: none;
}

.play-overlay-inner {
    text-align: center;
}

.play-overlay-icon {
    display: grid;
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 999px;
    color: var(--blue-700);
    background: var(--white);
    font-size: 34px;
    box-shadow: var(--shadow-2xl);
    transition: transform 0.2s ease;
}

.play-overlay:hover .play-overlay-icon {
    transform: scale(1.06);
}

.player-caption {
    padding: 18px 22px 22px;
    color: var(--white);
}

.player-caption h1,
.player-caption h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 40px);
}

.player-caption p {
    margin: 0;
    color: var(--gray-300);
}

.detail-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

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

.detail-info {
    padding: 18px;
}

.detail-info h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.info-list {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--gray-600);
    font-size: 14px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 8px;
}

.info-list strong {
    color: var(--gray-900);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list span {
    color: var(--blue-700);
    background: #dbeafe;
}

.article-card {
    margin-top: 28px;
    padding: 28px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.article-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.article-card p {
    margin: 0 0 18px;
    color: var(--gray-700);
    font-size: 16px;
    line-height: 1.85;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 50px 0;
}

.footer-brand {
    color: var(--white);
    font-size: 20px;
}

.site-footer p {
    max-width: 360px;
    color: var(--gray-400);
    font-size: 14px;
}

.site-footer h3 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 16px;
}

.site-footer ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--gray-400);
    font-size: 14px;
}

.site-footer a:hover {
    color: #93c5fd;
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgb(255 255 255 / 0.08);
    text-align: center;
    color: var(--gray-400);
    font-size: 13px;
}

.no-results {
    display: none;
    margin-top: 24px;
    padding: 22px;
    border-radius: 16px;
    background: #eff6ff;
    color: var(--blue-700);
    font-weight: 700;
    text-align: center;
}

.no-results.visible {
    display: block;
}

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

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

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

    .detail-card {
        max-width: 360px;
    }
}

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

    .nav-toggle {
        display: block;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: auto;
    }

    .hero {
        min-height: auto;
    }

    .hero-panel {
        min-height: 360px;
    }

    .floating-stat {
        display: none;
    }

    .section-head {
        display: grid;
        gap: 18px;
    }

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

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

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

    .rank-row strong {
        display: none;
    }

    .rank-row img {
        width: 72px;
        height: 100px;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .brand-text {
        font-size: 18px;
    }

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

    .hero h1 span {
        font-size: 28px;
    }

    .hero-panel {
        min-height: 320px;
    }

    .hero-slide-content {
        padding: 20px;
    }

    .hero-slide-content h2 {
        font-size: 24px;
    }

    .section {
        padding: 52px 0;
    }

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

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

    .feature-strip .movie-card {
        width: 260px;
        flex-basis: 260px;
    }

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

    .article-card {
        padding: 22px;
    }

    .rank-row {
        gap: 12px;
        padding: 12px;
    }
}
