:root {
    --blue: #2563eb;
    --cyan: #06b6d4;
    --teal: #14b8a6;
    --ink: #111827;
    --text: #374151;
    --muted: #6b7280;
    --line: #e5e7eb;
    --panel: #ffffff;
    --bg: #f9fafb;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 22px 55px rgba(15, 23, 42, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
    font-size: 15px;
}

.brand-text {
    font-size: 26px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: #4b5563;
    font-size: 15px;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #374151;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 14px;
}

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

.mobile-link {
    padding: 10px 2px;
    color: #4b5563;
    font-weight: 650;
}

.mobile-link.active {
    color: var(--blue);
}

.hero {
    min-height: 630px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 50%, #14b8a6 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.2), transparent 26%), radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.18), transparent 26%), rgba(0, 0, 0, 0.18);
}

.hero::after {
    content: "";
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -62px;
    height: 132px;
    background: var(--bg);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 630px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
    padding: 46px 0 90px;
}

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

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

.hero h1 {
    margin: 22px 0 20px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero p {
    margin: 0 0 28px;
    max-width: 700px;
    color: #e0f2fe;
    font-size: clamp(17px, 2.3vw, 23px);
    line-height: 1.75;
}

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

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

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

.btn.primary {
    color: var(--blue);
    background: #ffffff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.18);
}

.btn.ghost {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn.ghost:hover {
    background: #ffffff;
    color: var(--blue);
}

.hero-stage {
    position: relative;
    min-height: 460px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 0.78fr 1fr;
    gap: 20px;
    align-items: end;
    opacity: 0;
    transform: translateX(18px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.hero-poster {
    min-height: 420px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.36);
    transform: rotate(-2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.hero-panel {
    padding: 26px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(18px);
}

.hero-panel strong {
    display: block;
    margin: 12px 0 10px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.2;
}

.hero-panel p {
    margin: 0 0 20px;
    color: #eff6ff;
    font-size: 15px;
    line-height: 1.7;
}

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

.hero-tags span,
.meta-pill,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    color: #1e40af;
    background: #dbeafe;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.55);
    padding: 0;
}

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

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

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

.section-title h2,
.section-title h1 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1.2;
}

.section-title p {
    margin: 0;
    color: var(--muted);
}

.text-link {
    color: var(--blue);
    font-weight: 750;
}

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

.feature-stat {
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.feature-stat:hover {
    transform: translateY(-4px);
}

.feature-stat span {
    display: grid;
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-size: 22px;
}

.feature-stat strong {
    display: block;
    color: var(--ink);
    font-size: 28px;
}

.feature-stat em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

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

.movie-grid.wide {
    grid-template-columns: repeat(6, 1fr);
}

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
    position: relative;
    display: block;
    height: 270px;
    overflow: hidden;
    background: #e5e7eb;
}

.poster.compact {
    height: 240px;
}

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

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

.badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 0 9px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.top-right {
    top: 12px;
    right: 12px;
}

.poster-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 12px 10px;
    color: #ffffff;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
    font-size: 12px;
    font-weight: 700;
}

.card-body {
    display: grid;
    gap: 9px;
    padding: 15px;
}

.card-body strong {
    min-height: 46px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.4;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card:hover .card-body strong {
    color: var(--blue);
}

.card-line {
    min-height: 42px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #6b7280;
    font-size: 12px;
}

.gradient-feature {
    position: relative;
    overflow: hidden;
    margin: 18px 0 46px;
    padding: 36px;
    border-radius: 34px;
    color: #ffffff;
    background: linear-gradient(100deg, #2563eb, #06b6d4);
    box-shadow: 0 24px 58px rgba(37, 99, 235, 0.2);
}

.gradient-feature::before,
.gradient-feature::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.gradient-feature::before {
    width: 260px;
    height: 260px;
    top: -120px;
    right: -110px;
}

.gradient-feature::after {
    width: 190px;
    height: 190px;
    bottom: -85px;
    left: -70px;
}

.gradient-feature > * {
    position: relative;
    z-index: 1;
}

.gradient-feature h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
}

.gradient-feature p {
    max-width: 680px;
    margin: 0 0 22px;
    color: #e0f2fe;
    line-height: 1.8;
}

.split-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: start;
}

.horizontal-list {
    display: grid;
    gap: 16px;
}

.horizontal-card {
    position: relative;
    display: flex;
    gap: 16px;
    min-width: 0;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.horizontal-card img {
    width: 112px;
    height: 112px;
    flex: 0 0 auto;
    border-radius: 16px;
    object-fit: cover;
}

.horizontal-body {
    display: grid;
    align-content: center;
    gap: 7px;
    min-width: 0;
}

.horizontal-body strong {
    color: var(--ink);
    font-size: 17px;
    line-height: 1.35;
}

.horizontal-body span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.horizontal-body em {
    color: var(--blue);
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
}

.rank-num {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.25);
    font-weight: 900;
}

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

.category-card {
    display: grid;
    min-height: 190px;
    align-content: space-between;
    padding: 24px;
    overflow: hidden;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4 58%, #14b8a6);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.category-card p {
    margin: 0;
    color: #e0f2fe;
    line-height: 1.65;
}

.category-card span {
    margin-top: 20px;
    font-weight: 850;
}

.page-hero {
    padding: 60px 0;
    color: #ffffff;
    background: linear-gradient(100deg, #2563eb, #06b6d4);
}

.page-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.page-title-row h1 {
    margin: 0;
    font-size: clamp(32px, 4.6vw, 54px);
    line-height: 1.18;
}

.page-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.search-panel {
    margin: 34px 0;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-row {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    color: #9ca3af;
    transform: translateY(-50%);
    font-size: 24px;
}

.site-search {
    width: 100%;
    height: 50px;
    padding: 0 18px 0 48px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    outline: none;
    color: var(--ink);
    background: #ffffff;
}

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

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.chip {
    border: 0;
    border-radius: 999px;
    padding: 9px 15px;
    color: #4b5563;
    background: #f3f4f6;
    font-weight: 750;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.chip:hover {
    transform: translateY(-2px);
    background: #e5e7eb;
}

.chip.active {
    color: #ffffff;
    background: var(--blue);
}

.empty-state {
    display: none;
    padding: 56px 20px;
    color: #6b7280;
    text-align: center;
    font-size: 18px;
}

.detail-hero {
    padding: 44px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1e3a8a 45%, #0891b2);
}

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

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

.detail-intro {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 30px;
    align-items: end;
}

.detail-cover {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}

.detail-cover img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
}

.detail-copy p {
    margin: 0 0 20px;
    max-width: 800px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.meta-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-main {
    padding: 44px 0 60px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.26);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16), rgba(2, 6, 23, 0.52));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--blue);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.32);
    font-size: 32px;
}

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

