:root {
    --orange: #ea580c;
    --orange-dark: #c2410c;
    --red: #dc2626;
    --amber: #f59e0b;
    --blue: #2563eb;
    --cyan: #0891b2;
    --green: #16a34a;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 16px 38px rgba(15, 23, 42, 0.14);
    --shadow-lg: 0 26px 60px rgba(15, 23, 42, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, var(--gray-50), var(--white));
    color: var(--gray-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--orange), var(--red), var(--orange-dark));
    box-shadow: 0 12px 28px rgba(194, 65, 12, 0.24);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 68px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.main-nav a {
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 650;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 220px;
}

.nav-search input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    outline: none;
    padding: 10px 42px 10px 14px;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.nav-search button {
    position: absolute;
    right: 8px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--white);
    cursor: pointer;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    cursor: pointer;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: var(--white);
    background: linear-gradient(125deg, #c2410c, #dc2626 48%, #ea580c);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.34;
}

.hero-backdrop img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.8s ease, transform 5s ease;
}

.hero-backdrop img.active {
    opacity: 1;
    transform: scale(1.12);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.24), transparent 30%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(127, 29, 29, 0.62), rgba(194, 65, 12, 0.76));
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
    gap: 34px;
    align-items: center;
    padding: 72px 0 62px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 0 0 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    margin: 20px 0 0;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 14px;
    border: 0;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--white);
    color: var(--orange-dark);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.btn-orange {
    background: linear-gradient(90deg, var(--orange), var(--red));
    color: var(--white);
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
}

.spotlight-panel {
    position: relative;
    min-height: 470px;
}

.spotlight-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateX(24px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.spotlight-slide img {
    width: 100%;
    height: 310px;
    object-fit: cover;
}

.spotlight-body {
    padding: 22px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(14px);
}

.spotlight-body h2 {
    margin: 8px 0;
    font-size: 28px;
    line-height: 1.2;
}

.spotlight-body p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.spotlight-dots {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.spotlight-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.spotlight-dots button.active {
    width: 28px;
    background: var(--white);
}

.section {
    padding: 68px 0;
}

.section.soft {
    background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.section.gray {
    background: var(--gray-50);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    color: var(--white);
    font-weight: 900;
    box-shadow: var(--shadow-sm);
}

.section-heading h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.section-heading p {
    margin: 4px 0 0;
    color: var(--gray-500);
}

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fecaca);
}

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

.movie-card:hover .movie-poster img,
.horizontal-card:hover img,
.rank-row:hover img {
    transform: scale(1.06);
}

.score {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.78);
    color: var(--white);
    font-weight: 800;
    font-size: 13px;
}

.movie-info {
    padding: 16px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-size: 13px;
}

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

.movie-card h3,
.horizontal-card h3,
.rank-row h3 {
    margin: 9px 0 8px;
    font-size: 18px;
    line-height: 1.28;
}

.movie-card h3 a:hover,
.horizontal-card h3 a:hover,
.rank-row h3 a:hover,
.breadcrumb a:hover {
    color: var(--orange);
}

.movie-card p,
.horizontal-card p,
.rank-row p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}

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

.tag-row span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
}

.feature-card {
    grid-column: span 2;
}

