:root {
    color-scheme: dark;
    --bg: #100a07;
    --bg-soft: #17100c;
    --card: rgba(255, 255, 255, 0.08);
    --card-strong: rgba(255, 255, 255, 0.13);
    --text: #fffaf0;
    --muted: rgba(255, 250, 240, 0.68);
    --line: rgba(255, 255, 255, 0.12);
    --brand: #ff7a18;
    --brand-2: #ffb800;
    --brand-3: #f43f5e;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 122, 24, 0.20), transparent 28rem),
        radial-gradient(circle at top right, rgba(244, 63, 94, 0.16), transparent 30rem),
        linear-gradient(180deg, #160c07 0%, #0d0b0a 48%, #120c08 100%);
    color: var(--text);
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 5vw, 72px);
    background: rgba(15, 9, 7, 0.78);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #190b03;
    box-shadow: 0 12px 30px rgba(255, 122, 24, 0.35);
}

.brand-text {
    font-size: clamp(18px, 2vw, 22px);
}

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

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

.main-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.10);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

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

.hero-carousel {
    position: relative;
    min-height: clamp(560px, 76vh, 820px);
    overflow: hidden;
    isolation: isolate;
}

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

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 7, 5, 0.96) 0%, rgba(12, 7, 5, 0.76) 40%, rgba(12, 7, 5, 0.30) 100%),
        linear-gradient(0deg, rgba(12, 7, 5, 0.98) 0%, rgba(12, 7, 5, 0.16) 56%);
}

.hero-copy {
    position: absolute;
    left: clamp(22px, 7vw, 96px);
    top: 50%;
    max-width: min(720px, calc(100% - 44px));
    transform: translateY(-50%);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 184, 0, 0.35);
    border-radius: 999px;
    background: rgba(255, 122, 24, 0.12);
    color: #ffd37a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(46px, 8vw, 98px);
    line-height: 0.95;
    letter-spacing: -0.08em;
    text-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.hero-copy p {
    max-width: 660px;
    margin: 22px 0 0;
    color: rgba(255, 250, 240, 0.78);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

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

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

.primary-btn {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #1f0d03;
    box-shadow: 0 18px 42px rgba(255, 122, 24, 0.34);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 54px rgba(255, 122, 24, 0.44);
}

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

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hero-controls {
    position: absolute;
    right: clamp(18px, 5vw, 72px);
    bottom: 34px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-arrow,
.hero-dot {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 28px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
}

.hero-dot.active {
    width: 34px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.section-shell,
.page-hero {
    width: min(1440px, calc(100% - 36px));
    margin: 0 auto;
}

.section-shell {
    padding: clamp(36px, 6vw, 76px) 0;
}

.intro-strip,
.page-hero,
.content-card,
.side-card,
.rank-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.05));
    box-shadow: var(--shadow);
}

.intro-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: -48px;
    padding: 28px;
    position: relative;
    z-index: 5;
    backdrop-filter: blur(16px);
}

.intro-strip h2,
.section-heading h2,
.page-hero h1,
.content-card h2,
.side-card h2,
.rank-panel h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.intro-strip p,
.page-hero p,
.content-card p {
    color: var(--muted);
    line-height: 1.9;
}

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

.section-heading a {
    color: #ffd37a;
    font-weight: 800;
}

.compact-heading {
    align-items: start;
}

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

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

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 184, 0, 0.44);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    opacity: 0.54;
    filter: saturate(1.12);
}

.category-tile span,
.category-tile small {
    position: absolute;
    left: 18px;
    right: 18px;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.62);
}

.category-tile span {
    bottom: 48px;
    font-size: 24px;
    font-weight: 900;
}

.category-tile small {
    bottom: 18px;
    color: rgba(255, 250, 240, 0.78);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 24px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

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

.search-box input,
.filter-panel select {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 18px;
    outline: none;
    background: rgba(15, 10, 8, 0.92);
    color: var(--text);
}

.search-box input {
    min-height: 40px;
    border: 0;
    background: transparent;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 184, 0, 0.42);
    background: rgba(255, 255, 255, 0.11);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

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

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 122, 24, 0.92);
    color: #1e0c02;
    font-size: 12px;
    font-weight: 900;
}

.card-content {
    padding: 14px;
}

.card-title {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-title:hover {
    color: #ffd37a;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    color: rgba(255, 250, 240, 0.58);
    font-size: 13px;
}

.card-content p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span {
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 250, 240, 0.72);
    font-size: 12px;
}

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