.article-card {
    margin-top: 32px;
    padding: 30px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.article-card h2 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 28px;
}

.article-card p {
    margin: 0 0 20px;
    color: #4b5563;
    line-height: 1.9;
}

.article-card p:last-child {
    margin-bottom: 0;
}

.site-footer {
    margin-top: 40px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 32px;
}

.footer-logo .brand-text {
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.footer-brand p,
.footer-group p {
    margin: 14px 0 0;
    color: #9ca3af;
    line-height: 1.75;
    font-size: 14px;
}

.footer-group {
    display: grid;
    align-content: start;
    gap: 9px;
}

.footer-group h3 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 18px;
}

.footer-group a {
    color: #9ca3af;
    font-size: 14px;
}

.footer-group a:hover {
    color: #60a5fa;
}

.footer-bottom {
    padding: 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1120px) {
    .desktop-nav {
        gap: 14px;
    }

    .movie-grid,
    .movie-grid.wide {
        grid-template-columns: repeat(4, 1fr);
    }

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

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

    .menu-toggle {
        display: flex;
    }

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

    .hero-inner {
        gap: 20px;
        padding-bottom: 82px;
    }

    .hero-stage {
        min-height: 480px;
    }

    .hero-slide {
        grid-template-columns: 0.8fr 1fr;
    }

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

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

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

@media (max-width: 640px) {
    .navbar,
    .mobile-nav,
    .container,
    .hero-inner,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

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

    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        padding-top: 34px;
    }

    .hero-stage {
        min-height: 660px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .hero-poster {
        min-height: 330px;
        transform: none;
    }

    .hero-poster img {
        min-height: 330px;
    }

    .hero-panel {
        padding: 20px;
    }

    .section-head {
        display: grid;
        align-items: start;
    }

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

    .poster,
    .poster.compact {
        height: 224px;
    }

    .card-body {
        padding: 12px;
    }

    .horizontal-card {
        gap: 12px;
    }

    .horizontal-card img {
        width: 96px;
        height: 106px;
    }

    .detail-cover img {
        height: 360px;
    }

    .article-card,
    .gradient-feature,
    .search-panel {
        padding: 20px;
        border-radius: 22px;
    }
}

@media (max-width: 420px) {
    .movie-grid,
    .movie-grid.wide,
    .feature-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .poster,
    .poster.compact {
        height: 330px;
    }
}
