:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-100: #f1f5f9;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1f2937;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --green-500: #22c55e;
    --red-500: #ef4444;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 26px 70px rgba(15, 23, 42, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
}

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;
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
}

.nav-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
    font-size: 18px;
}

.brand-text strong {
    display: block;
    font-size: 20px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.brand-text small {
    display: block;
    margin-top: 2px;
    color: #cbd5e1;
    font-size: 12px;
}

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

.nav-link,
.mobile-link {
    border-radius: 10px;
    color: #e2e8f0;
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-link {
    padding: 10px 18px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--white);
    background: var(--orange-500);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: var(--white);
}

.mobile-nav {
    display: none;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-link {
    display: block;
    margin-top: 8px;
    padding: 12px 14px;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    color: var(--white);
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.35), transparent 36%), linear-gradient(135deg, var(--slate-950), var(--slate-800) 52%, var(--slate-900));
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.84), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.24));
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1s ease;
}

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

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

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 640px;
    display: flex;
    align-items: center;
}

.hero-panel {
    width: min(720px, 100%);
    padding: 72px 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(251, 146, 60, 0.38);
    backdrop-filter: blur(12px);
    font-weight: 700;
}

.hero-title {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-text {
    max-width: 650px;
    margin: 0 0 30px;
    color: #dbeafe;
    font-size: 20px;
    line-height: 1.85;
}

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

.btn-primary,
.btn-ghost,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 800;
    transition: 0.25s ease;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(90deg, var(--orange-500), var(--orange-600));
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 24px 45px rgba(249, 115, 22, 0.36);
}

.btn-ghost {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

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

.btn-light {
    color: var(--blue-600);
    background: var(--white);
}

.hero-chips,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-chips a,
.hero-chips span,
.tag-list span {
    border-radius: 999px;
    padding: 6px 10px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 700;
}

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

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

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

.stats-strip {
    padding: 54px 0;
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
}

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

.stat-card {
    padding: 24px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: 0.25s ease;
}

.stat-card:hover,
.movie-card:hover,
.category-card:hover,
.rank-card:hover,
.info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.stat-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    font-size: 24px;
}

.stat-card h2,
.stat-card h3 {
    margin: 0 0 8px;
    font-size: 21px;
}

.stat-card p {
    margin: 0;
    color: var(--gray-600);
}

.section {
    padding: 72px 0;
}

.section-white {
    background: var(--white);
}

.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.section-title h1,
.section-title h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    color: var(--gray-800);
}

.section-title p {
    margin: 8px 0 0;
    color: var(--gray-600);
    font-size: 17px;
    line-height: 1.8;
}

.section-link {
    color: var(--orange-600);
    font-weight: 800;
    white-space: nowrap;
}

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

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

.movie-poster {
    position: relative;
    display: block;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

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

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

.movie-rank,
.movie-play,
.rank-number {
    position: absolute;
    display: grid;
    place-items: center;
    color: var(--white);
    font-weight: 900;
}

.movie-rank {
    top: 12px;
    left: 12px;
    min-width: 42px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.95);
}

.movie-play {
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(15, 23, 42, 0.72);
    opacity: 0;
    transition: 0.25s ease;
}

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

.movie-info {
    padding: 18px;
}

.movie-title {
    display: block;
    min-height: 48px;
    color: var(--gray-800);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.movie-title:hover {
    color: var(--orange-600);
}

.movie-meta {
    margin: 8px 0;
    color: var(--orange-600);
    font-size: 14px;
    font-weight: 800;
}

.movie-desc {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--gray-600);
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-list span {
    color: var(--orange-600);
    background: #ffedd5;
}

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

.category-card {
    min-height: 185px;
    padding: 24px;
    border-radius: 20px;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-800), var(--slate-700));
    box-shadow: var(--shadow-soft);
    transition: 0.25s ease;
}

.category-card:nth-child(3n + 1) {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
}

.category-card:nth-child(3n + 2) {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
}

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

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.65;
}

.search-panel {
    margin-bottom: 30px;
    padding: 22px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.search-grid {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr));
    gap: 14px;
}

.search-grid input,
.search-grid select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    outline: 0;
    background: var(--white);
    color: var(--gray-800);
    transition: 0.2s ease;
}

