:root {
    color-scheme: light;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #101827;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.1);
    --deep: #0f172a;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --orange: #f97316;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 45%, #f8fafc 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(15, 23, 42, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.25);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 21px;
    letter-spacing: -0.02em;
}

.brand-text small {
    color: #67e8f9;
    font-size: 12px;
    margin-top: 4px;
}

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

.nav-link {
    color: #dbeafe;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #22d3ee;
}

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

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 99px;
}

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

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

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

.hero {
    position: relative;
    min-height: 630px;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.32), transparent 34%), linear-gradient(135deg, #0f172a, #1e3a8a 52%, #155e75);
    color: #ffffff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.34));
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 4s ease;
}

.hero-slide.is-active .hero-bg {
    opacity: 0.58;
    transform: scale(1.1);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 630px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 380px;
    align-items: center;
    gap: 56px;
    padding: 62px 0 118px;
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #cffafe;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.hero h1 span {
    color: #22d3ee;
}

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

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

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.34);
}

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

.btn-ghost {
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-poster {
    position: relative;
    padding: 18px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.17);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}

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

.hero-poster-card {
    position: absolute;
    right: 0;
    bottom: 30px;
    transform: translateX(22px);
    width: 210px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.hero-poster-card strong {
    display: block;
    margin-bottom: 6px;
}

.hero-poster-card span {
    color: #bae6fd;
    font-size: 13px;
}

.hero-tools {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 32px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hero-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 620px;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.24);
}

.hero-search input {
    width: 100%;
    outline: none;
    color: #0f172a;
    font-size: 16px;
}

.hero-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-arrow,
.hero-dot {
    cursor: pointer;
    border: 0;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 28px;
    background: #22d3ee;
}

main {
    position: relative;
}

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

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

.section-heading h1,
.section-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.section-more {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

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

.movie-card {
    border-radius: 24px;
    overflow: hidden;
    background: var(--card);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

.movie-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.poster-frame {
    position: relative;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
    overflow: hidden;
}

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

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

.score-pill,
.rank-badge {
    position: absolute;
    top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.score-pill {
    right: 10px;
    background: rgba(15, 23, 42, 0.78);
}

.rank-badge {
    left: 10px;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

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

.movie-kicker {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 7px 0 6px;
    font-size: 17px;
    line-height: 1.32;
    font-weight: 900;
}

.movie-card p {
    min-height: 42px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: #475569;
    font-size: 12px;
}

.movie-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

.feature-band {
    margin-top: 76px;
    padding: 34px;
    border-radius: 32px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.category-card {
    display: block;
    min-height: 160px;
    padding: 24px;
    border-radius: 26px;
    color: #ffffff;
    text-decoration: none;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 36%), linear-gradient(135deg, #1d4ed8, #0891b2);
    box-shadow: 0 18px 50px rgba(37, 99, 235, 0.18);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

.category-card p {
    margin: 0;
    color: #dff8ff;
    line-height: 1.75;
}

.rank-panel {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: stretch;
}

.rank-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.rank-item a {
    display: grid;
    grid-template-columns: 46px 76px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 22px;
    color: inherit;
    text-decoration: none;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rank-number {
    color: #2563eb;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rank-thumb {
    width: 76px;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    object-fit: cover;
    background: #dbeafe;
}

.rank-title {
    margin: 0 0 7px;
    font-weight: 900;
}

.rank-desc {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin-bottom: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.08);
}

.toolbar input {
    flex: 1 1 260px;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: none;
}

.filter-chip {
    min-height: 42px;
    padding: 0 15px;
    border-radius: 999px;
    color: #0f172a;
    background: #f1f5f9;
    font-weight: 800;
    cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.page-hero {
    padding: 84px 0 44px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 0, rgba(34, 211, 238, 0.34), transparent 30%), linear-gradient(135deg, #0f172a, #1e3a8a);
}

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

.page-hero p {
    max-width: 780px;
    color: #dbeafe;
    font-size: 17px;
    line-height: 1.85;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #bae6fd;
    font-weight: 700;
}

.breadcrumb a {
    color: #e0f2fe;
    text-decoration: none;
}

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

.player-card,
.detail-card,
.aside-card {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 56px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.player-shell {
    position: relative;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.76));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-button {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 18px 48px rgba(37, 99, 235, 0.38);
    font-size: 28px;
    cursor: pointer;
}

.player-title {
    padding: 20px 24px 24px;
}

.player-title h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 900;
}

.player-title p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.detail-card {
    padding: 26px;
}

.detail-card h2,
.aside-card h2 {
    margin: 0 0 16px;
    font-size: 25px;
    font-weight: 900;
}

.detail-card p {
    color: #334155;
    line-height: 1.92;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

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

.aside-card {
    padding: 18px;
}

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

.aside-item {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.aside-item img {
    width: 78px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    background: #dbeafe;
}

.aside-item strong {
    display: block;
    line-height: 1.4;
}

.aside-item span {
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    margin-top: 86px;
    padding: 54px 0;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.footer-brand {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.footer-inner p {
    max-width: 720px;
    color: #94a3b8;
    line-height: 1.8;
}

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

.footer-links a {
    color: #bae6fd;
    text-decoration: none;
    font-weight: 700;
}

.copyright {
    color: #64748b;
}

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

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

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

    .mobile-toggle {
        display: inline-flex;
    }

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

    .hero {
        min-height: 760px;
    }

    .hero-content {
        min-height: 760px;
        grid-template-columns: 1fr;
        gap: 28px;
        align-items: end;
        padding-top: 48px;
        padding-bottom: 170px;
    }

    .hero-poster {
        width: min(280px, 78vw);
    }

    .hero-poster-card {
        right: 14px;
        transform: none;
    }

    .hero-tools {
        flex-direction: column;
        align-items: stretch;
    }

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

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

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

    .container,
    .footer-inner,
    .mobile-nav {
        width: min(100% - 24px, 1180px);
    }

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

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

    .hero-search {
        min-height: 54px;
        border-radius: 18px;
    }

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

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

    .movie-card p {
        display: none;
    }

    .category-card,
    .feature-band,
    .detail-card,
    .aside-card {
        border-radius: 22px;
    }

    .rank-item a {
        grid-template-columns: 36px 62px 1fr;
    }

    .rank-thumb {
        width: 62px;
    }

    .page-section {
        padding-top: 48px;
    }
}
