:root {
    --bg: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --card: #ffffff;
    --dark: #020617;
    --dark-soft: #0f172a;
    --accent: #334155;
    --accent-2: #111827;
    --shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

main {
    min-height: 60vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #475569, #020617);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.brand-text {
    font-size: 20px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: #0f172a;
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #f1f5f9;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    background: #0f172a;
    border-radius: 10px;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.hero {
    position: relative;
    min-height: 70vh;
    height: 680px;
    overflow: hidden;
    background: #020617;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 6s ease;
}

.hero-slide.active img {
    transform: scale(1);
}

.hero-shade,
.detail-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.12)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.05) 55%, rgba(2, 6, 23, 0.42));
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 92px;
    width: min(640px, calc(100% - 64px));
    color: #ffffff;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.hero-content h1,
.detail-hero-content h1 {
    margin: 18px 0 16px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.08em;
}

.hero-content p,
.detail-hero-content p,
.page-hero p,
.intro-band p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

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

.primary-button,
.ghost-button,
.section-link,
.text-button {
    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;
}

.primary-button {
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(255, 255, 255, 0.18);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.text-button:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(16px);
    font-size: 42px;
    line-height: 1;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
}

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

.section-wrap {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.intro-band {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding-top: 48px;
}

.intro-band h1,
.section-heading h2,
.page-hero h1,
.copy-block h2,
.info-card h2 {
    margin: 8px 0 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.intro-band p {
    margin-top: 16px;
    color: var(--muted);
}

.eyebrow {
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

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

.section-heading.compact {
    align-items: center;
}

.section-heading a,
.section-link,
.text-button {
    color: #0f172a;
    background: #e2e8f0;
}

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    padding: 22px;
    border-radius: var(--radius);
    color: #ffffff;
    background: #0f172a;
    box-shadow: var(--shadow-soft);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.08);
    opacity: 0.6;
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 1;
}

.category-card span {
    display: block;
    margin-top: 96px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.category-card p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.7;
}

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

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

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

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

.cards-5 {
    grid-template-columns: repeat(5, 1fr);
}

.cards-6 {
    grid-template-columns: repeat(6, 1fr);
}

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

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #0f172a;
}

.lead-card .poster-link,
.home-card.large .poster-link {
    aspect-ratio: 21 / 9;
}

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

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

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

.movie-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-meta-line a {
    color: #334155;
}

.movie-card h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.28;
    letter-spacing: -0.03em;
}

.movie-card h2 a:hover {
    color: #475569;
}

.movie-card p {
    min-height: 54px;
    margin: 10px 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.movie-card .tag-list span {
    color: #475569;
    background: #f1f5f9;
}

.rank-panel {
    position: sticky;
    top: 92px;
    align-self: start;
    padding: 24px;
    border-radius: var(--radius);
    background: #0f172a;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.rank-panel .section-heading h2,
.rank-panel .eyebrow,
.rank-panel a {
    color: #ffffff;
}

.rank-list,
.ranking-table {
    display: grid;
    gap: 12px;
}

.rank-item {
    display: grid;
    grid-template-columns: 42px 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.14);
}

.ranking-table .rank-item {
    color: #0f172a;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.rank-no {
    font-weight: 900;
    color: #94a3b8;
}

.rank-item img {
    width: 58px;
    height: 78px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.rank-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.rank-copy em {
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 110px max(24px, calc((100vw - 1280px) / 2 + 24px));
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 22%, rgba(148, 163, 184, 0.32), transparent 30%),
        linear-gradient(135deg, #020617, #334155);
}

.page-hero.slim {
    padding-top: 84px;
    padding-bottom: 84px;
}

.page-hero h1 {
    color: #ffffff;
}

.page-hero p {
    margin-top: 16px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.search-field {
    display: grid;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 900;
}

.search-field input,
.filter-row select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
}

.search-field input {
    padding: 0 16px;
}

.filter-row {
    display: flex;
    gap: 10px;
}

.filter-row select {
    padding: 0 36px 0 14px;
}

.empty-state {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px;
    border-radius: 16px;
    color: #475569;
    background: #f1f5f9;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.category-overview-card h2 {
    margin: 6px 0 12px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.category-overview-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.8;
}

.ranking-lead {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #020617;
}

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

.detail-hero-content {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 150px;
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 800;
}

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

.detail-main,
.detail-side {
    display: grid;
    gap: 24px;
}

.player-section,
.copy-block,
.info-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.25), rgba(2, 6, 23, 0.72));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-shell.is-playing .play-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-triangle {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
    position: relative;
}

.play-triangle::after {
    content: "";
    position: absolute;
    left: 34px;
    top: 26px;
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid #0f172a;
}

.copy-block {
    padding: 28px;
}

.copy-block p {
    margin: 16px 0 0;
    color: #334155;
    font-size: 16px;
    line-height: 1.9;
}

.info-card {
    position: sticky;
    top: 96px;
    padding: 24px;
}

.info-card dl {
    display: grid;
    gap: 14px;
    margin: 20px 0;
}

.info-card dl div {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.info-card dt {
    color: #94a3b8;
    font-weight: 900;
}

.info-card dd {
    margin: 0;
    color: #0f172a;
    font-weight: 800;
}

.detail-tags span {
    color: #475569;
    background: #f1f5f9;
}

.site-footer {
    margin-top: 48px;
    padding: 56px max(24px, calc((100vw - 1280px) / 2 + 24px)) 28px;
    color: #cbd5e1;
    background: #020617;
}

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

.footer-brand {
    color: #ffffff;
    font-size: 24px;
}

.site-footer p {
    max-width: 480px;
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 17px;
}

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

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    color: #64748b;
    font-size: 13px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1180px) {
    .category-grid,
    .cards-5,
    .cards-6 {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .rank-panel,
    .info-card {
        position: static;
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .hero {
        height: 620px;
    }

    .hero-content {
        left: 24px;
        bottom: 80px;
        width: calc(100% - 48px);
    }

    .hero-arrow {
        display: none;
    }

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

    .category-grid,
    .cards-3,
    .cards-4,
    .cards-5,
    .cards-6,
    .ranking-lead,
    .category-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .filter-row {
        flex-wrap: wrap;
    }

    .filter-row select {
        flex: 1 1 180px;
    }

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

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

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

@media (max-width: 640px) {
    .header-inner {
        width: calc(100% - 24px);
    }

    .brand-text {
        font-size: 18px;
    }

    .hero,
    .detail-hero {
        min-height: 560px;
    }

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

    .hero-content p,
    .detail-hero-content p,
    .page-hero p,
    .intro-band p {
        font-size: 16px;
    }

    .section-wrap {
        width: calc(100% - 24px);
        padding: 44px 0;
    }

    .category-grid,
    .cards-3,
    .cards-4,
    .cards-5,
    .cards-6,
    .ranking-lead {
        grid-template-columns: 1fr;
    }

    .category-cover-stack {
        grid-template-columns: repeat(2, 1fr);
    }

    .movie-card p {
        min-height: auto;
    }

    .rank-item {
        grid-template-columns: 36px 52px minmax(0, 1fr);
    }

    .rank-item img {
        width: 52px;
        height: 70px;
    }

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

    .detail-hero-content {
        padding-top: 96px;
    }

    .copy-block,
    .info-card {
        padding: 22px;
    }
}