.search-grid input:focus,
.search-grid select:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.rank-card {
    position: relative;
    min-height: 170px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    padding: 16px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: 0.25s ease;
}

.rank-card img {
    width: 120px;
    height: 138px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-number {
    top: 8px;
    left: 8px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--orange-500);
}

.rank-card h2,
.rank-card h3 {
    margin: 2px 0 8px;
    font-size: 20px;
}

.rank-card p {
    margin: 0 0 10px;
    color: var(--gray-600);
    line-height: 1.6;
}

.page-hero {
    padding: 78px 0;
    color: var(--white);
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.32), transparent 30%), linear-gradient(90deg, var(--slate-800), var(--slate-700));
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #dbeafe;
    font-size: 19px;
    line-height: 1.8;
}

.breadcrumb {
    margin-bottom: 18px;
    color: #fed7aa;
    font-weight: 800;
}

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

.player-card,
.detail-card,
.side-card,
.info-card {
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.player-card {
    overflow: hidden;
}

.player-head {
    padding: 20px 24px;
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-800), var(--slate-700));
}

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

.player-head p {
    margin: 0;
    color: #cbd5e1;
}

.player {
    position: relative;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.player video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.76));
}

.player-play {
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    box-shadow: 0 20px 45px rgba(249, 115, 22, 0.42);
    cursor: pointer;
    font-size: 34px;
    transition: 0.25s ease;
}

.player-play:hover {
    transform: scale(1.08);
}

.player.is-playing .player-cover {
    display: none;
}

.detail-card {
    padding: 28px;
}

.detail-card h2,
.side-card h2,
.info-card h2 {
    margin: 0 0 16px;
    color: var(--gray-800);
    font-size: 26px;
}

.detail-card p {
    color: var(--gray-700);
    font-size: 17px;
    line-height: 1.95;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.detail-meta span {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 800;
}

.side-card {
    overflow: hidden;
}

.side-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.side-content {
    padding: 22px;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.mini-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: 0.25s ease;
}

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

.mini-card img {
    width: 80px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
}

.mini-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-800);
    line-height: 1.35;
}

.mini-card span {
    color: var(--orange-600);
    font-size: 13px;
    font-weight: 800;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.info-card {
    padding: 28px;
    transition: 0.25s ease;
}

.info-card p,
.info-card li {
    color: var(--gray-600);
    line-height: 1.8;
}

.info-card ul {
    margin: 0;
    padding-left: 20px;
}

.cta-band {
    border-radius: 24px;
    padding: 46px;
    text-align: center;
    color: var(--white);
    background: linear-gradient(90deg, var(--blue-600), #0d9488);
    box-shadow: var(--shadow-strong);
}

.cta-band h2 {
    margin: 0 0 14px;
    font-size: 36px;
}

.cta-band p {
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: 18px;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800), var(--slate-900));
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 20px 36px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.site-footer h2 {
    display: inline-block;
    margin: 0 0 16px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--orange-500);
    color: var(--white);
    font-size: 19px;
}

.site-footer p,
.site-footer li {
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: var(--orange-400);
}

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    text-align: center;
}

.hidden-card {
    display: none !important;
}

.empty-state {
    display: none;
    padding: 32px;
    border-radius: 18px;
    text-align: center;
    color: var(--gray-600);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.empty-state.is-visible {
    display: block;
}

@media (max-width: 1024px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid,
    .footer-grid,
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .menu-button {
        display: block;
    }

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

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text small {
        display: none;
    }

    .hero-section,
    .hero-content {
        min-height: 580px;
    }

    .hero-panel {
        padding: 52px 0 78px;
    }

    .hero-text {
        font-size: 17px;
    }

    .stats-grid,
    .movie-grid,
    .category-grid,
    .rank-list,
    .search-grid,
    .footer-grid,
    .info-grid,
    .recommend-grid {
        grid-template-columns: 1fr;
    }

    .movie-poster {
        height: 360px;
    }

    .section {
        padding: 52px 0;
    }

    .section-title {
        display: block;
    }

    .section-link {
        display: inline-block;
        margin-top: 12px;
    }

    .rank-card {
        grid-template-columns: 104px 1fr;
    }

    .rank-card img {
        width: 104px;
        height: 128px;
    }

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

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

    .cta-band {
        padding: 32px 20px;
    }
}
