* {
    box-sizing: border-box;
}

:root {
    --bg: #09090b;
    --panel: rgba(31, 41, 55, 0.52);
    --panel-strong: rgba(17, 24, 39, 0.86);
    --line: rgba(249, 115, 22, 0.2);
    --soft-line: rgba(148, 163, 184, 0.14);
    --text: #f8fafc;
    --muted: #9ca3af;
    --dim: #6b7280;
    --brand: #f97316;
    --brand-deep: #ea580c;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 18px;
    --max: 1240px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 34rem),
        linear-gradient(135deg, #111827 0%, #1f2937 42%, #000000 100%);
    font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(124, 45, 18, 0.18);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--brand), #fb923c);
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text span,
.footer-brand {
    color: var(--brand);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

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

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

.nav-link,
.mobile-link {
    color: #d1d5db;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--brand);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.toolbar input,
.toolbar select {
    color: #e5e7eb;
    background: rgba(31, 41, 55, 0.62);
    border: 1px solid rgba(75, 85, 99, 0.85);
    border-radius: 999px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    width: 190px;
    padding: 10px 16px;
}

.header-search button,
.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.header-search button,
.primary-button {
    color: #ffffff;
    background: var(--brand);
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.primary-button:hover {
    background: var(--brand-deep);
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(249, 115, 22, 0.36);
}

.ghost-button,
.section-link {
    color: #e5e7eb;
    background: rgba(31, 41, 55, 0.78);
    border: 1px solid rgba(249, 115, 22, 0.28);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ghost-button:hover,
.section-link:hover {
    color: white;
    background: rgba(249, 115, 22, 0.16);
    border-color: rgba(249, 115, 22, 0.55);
}

.header-search input:focus,
.toolbar input:focus,
.toolbar select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 8px;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: rgba(31, 41, 55, 0.72);
}

.menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 6px 0;
    background: #d1d5db;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 20px;
    border-top: 1px solid rgba(75, 85, 99, 0.42);
}

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

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #050505;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.02) contrast(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0.72) 44%, rgba(0, 0, 0, 0.22) 100%),
        radial-gradient(circle at center, rgba(249, 115, 22, 0.12), transparent 46%);
}

.hero-content {
    position: absolute;
    inset: 0;
    width: min(900px, calc(100% - 42px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 44px;
}

.hero-content h1 {
    margin: 18px 0 18px;
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    line-height: 1.05;
    font-weight: 900;
    text-shadow: 0 18px 36px rgba(0, 0, 0, 0.9);
}

.hero-content p {
    max-width: 760px;
    margin: 0 auto 30px;
    color: #e5e7eb;
    font-size: clamp(1rem, 2.4vw, 1.35rem);
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.72);
}

.hero-actions,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: white;
    background: rgba(0, 0, 0, 0.52);
    font-size: 2.6rem;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--brand);
}

.content-section {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.tinted-section,
.dark-section {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - var(--max)) / 2));
    padding-right: max(16px, calc((100% - var(--max)) / 2));
}

.tinted-section {
    background: linear-gradient(90deg, rgba(124, 45, 18, 0.18), rgba(17, 24, 39, 0.26));
}

.dark-section {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(0, 0, 0, 0.9));
}

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

.section-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    color: var(--brand);
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.section-heading h2,
.page-hero h1 {
    margin: 10px 0 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.14;
    font-weight: 900;
}

.section-heading p,
.page-hero p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
}

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

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

.six-cols {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.movie-card,
.feature-card,
.movie-list-card,
.category-panel,
.info-box,
.side-card,
.player-card {
    border: 1px solid var(--soft-line);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.38);
    background: rgba(31, 41, 55, 0.72);
}

.movie-card a,
.movie-card-body,
.movie-card-title,
.movie-card-meta {
    display: block;
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
}

.movie-card.compact .poster-wrap {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
}

.poster-wrap img,
.feature-card img,
.category-covers img,
.side-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover img,
.feature-card:hover img,
.category-panel:hover img {
    transform: scale(1.06);
}

.poster-shade,
.feature-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 62%);
}

.movie-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    color: white;
    background: rgba(0, 0, 0, 0.78);
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-year {
    right: 12px;
    bottom: 12px;
}

.rank-badge {
    top: 12px;
    left: 12px;
    background: var(--brand);
}

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

.movie-card-body strong,
.movie-card-title {
    margin: 10px 0 8px;
    color: white;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 850;
    transition: color 0.2s ease;
}

.movie-card:hover strong,
.movie-card:hover .movie-card-title,
.movie-list-card:hover h3 a,
.feature-card:hover strong {
    color: var(--brand);
}

.movie-card-body span:last-child,
.movie-card-meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.movie-card.compact {
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.movie-card.compact:hover {
    background: transparent;
}

.movie-card.compact .movie-card-title {
    margin: 10px 0 2px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    color: #d1d5db;
    background: rgba(55, 65, 81, 0.82);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 750;
}

.chip-hot {
    color: white;
    background: rgba(249, 115, 22, 0.92);
}

.category-grid,
.category-panel-grid,
.feature-grid {
    display: grid;
    gap: 24px;
}

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

.category-tile {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    border: 1px solid rgba(249, 115, 22, 0.24);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.22), transparent 42%),
        rgba(17, 24, 39, 0.76);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.55);
}

