:root {
    color-scheme: light;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --red-50: #fef2f2;
    --text-900: #111827;
    --text-700: #374151;
    --text-600: #4b5563;
    --text-500: #6b7280;
    --line: #e5e7eb;
    --soft: #f9fafb;
    --sand: #f8f4ef;
    --dark: #111827;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.18);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.08);
}

.header-inner {
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--text-900);
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--red-600), #f97316);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.22);
    font-size: 13px;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
}

.nav-link,
.mobile-nav-link {
    color: var(--text-700);
    font-weight: 650;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 9px 13px;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--red-600);
    background: var(--red-50);
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--text-700);
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 10px 16px 16px;
}

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

.mobile-nav-link {
    padding: 11px 14px;
}

.hero-carousel {
    position: relative;
    height: min(720px, 72vh);
    min-height: 520px;
    overflow: hidden;
    background: #09090b;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1.1s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-slide img {
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
    max-width: 680px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 13px;
    border-radius: 999px;
    color: #fff;
    background: var(--red-600);
    font-size: 14px;
    font-weight: 750;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.25);
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-intro h1 {
    margin: 18px 0 14px;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

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

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.hero-meta span {
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.primary-button,
.ghost-button,
.text-button,
.panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    padding: 12px 26px;
    color: #fff;
    background: var(--red-600);
    box-shadow: 0 16px 30px rgba(220, 38, 38, 0.25);
}

.primary-button:hover {
    transform: translateY(-2px);
    background: var(--red-700);
    box-shadow: 0 20px 34px rgba(220, 38, 38, 0.32);
}

.ghost-button {
    padding: 11px 24px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.ghost-button.dark {
    color: var(--text-900);
    border-color: rgba(17, 24, 39, 0.12);
    background: rgba(255, 255, 255, 0.78);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-control.prev {
    left: 24px;
}

.hero-control.next {
    right: 24px;
}

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

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

.hero-dot.is-active {
    width: 32px;
    background: #fff;
}

.category-strip {
    background: #f9fafb;
    border-bottom: 1px solid var(--line);
}

.category-strip-inner {
    display: flex;
    gap: 12px;
    padding: 24px 0;
    overflow-x: auto;
}

.category-strip a {
    flex: 0 0 auto;
    padding: 12px 22px;
    border-radius: 14px;
    color: var(--text-700);
    background: #fff;
    font-weight: 750;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.category-strip a:hover {
    color: var(--red-600);
    background: var(--red-50);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.1);
}

.section-block {
    padding-top: 72px;
    padding-bottom: 72px;
}

.section-block.tinted {
    background: #fff;
}

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

.section-heading.compact {
    justify-content: flex-start;
}

.section-heading > div {
    flex: 1;
}

.section-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 14px;
    color: var(--red-600);
    background: var(--red-50);
}

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

.section-heading p {
    margin: 4px 0 0;
    color: var(--text-600);
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    height: 330px;
    overflow: hidden;
    background: #111827;
}

.movie-card.small .poster-link {
    height: 230px;
}

.movie-card.large .poster-link {
    height: 420px;
}

.poster-link img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.66));
    transition: opacity 0.25s ease;
}

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

.year-badge,
.rank-badge,
.play-chip {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
}

.year-badge {
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    background: var(--red-600);
    font-size: 12px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(8px);
}

.play-chip {
    left: 50%;
    bottom: 16px;
    opacity: 0;
    padding: 8px 16px;
    background: var(--red-600);
    transform: translate(-50%, 8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

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

.movie-card p {
    min-height: 44px;
    margin: 8px 0 13px;
    color: var(--text-600);
    font-size: 14px;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-500);
    font-size: 13px;
}

.movie-meta span:last-child {
    color: var(--text-700);
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 8px;
}

.movie-tags-line {
    margin-top: 10px;
    color: var(--text-500);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
    align-items: start;
}

.ranking-panel,
.detail-side {
    border-radius: 24px;
    padding: 22px;
    background: #111827;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.ranking-panel h2,
.detail-side h2 {
    margin: 0 0 18px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 72px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(4px);
}

.compact-card img {
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
}

.compact-card strong {
    display: block;
    color: #fff;
    line-height: 1.35;
}

.compact-card em {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.65);
    font-style: normal;
    font-size: 13px;
}

.mini-rank {
    display: none;
}

.panel-link,
.text-button {
    margin-top: 18px;
    color: var(--red-600);
}

.panel-link:hover,
.text-button:hover {
    color: var(--red-700);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0;
    background: radial-gradient(circle at 10% 10%, rgba(220, 38, 38, 0.22), transparent 30%), linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
}

.small-hero {
    padding: 76px 0;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.82);
}

