:root {
    --bg: #050506;
    --panel: #111217;
    --panel-soft: rgba(24, 24, 31, 0.76);
    --line: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --muted: #a5a7b3;
    --muted-2: #72747f;
    --accent: #f97316;
    --accent-2: #dc2626;
    --gold: #facc15;
    --radius: 22px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
    --max: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    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(5, 5, 6, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.top-nav {
    width: min(100%, var(--max));
    min-height: 72px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.32);
    font-size: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 10px 15px;
    border-radius: 999px;
    color: var(--muted);
    transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    background: rgba(249, 115, 22, 0.16);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #ffffff;
}

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

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.82) 38%, rgba(0, 0, 0, 0.22) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.62) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, var(--max));
    min-height: 78vh;
    margin: 0 auto;
    padding: 88px 22px 86px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 680px;
    margin-left: max(22px, calc((100vw - var(--max)) / 2 + 22px));
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 7px 14px;
    border: 1px solid rgba(249, 115, 22, 0.52);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.16);
    color: #fdba74;
    font-size: 13px;
    font-weight: 700;
}

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

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: #d1d5db;
    font-size: 14px;
}

.hero-meta span,
.hero-meta a,
.detail-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-meta span:first-child,
.detail-meta span:first-child,
.score-badge,
.rank-score {
    color: #111111;
    background: var(--gold);
    font-weight: 800;
}

.hero p,
.page-hero p,
.detail-copy p {
    max-width: 700px;
    margin: 20px 0 0;
    color: #d3d5dc;
    font-size: 18px;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-radius: 15px;
    font-weight: 800;
    transition: 0.22s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 18px 42px rgba(220, 38, 38, 0.28);
}

.ghost-btn {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-card:hover,
.rank-row:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
}

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

.hero-dots button {
    width: 38px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section-block {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: 70px 22px;
}

.deep-section {
    width: 100%;
    max-width: none;
    padding-left: max(22px, calc((100vw - var(--max)) / 2 + 22px));
    padding-right: max(22px, calc((100vw - var(--max)) / 2 + 22px));
    background: linear-gradient(180deg, #050506, #111217 52%, #050506);
}

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

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

.section-title a {
    color: #fb923c;
    font-weight: 700;
}

.horizontal-scroller {
    display: flex;
    gap: 18px;
    padding: 6px 2px 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.horizontal-scroller .movie-card {
    width: 240px;
    min-width: 240px;
    scroll-snap-align: start;
}

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

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

.movie-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    transition: 0.24s ease;
}

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

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.04) 55%);
}

.score-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 13px;
}

.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: translate(-50%, -50%) scale(0.78);
    opacity: 0;
    backdrop-filter: blur(8px);
    transition: 0.24s ease;
}

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

.movie-card-body {
    display: flex;
    min-height: 166px;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
}

.movie-card strong {
    font-size: 16px;
    line-height: 1.3;
}

.card-meta,
.movie-brief,
.rank-main em,
.rank-main small,
.category-card em,
.category-overview-card p,
.site-footer p {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.movie-brief {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.tag-row span {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #d7d7dd;
    font-size: 12px;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #14151b;
    transition: 0.24s ease;
}

.category-card img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    opacity: 0.46;
}

.category-card span {
    position: absolute;
    inset: auto 0 0 0;
    padding: 22px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), transparent);
}

.category-card strong,
.category-card em {
    display: block;
}

.category-card strong {
    margin-bottom: 8px;
    font-size: 22px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 78px minmax(0, 1fr) 64px;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    transition: 0.24s ease;
}

.rank-number {
    color: #fb923c;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 78px;
    height: 104px;
    border-radius: 13px;
    object-fit: cover;
}

.rank-main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.rank-main strong {
    font-size: 18px;
}

.rank-score {
    justify-self: end;
    padding: 6px 10px;
    border-radius: 999px;
}

.page-hero {
    min-height: 330px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 18% 8%, rgba(249, 115, 22, 0.28), transparent 38%),
        linear-gradient(135deg, #050506, #13131a 62%, #240d0d);
}

.page-hero > div {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: 72px 22px 50px;
}

.compact-hero h1 {
    font-size: clamp(36px, 6vw, 60px);
}

.tool-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 160px;
    gap: 12px;
    margin: 0 0 28px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box span {
    color: #fb923c;
    font-weight: 800;
}

.tool-panel input,
.tool-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
    background: #0c0d12;
    color: #ffffff;
}

.tool-panel input:focus,
.tool-panel select:focus {
    border-color: rgba(249, 115, 22, 0.74);
}

.category-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.category-pills a {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
}

.category-pills a.active,
.category-pills a:hover {
    color: #ffffff;
    background: rgba(249, 115, 22, 0.18);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-soft);
    transition: 0.24s ease;
}

.category-cover img {
    height: 210px;
    border-radius: 16px;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 8px 0 8px;
    font-size: 26px;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.mini-links a {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
    font-size: 13px;
}

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

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop span {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.34)),
        linear-gradient(0deg, #050506, rgba(0, 0, 0, 0.15) 56%, rgba(0, 0, 0, 0.75));
    backdrop-filter: blur(3px);
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(100%, var(--max));
    min-height: 650px;
    margin: 0 auto;
    padding: 72px 22px;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster img {
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-tags {
    margin: 22px 0 30px;
}

.detail-section {
    padding-top: 58px;
    padding-bottom: 58px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.72));
    color: #ffffff;
    cursor: pointer;
    transition: 0.2s ease;
    z-index: 3;
}

.play-layer span {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.35);
    font-size: 34px;
    padding-left: 5px;
}

.play-layer strong {
    font-size: 20px;
}

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

.article-text {
    max-width: 920px;
    color: #d5d7df;
    font-size: 17px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #090a0e;
}

.footer-inner {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: 40px 22px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 26px;
}

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

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

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

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

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

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

    .nav-links {
        position: absolute;
        left: 14px;
        right: 14px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(8, 8, 10, 0.96);
    }

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

    .hero-content {
        margin-left: 0;
        padding-left: 22px;
        padding-right: 22px;
        max-width: none;
    }

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

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

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

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

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

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

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

@media (max-width: 560px) {
    .top-nav {
        min-height: 64px;
    }

    .logo {
        font-size: 18px;
    }

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

    .hero h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 38px;
    }

    .hero p,
    .page-hero p,
    .detail-copy p {
        font-size: 16px;
    }

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

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

    .horizontal-scroller .movie-card {
        width: 190px;
        min-width: 190px;
    }

    .movie-card-body {
        min-height: 148px;
        padding: 12px;
    }

    .movie-brief {
        display: none;
    }

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

    .category-cover img {
        height: 154px;
    }

    .rank-row {
        grid-template-columns: 42px 58px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-row img {
        width: 58px;
        height: 78px;
    }

    .rank-score {
        display: none;
    }

    .play-layer span {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }
}
