:root {
    --bg: #f8fafc;
    --text: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --panel: #ffffff;
    --dark: #0f172a;
    --dark-soft: #1f2937;
    --brand: #d97706;
    --brand-2: #f59e0b;
    --brand-3: #fb923c;
    --shadow: 0 22px 70px rgba(15, 23, 42, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.site-header.scrolled,
.site-header.open {
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    border-color: rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.logo {
    font-size: 20px;
    white-space: nowrap;
}

.logo-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
    font-size: 15px;
    font-weight: 600;
}

.desktop-nav a {
    opacity: 0.88;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--brand-2);
    opacity: 1;
}

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

.nav-search {
    min-width: 236px;
}

.nav-search input,
.mobile-search input,
.search-hero-form input,
.local-filter input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: inherit;
    outline: none;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.site-header.scrolled .nav-search input,
.site-header.open .nav-search input,
.mobile-search input,
.search-hero-form input,
.local-filter input {
    border-color: var(--line);
    background: #ffffff;
    color: var(--text);
}

.nav-search input::placeholder,
.mobile-search input::placeholder,
.search-hero-form input::placeholder,
.local-filter input::placeholder {
    color: #94a3b8;
}

.nav-search button,
.mobile-search button,
.search-hero-form button,
.hero-link,
.action-button,
.filter-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(217, 119, 6, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.nav-search button:hover,
.mobile-search button:hover,
.search-hero-form button:hover,
.hero-link:hover,
.action-button:hover,
.filter-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(217, 119, 6, 0.3);
}

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

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.mobile-panel.show {
    display: grid;
    gap: 10px;
}

.mobile-panel a {
    padding: 11px 12px;
    border-radius: 12px;
    background: #f8fafc;
    font-weight: 700;
}

.mobile-search {
    margin-bottom: 6px;
}

.hero {
    position: relative;
    height: min(700px, 100vh);
    min-height: 560px;
    overflow: hidden;
    background: #111827;
    color: #ffffff;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 900ms ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 6s ease;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.46), rgba(15, 23, 42, 0.68) 48%, rgba(2, 6, 23, 0.96));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 76px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    align-items: end;
}

.hero-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.34);
    font-weight: 800;
    font-size: 13px;
}

.hero h1,
.hero h2 {
    margin: 16px 0 14px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
}

.hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.hero-link.secondary,
.action-button.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.hero-panel {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    padding: 20px;
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.hero-panel h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.hero-mini-list {
    display: grid;
    gap: 10px;
}

.hero-mini-list a {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mini-list a:hover {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.18);
}

.hero-mini-list img {
    width: 44px;
    height: 58px;
    object-fit: cover;
    border-radius: 10px;
}

.hero-mini-list span {
    display: block;
    font-weight: 800;
}

.hero-mini-list small,
.hero-mini-list em {
    color: rgba(255, 255, 255, 0.68);
    font-style: normal;
    font-size: 12px;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 24px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 42px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

.hero-dot.active {
    background: var(--brand-2);
}

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

.section + .section {
    padding-top: 20px;
}

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

.section-title h2,
.section-title h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

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

.more-link {
    color: var(--brand);
    font-weight: 800;
}

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

.movie-card {
    min-width: 0;
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.play-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    background: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.rank-mark {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    min-width: 34px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    font-size: 13px;
}

.movie-card-body {
    padding: 12px 2px 0;
}

.movie-card h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-meta {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.movie-line {
    margin: 8px 0 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-tags,
.detail-tags,
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.movie-tags span,
.detail-tags span,
.hero-tags span {
    border-radius: 999px;
    padding: 4px 8px;
    color: #92400e;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 24px;
    border-radius: var(--radius);
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.46), transparent 34%), linear-gradient(135deg, #111827, #1f2937);
    box-shadow: var(--shadow);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

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

.category-card span {
    display: inline-flex;
    margin-top: 18px;
    color: #fbbf24;
    font-weight: 800;
}

.category-card small {
    position: absolute;
    right: 22px;
    bottom: 18px;
    color: rgba(255, 255, 255, 0.28);
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
}

.rank-board {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 26px;
    align-items: start;
}

.rank-feature {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.rank-feature .movie-poster {
    border-radius: 20px;
}

.rank-feature h3 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.12;
}

.rank-feature p {
    color: #475569;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.rank-row strong {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: var(--dark);
}

.rank-row span {
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row em {
    color: var(--muted);
    font-style: normal;
}

.page-hero,
.detail-hero {
    position: relative;
    padding: 132px 0 64px;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.36), transparent 34%), linear-gradient(135deg, #0f172a, #111827 58%, #000000);
    overflow: hidden;
}

.page-hero::after,
.detail-hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -45% 40%;
    height: 420px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.14), transparent 62%);
}

.page-hero-inner,
.detail-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1;
    letter-spacing: -0.05em;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fbbf24;
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-cover {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 26px;
    background: #111827;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

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

.detail-info h1 {
    margin: 14px 0 12px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.detail-info .lead {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

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

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

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

.player-section h2,
.article-section h2 {
    margin: 0 0 18px;
    font-size: 30px;
    letter-spacing: -0.03em;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
    aspect-ratio: 16 / 9;
}

.video-shell video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
    cursor: pointer;
}

.play-cover.hidden {
    display: none;
}

.play-cover span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #111827;
    background: #ffffff;
    font-size: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.play-cover strong {
    font-size: 20px;
}

.article-section {
    width: min(1080px, calc(100% - 32px));
    margin: 50px auto 0;
    display: grid;
    gap: 24px;
}

.article-card {
    padding: 28px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--line);
}

.article-card p {
    margin: 0;
    color: #334155;
    font-size: 17px;
}

.collection-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.local-filter {
    flex: 1;
    max-width: 360px;
}

.year-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    padding: 8px 12px;
    color: var(--text);
    background: #f8fafc;
    border: 1px solid var(--line);
    box-shadow: none;
}

.filter-button.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    border-color: transparent;
}

.search-hero-form {
    max-width: 720px;
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.search-status {
    margin: 0 0 20px;
    color: var(--muted);
    font-weight: 700;
}

.site-footer {
    margin-top: 80px;
    padding: 56px 0 26px;
    color: #cbd5e1;
    background: linear-gradient(180deg, #111827, #020617);
}

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

.footer-logo {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 20px;
}

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

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 70;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--brand);
    box-shadow: 0 16px 30px rgba(217, 119, 6, 0.28);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.empty-state {
    padding: 48px;
    border-radius: var(--radius);
    background: #ffffff;
    text-align: center;
    color: var(--muted);
    border: 1px solid var(--line);
}

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

    .nav-search {
        margin-left: auto;
    }

    .menu-toggle {
        display: block;
    }

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

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

    .rank-board,
    .rank-feature,
    .detail-hero-inner,
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        display: none;
    }
}

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

    .hero {
        min-height: 620px;
    }

    .hero-content {
        bottom: 70px;
    }

    .hero p,
    .page-hero p,
    .detail-info .lead {
        font-size: 16px;
    }

    .section,
    .page-section {
        padding: 48px 0;
    }

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

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

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

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

    .search-hero-form {
        flex-direction: column;
    }

    .rank-feature {
        padding: 18px;
    }

    .rank-feature h3 {
        font-size: 26px;
    }

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

@media (max-width: 460px) {
    .nav-shell {
        width: min(100% - 24px, 1180px);
    }

    .logo span:last-child {
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .movie-card h3 {
        font-size: 15px;
    }

    .movie-line {
        display: none;
    }

    .hero h1,
    .hero h2,
    .page-hero h1,
    .detail-info h1 {
        letter-spacing: -0.04em;
    }
}
