:root {
    color-scheme: light;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --cyan-700: #0e7490;
    --blue-900: #1e3a8a;
    --rose-50: #fff1f2;
    --pink-50: #fdf2f8;
    --orange-50: #fff7ed;
    --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.14);
    --shadow-xl: 0 28px 60px rgba(15, 23, 42, 0.22);
    --radius-lg: 18px;
    --radius-xl: 24px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--slate-50);
    color: var(--slate-800);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.narrow-container {
    max-width: 860px;
}

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

.header-inner {
    width: min(100% - 32px, var(--container));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber-500), #ef4444);
    color: var(--white);
    font-size: 14px;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.34);
}

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

.desktop-nav a,
.mobile-nav a {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
    border-radius: 4px;
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--container));
    margin: 0 auto 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

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

.hero {
    position: relative;
    height: min(72vh, 640px);
    min-height: 520px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--slate-950), var(--slate-800));
}

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

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

.hero-slide img,
.detail-hero > img,
.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide img.is-missing,
.detail-hero > img.is-missing,
.category-tile img.is-missing,
.poster img.is-missing,
.rank-cover img.is-missing,
.cover-card img.is-missing {
    display: none;
}

.hero-shade,
.detail-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.48) 52%, rgba(15, 23, 42, 0.18));
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - var(--container)) / 2));
    bottom: 96px;
    width: min(680px, calc(100% - 48px));
    color: var(--white);
}

.hero-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(17px, 2vw, 21px);
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(14px);
}

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

.primary-button,
.ghost-button,
.section-action,
.text-button,
.filter-panel button,
.mini-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.section-action,
.filter-panel button,
.mini-search button {
    background: var(--amber-500);
    color: var(--white);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.28);
}

.primary-button:hover,
.section-action:hover,
.filter-panel button:hover,
.mini-search button:hover {
    background: var(--amber-600);
    transform: translateY(-1px);
}

.ghost-button {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.24);
}

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

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.hero-search {
    position: absolute;
    right: max(24px, calc((100vw - var(--container)) / 2));
    bottom: 92px;
    z-index: 4;
    width: min(420px, calc(100% - 48px));
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(18px);
}

.hero-search input,
.mini-search input,
.filter-panel input,
.filter-panel select {
    min-width: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    outline: 0;
    background: var(--white);
    color: var(--slate-800);
}

.hero-search input {
    flex: 1;
    padding: 0 14px;
}

.hero-search button {
    min-width: 76px;
    border: 0;
    border-radius: 12px;
    background: var(--amber-500);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
}

.section {
    padding: 64px 0;
    background: var(--white);
}

.section-soft {
    background: var(--slate-50);
}

.section-warm {
    background: linear-gradient(135deg, #fffbeb, var(--orange-50));
}

.section-cool {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-heading h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

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

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

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

.feature-card-grid {
    display: grid;
    gap: 24px;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.35), transparent 38%), linear-gradient(135deg, var(--slate-900), var(--blue-900));
}

.featured-card .poster {
    aspect-ratio: 16 / 8;
}

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

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

.poster::after,
.rank-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent);
}

.poster-title {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    color: var(--white);
    font-weight: 800;
    line-height: 1.35;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.quality-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--amber-500);
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 700;
}

.movie-meta-line span + span::before {
    content: "•";
    margin-right: 8px;
    color: var(--slate-300, #cbd5e1);
}

.movie-card h3 {
    margin: 10px 0 8px;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-item h3 a:hover {
    color: var(--amber-600);
}

.movie-card p {
    display: -webkit-box;
    min-height: 46px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--slate-600);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card .tag-row span,
.detail-tags span {
    background: var(--slate-100);
    color: var(--slate-600);
}

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

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

.category-tile {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--slate-900), var(--cyan-700));
    box-shadow: var(--shadow-lg);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.24));
}

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 22px;
    right: 22px;
    z-index: 2;
    color: var(--white);
}