.category-hero-grid,
.ranking-hero-grid,
.detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 42px;
    align-items: center;
}

.category-preview-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    transform: rotate(2deg);
}

.category-preview-stack a {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.category-preview-stack img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

.category-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.category-card-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    min-height: 240px;
    background: #111827;
}

.category-card-visual img {
    height: 100%;
    object-fit: cover;
}

.category-card-body {
    padding: 24px;
}

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

.category-card p {
    color: var(--text-600);
}

.category-samples {
    font-size: 14px;
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.search-box {
    display: flex;
    align-items: center;
    min-width: min(420px, 100%);
    gap: 12px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f9fafb;
}

.search-box span {
    color: var(--text-500);
    font-weight: 700;
}

.search-box input {
    width: 100%;
    height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-900);
}

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

.filter-button {
    padding: 9px 14px;
    border: 0;
    border-radius: 999px;
    color: var(--text-700);
    background: #f3f4f6;
    cursor: pointer;
    font-weight: 750;
}

.filter-button:hover,
.filter-button.is-active {
    color: #fff;
    background: var(--red-600);
}

.empty-state {
    width: 100%;
    margin: 0;
    padding: 16px;
    border-radius: 12px;
    color: var(--text-600);
    background: #f9fafb;
}

.ranking-cover img,
.detail-poster img {
    border-radius: 26px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.glass-panel {
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(14px);
}

.ranking-hero-grid {
    grid-template-columns: 260px minmax(0, 1fr) 330px;
}

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

.detail-intro h1 {
    color: #fff;
}

.detail-lead {
    color: rgba(255, 255, 255, 0.86);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
}

.breadcrumb a:hover {
    color: #fff;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.detail-meta-grid span {
    display: grid;
    gap: 3px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
}

.detail-meta-grid b {
    color: rgba(255, 255, 255, 0.54);
    font-size: 12px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tag-cloud span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.player-section {
    margin-top: -40px;
    position: relative;
    z-index: 5;
}

.stream-player {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

.stream-player video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
    cursor: pointer;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.48));
    cursor: pointer;
}

.player-start span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--red-600);
    box-shadow: 0 20px 44px rgba(220, 38, 38, 0.35);
    font-size: 30px;
    text-indent: 4px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-start:hover span {
    transform: scale(1.06);
    background: var(--red-700);
}

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

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    margin-top: 42px;
}

.detail-article {
    padding: 30px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.detail-article h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-article h2:not(:first-child) {
    margin-top: 30px;
}

.detail-article p {
    margin: 0;
    color: var(--text-700);
    font-size: 17px;
    line-height: 1.9;
}

.detail-side {
    align-self: start;
    position: sticky;
    top: 88px;
}

.site-footer {
    margin-top: 50px;
    padding: 56px 0 24px;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    color: #fff;
    margin-bottom: 14px;
}

.footer-brand-block p {
    max-width: 560px;
    color: #cbd5e1;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #fff;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
    text-align: center;
    font-size: 14px;
}

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

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

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

    .two-column-layout,
    .category-hero-grid,
    .ranking-hero-grid,
    .detail-hero-grid,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ranking-panel,
    .detail-side {
        position: static;
    }

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

    .category-card-visual {
        min-height: 200px;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero-carousel {
        min-height: 610px;
        height: 78vh;
    }

    .hero-content h1,
    .hero-content h2,
    .page-hero h1,
    .detail-intro h1 {
        font-size: 36px;
    }

    .hero-control {
        display: none;
    }

    .section-block {
        padding-top: 46px;
        padding-bottom: 46px;
    }

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

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

    .poster-link {
        height: 360px;
    }

    .filter-panel {
        align-items: stretch;
    }

    .search-box,
    .filter-buttons {
        width: 100%;
    }

    .filter-buttons {
        justify-content: flex-start;
    }

    .category-preview-stack {
        display: none;
    }

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

    .player-start span {
        width: 68px;
        height: 68px;
        font-size: 24px;
    }
}