.rank-panel {
    position: sticky;
    top: 88px;
    height: fit-content;
    padding: 22px;
}

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

.full-rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.rank-no {
    color: #ffd37a;
    font-size: 18px;
    font-weight: 950;
}

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

.rank-text {
    min-width: 0;
}

.rank-text strong,
.rank-text small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-text small,
.rank-hot {
    color: var(--muted);
    font-size: 12px;
}

.page-hero {
    margin-top: 28px;
    padding: clamp(42px, 8vw, 86px);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 122, 24, 0.20), rgba(244, 63, 94, 0.11)),
        rgba(255, 255, 255, 0.07);
}

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

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: rgba(255, 250, 240, 0.66);
    font-size: 14px;
}

.crumbs a:hover {
    color: #ffd37a;
}

.detail-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
}

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.16);
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 7, 5, 0.96), rgba(12, 7, 5, 0.54), rgba(12, 7, 5, 0.88)),
        linear-gradient(0deg, var(--bg), transparent 72%);
}

.detail-copy {
    position: relative;
    z-index: 2;
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
    padding-top: 110px;
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(42px, 8vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.detail-copy p {
    max-width: 760px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.detail-meta span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 250, 240, 0.78);
}

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

.detail-main,
.detail-side {
    display: grid;
    gap: 22px;
    height: fit-content;
}

.player-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #000;
    box-shadow: var(--shadow);
}

.player-card video {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 0;
    background: #000;
    color: var(--text);
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle, rgba(255, 122, 24, 0.26), transparent 38%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.28));
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
}

.player-cover strong,
.play-circle {
    position: relative;
    z-index: 2;
}

.play-circle {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #1b0b03;
    font-size: 34px;
    box-shadow: 0 20px 58px rgba(255, 122, 24, 0.36);
}

.player-cover strong {
    display: block;
    font-size: clamp(22px, 3vw, 36px);
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
}

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

.content-card,
.side-card {
    padding: 24px;
}

.content-card p {
    margin: 14px 0 0;
    font-size: 17px;
}

.side-card h2 {
    margin-bottom: 16px;
    font-size: 24px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.side-card dt {
    color: rgba(255, 250, 240, 0.52);
}

.side-card dd {
    margin: 0;
    color: var(--text);
}

.side-card a:hover {
    color: #ffd37a;
}

.detail-tags {
    margin-top: 18px;
}

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

.side-link-list a {
    display: block;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.side-link-list a:hover {
    background: rgba(255, 255, 255, 0.11);
}

.side-link-list span,
.side-link-list small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-link-list small {
    margin-top: 4px;
    color: var(--muted);
}

.site-footer {
    margin-top: 44px;
    border-top: 1px solid var(--line);
    background: rgba(9, 7, 6, 0.84);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1440px, calc(100% - 36px));
    margin: 0 auto;
    padding: 32px 0;
    color: var(--muted);
}

.footer-inner strong {
    color: var(--text);
}

.footer-inner p {
    margin: 8px 0 0;
}

.footer-links {
    display: flex;
    gap: 14px;
}

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

.movie-card.is-hidden,
.rank-item.is-hidden {
    display: none;
}

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

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

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

    .rank-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .site-header {
        padding: 12px 18px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 68px;
        left: 18px;
        right: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(17, 10, 7, 0.96);
        box-shadow: var(--shadow);
    }

    body.nav-open .main-nav {
        display: flex;
    }

    .hero-carousel {
        min-height: 620px;
    }

    .hero-shade {
        background:
            linear-gradient(0deg, rgba(12, 7, 5, 0.98) 0%, rgba(12, 7, 5, 0.58) 100%),
            linear-gradient(90deg, rgba(12, 7, 5, 0.74), rgba(12, 7, 5, 0.46));
    }

    .hero-copy {
        top: auto;
        bottom: 100px;
        transform: none;
    }

    .hero-controls {
        left: 18px;
        right: 18px;
        justify-content: space-between;
    }

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

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

    .movie-grid,
    .small-grid,
    .category-grid,
    .large-category-grid,
    .full-rank-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .rank-hot {
        display: none;
    }

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

    .detail-copy {
        padding-top: 86px;
    }
}

@media (max-width: 480px) {
    .brand-text {
        font-size: 16px;
    }

    .movie-grid,
    .small-grid,
    .category-grid,
    .large-category-grid,
    .full-rank-list {
        grid-template-columns: 1fr;
    }

    .poster-link {
        aspect-ratio: 16 / 10;
    }

    .category-tile img {
        min-height: 168px;
    }

    .play-circle {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }
}
