:root {
    --red-900: #7f1d1d;
    --red-800: #991b1b;
    --red-700: #b91c1c;
    --red-600: #dc2626;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--red-900), var(--red-700));
    box-shadow: 0 10px 30px rgba(127, 29, 29, 0.28);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--red-800);
    background: var(--white);
    font-weight: 900;
    box-shadow: inset 0 -4px 0 rgba(220, 38, 38, 0.12);
}

.brand-text {
    display: flex;
    flex-direction: column;
    color: var(--white);
    line-height: 1.15;
}

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

.brand-text em {
    color: #fecaca;
    font-size: 12px;
    font-style: normal;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    color: #fee2e2;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--white);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-button {
    cursor: pointer;
    border: 0;
    background: transparent;
    padding: 0;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    min-width: 180px;
    padding: 10px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--slate-700);
    font-weight: 700;
}

.dropdown-panel a:hover {
    color: var(--red-800);
    background: #fef2f2;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: var(--white);
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
}

.mobile-link {
    display: block;
    padding: 11px 14px;
    border-radius: 12px;
    color: #fee2e2;
    font-weight: 700;
}

.mobile-link.is-active,
.mobile-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.hero {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    background: linear-gradient(120deg, #111827, #1f2937);
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    filter: saturate(1.08);
}

.hero-layer {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 35%, rgba(245, 158, 11, 0.3), transparent 34%), linear-gradient(90deg, rgba(2, 6, 23, 0.93), rgba(127, 29, 29, 0.72) 50%, rgba(2, 6, 23, 0.42));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--white);
    padding-top: 20px;
}

.eyebrow {
    margin: 0 0 10px;
    color: #fecaca;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--red-700);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    max-width: 850px;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h2 {
    margin: 16px 0 0;
    font-size: clamp(26px, 4vw, 46px);
    color: #fde68a;
}

.hero-summary {
    max-width: 680px;
    margin: 18px 0 0;
    color: #e5e7eb;
    font-size: 18px;
}

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

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

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

.btn-primary {
    color: #451a03;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.32);
}

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(15, 23, 42, 0.55);
    cursor: pointer;
    font-size: 38px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(185, 28, 28, 0.88);
    transform: translateY(-50%) scale(1.04);
}

.hero-prev {
    left: 26px;
    transform: translateY(-50%);
}

.hero-next {
    right: 26px;
    transform: translateY(-50%);
}

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

.hero-dots button {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 32px;
    background: var(--amber-400);
}

.search-band {
    margin-top: -42px;
    position: relative;
    z-index: 10;
}

.search-inner,
.page-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.search-inner h2 {
    margin: 0;
    font-size: 24px;
}

.search-inner p {
    margin: 4px 0 0;
    color: var(--slate-600);
}

.search-box {
    width: min(430px, 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--slate-50);
}

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

.section {
    padding: 56px 0 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.more-link {
    color: var(--red-700);
    font-weight: 900;
}

.category-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-chip {
    min-height: 102px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    border-radius: 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-800), var(--red-600));
    box-shadow: var(--soft-shadow);
    overflow: hidden;
    position: relative;
}

.category-chip::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -42px;
    bottom: -64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.category-chip strong,
.category-chip span {
    position: relative;
    z-index: 1;
}

.category-chip strong {
    font-size: 20px;
}

.category-chip span {
    color: #fee2e2;
}

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

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

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fee2e2, #f8fafc);
}

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

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

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--amber-500);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: all 0.25s ease;
}

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

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

.movie-body {
    padding: 13px;
}

.movie-title {
    display: block;
    color: var(--slate-900);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
}

.movie-title:hover {
    color: var(--red-700);
}

.movie-meta,
.movie-meta-line {
    color: var(--slate-600);
    font-size: 13px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 6px;
}

.movie-body p {
    min-height: 44px;
    margin: 8px 0 10px;
    color: var(--slate-700);
    font-size: 13px;
}

.movie-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-tags span,
.tag-cloud span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--red-700);
    background: #fef2f2;
    font-size: 12px;
    font-weight: 800;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.compact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease;
}

.compact-card:hover {
    transform: translateY(-3px);
}

.compact-card img {
    width: 58px;
    height: 78px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 10px;
    background: #fee2e2;
}

.compact-card strong {
    display: block;
    font-weight: 900;
}

.compact-card em {
    display: block;
    margin-top: 4px;
    color: var(--slate-600);
    font-size: 12px;
    font-style: normal;
}