.feature-card .movie-poster {
    aspect-ratio: 16 / 9;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 14px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.horizontal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.horizontal-poster {
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fed7aa, #fecaca);
}

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

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

.category-card {
    min-height: 190px;
    padding: 24px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

.category-card p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}

.category-badge {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffedd5, #fee2e2);
    color: var(--orange-dark);
    font-weight: 800;
    font-size: 13px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 90px minmax(0, 1fr) 80px;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    color: var(--white);
    font-weight: 900;
}

.rank-poster {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fed7aa, #fecaca);
}

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

.rank-score {
    justify-self: end;
    color: var(--orange-dark);
    font-size: 28px;
    font-weight: 900;
}

.page-hero {
    padding: 64px 0;
    color: var(--white);
    background: linear-gradient(120deg, var(--orange), var(--red), var(--orange-dark));
}

.page-hero p {
    max-width: 820px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 26px;
    padding: 16px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.toolbar input,
.toolbar select {
    min-height: 44px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: var(--white);
    color: var(--gray-900);
    outline: none;
    padding: 0 14px;
}

.toolbar input {
    flex: 1 1 280px;
}

.toolbar select {
    flex: 0 1 180px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(330px, 0.28fr);
    gap: 28px;
    align-items: start;
}

.detail-main,
.detail-side,
.player-shell {
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.detail-main {
    padding: 28px;
}

.detail-title {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 28px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fed7aa, #fecaca);
    box-shadow: var(--shadow-md);
}

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

.fact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.fact {
    padding: 12px;
    border-radius: 14px;
    background: var(--gray-50);
}

.fact b {
    display: block;
    color: var(--gray-500);
    font-size: 12px;
}

.fact span {
    color: var(--gray-900);
    font-weight: 800;
}

.player-shell {
    overflow: hidden;
    margin-bottom: 28px;
}

.player-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: linear-gradient(90deg, #111827, #1f2937);
    color: var(--white);
}

.player-head h2 {
    margin: 0;
    font-size: 22px;
}

.video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.video-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(234, 88, 12, 0.35), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

.player-overlay.hidden {
    display: none;
}

.play-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 18px 40px rgba(220, 38, 38, 0.34);
    font-size: 32px;
}

.player-status {
    min-height: 22px;
    margin: 0;
    padding: 12px 22px 18px;
    color: var(--gray-600);
}

.prose-block h2 {
    margin: 32px 0 12px;
    font-size: 26px;
}

.prose-block p {
    margin: 0 0 16px;
    color: var(--gray-700);
    font-size: 16px;
}

.detail-side {
    padding: 20px;
}

.side-title {
    margin: 0 0 16px;
    font-size: 22px;
}

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

.side-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-item img {
    width: 76px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #fed7aa, #fecaca);
}

.side-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.3;
}

.side-item p {
    margin: 0;
    color: var(--gray-500);
    font-size: 13px;
}

.search-shell {
    display: grid;
    gap: 18px;
}

.search-box {
    display: flex;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.search-box input {
    flex: 1;
    min-height: 48px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
}

.search-box button {
    border: 0;
    border-radius: 14px;
    padding: 0 20px;
    background: linear-gradient(90deg, var(--orange), var(--red));
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
}

.empty-state {
    padding: 32px;
    border-radius: 20px;
    background: var(--white);
    color: var(--gray-500);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.site-footer {
    margin-top: 72px;
    background: linear-gradient(180deg, var(--gray-900), #020617);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
    padding: 48px 0;
}

.site-footer p {
    color: var(--gray-400);
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

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

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gray-500);
    text-align: center;
}

@media (max-width: 1024px) {
    .hero-inner,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .spotlight-panel {
        min-height: 440px;
    }

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

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 16px 16px;
        background: #c2410c;
        box-shadow: var(--shadow-md);
    }

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

    .main-nav a {
        border-radius: 10px;
    }

    .nav-search {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding: 54px 0;
    }

    .hero-copy > p:not(.eyebrow) {
        font-size: 17px;
    }

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

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

    .detail-cover {
        max-width: 260px;
    }

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

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

    .hero h1,
    .page-hero h1,
    .detail-title h1 {
        font-size: 36px;
    }

    .spotlight-slide img {
        height: 230px;
    }

    .spotlight-panel {
        min-height: 410px;
    }

    .card-grid,
    .category-grid,
    .horizontal-list {
        grid-template-columns: 1fr;
    }

    .horizontal-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

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

    .rank-score {
        grid-column: 2 / 4;
        justify-self: start;
        font-size: 20px;
    }

    .fact-list {
        grid-template-columns: 1fr;
    }

    .player-head {
        align-items: flex-start;
        flex-direction: column;
    }
}
