:root {
    color-scheme: dark;
    --page-bg: #030712;
    --panel-bg: rgba(17, 24, 39, 0.78);
    --panel-strong: #111827;
    --panel-soft: rgba(31, 41, 55, 0.72);
    --line: rgba(255, 255, 255, 0.09);
    --text: #f9fafb;
    --muted: #9ca3af;
    --orange: #f97316;
    --red: #dc2626;
    --yellow: #fbbf24;
    --green: #22c55e;
    --shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    --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(--text);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 34rem),
        radial-gradient(circle at 80% 12%, rgba(220, 38, 38, 0.14), transparent 30rem),
        linear-gradient(180deg, #111827 0%, #030712 42%, #020617 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(18px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.25);
    font-size: 18px;
}

.logo-text {
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
    background: linear-gradient(90deg, #fb923c, #ef4444);
    -webkit-background-clip: text;
    color: transparent;
}

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

.main-nav a {
    color: #d1d5db;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 650;
    transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.94), rgba(220, 38, 38, 0.94));
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(31, 41, 55, 0.8);
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 14px;
}

.mobile-nav a {
    display: block;
    padding: 13px 14px;
    border-radius: 14px;
    color: #d1d5db;
    font-weight: 650;
}

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 64px 0;
}

.section-tight {
    padding: 38px 0;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    letter-spacing: -0.04em;
}

.section-head p,
.page-title p,
.detail-title p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fb923c;
    font-weight: 750;
    white-space: nowrap;
}

.hero-slider {
    width: min(1180px, calc(100% - 32px));
    min-height: 640px;
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: 28px;
    align-items: stretch;
}

.hero-copy {
    min-height: 640px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 44px;
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.82), rgba(3, 7, 18, 0.88)),
        radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.36), transparent 28rem);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.hero-copy::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    right: -80px;
    bottom: -90px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.22), transparent 70%);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fed7aa;
    border: 1px solid rgba(251, 146, 60, 0.28);
    background: rgba(249, 115, 22, 0.12);
    font-size: 13px;
    font-weight: 750;
}

.hero-copy h1 {
    margin: 20px 0 16px;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-copy p {
    color: #d1d5db;
    font-size: 17px;
    line-height: 1.8;
    max-width: 560px;
}

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

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.24);
}

.btn-secondary {
    color: white;
    background: rgba(31, 41, 55, 0.86);
}

.btn-ghost {
    color: #fed7aa;
    border: 1px solid rgba(251, 146, 60, 0.28);
    background: rgba(249, 115, 22, 0.1);
}

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 40px;
}

.hero-stats div {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.hero-stats strong {
    display: block;
    font-size: 26px;
    color: #ffffff;
}

.hero-stats span {
    color: var(--muted);
    font-size: 13px;
}

.hero-stage {
    position: relative;
    min-height: 640px;
    border-radius: 32px;
    overflow: hidden;
    background: #111827;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(210px, 0.56fr);
    gap: 24px;
    align-items: end;
    padding: 34px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.6s ease;
    background-image:
        linear-gradient(90deg, rgba(3, 7, 18, 0.98) 0%, rgba(3, 7, 18, 0.72) 48%, rgba(3, 7, 18, 0.32) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

.hero-slide h2 {
    margin: 12px 0;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-slide p {
    margin: 0;
    color: #d1d5db;
    line-height: 1.75;
}

.hero-meta,
.card-meta,
.detail-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #d1d5db;
    font-size: 13px;
}

.hero-meta span,
.detail-meta span,
.tag,
.category-pill {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

.hero-dots {
    position: absolute;
    left: 34px;
    bottom: 24px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-dot {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--orange), var(--red));
}

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

.category-tile {
    display: block;
    min-height: 150px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(220, 38, 38, 0.08)),
        rgba(17, 24, 39, 0.82);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 146, 60, 0.4);
}

.category-tile h2,
.category-tile h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

.category-tile p {
    margin: 0;
    color: #d1d5db;
    line-height: 1.7;
    font-size: 14px;
}

.movie-row {
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
}

.movie-row-inner {
    display: flex;
    gap: 16px;
}

.movie-row .movie-card {
    width: 220px;
    flex: 0 0 auto;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: var(--panel-strong);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 100%;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    border-color: rgba(251, 146, 60, 0.34);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(145deg, #111827, #020617);
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease, opacity 0.32s ease;
}

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.9) 100%);
}

