:root {
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-200: #bae6fd;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --blue-100: #dbeafe;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 34px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.24);
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-800);
    background: linear-gradient(180deg, var(--sky-50) 0%, var(--white) 44%, var(--slate-50) 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(240, 249, 255, 0.96), rgba(219, 234, 254, 0.96));
    border-bottom: 1px solid var(--sky-200);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--slate-800);
    flex: 0 0 auto;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.28);
}

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

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

.brand-text em {
    margin-top: 4px;
    color: var(--slate-500);
    font-size: 12px;
    font-style: normal;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    color: var(--slate-700);
    font-size: 15px;
    font-weight: 650;
    padding: 10px 12px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--sky-700);
    background: rgba(14, 165, 233, 0.12);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--sky-200);
    border-radius: 999px;
}

.top-search input {
    width: 188px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 6px 8px 12px;
    color: var(--slate-700);
}

.top-search button,
.search-panel button,
.filter-field select,
.filter-field input {
    border: 0;
    outline: 0;
}

.top-search button,
.search-panel button {
    cursor: pointer;
    color: var(--white);
    font-weight: 700;
    background: var(--sky-600);
    border-radius: 999px;
    padding: 8px 14px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.top-search button:hover,
.search-panel button:hover {
    background: var(--sky-700);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--slate-700);
    border-radius: 99px;
}

.page-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 54px;
}

.hero-section {
    position: relative;
    height: 500px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 54px;
    box-shadow: var(--shadow-lg);
    background: var(--slate-900);
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.38) 48%, rgba(2, 6, 23, 0.1));
}

.hero-content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 50px;
    color: var(--white);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 7px 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.32);
}

.hero-content h1,
.page-hero h1,
.ranking-hero h1,
.detail-info h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    line-height: 1.7;
}

.hero-tags,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin: 22px 0 0;
}

.hero-tags span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

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

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

.button-light {
    color: var(--sky-700);
    background: var(--white);
    box-shadow: 0 14px 34px rgba(255, 255, 255, 0.18);
}

.button-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.button-primary {
    color: var(--white);
    background: var(--sky-600);
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.28);
}

.button-soft {
    color: var(--sky-700);
    background: var(--sky-100);
}

.content-section {
    margin-bottom: 58px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.section-heading.compact {
    margin-bottom: 16px;
}

.section-heading h2 {
    display: flex;
    align-items: center;
    margin: 0;
    color: var(--slate-800);
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.03em;
}

.section-heading h2 span {
    width: 4px;
    height: 34px;
    display: inline-block;
    margin-right: 12px;
    border-radius: 99px;
    background: var(--sky-600);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--sky-700);
    font-weight: 800;
}

.section-more span {
    font-size: 22px;
    line-height: 1;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

.six-cols {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

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

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sky-100), var(--blue-100));
}

.movie-card-large .poster-link {
    aspect-ratio: 16 / 9;
}

.movie-card-small .poster-link {
    aspect-ratio: 16 / 10;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.12) 55%, transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.play-chip {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.78);
    opacity: 0;
    color: var(--sky-700);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    white-space: nowrap;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.28);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    color: var(--slate-800);
    font-size: 17px;
    line-height: 1.35;
}

.card-body h3 a {
    transition: color 0.2s ease;
}

.movie-card:hover h3 a {
    color: var(--sky-700);
}

.card-body p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--slate-500);
    font-size: 14px;
    line-height: 1.6;
}

.card-meta {
    align-items: center;
    justify-content: space-between;
    color: var(--slate-500);
    font-size: 12px;
}

.card-meta span:last-child {
    color: var(--sky-700);
    background: var(--sky-100);
    border-radius: 999px;
    padding: 4px 8px;
}

.highlight-section {
    padding: 34px;
    border-radius: var(--radius-xl);
    background: linear-gradient(90deg, var(--sky-100), var(--blue-100));
    box-shadow: var(--shadow-sm);
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 560px);
    gap: 24px;
    align-items: center;
    padding: 34px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.search-panel h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.search-panel p {
    margin: 0;
    color: var(--slate-500);
    line-height: 1.7;
}

.search-panel form {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: var(--slate-100);
    border-radius: 999px;
}

.search-panel input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 12px 14px;
}

.search-panel button {
    padding: 0 22px;
}

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

.ranking-card {
    position: sticky;
    top: 94px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 11px;
    border-radius: 14px;
    background: var(--slate-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: var(--sky-100);
    transform: translateX(3px);
}

.rank-number {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--sky-600);
    border-radius: 10px;
    font-weight: 900;
}

.rank-title {
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    color: var(--slate-500);
    font-size: 13px;
}

.page-hero,
.ranking-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 34px;
}

.slim-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 230px;
    padding: 40px;
    color: var(--white);
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.55), transparent 34%), linear-gradient(135deg, var(--slate-900), var(--sky-700));
}