.category-tile strong {
    bottom: 58px;
    font-size: 24px;
    font-style: normal;
    font-weight: 900;
}

.category-tile em {
    bottom: 22px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-style: normal;
}

.page-hero,
.category-hero,
.rank-hero,
.search-hero {
    padding: 88px 0;
    background: linear-gradient(135deg, var(--blue-900), var(--cyan-700));
    color: var(--white);
}

.page-hero h1,
.category-hero h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.page-hero p,
.category-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.category-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.mini-search {
    display: flex;
    min-width: 360px;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.mini-search input {
    flex: 1;
    padding: 0 14px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(140px, 1fr)) auto;
    gap: 12px;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.filter-panel input,
.filter-panel select {
    min-height: 48px;
    padding: 0 14px;
}

.filter-status {
    margin: 18px 0 24px;
    color: var(--slate-500);
    font-weight: 700;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 64px 88px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.rank-number {
    color: var(--amber-500);
    font-size: 26px;
    font-weight: 900;
}

.rank-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--slate-900), var(--blue-900));
}

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

.rank-info h3 {
    margin: 0 0 6px;
    color: var(--slate-900);
    font-size: 20px;
}

.rank-info p {
    margin: 0 0 8px;
    color: var(--slate-600);
}

.text-button {
    background: var(--slate-900);
    color: var(--white);
}

.text-button:hover {
    background: var(--amber-600);
}

.detail-hero {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.detail-hero > img {
    position: absolute;
    inset: 0;
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0 72px;
    color: var(--white);
}

.detail-hero h1 {
    max-width: 900px;
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-hero p {
    max-width: 780px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 19px;
}

.detail-section {
    background: var(--slate-50);
}

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

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

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

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    min-width: 138px;
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.94);
    color: var(--white);
    font-weight: 900;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.34);
}

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

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 3;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    backdrop-filter: blur(12px);
}

.content-panel,
.side-card {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.content-panel h2,
.side-card h2 {
    margin: 0 0 14px;
    color: var(--slate-900);
    font-size: 24px;
}

.content-panel p {
    margin: 0;
    color: var(--slate-600);
    font-size: 17px;
}

.cover-card {
    margin-top: 0;
}

.cover-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--slate-900), var(--blue-900));
}

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

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

.info-list dt {
    color: var(--slate-500);
    font-weight: 700;
}

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

.nav-card {
    display: grid;
    gap: 12px;
}

.nav-card a {
    color: var(--blue-900);
    font-weight: 800;
}

.simple-content {
    margin-top: 0;
}

.site-footer {
    background: var(--slate-950);
    color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 42px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    max-width: 680px;
    margin: 12px 0 0;
}

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

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

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

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

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

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

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

    .mobile-menu-button {
        display: block;
    }

    .hero {
        min-height: 620px;
    }

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

    .hero-search {
        left: 24px;
        right: 24px;
        bottom: 92px;
        width: auto;
    }

    .hero-arrow {
        display: none;
    }

    .section-heading,
    .category-hero-inner,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .mini-search {
        width: 100%;
        min-width: 0;
    }

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

    .ranking-item {
        grid-template-columns: 46px 72px 1fr;
    }

    .ranking-item .text-button {
        grid-column: 2 / -1;
    }
}

@media (max-width: 640px) {
    .container,
    .header-inner,
    .footer-inner {
        width: min(100% - 24px, var(--container));
    }

    .hero {
        min-height: 660px;
    }

    .hero-search {
        flex-direction: column;
    }

    .hero-search input,
    .hero-search button {
        min-height: 46px;
    }

    .section,
    .page-hero,
    .category-hero {
        padding: 44px 0;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .large-category-grid,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .featured-card .poster {
        aspect-ratio: 2 / 3;
    }

    .ranking-item {
        grid-template-columns: 42px 62px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-info p {
        display: none;
    }

    .content-panel,
    .side-card {
        padding: 18px;
    }
}
