* {
    box-sizing: border-box;
}

:root {
    --page-bg: #f9fafb;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #f3f4f6;
    --border: #e5e7eb;
    --brand: #d97706;
    --brand-2: #f59e0b;
    --dark: #111827;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: var(--page-bg);
    line-height: 1.65;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #1f2937;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-2), #ef4444);
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28);
}

.brand-text {
    font-size: 24px;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    padding: 9px 13px;
    color: #4b5563;
    border-radius: 12px;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #b45309;
    background: #fff7ed;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    background: #fff7ed;
    color: #b45309;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 20px;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #111827;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 25%, rgba(245, 158, 11, 0.28), transparent 34%), linear-gradient(135deg, #111827, #334155 55%, #0f172a);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    transform: scale(1.02);
}

.hero-bg img.image-missing {
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08));
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 710px;
    color: #fff;
    padding: 76px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 18px 0 22px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-desc {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 21px;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta {
    margin: 30px 0;
}

.hero-meta span,
.detail-meta span {
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.hero-meta span:first-child,
.detail-meta span:first-child {
    background: var(--brand-2);
    color: #111827;
    font-weight: 800;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-2), #ef4444);
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.28);
}

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

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

.hero-dot {
    width: 28px;
    height: 4px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dot.active {
    background: #fbbf24;
}

.main-section {
    padding: 72px 0;
}

.section-container,
.footer-grid,
.detail-wrap,
.list-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

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

.section-head p {
    margin: 10px 0 0;
    color: var(--muted);
}

.section-more {
    color: var(--brand);
    font-weight: 800;
    white-space: nowrap;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.42), transparent 35%), linear-gradient(135deg, #111827, #374151);
}

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

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

.poster img.image-missing {
    opacity: 0;
}

.play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.82);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(245, 158, 11, 0.95);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 9px;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: 12px;
    right: auto;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
}

.card-body {
    padding: 18px;
}

.card-category {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 4px 10px;
    color: #b45309;
    background: #fff7ed;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--brand);
}

.card-body p {
    min-height: 52px;
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    color: #6b7280;
    font-size: 13px;
}

.card-meta span + span::before,
.rank-meta span + span::before {
    content: "·";
    margin-right: 10px;
    color: #d1d5db;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 42% 1fr;
}

.horizontal-card .poster {
    height: 100%;
    min-height: 190px;
}

.alt-bg {
    background: linear-gradient(135deg, #fff7ed, #fff 40%, #eff6ff);
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 160px;
    padding: 24px;
    color: #fff;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f172a, #d97706);
    box-shadow: var(--shadow);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: auto -30px -45px auto;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.category-tile h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 110px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.rank-number {
    font-size: 26px;
    font-weight: 900;
    color: var(--brand);
    text-align: center;
}

.rank-cover {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #475569);
}

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

.rank-cover img.image-missing {
    opacity: 0;
}

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.rank-info p {
    margin: 0;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-heat {
    font-weight: 900;
    color: #ef4444;
}

.page-hero {
    padding: 78px 0;
    color: #fff;
    background: radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.32), transparent 28%), linear-gradient(135deg, #111827, #374151 55%, #0f172a);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 5vw, 58px);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 19px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 22% 16%, rgba(245, 158, 11, 0.28), transparent 34%), linear-gradient(135deg, #111827, #1f2937);
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: blur(4px);
    transform: scale(1.04);
}

.detail-bg img.image-missing {
    opacity: 0;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42));
}

.detail-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 42px;
    align-items: center;
    padding: 72px 0;
}

.detail-copy h1 {
    margin: 14px 0 18px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-copy p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 19px;
}

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

.detail-tags span {
    padding: 6px 11px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.14);
}

.player-card {
    overflow: hidden;
    border-radius: 26px;
    background: #030712;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}

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

.player-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.62));
    cursor: pointer;
}

.player-start span {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-2), #ef4444);
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.35);
}

.player-frame.is-playing .player-start {
    display: none;
}

.player-note {
    padding: 14px 18px;
    color: #d1d5db;
    background: #111827;
    font-size: 14px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

.article-panel,
.side-panel {
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    padding: 28px;
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 18px;
    font-size: 26px;
}

.article-panel p {
    margin: 0 0 18px;
    color: #4b5563;
}

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

.side-link {
    padding: 13px 14px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid #eef2f7;
}

.side-link:hover {
    color: var(--brand);
    background: #fff7ed;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 14px;
    padding: 18px;
    margin-bottom: 28px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.search-panel input,
.search-panel select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--text);
    background: #fff;
    font-size: 16px;
    outline: none;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 55%, #111827);
    padding: 54px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    margin-bottom: 12px;
    color: #fff;
    font-size: 28px;
    font-weight: 900;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: #fff;
}

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

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

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

@media (max-width: 1024px) {
    .movie-grid,
    .movie-grid.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-wrap,
    .content-grid {
        grid-template-columns: 1fr;
    }
}

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

    .menu-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 70px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        padding: 14px;
        border-radius: 20px;
        background: #fff;
        box-shadow: var(--shadow);
    }

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

    .hero,
    .hero-inner {
        min-height: 560px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-desc {
        font-size: 18px;
    }

    .section-head {
        display: block;
    }

    .section-more {
        display: inline-flex;
        margin-top: 14px;
    }

    .movie-grid,
    .movie-grid.compact,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-row {
        grid-template-columns: 44px 86px 1fr;
    }

    .rank-heat {
        grid-column: 3;
    }

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

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