* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --page: #f8fafc;
    --text: #111827;
    --muted: #667085;
    --line: #e5e7eb;
    --card: #ffffff;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --amber-soft: #fff7ed;
    --radius-lg: 24px;
    --radius-md: 18px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 25px 70px rgba(2, 6, 23, 0.32);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--page);
    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%;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0));
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    color: var(--text);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: var(--amber);
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.34);
    font-size: 14px;
}

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

.nav-link,
.mobile-link {
    padding: 10px 15px;
    border-radius: 12px;
    font-weight: 650;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #ffffff;
    background: var(--amber);
}

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

.site-header.is-scrolled .menu-button,
.site-header.is-open .menu-button {
    background: var(--amber-soft);
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.mobile-nav.is-open {
    display: grid;
    gap: 6px;
}

.hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.28), transparent 28%), linear-gradient(135deg, #020617 0%, #111827 42%, #78350f 100%);
}

.hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 140px;
    background: linear-gradient(0deg, var(--page), rgba(248, 250, 252, 0));
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 720px;
    margin: 0 auto;
    padding: 132px 0 96px;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 54px;
    align-items: center;
}

.hero-kicker,
.page-kicker,
.card-badge {
    margin: 0 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin: 0 0 20px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-lead,
.page-lead {
    max-width: 760px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(18px, 2vw, 23px);
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--amber-dark));
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.28);
}

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

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.btn-light {
    color: var(--amber-dark);
    background: #ffffff;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 650px;
    margin-top: 36px;
}

.stat-card {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.stat-card strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.stat-card span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.hero-carousel {
    position: relative;
    min-height: 560px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(18px) scale(0.98);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-poster {
    position: relative;
    height: 560px;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: var(--shadow-strong);
    background: #111827;
}

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

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.06) 58%, rgba(2, 6, 23, 0.2));
}

.hero-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 30px;
}

.hero-caption h2 {
    margin: 8px 0;
    font-size: 32px;
    line-height: 1.15;
}

.hero-caption p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
}

.carousel-dots {
    position: absolute;
    right: 28px;
    bottom: -30px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    cursor: pointer;
}

.carousel-dot.is-active {
    width: 30px;
    background: var(--amber);
}

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

.section {
    padding: 62px 0;
}

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

.section-head h2,
.page-section h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-head p,
.category-card p,
.rank-body p,
.page-section p,
.detail-summary p {
    color: var(--muted);
}

.stats-grid,
.category-grid,
.movie-grid,
.detail-grid,
.sitemap-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

.category-card,
.movie-card,
.info-box,
.rank-item,
.search-panel,
.player-card,
.detail-summary,
.related-box,
.sitemap-block {
    background: var(--card);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.category-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
}

.category-card::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.16);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
}

.category-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 22px;
}

.category-preview a {
    padding: 7px 10px;
    color: var(--amber-dark);
    background: var(--amber-soft);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.movie-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #78350f);
}

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

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

.play-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    backdrop-filter: blur(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-content {
    padding: 18px;
}

.card-content h3 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.32;
}

.card-content h3 a:hover,
.rank-body h3 a:hover,
.sitemap-block a:hover {
    color: var(--amber-dark);
}

.card-desc {
    min-height: 52px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

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

.tag-row span,
.meta-chip {
    padding: 5px 9px;
    color: #92400e;
    background: var(--amber-soft);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 70% 10%, rgba(245, 158, 11, 0.22), transparent 34%), linear-gradient(135deg, #020617, #1e293b 58%, #78350f);
}

.page-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 132px 0 76px;
}

.page-hero .page-lead {
    color: rgba(255, 255, 255, 0.82);
}

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

.search-panel {
    padding: 22px;
    margin-bottom: 26px;
}

.search-input {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--text);
    font-size: 16px;
    outline: none;
}

.search-input:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 70px 150px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    transition: transform 0.25s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
}

.rank-index {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--amber-dark));
    border-radius: 50%;
    font-size: 18px;
    font-weight: 900;
}

.rank-poster {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    background: #111827;
}

.rank-body h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-body p {
    margin: 0 0 10px;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rank-meta span {
    padding: 5px 9px;
    color: #475467;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.detail-hero {
    min-height: 560px;
    color: #ffffff;
    background-position: center;
    background-size: cover;
    position: relative;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.25));
}

.detail-hero-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
    padding: 132px 0 76px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    align-items: end;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
    background: #111827;
}

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

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

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 24px;
}

.detail-grid {
    grid-template-columns: 1fr 340px;
    align-items: start;
}

.player-card,
.detail-summary,
.related-box {
    padding: 22px;
}

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

.video-shell video,
.video-shell .play-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-shell video {
    object-fit: contain;
    background: #020617;
}

.play-cover {
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.24);
    cursor: pointer;
}

.play-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.74;
}

.play-cover span {
    position: relative;
    z-index: 2;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber), var(--amber-dark));
    box-shadow: 0 18px 50px rgba(245, 158, 11, 0.35);
    font-size: 28px;
}

.video-shell.is-playing .play-cover {
    display: none;
}

.player-status {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.detail-summary h2,
.related-box h2 {
    margin: 0 0 14px;
}

.detail-summary p {
    margin: 0 0 16px;
}

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

.related-list a {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
}

.related-list img {
    width: 72px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
}

.related-list strong {
    display: block;
    margin-bottom: 4px;
}

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

.sitemap-block {
    padding: 22px;
}

.sitemap-block h2 {
    margin: 0 0 16px;
}

.sitemap-block a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #eef2f7;
    color: #334155;
}

.site-footer {
    margin-top: 64px;
    color: #d1d5db;
    background: linear-gradient(135deg, #020617, #111827 52%, #1e293b);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.25fr;
    gap: 30px;
}

.site-footer p {
    color: #94a3b8;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--amber);
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-top {
    border: 0;
    color: #ffffff;
    background: transparent;
    cursor: pointer;
}

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

    .menu-button {
        display: block;
    }

    .hero-inner,
    .detail-hero-inner,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-carousel,
    .hero-poster {
        min-height: 460px;
        height: 460px;
    }

    .movie-grid,
    .stats-grid,
    .category-grid,
    .sitemap-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .hero,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner,
    .page-hero-inner,
    .detail-hero-inner {
        padding-top: 108px;
    }

    .hero-stats,
    .movie-grid,
    .stats-grid,
    .category-grid,
    .sitemap-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-head,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-item {
        grid-template-columns: 48px 96px 1fr;
        gap: 12px;
    }

    .rank-index {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }

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