:root {
    --rose: #fb7185;
    --rose-deep: #e11d48;
    --teal: #2dd4bf;
    --teal-deep: #0d9488;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #fff1f2;
    --paper: #ffffff;
    --bg: #f9fafb;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 22px;
    background: linear-gradient(90deg, var(--rose), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    background: linear-gradient(135deg, var(--rose), var(--teal));
    box-shadow: 0 12px 30px rgba(251, 113, 133, 0.32);
}

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

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
    color: var(--rose-deep);
    background: #ffe4e6;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff1f2;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--rose-deep);
    border-radius: 9px;
}

.hero {
    padding: 26px 24px 16px;
    background:
        radial-gradient(circle at top left, rgba(251, 113, 133, 0.18), transparent 32%),
        radial-gradient(circle at 78% 8%, rgba(45, 212, 191, 0.22), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #fff7f8 54%, #f9fafb 100%);
}

.hero-frame {
    position: relative;
    max-width: 1280px;
    min-height: 560px;
    margin: 0 auto;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #111827;
}

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

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

.hero-copy {
    min-height: 560px;
    width: min(680px, 92%);
    padding: 86px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.hero-label,
.section-kicker,
.detail-label,
.sub-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff7ed;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-copy p {
    margin: 0 0 24px;
    max-width: 620px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.86);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #be123c;
    background: #ffe4e6;
}

.hero-tags span,
.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--teal));
    box-shadow: 0 16px 34px rgba(251, 113, 133, 0.32);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.hero-controls {
    position: absolute;
    right: 24px;
    bottom: 28px;
    display: flex;
    gap: 10px;
}

.hero-controls button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.hero-dots {
    position: absolute;
    left: 64px;
    bottom: 38px;
    display: flex;
    gap: 8px;
}

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

.hero-dot.is-active {
    width: 30px;
    background: #ffffff;
}

.stats-strip {
    max-width: 1040px;
    margin: -28px auto 26px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 0 24px;
}

.stats-strip div {
    padding: 22px;
    text-align: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(16px);
}

.stats-strip strong {
    display: block;
    font-size: 30px;
    color: var(--rose-deep);
}

.stats-strip span {
    color: var(--muted);
    font-weight: 700;
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.tinted-section {
    max-width: none;
    margin: 0;
    padding-left: max(24px, calc((100% - 1280px) / 2 + 24px));
    padding-right: max(24px, calc((100% - 1280px) / 2 + 24px));
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.82), rgba(240, 253, 250, 0.5));
}

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

.section-kicker {
    color: var(--rose-deep);
    background: #ffe4e6;
}

.section-heading h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

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

.section-more {
    color: var(--rose-deep);
    background: #ffffff;
    border: 1px solid #fecdd3;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--paper);
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #334155);
}

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

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

.poster-badge,
.poster-duration {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(17, 24, 39, 0.72);
}

.poster-duration {
    top: auto;
    bottom: 12px;
}

.movie-body {
    padding: 18px;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
}

.movie-title {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    color: #111827;
    transition: color 0.2s ease;
}

.movie-title:hover {
    color: var(--rose-deep);
}

.movie-body p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta,
.detail-facts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta span,
.detail-facts span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f4f6;
}

.compact-card .movie-body p {
    min-height: 44px;
}

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

.category-card,
.category-overview {
    padding: 22px;
    min-height: 170px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.86);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card span,
.category-name {
    color: var(--rose-deep);
    font-weight: 900;
    font-size: 20px;
}

.category-card strong,
.category-count {
    font-size: 36px;
    line-height: 1;
    color: var(--teal-deep);
}

.category-card em,
.category-overview p {
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    margin: 0;
}

.sub-hero {
    padding: 84px 24px 72px;
    text-align: center;
    background:
        radial-gradient(circle at 20% 10%, rgba(251, 113, 133, 0.22), transparent 28%),
        radial-gradient(circle at 80% 0%, rgba(45, 212, 191, 0.22), transparent 30%),
        linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
}

.sub-hero span {
    margin: 0 auto;
}

.sub-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
}

.sub-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
}

.filter-toolbar {
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.86);
}

.search-box,
.sort-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.search-box input,
.sort-box select {
    width: 100%;
    height: 46px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0 14px;
    outline: 0;
    background: #f9fafb;
}

.search-box input:focus,
.sort-box select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}

.mini-poster-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.mini-poster-row a {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.mini-poster-row img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.mini-poster-row span {
    display: block;
    padding: 10px 12px;
    font-weight: 800;
    font-size: 14px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 70px 140px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.86);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.rank-number {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose), var(--teal));
}

.rank-poster img {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    object-fit: cover;
}

.rank-copy a {
    font-size: 20px;
    font-weight: 900;
}

.rank-copy p {
    margin: 6px 0 10px;
    color: var(--muted);
}

.archive-section {
    display: grid;
    gap: 26px;
}

.archive-year {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.archive-year h2 {
    margin: 0 0 14px;
    color: var(--rose-deep);
}

.archive-year ul {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 32px;
}

.archive-year li {
    break-inside: avoid;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.archive-year a {
    font-weight: 800;
    color: #1f2937;
}

.archive-year a:hover {
    color: var(--rose-deep);
}

.archive-year span {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.2), rgba(17, 24, 39, 0.92));
}

.detail-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

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

.detail-copy h1 {
    margin: 18px 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-copy p {
    max-width: 860px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.detail-facts {
    margin-top: 22px;
}

.detail-facts span {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.14);
}

.player-section {
    padding-top: 48px;
}

.player-card,
.text-card {
    padding: 22px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.86);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.player-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.player-title-row h2,
.text-card h2 {
    margin: 0;
    font-size: 24px;
}

.player-title-row span {
    color: var(--rose-deep);
    font-weight: 900;
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, var(--rose), var(--teal));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

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

.detail-text {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    padding-top: 0;
}

.text-card p {
    margin: 12px 0 0;
    color: #374151;
    font-size: 16px;
}

.site-footer {
    border-top: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff, #f3f4f6);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 34px;
    align-items: center;
}

.footer-main p {
    max-width: 640px;
    color: var(--muted);
    margin: 12px 0 0;
}

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #4b5563;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    font-weight: 700;
}

[hidden] {
    display: none !important;
}

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

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

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

@media (max-width: 820px) {
    .header-inner {
        padding: 14px 18px;
    }

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

    .site-nav {
        position: absolute;
        left: 18px;
        right: 18px;
        top: 70px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 20px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

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

    .hero {
        padding: 18px 14px 8px;
    }

    .hero-frame,
    .hero-copy {
        min-height: 640px;
    }

    .hero-copy {
        width: 100%;
        padding: 58px 24px 88px;
    }

    .hero-dots {
        left: 24px;
        bottom: 28px;
    }

    .stats-strip {
        margin: 12px auto 0;
        grid-template-columns: 1fr;
    }

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

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

    .category-grid,
    .category-overview-grid,
    .mini-poster-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .rank-item {
        grid-template-columns: 54px 94px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-copy p {
        display: none;
    }

    .archive-year ul {
        columns: 1;
    }

    .archive-year li {
        display: block;
    }

    .archive-year span {
        display: block;
        margin-top: 4px;
        white-space: normal;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

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

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

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

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

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

    .content-section,
    .tinted-section {
        padding: 48px 14px;
    }

    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .mini-poster-row {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .detail-copy h1 {
        letter-spacing: -0.04em;
    }

    .player-start {
        width: 70px;
        height: 70px;
        font-size: 16px;
    }
}
