* {
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --bg-soft: #141414;
    --surface: #1f1f1f;
    --surface-light: #2a2a2a;
    --border: #333333;
    --accent: #ea580c;
    --accent-light: #fb923c;
    --text: #ffffff;
    --muted: #9ca3af;
    --muted-strong: #d1d5db;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(234, 88, 12, 0.16), transparent 36rem), var(--bg);
    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: rgba(10, 10, 10, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #f59e0b);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.35);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

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

.brand-text small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted-strong);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(234, 88, 12, 0.18);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #fff;
    background: var(--surface);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.mobile-nav a {
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--surface);
    color: var(--muted-strong);
}

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #000;
}

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

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

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0.78) 45%, rgba(10, 10, 10, 0.25) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 10, 0.08) 45%, rgba(10, 10, 10, 0.65) 100%);
}

.hero-content {
    position: relative;
    min-height: 72vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 54px;
    padding: 72px 0 92px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-light);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero-desc {
    max-width: 650px;
    margin: 24px 0 0;
    color: var(--muted-strong);
    font-size: 18px;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(234, 88, 12, 0.72);
    font-size: 12px;
    font-weight: 700;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #f59e0b);
    box-shadow: 0 12px 32px rgba(234, 88, 12, 0.28);
}

.button.ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.button.small {
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.hero-card span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    backdrop-filter: blur(10px);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
}

.hero-dot.active {
    width: 32px;
    border-radius: 999px;
    background: var(--accent-light);
}

.quick-search-panel {
    position: relative;
    z-index: 2;
    margin-top: -38px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(20, 20, 20, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.site-search,
.filter-panel {
    display: flex;
    gap: 12px;
}

.site-search input,
.filter-panel input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0 16px;
    color: #fff;
    background: #101010;
    outline: none;
}

.site-search input:focus,
.filter-panel input:focus {
    border-color: rgba(234, 88, 12, 0.75);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.site-search button {
    min-width: 110px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: var(--accent);
    font-weight: 800;
    cursor: pointer;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.quick-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.08);
}

.section-block {
    padding: 64px 0 0;
}

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

.section-head p {
    margin: 0 0 6px;
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.text-link {
    color: var(--accent-light);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(234, 88, 12, 0.38);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #171717, #2a160c);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 62%);
}

.poster-year {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.28;
}

.card-body h3 a:hover {
    color: var(--accent-light);
}

.card-body p {
    margin: 0;
    min-height: 52px;
    color: var(--muted);
    font-size: 14px;
}

.card-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
}

.card-meta span,
.rank-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

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

.category-card {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(234, 88, 12, 0.2), transparent 18rem),
        var(--surface);
}

.category-card span {
    color: var(--accent-light);
    font-weight: 900;
}

.category-card h3 {
    margin: 10px 0 18px;
    color: #fff;
    font-size: 20px;
    line-height: 1.45;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-samples a {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.07);
    font-size: 13px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 112px minmax(0, 1fr) 120px;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(31, 31, 31, 0.84);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #f59e0b);
    font-weight: 900;
}

.rank-poster img {
    width: 112px;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    object-fit: cover;
    background: #111;
}

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.rank-info h3 a:hover {
    color: var(--accent-light);
}

.rank-info p {
    margin: 0;
    color: var(--muted);
}

.rank-score {
    text-align: right;
}

.rank-score strong {
    display: block;
    color: var(--accent-light);
    font-size: 28px;
    line-height: 1;
}

.rank-score span {
    color: var(--muted);
    font-size: 12px;
}

.page-main {
    padding: 34px 0 72px;
}

.page-hero {
    margin-bottom: 34px;
    padding: 46px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(234, 88, 12, 0.26), transparent 24rem),
        linear-gradient(135deg, rgba(31, 31, 31, 0.96), rgba(10, 10, 10, 0.96));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.02;
}

.page-hero p:last-child {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--muted-strong);
    font-size: 17px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--accent-light);
}

.filter-panel {
    flex-direction: column;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: var(--surface);
}

.year-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.year-pills button {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.year-pills button.active,
.year-pills button:hover {
    color: #fff;
    background: var(--accent);
}

.category-overview-block {
    margin-top: 34px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(31, 31, 31, 0.72);
}

.category-overview-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 18px;
}

.category-overview-head p {
    margin: 0 0 6px;
    color: var(--accent-light);
    font-weight: 900;
}

.category-overview-head h2 {
    margin: 0;
    max-width: 760px;
    color: var(--muted-strong);
    font-size: 20px;
    line-height: 1.45;
}

.detail-main {
    padding-top: 26px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    margin-bottom: 30px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(234, 88, 12, 0.22), transparent 24rem),
        var(--surface);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 22px;
    object-fit: cover;
    background: #111;
}

.detail-info h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.04;
}

.detail-one-line {
    margin: 18px 0 20px;
    color: var(--muted-strong);
    font-size: 18px;
}

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

.detail-meta div {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.detail-meta dt {
    color: var(--muted);
    font-size: 12px;
}

.detail-meta dd {
    margin: 5px 0 0;
    color: #fff;
    font-weight: 800;
}

.detail-meta a:hover {
    color: var(--accent-light);
}

.player-card {
    margin-bottom: 34px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    background: #050505;
    box-shadow: var(--shadow);
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    cursor: pointer;
}

.center-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 132px;
    height: 132px;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: radial-gradient(circle, var(--accent) 0%, rgba(234, 88, 12, 0.78) 52%, rgba(234, 88, 12, 0.2) 70%);
    font-weight: 900;
    box-shadow: 0 0 0 12px rgba(234, 88, 12, 0.12), 0 24px 70px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.center-play:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.player-wrap.playing .center-play {
    opacity: 0;
    pointer-events: none;
}

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

.prose-card,
.side-card {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: var(--surface);
}

.prose-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.prose-card p {
    margin: 0 0 24px;
    color: var(--muted-strong);
    font-size: 16px;
}

.prose-card p:last-child {
    margin-bottom: 0;
}

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

.side-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted-strong);
}

.side-links a:hover {
    color: var(--accent-light);
}

.side-links span {
    color: var(--muted);
    font-size: 12px;
}

.prev-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.prev-next a {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: var(--surface);
}

.prev-next span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.prev-next strong {
    display: block;
    margin-top: 4px;
    color: #fff;
}

.prev-next a:hover strong {
    color: var(--accent-light);
}

.site-footer {
    margin-top: 72px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #070707;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding: 36px 0;
}

.footer-inner p {
    max-width: 560px;
    margin: 8px 0 0;
    color: var(--muted);
}

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.06);
}

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

@media (max-width: 1024px) {
    .hero-content,
    .detail-hero,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .hero-card {
        display: none;
    }

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

    .rank-row {
        grid-template-columns: 48px 96px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
        text-align: left;
    }

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

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

    .mobile-menu-button {
        display: inline-grid;
        place-items: center;
    }

    .hero,
    .hero-content {
        min-height: 680px;
    }

    .hero-content {
        padding: 56px 0 110px;
    }

    .hero-copy h1 {
        font-size: 46px;
    }

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

    .site-search button {
        min-height: 46px;
    }

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

    .movie-grid,
    .movie-grid.compact,
    .category-grid,
    .detail-meta,
    .prev-next {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 44px 86px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-info p {
        display: none;
    }

    .rank-score {
        grid-column: 1 / -1;
        text-align: left;
    }

    .page-hero,
    .detail-hero,
    .prose-card,
    .side-card {
        padding: 22px;
    }

    .center-play {
        width: 94px;
        height: 94px;
        font-size: 14px;
    }
}