.rank-panel {
    padding: 22px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

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

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

.rank-row:hover {
    background: #fef2f2;
}

.rank-row span {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--white);
    background: var(--red-700);
    font-weight: 900;
}

.rank-row strong {
    line-height: 1.2;
}

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

.page-hero,
.detail-hero {
    position: relative;
    color: var(--white);
    background: radial-gradient(circle at 78% 20%, rgba(245, 158, 11, 0.28), transparent 28%), linear-gradient(120deg, var(--slate-950), var(--red-800));
    overflow: hidden;
}

.page-hero {
    padding: 72px 0;
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: #fee2e2;
    font-size: 18px;
}

.page-search {
    width: min(520px, 100%);
    margin-top: 24px;
    color: var(--slate-900);
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fee2e2;
    font-size: 14px;
    font-weight: 700;
}

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

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -4px 0 24px;
}

.inline-links a {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--slate-700);
    background: var(--white);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    font-size: 13px;
    font-weight: 700;
}

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

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

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

.category-cover {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 168px;
    background: #fee2e2;
}

.category-cover img {
    width: 100%;
    height: 100%;
    min-height: 168px;
    object-fit: cover;
}

.category-body {
    padding: 20px;
}

.category-body h2 {
    margin: 0;
    font-size: 24px;
}

.category-body p {
    color: var(--slate-600);
}

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

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

.detail-bg,
.detail-layer {
    position: absolute;
    inset: 0;
}

.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: blur(1px) saturate(1.1);
}

.detail-layer {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(127, 29, 29, 0.78), rgba(2, 6, 23, 0.58));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    min-height: 520px;
    padding: 48px 0;
}

.detail-poster {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fee2e2;
}

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

.detail-one-line {
    max-width: 840px;
    color: #e5e7eb;
    font-size: 19px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 26px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #fee2e2;
    background: rgba(255, 255, 255, 0.13);
    font-weight: 800;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--slate-950);
    box-shadow: var(--shadow);
}

.video-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--slate-950);
}

.play-curtain {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-curtain.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #451a03;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.42);
    font-size: 30px;
}

.play-curtain strong {
    max-width: 80%;
    font-size: clamp(22px, 4vw, 42px);
    text-align: center;
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.detail-article,
.detail-side {
    padding: 26px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

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

.detail-article p {
    margin: 0 0 24px;
    color: var(--slate-700);
    font-size: 17px;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.detail-side dt {
    color: var(--slate-600);
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
}

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

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

.ranking-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.ranking-poster {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #fee2e2;
}

.ranking-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.ranking-poster span {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--white);
    background: var(--red-700);
    font-size: 12px;
    font-weight: 900;
}

.ranking-card h2 {
    margin: 4px 0 8px;
}

.ranking-card p {
    color: var(--slate-700);
}

.sitemap-group {
    margin-bottom: 28px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.sitemap-group h2 {
    margin: 0 0 14px;
}

.sitemap-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 9px 14px;
}

.sitemap-links a {
    color: var(--slate-700);
    font-weight: 700;
}

.sitemap-links a:hover {
    color: var(--red-700);
}

.site-footer {
    margin-top: 64px;
    padding: 44px 0;
    color: #cbd5e1;
    background: linear-gradient(180deg, var(--slate-800), var(--slate-950));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.footer-brand {
    color: var(--white);
    font-size: 20px;
}

.site-footer p {
    max-width: 460px;
    color: #94a3b8;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: var(--white);
}

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

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

[data-card].is-hidden {
    display: none !important;
}

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

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

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

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

    .sitemap-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .menu-toggle {
        display: block;
    }

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

    .hero {
        min-height: 560px;
    }

    .hero-arrow {
        display: none;
    }

    .search-inner,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid,
    .category-grid,
    .category-chips,
    .compact-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .detail-poster {
        max-width: 240px;
    }

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

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

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

    .hero {
        min-height: 620px;
    }

    .hero-content {
        padding: 0 16px;
    }

    .movie-grid,
    .category-grid,
    .category-chips,
    .compact-grid,
    .related-grid,
    .sitemap-links {
        grid-template-columns: 1fr;
    }

    .movie-card {
        display: grid;
        grid-template-columns: 112px 1fr;
    }

    .movie-poster {
        height: 100%;
        min-height: 160px;
    }

    .movie-body p {
        min-height: 0;
    }

    .category-cover {
        min-height: 120px;
    }

    .category-cover img {
        min-height: 120px;
    }

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