.slim-hero p,
.ranking-hero p,
.detail-one-line {
    max-width: 760px;
    margin: 0;
    line-height: 1.75;
}

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

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

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

.category-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: 190px;
    background: linear-gradient(135deg, var(--sky-100), var(--blue-100));
}

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

.category-body {
    padding: 22px;
}

.category-body h2 {
    margin: 0 0 10px;
}

.category-body p {
    min-height: 50px;
    margin: 0 0 16px;
    color: var(--slate-500);
    line-height: 1.65;
}

.category-body span {
    color: var(--sky-700);
    font-weight: 800;
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: end;
    margin-bottom: 30px;
    padding: 22px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.filter-field {
    min-width: 170px;
    display: grid;
    gap: 8px;
}

.filter-field.grow {
    flex: 1 1 320px;
}

.filter-field label {
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 800;
}

.filter-field input,
.filter-field select {
    width: 100%;
    height: 44px;
    color: var(--slate-800);
    background: var(--slate-100);
    border-radius: 12px;
    padding: 0 14px;
}

.empty-state {
    display: none;
    margin-top: 20px;
    padding: 28px;
    text-align: center;
    color: var(--slate-500);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.ranking-hero {
    height: 430px;
    background: var(--slate-900);
}

.ranking-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.12));
}

.ranking-hero-text {
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;
    width: min(720px, 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    color: var(--white);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 4px 0 22px;
    color: var(--slate-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--sky-700);
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 34px;
    align-items: stretch;
    padding: 30px;
    margin-bottom: 34px;
    color: var(--white);
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.46), transparent 36%), linear-gradient(135deg, var(--slate-900), #082f49);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--sky-100), var(--blue-100));
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.26);
}

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

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-info h1 {
    font-size: clamp(32px, 5vw, 54px);
}

.detail-one-line {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.detail-meta {
    margin-top: 20px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tag-cloud span {
    color: var(--sky-700);
    background: rgba(224, 242, 254, 0.95);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
}

.player-section,
.story-card {
    padding: 28px;
    margin-bottom: 28px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.player-section h2,
.story-card h2 {
    margin: 0 0 18px;
    color: var(--slate-800);
    font-size: 26px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--slate-900);
    border-radius: var(--radius-lg);
}

.player-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: var(--slate-900);
}

.player-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: var(--white);
    border: 0;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.28));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-button span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    color: var(--sky-700);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    font-size: 32px;
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.28);
}

.player-button strong {
    font-size: 18px;
}

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

.detail-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
}

.story-card p {
    margin: 0;
    color: var(--slate-700);
    line-height: 1.9;
    font-size: 16px;
}

.site-footer {
    margin-top: 40px;
    padding: 42px 0;
    background: var(--white);
    border-top: 1px solid var(--slate-200);
}

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

.footer-brand {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--slate-800);
    font-size: 22px;
    font-weight: 900;
}

.site-footer p {
    max-width: 520px;
    margin: 0;
    color: var(--slate-500);
    line-height: 1.7;
}

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

.footer-links a {
    color: var(--slate-600);
    background: var(--slate-100);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--sky-700);
    background: var(--sky-100);
}

@media (max-width: 1120px) {
    .nav-panel {
        position: fixed;
        top: 68px;
        left: 16px;
        right: 16px;
        display: none;
        padding: 18px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid var(--sky-200);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
    }

    .nav-panel.is-open {
        display: grid;
        gap: 16px;
    }

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

    .top-search {
        width: 100%;
    }

    .top-search input {
        width: 100%;
        flex: 1;
    }

    .menu-toggle {
        display: block;
    }

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

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

    .ranking-card {
        position: static;
    }

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

@media (max-width: 860px) {
    .page-shell {
        width: min(100% - 22px, 1240px);
        padding-top: 22px;
    }

    .hero-section {
        height: 460px;
        border-radius: 22px;
    }

    .hero-content,
    .ranking-hero-text {
        padding: 30px;
    }

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

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

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

    .detail-poster img {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .slim-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .brand-text strong {
        font-size: 17px;
    }

    .brand-text em {
        display: none;
    }

    .hero-section {
        height: 430px;
    }

    .hero-content {
        padding: 24px;
    }

    .hero-content h1,
    .page-hero h1,
    .ranking-hero h1,
    .detail-info h1 {
        font-size: 32px;
    }

    .hero-content p,
    .detail-one-line {
        font-size: 16px;
    }

    .three-cols,
    .four-cols,
    .six-cols,
    .category-overview {
        grid-template-columns: 1fr;
    }

    .highlight-section,
    .search-panel,
    .slim-hero,
    .detail-hero,
    .player-section,
    .story-card {
        padding: 22px;
    }

    .search-panel form {
        border-radius: 18px;
        flex-direction: column;
    }

    .rank-row {
        grid-template-columns: 34px 1fr;
    }

    .rank-meta {
        grid-column: 2;
    }
}