.card-score,
.card-rank {
    position: absolute;
    z-index: 2;
    top: 12px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.card-score {
    right: 12px;
    padding: 6px 9px;
    background: rgba(0, 0, 0, 0.55);
}

.card-rank {
    left: 12px;
    padding: 6px 10px;
    background: linear-gradient(90deg, var(--orange), var(--red));
}

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

.card-body h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.page-hero {
    padding: 56px 0 22px;
}

.page-title {
    max-width: 820px;
}

.page-title h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.filter-panel {
    margin: 30px 0 28px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(17, 24, 39, 0.78);
    display: grid;
    grid-template-columns: 1fr 180px 180px 160px;
    gap: 12px;
}

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

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(251, 146, 60, 0.65);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.no-results {
    margin: 26px 0;
    padding: 22px;
    border-radius: 18px;
    background: rgba(249, 115, 22, 0.1);
    color: #fed7aa;
}

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

.breadcrumb a {
    color: #fb923c;
}

.detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.detail-title {
    margin-bottom: 20px;
}

.detail-title h1 {
    font-size: clamp(32px, 5vw, 54px);
}

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

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    align-content: center;
    color: #ffffff;
    border: 0;
    background:
        radial-gradient(circle at center, rgba(249, 115, 22, 0.22), transparent 28%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.65));
    cursor: pointer;
    transition: opacity 0.24s ease;
}

.play-layer span {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 20px 48px rgba(249, 115, 22, 0.34);
    font-size: 30px;
}

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

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

.detail-card,
.info-card,
.recommend-panel,
.rank-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(17, 24, 39, 0.78);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.detail-card {
    padding: 26px;
    margin-top: 24px;
}

.detail-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-card p {
    color: #d1d5db;
    line-height: 1.9;
    margin: 0 0 18px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.info-card {
    padding: 20px;
    position: sticky;
    top: 88px;
}

.info-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 18px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #d1d5db;
}

.info-row span:first-child {
    color: var(--muted);
}

.recommend-panel {
    margin-top: 38px;
    padding: 24px;
}

.ranking-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.rank-item a {
    display: grid;
    grid-template-columns: 54px 86px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-weight: 900;
}

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

.rank-copy h2,
.rank-copy h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.rank-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.rank-score {
    color: var(--yellow);
    font-weight: 900;
    font-size: 18px;
    padding-right: 8px;
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(3, 7, 18, 0.72);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 28px;
}

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 12px;
}

.footer-inner p,
.footer-inner a {
    color: var(--muted);
    line-height: 1.8;
    font-size: 14px;
}

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

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

    .hero-copy,
    .hero-stage {
        min-height: auto;
    }

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

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

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

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

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

    .menu-toggle {
        display: block;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .header-inner {
        width: min(100% - 24px, 1180px);
    }

    .logo-text {
        max-width: 210px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-slider {
        width: min(100% - 24px, 1180px);
        margin-top: 18px;
    }

    .hero-copy {
        padding: 26px;
        border-radius: 24px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 650px;
        border-radius: 24px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: end;
        padding: 22px;
    }

    .hero-poster {
        max-width: 220px;
        justify-self: start;
    }

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

    .movie-row .movie-card {
        width: 180px;
    }

    .category-grid,
    .filter-panel,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: block;
    }

    .rank-item a {
        grid-template-columns: 42px 70px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
        padding-right: 0;
    }

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

    .detail-card,
    .recommend-panel {
        padding: 18px;
    }
}

@media (max-width: 460px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

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

    .hero-slide h2 {
        font-size: 32px;
    }

    .card-body {
        padding: 12px;
    }
}