.category-tile span,
.category-panel strong,
.feature-card strong {
    color: white;
    font-size: 1.35rem;
    font-weight: 900;
}

.category-tile small,
.category-panel span,
.feature-card span {
    margin-top: 8px;
    color: var(--muted);
}

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

.category-panel {
    overflow: hidden;
    border-radius: 24px;
}

.category-panel a {
    display: grid;
    grid-template-columns: 210px 1fr;
    min-height: 190px;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    overflow: hidden;
}

.category-panel-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px;
}

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

.feature-card {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: 24px;
}

.feature-card a,
.feature-card img,
.feature-shade {
    position: absolute;
    inset: 0;
}

.feature-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
}

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

.movie-list-card {
    display: flex;
    gap: 18px;
    min-height: 160px;
    overflow: hidden;
    border-radius: 18px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.movie-list-card:hover {
    transform: translateY(-2px);
    border-color: rgba(249, 115, 22, 0.36);
    background: rgba(31, 41, 55, 0.72);
}

.movie-list-cover {
    position: relative;
    width: 240px;
    flex: 0 0 240px;
    overflow: hidden;
    background: #111827;
}

.movie-list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-list-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 18px 22px 18px 0;
}

.movie-list-body h3 {
    margin: 12px 0 8px;
    font-size: 1.18rem;
    line-height: 1.35;
}

.movie-list-body p {
    margin: 0;
    color: var(--muted);
}

.page-hero {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0 38px;
}

.compact-hero {
    min-height: 280px;
    display: flex;
    align-items: end;
}

.toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.toolbar input {
    min-width: min(520px, 100%);
    padding: 13px 18px;
}

.toolbar select {
    padding: 13px 18px;
}

.breadcrumb {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

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

.detail-layout {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
}

.player-card,
.info-box,
.side-card {
    border-radius: 22px;
}

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

.player-shell video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: white;
    background: rgba(0, 0, 0, 0.42);
    cursor: pointer;
    transition: opacity 0.25s ease, background 0.25s ease;
}

.player-cover:hover {
    background: rgba(0, 0, 0, 0.32);
}

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

.play-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 20px 48px rgba(249, 115, 22, 0.38);
    font-size: 2rem;
    text-indent: 5px;
}

.detail-info {
    padding: 28px 0 0;
}

.detail-info h1 {
    margin: 18px 0 16px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.15;
    font-weight: 900;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.detail-tag {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 12px;
    color: #d1d5db;
    background: rgba(31, 41, 55, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 999px;
    font-size: 0.86rem;
}

.info-box {
    margin-bottom: 18px;
    padding: 24px;
}

.info-box h2,
.side-card h2 {
    margin: 0 0 10px;
    color: white;
    font-size: 1.2rem;
    font-weight: 850;
}

.info-box p {
    margin: 0;
    color: #d1d5db;
    white-space: pre-line;
}

.detail-side {
    position: sticky;
    top: 96px;
    align-self: start;
}

.side-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    margin-bottom: 18px;
    border-radius: 22px;
    background: #111827;
    box-shadow: var(--shadow);
}

.side-card {
    padding: 22px;
}

.side-card dl {
    margin: 0 0 22px;
}

.side-card div {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.side-card dt {
    color: var(--dim);
}

.side-card dd {
    margin: 0;
    color: #e5e7eb;
}

.full {
    width: 100%;
}

.related-section {
    padding-top: 54px;
}

.site-footer {
    margin-top: 50px;
    padding: 46px 0 24px;
    background: rgba(0, 0, 0, 0.45);
    border-top: 1px solid var(--line);
}

.footer-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 20px;
    max-width: 520px;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--brand);
}

.footer-bottom {
    width: min(var(--max), calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--dim);
    font-size: 0.9rem;
}

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

@media (max-width: 1040px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-button {
        display: block;
    }

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

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

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

    .detail-side {
        position: static;
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 18px;
    }

    .side-poster {
        margin-bottom: 0;
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 64px;
    }

    .brand-text span {
        font-size: 1rem;
    }

    .brand-text small {
        display: none;
    }

    .hero {
        height: 560px;
    }

    .hero-arrow {
        display: none;
    }

    .content-section {
        padding: 48px 0;
    }

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

    .four-cols,
    .six-cols,
    .category-grid,
    .category-panel-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

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

    .category-covers {
        min-height: 180px;
    }

    .movie-list-card {
        min-height: auto;
        gap: 0;
        flex-direction: column;
    }

    .movie-list-cover {
        width: 100%;
        flex-basis: auto;
        aspect-ratio: 16 / 9;
    }

    .movie-list-body {
        padding: 18px;
    }

    .toolbar {
        flex-direction: column;
    }

    .toolbar input,
    .toolbar select {
        width: 100%;
    }

    .detail-side {
        display: block;
    }

    .side-poster {
        max-width: 320px;
        margin: 0 auto 18px;
    }

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