:root {
    color-scheme: dark;
    --bg-deep: #020617;
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-soft: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-soft: #cbd5e1;
    --orange: #f97316;
    --red: #dc2626;
    --yellow: #facc15;
    --green: #22c55e;
    --blue: #38bdf8;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.35);
    --shadow-card: 0 14px 36px rgba(2, 6, 23, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text-main);
    background: linear-gradient(180deg, #020617 0%, #0f172a 38%, #020617 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(14px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
}

.brand-text {
    font-size: 1.18rem;
    background: linear-gradient(90deg, #fb923c, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #fb923c;
}

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

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select,
.search-main input {
    border: 1px solid rgba(148, 163, 184, 0.18);
    outline: none;
    color: #ffffff;
    background: rgba(51, 65, 85, 0.78);
    border-radius: 999px;
    padding: 11px 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 220px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.search-main input:focus {
    border-color: rgba(251, 146, 60, 0.8);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.header-search button,
.mobile-search button,
.search-main button,
.primary-button,
.ghost-button {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-main button:hover,
.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 16px 38px rgba(249, 115, 22, 0.28);
}

.ghost-button {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    color: #ffffff;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.mobile-panel.open {
    display: block;
}

.mobile-panel-inner {
    padding: 14px 0 18px;
    display: grid;
    gap: 14px;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.12));
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    padding-top: 58px;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    background: var(--orange);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 5vw, 5.1rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero p {
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.7;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.hero-control {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    cursor: pointer;
    font-size: 1.8rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

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

main {
    position: relative;
}

.main-pad {
    padding: 112px 0 64px;
}

.home-content {
    padding: 54px 0 70px;
}

.section-block {
    margin-bottom: 68px;
}

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

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title-wrap h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.15;
}

.section-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.18);
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: rgba(30, 41, 59, 0.86);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    background: rgba(51, 65, 85, 0.92);
    box-shadow: 0 26px 60px rgba(2, 6, 23, 0.34);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

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

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
    opacity: 0;
    transition: opacity 0.22s ease;
}

.movie-card:hover .card-cover::after {
    opacity: 1;
}

.play-float {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) scale(0.65);
    opacity: 0;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.92);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge,
.card-label {
    position: absolute;
    z-index: 4;
    left: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.card-body {
    padding: 18px;
}

.card-body h2,
.card-body h3 {
    margin: 0 0 9px;
    font-size: 1.04rem;
    line-height: 1.38;
}

.card-body h2 a,
.card-body h3 a {
    transition: color 0.2s ease;
}

.card-body h2 a:hover,
.card-body h3 a:hover {
    color: #fb923c;
}

.card-desc {
    min-height: 50px;
    margin: 0 0 12px;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.94rem;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.83rem;
    margin-bottom: 12px;
}

.card-meta span {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 9px;
    background: rgba(15, 23, 42, 0.72);
}

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

.tag-row span {
    color: #fed7aa;
    border: 1px solid rgba(251, 146, 60, 0.25);
    background: rgba(249, 115, 22, 0.12);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.78rem;
}

.horizontal-scroll {
    overflow-x: auto;
    padding-bottom: 14px;
}

.horizontal-row {
    display: flex;
    gap: 18px;
}

.horizontal-row .movie-card {
    flex: 0 0 300px;
}

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

.category-chip,
.category-box {
    display: block;
    padding: 24px;
    border-radius: var(--radius-md);
    background: rgba(30, 41, 59, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.category-chip:hover,
.category-box:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.82), rgba(220, 38, 38, 0.82));
    border-color: rgba(255, 255, 255, 0.15);
}

.category-chip strong,
.category-box strong {
    display: block;
    margin-bottom: 9px;
    font-size: 1.22rem;
}

.category-chip span,
.category-box span {
    color: #cbd5e1;
    line-height: 1.6;
}

.page-title {
    margin-bottom: 36px;
    text-align: center;
}

.page-title h1 {
    display: inline-block;
    margin-bottom: 14px;
    background: linear-gradient(90deg, #fb923c, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-title p {
    max-width: 780px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.08rem;
}

.filter-bar,
.search-main {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.12);
    margin-bottom: 28px;
}

.filter-bar input {
    flex: 1 1 260px;
}

.filter-bar select {
    min-width: 150px;
}

.search-main input {
    flex: 1 1 320px;
}

.filter-empty,
.search-empty {
    display: none;
    color: #cbd5e1;
    text-align: center;
    padding: 34px;
    border-radius: var(--radius-md);
    background: rgba(30, 41, 59, 0.7);
}

.filter-empty.show,
.search-empty.show {
    display: block;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 180px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(30, 41, 59, 0.86);
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
    transform: translateX(5px);
    background: rgba(51, 65, 85, 0.92);
}

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

.rank-thumb {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

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

.detail-hero {
    padding: 104px 0 54px;
    background: radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.18), transparent 34%), linear-gradient(180deg, #020617, #0f172a);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: #94a3b8;
    font-size: 0.92rem;
}

.breadcrumb a {
    color: #fb923c;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 30px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000000;
    box-shadow: var(--shadow-lg);
}

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

.player-poster {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: rgba(2, 6, 23, 0.35);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.poster-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.poster-bg + span {
    position: relative;
    z-index: 2;
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 20px 44px rgba(220, 38, 38, 0.4);
}

.detail-side {
    border-radius: var(--radius-lg);
    background: rgba(30, 41, 59, 0.84);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.detail-side img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.detail-side-body {
    padding: 22px;
}

.detail-side h1 {
    margin: 0 0 16px;
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    line-height: 1.18;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.detail-meta span {
    color: #cbd5e1;
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(15, 23, 42, 0.74);
}

.detail-copy {
    padding: 52px 0 68px;
}

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

.content-card {
    border-radius: var(--radius-lg);
    padding: 30px;
    background: rgba(30, 41, 59, 0.8);
    box-shadow: var(--shadow-card);
}

.content-card h2 {
    margin: 0 0 18px;
    font-size: 1.7rem;
}

.content-card p {
    margin: 0 0 18px;
    color: #cbd5e1;
    line-height: 1.88;
}

.side-panel {
    position: sticky;
    top: 88px;
    border-radius: var(--radius-lg);
    padding: 22px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.side-panel h2 {
    margin: 0 0 16px;
    font-size: 1.25rem;
}

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

.side-link-list a {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.72);
    transition: background 0.2s ease, transform 0.2s ease;
}

.side-link-list a:hover {
    transform: translateX(4px);
    background: rgba(51, 65, 85, 0.92);
}

.side-link-list img {
    width: 82px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
}

.side-link-list strong {
    display: block;
    margin-bottom: 4px;
    line-height: 1.36;
}

.side-link-list span {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.related-grid {
    margin-top: 32px;
}

.site-footer {
    background: linear-gradient(180deg, #0f172a, #020617);
    color: #cbd5e1;
    padding: 54px 0 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.footer-grid p {
    color: var(--text-muted);
    line-height: 1.75;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1.1rem;
}

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

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: #64748b;
    text-align: center;
}

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

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

    .movie-grid,
    .movie-grid.three-col,
    .category-chip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-grid,
    .copy-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }
}

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

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

    .hero {
        min-height: 620px;
        height: 76vh;
    }

    .hero-control {
        display: none;
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 84px;
    }

    .hero-actions {
        display: grid;
    }

    .movie-grid,
    .movie-grid.two-col,
    .movie-grid.three-col,
    .category-chip-grid {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 52px 96px 1fr;
    }

    .rank-row .primary-button {
        grid-column: 1 / -1;
        text-align: center;
    }

    .content-card {
        padding: 22px;
    }
}
