:root {
    color-scheme: light;
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --green-50: #f0fdf4;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 30px 90px rgba(15, 23, 42, 0.24);
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--sky-50) 0%, var(--white) 45%, var(--orange-50) 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-500), var(--orange-500));
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--gray-600);
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--sky-700);
    background: var(--sky-50);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 14px;
    background: var(--sky-50);
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--sky-700);
    border-radius: 999px;
}

.hero-carousel {
    position: relative;
    height: min(720px, calc(100vh - 74px));
    min-height: 540px;
    overflow: hidden;
    background: #07111f;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-shade,
.detail-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.56) 45%, rgba(2, 6, 23, 0.16) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.82) 0%, rgba(2, 6, 23, 0.05) 45%);
}

.hero-content {
    position: absolute;
    left: max(36px, calc((100vw - 1180px) / 2));
    top: 50%;
    width: min(680px, calc(100% - 72px));
    transform: translateY(-50%);
    color: var(--white);
}

.hero-tags,
.movie-tags,
.intro-links,
.hero-actions,
.hero-meta,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-tags span,
.movie-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--sky-700);
    background: var(--sky-50);
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-content h1,
.page-hero h1,
.detail-hero-content h1 {
    margin: 20px 0 16px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content p,
.page-hero p,
.detail-hero-content p {
    max-width: 720px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(16px, 2vw, 20px);
}

.hero-meta {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
}

.primary-button,
.ghost-button,
.filter-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.primary-button:hover,
.filter-panel button:hover {
    transform: translateY(-2px);
    background: var(--sky-700);
}

.ghost-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.3);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-arrow.prev {
    left: 22px;
}

.hero-arrow.next {
    right: 22px;
}

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

.hero-dot {
    width: 22px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

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

.home-shell {
    display: grid;
    gap: 72px;
}

.intro-panel,
.soft-section,
.white-section,
.rank-section,
.detail-main-text,
.detail-side-card,
.watch-panel,
.player-section {
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.intro-panel,
.soft-section,
.white-section,
.rank-section {
    padding: clamp(24px, 4vw, 42px);
}

.intro-panel {
    margin-top: -86px;
    position: relative;
    z-index: 6;
    backdrop-filter: blur(18px);
}

.intro-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.intro-panel p {
    margin: 0;
    color: var(--gray-600);
    font-size: 18px;
}

.intro-links {
    margin-top: 24px;
}

.intro-links a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--sky-700);
    background: var(--sky-50);
    font-weight: 800;
}

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

.section-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-500), var(--orange-500));
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.section-more {
    color: var(--sky-700);
    font-weight: 800;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

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

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

.poster-badge,
.rating-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.poster-badge {
    top: 12px;
    right: 12px;
    background: rgba(2, 132, 199, 0.86);
}

.rating-badge {
    left: 12px;
    bottom: 12px;
    background: rgba(15, 23, 42, 0.72);
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.28;
    font-weight: 900;
}

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

.movie-card-body p {
    min-height: 50px;
    margin: 0 0 14px;
    color: var(--gray-600);
    font-size: 14px;
}

.movie-meta {
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 700;
}

.movie-meta span:not(:last-child)::after {
    content: "•";
    margin-left: 10px;
    color: var(--gray-300, #d1d5db);
}

.movie-tags {
    margin-top: 14px;
}

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

.category-tile,
.category-overview-card {
    display: block;
    min-height: 160px;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile.sky,
.category-overview-card.sky {
    background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
    color: var(--white);
}

.category-tile.orange,
.category-overview-card.orange {
    background: linear-gradient(135deg, var(--orange-500), var(--sky-600));
    color: var(--white);
}

.category-tile span,
.category-overview-card h2 {
    display: block;
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 900;
}

.category-tile p,
.category-overview-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.sample-links a {
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.rank-cover {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: var(--sky-50);
}

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

.rank-number {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--sky-600));
    font-weight: 900;
}

.rank-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
}

.rank-card p {
    margin: 0 0 10px;
    color: var(--gray-600);
    font-size: 14px;
}

.compact {
    gap: 8px;
}

.page-hero,
.detail-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, #0f172a 0%, #0369a1 48%, #f97316 100%);
}

