:root {
    color-scheme: light;
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 24px 55px rgba(15, 23, 42, 0.14);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--slate-50), #ffffff 45%, var(--sky-50));
    color: var(--slate-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

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: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--sky-500), var(--blue-600));
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.logo-mark,
.footer-logo span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

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

.desktop-nav a,
.mobile-nav a {
    opacity: 0.94;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    opacity: 1;
    color: var(--sky-100);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
}

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

.mobile-nav a {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
}

.hero-slider {
    position: relative;
    height: 580px;
    overflow: hidden;
    background: var(--slate-900);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 30%, rgba(56, 189, 248, 0.12), transparent 28%), linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.42) 48%, rgba(2, 6, 23, 0.18));
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100vw - 1180px) / 2));
    right: max(32px, calc((100vw - 1180px) / 2));
    bottom: 72px;
    max-width: 760px;
    color: var(--white);
}

.hero-eyebrow,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #dff6ff;
    background: rgba(14, 165, 233, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-content h1,
.hero-content h2 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;
    font-weight: 900;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.hero-movie-title {
    font-size: clamp(24px, 3vw, 42px) !important;
    color: #e0f2fe;
}

.hero-content p {
    max-width: 660px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-tags,
.tag-row,
.detail-tags,
.chip-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-tags span,
.chip-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--sky-500);
    background: var(--sky-50);
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.hero-actions,
.center-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--white);
    background: linear-gradient(90deg, var(--sky-500), var(--blue-600));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.ghost-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.detail-actions .ghost-button {
    color: var(--blue-600);
    background: var(--sky-50);
    box-shadow: inset 0 0 0 1px var(--sky-100);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.24);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.42);
    font-size: 36px;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

section.container {
    padding: 48px 0;
}

.section-title {
    margin-bottom: 24px;
}

.section-title h2 {
    position: relative;
    margin: 0 0 10px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.18;
    font-weight: 900;
}

.section-title h2::after {
    content: "";
    display: block;
    width: 84px;
    height: 4px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sky-500), var(--blue-600));
}

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

.home-search {
    margin-top: -34px;
    position: relative;
    z-index: 3;
}

.filter-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.search-box {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    color: var(--slate-700);
    font-weight: 900;
}

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

.search-box input:focus {
    border-color: var(--sky-400);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-row button {
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    padding: 0 13px;
    color: var(--slate-700);
    background: var(--slate-100);
    font-weight: 800;
}

.filter-row button.is-active,
.filter-row button:hover {
    color: var(--white);
    background: linear-gradient(90deg, var(--sky-500), var(--blue-600));
}

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

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

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--slate-200);
}

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

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

.card-badge,
.card-play {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(15, 23, 42, 0.64);
    backdrop-filter: blur(10px);
}

.card-badge {
    top: 10px;
    left: 10px;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.card-play {
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

.movie-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
}

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

.card-meta {
    margin: 0 0 8px;
    color: var(--slate-500);
    font-size: 13px;
}

.card-desc {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--slate-700);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

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

.category-card,
.category-overview-card a {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border-radius: var(--radius-md);
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-card span,
.category-overview-card span {
    font-size: 22px;
    font-weight: 900;
}

.category-card strong,
.category-overview-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    font-weight: 600;
}

.rank-panel,
.article-card,
.info-card,
.detail-card {
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.rank-panel {
    padding: 20px;
}

.rank-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.rank-head h2 {
    margin: 0;
    font-size: 22px;
}

.rank-head a {
    color: var(--blue-600);
    font-weight: 900;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 34px 54px 1fr;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.rank-row:hover {
    background: var(--sky-50);
}

.rank-number {
    color: var(--blue-600);
    font-size: 20px;
    font-weight: 900;
}

.rank-row img {
    width: 54px;
    height: 74px;
    border-radius: 10px;
    object-fit: cover;
}

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info strong {
    font-weight: 900;
}

.rank-info em {
    color: var(--slate-500);
    font-size: 12px;
    font-style: normal;
}

.page-hero {
    color: var(--white);
    background: radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.26), transparent 26%), linear-gradient(120deg, var(--slate-900), var(--blue-700));
}

.slim-hero {
    padding: 76px 0 58px;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 760px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

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

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

.ranking-card {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 18px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.ranking-cover {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 2 / 3;
}

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

.ranking-cover span {
    position: absolute;
    z-index: 1;
    left: 8px;
    top: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(90deg, var(--sky-500), var(--blue-600));
    font-weight: 900;
}

.ranking-card h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.ranking-card p {
    margin: 0 0 10px;
    color: var(--slate-700);
}

.detail-hero {
    padding: 34px 0 42px;
    color: var(--white);
    background: radial-gradient(circle at 78% 25%, rgba(56, 189, 248, 0.24), transparent 28%), linear-gradient(135deg, #020617, #1d4ed8 145%);
}

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

.player-panel {
    min-width: 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #020617;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.22));
}

.player-overlay.is-hidden {
    display: none;
}

.player-overlay span {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sky-500), var(--blue-600));
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.38);
    font-size: 30px;
}

.player-overlay strong {
    font-size: 20px;
}

.detail-card {
    overflow: hidden;
    color: var(--slate-900);
}

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

.detail-card > div {
    padding: 18px;
}

.detail-card h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
}

.detail-card p {
    margin: 0;
    color: var(--slate-700);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.article-card,
.info-card {
    padding: 24px;
}

.article-card h2,
.info-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.article-card p {
    margin: 0 0 22px;
    color: var(--slate-700);
    font-size: 16px;
}

.info-card {
    position: sticky;
    top: 96px;
}

.info-card dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.info-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--slate-100);
}

.info-card dt {
    color: var(--slate-500);
}

.info-card dd {
    margin: 0;
    color: var(--slate-900);
    font-weight: 900;
    text-align: right;
}

.site-footer {
    margin-top: 56px;
    padding: 48px 0 24px;
    color: #cbd5e1;
    background: #0f172a;
}

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

.footer-logo {
    margin-bottom: 14px;
    color: var(--white);
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

.site-footer p {
    margin: 0;
    color: #94a3b8;
}

.footer-links {
    display: grid;
    gap: 8px;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    text-align: center;
    font-size: 14px;
}

.is-filter-hidden {
    display: none !important;
}

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

    .split-section,
    .detail-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .detail-card {
        display: grid;
        grid-template-columns: 180px 1fr;
    }

    .detail-card img {
        height: 100%;
    }

    .info-card {
        position: static;
    }
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero-slider {
        height: 520px;
    }

    .hero-content {
        left: 24px;
        right: 24px;
        bottom: 70px;
    }

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

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

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

@media (max-width: 640px) {
    .nav-shell {
        height: 64px;
    }

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

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .hero-slider {
        height: 560px;
    }

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

    .hero-arrow {
        display: none;
    }

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

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

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

    .ranking-card {
        grid-template-columns: 92px 1fr;
        gap: 14px;
    }

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

    .detail-card img {
        max-height: 420px;
    }

    .article-card,
    .info-card {
        padding: 18px;
    }
}