.page-hero > div {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.compact-hero,
.category-hero,
.rank-hero {
    min-height: 320px;
}

.eyebrow {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.small-actions {
    margin-top: 24px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--gray-500);
    font-weight: 800;
}

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

.breadcrumb.light {
    color: rgba(255, 255, 255, 0.76);
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    outline: none;
    background: var(--white);
}

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

.filter-panel button {
    color: var(--white);
    background: var(--sky-600);
}

.filter-empty {
    display: none;
    margin: 0 0 26px;
    padding: 18px;
    border-radius: var(--radius-md);
    color: var(--gray-600);
    background: var(--orange-50);
    font-weight: 800;
}

.filter-empty.show {
    display: block;
}

.detail-hero {
    min-height: 560px;
    background: #07111f;
}

.detail-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 80px 0;
}

.detail-hero-content h1 {
    max-width: 860px;
    font-size: clamp(36px, 5.4vw, 72px);
}

.detail-meta {
    margin-bottom: 0;
}

.detail-shell {
    display: grid;
    gap: 48px;
}

.player-section {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
    gap: 24px;
    margin-top: -104px;
    position: relative;
    z-index: 5;
    padding: 24px;
    backdrop-filter: blur(18px);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #020617;
    box-shadow: var(--shadow-xl);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(2, 132, 199, 0.18), rgba(2, 6, 23, 0.38));
    cursor: pointer;
}

.play-overlay span {
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sky-500), var(--orange-500));
    box-shadow: var(--shadow-xl);
    font-size: 38px;
}

.player-shell.is-playing .play-overlay {
    display: none;
}

.watch-panel {
    padding: 26px;
}

.watch-panel h2,
.detail-main-text h2,
.detail-side-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 900;
}

.watch-panel p,
.detail-main-text p {
    margin: 0 0 18px;
    color: var(--gray-600);
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.75fr);
    gap: 24px;
}

.detail-main-text,
.detail-side-card {
    padding: clamp(24px, 4vw, 38px);
}

.detail-main-text p {
    color: var(--gray-700);
    font-size: 17px;
}

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

.detail-side-card dt {
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 900;
}

.detail-side-card dd {
    margin: -8px 0 8px;
    color: var(--gray-900);
    font-weight: 800;
}

.site-footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.82);
}

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

.footer-logo {
    color: var(--white);
}

.footer-inner p {
    max-width: 560px;
    margin: 14px 0 0;
}

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-copy {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
}

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

@media (max-width: 1040px) {
    .featured-grid,
    .four-grid,
    .wide-rank-list,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .three-grid,
    .rank-list,
    .player-section,
    .detail-content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 760px) {
    .site-header-inner {
        height: 66px;
    }

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

    .logo-mark {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

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

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid rgba(229, 231, 235, 0.9);
        border-radius: 22px;
        background: var(--white);
        box-shadow: var(--shadow-md);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        border-radius: 14px;
    }

    .hero-carousel {
        height: 620px;
        min-height: 620px;
    }

    .hero-content {
        left: 18px;
        width: calc(100% - 36px);
    }

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

    .hero-arrow {
        display: none;
    }

    .page-shell {
        width: min(100% - 24px, 1180px);
        padding: 42px 0 56px;
    }

    .intro-panel {
        margin-top: -64px;
    }

    .featured-grid,
    .four-grid,
    .three-grid,
    .wide-rank-list,
    .rank-list,
    .category-grid,
    .category-overview-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-card {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .page-hero > div,
    .detail-hero-content {
        width: min(100% - 24px, 1180px);
    }

    .detail-hero {
        min-height: 500px;
    }

    .player-section {
        margin-top: -72px;
        padding: 14px;
        border-radius: 24px;
    }

    .play-overlay span {
        width: 74px;
        height: 74px;
        font-size: 30px;
    }

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