:root {
    color-scheme: light;
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --panel: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fde68a;
    --amber: #d97706;
    --amber-strong: #f59e0b;
    --orange: #f97316;
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.13);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 45%, #ffedd5 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.25);
    transition: transform 0.28s ease;
}

.logo:hover .logo-mark,
.footer-logo:hover .logo-mark {
    transform: rotate(10deg) scale(1.04);
}

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

.desktop-nav a,
.mobile-panel a {
    font-weight: 700;
    color: #374151;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: var(--amber);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.nav-search input,
.mobile-search input,
.large-search input,
.filter-box input,
.home-search-panel input {
    border: 1px solid #fcd34d;
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input {
    width: 220px;
    padding: 10px 16px;
}

.nav-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-box input:focus,
.home-search-panel input:focus {
    border-color: var(--amber-strong);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.nav-search button,
.mobile-search button,
.large-search button,
.home-search-panel button {
    border: 0;
    padding: 10px 18px;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    background: linear-gradient(90deg, var(--amber-strong), var(--orange));
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.22);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: #fff7ed;
    border-radius: 12px;
    cursor: pointer;
    padding: 10px;
}

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

.mobile-panel {
    display: none;
    padding: 18px 24px 24px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.mobile-panel.open {
    display: grid;
    gap: 14px;
}

.mobile-search {
    display: flex;
    gap: 8px;
}

.mobile-search input {
    min-width: 0;
    flex: 1;
    padding: 11px 16px;
}

.hero {
    position: relative;
    height: min(72vh, 760px);
    min-height: 560px;
    overflow: hidden;
    background: #111827;
}

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

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-mask {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 40%, rgba(245, 158, 11, 0.2), transparent 34%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(680px, calc(100% - 48px));
    margin-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    color: #ffffff;
}

.eyebrow,
.section-kicker {
    margin: 0 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f59e0b;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.hero-summary {
    margin: 0;
    font-size: clamp(17px, 2vw, 23px);
    line-height: 1.8;
    color: #f3f4f6;
    max-width: 680px;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.hero-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.88);
    font-weight: 800;
}

.detail-meta span {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fcd34d;
}

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

.primary-btn,
.ghost-btn,
.inline-links a,
.section-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.section-head a {
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber-strong), var(--orange));
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.24);
}

.primary-btn {
    padding: 14px 28px;
}

.ghost-btn,
.inline-links a {
    padding: 13px 24px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.inline-links a {
    color: #92400e;
    border-color: #fcd34d;
    background: #fffbeb;
}

.primary-btn:hover,
.ghost-btn:hover,
.inline-links a:hover,
.section-head a:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.46);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dot.active {
    width: 36px;
    background: #ffffff;
}

.home-search-panel {
    width: min(1040px, calc(100% - 48px));
    margin: -34px auto 0;
    position: relative;
    z-index: 8;
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #fde68a;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.home-search-panel form,
.large-search {
    display: flex;
    gap: 12px;
}

.home-search-panel input,
.large-search input {
    flex: 1;
    min-width: 0;
    padding: 16px 20px;
}

.home-search-panel button,
.large-search button {
    padding: 14px 28px;
}

.page-wrap {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0 78px;
}

.home-wrap {
    padding-top: 64px;
}

.content-section {
    margin: 0 0 72px;
}

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

.section-head.compact {
    align-items: center;
}

.section-head h2,
.page-hero-card h1,
.detail-card h1 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.section-head a {
    padding: 10px 18px;
    white-space: nowrap;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(253, 230, 138, 0.8);
    box-shadow: 0 12px 28px rgba(146, 64, 14, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(146, 64, 14, 0.15);
}

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

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

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

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(217, 119, 6, 0.92);
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #78716c;
    font-size: 13px;
    font-weight: 700;
}

.card-body h3,
.rank-info h3 {
    margin: 0 0 10px;
    color: #1f2937;
    font-size: 18px;
    line-height: 1.34;
}

.card-body h3 a:hover,
.rank-info h3 a:hover {
    color: var(--amber);
}

.card-body p,
.rank-info p,
.page-hero-card p,
.detail-card p,
.footer-grid p {
    color: var(--muted);
    line-height: 1.72;
}

.card-body p {
    margin: 0 0 14px;
    min-height: 72px;
    font-size: 14px;
}

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

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

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

.category-card {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #fffbeb);
    border: 1px solid #fde68a;
    box-shadow: var(--shadow);
}

.category-card a:first-child {
    display: grid;
    gap: 10px;
}

.category-card span {
    color: var(--amber);
    font-size: 24px;
    font-weight: 900;
}

.category-card strong {
    color: #374151;
    line-height: 1.7;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.category-samples a,
.chip-cloud a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #92400e;
    background: #fff7ed;
    border: 1px solid #fde68a;
    font-weight: 800;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 28px;
    align-items: start;
}

.ranking-panel,
.page-hero-card,
.detail-card,
.side-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(253, 230, 138, 0.88);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.ranking-panel {
    padding: 22px;
    position: sticky;
    top: 96px;
}

.ranking-stack,
.ranking-full {
    display: grid;
    gap: 14px;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 132px;
}

.rank-poster {
    position: relative;
    overflow: hidden;
    background: #fed7aa;
}

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

.rank-number {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-strong), var(--orange));
}

.rank-info {
    padding: 14px;
    min-width: 0;
}

.rank-info p {
    margin: 0 0 10px;
    font-size: 14px;
}

.page-hero-card {
    padding: clamp(28px, 5vw, 48px);
    margin-bottom: 42px;
    background:
        radial-gradient(circle at right top, rgba(251, 191, 36, 0.22), transparent 28%),
        rgba(255, 255, 255, 0.94);
}

.page-hero-card p {
    max-width: 780px;
    margin-bottom: 0;
    font-size: 17px;
}

.category-overview-block {
    margin-bottom: 56px;
}

.filter-box {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #92400e;
    font-weight: 900;
}

.filter-box input {
    width: min(320px, 44vw);
    padding: 12px 16px;
}

.chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.large-search {
    margin-top: 24px;
    max-width: 880px;
}

.detail-wrap {
    padding-top: 36px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 24px;
    color: #92400e;
    font-weight: 800;
}

.breadcrumb a:hover {
    color: var(--orange);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
}

.detail-main {
    min-width: 0;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: 0 22px 50px rgba(17, 24, 39, 0.28);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.14));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 50%;
    font-size: 36px;
    background: linear-gradient(135deg, var(--amber-strong), var(--orange));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.player-shell.playing .play-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-card {
    padding: 28px;
    margin-top: 24px;
}

.detail-card h1 {
    margin-bottom: 18px;
}

.detail-card h2,
.side-card h2,
.footer-grid h2 {
    margin: 26px 0 12px;
    color: #1f2937;
    font-size: 22px;
}

.lead-text {
    font-size: 18px;
    color: #374151 !important;
}

.detail-side {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 96px;
}

.detail-side > img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 24px;
    background: #fed7aa;
    box-shadow: var(--shadow);
}

.side-card {
    padding: 22px;
}

.side-card h2 {
    margin-top: 0;
}

.side-card dl {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
}

.side-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #fde68a;
}

.side-card dt {
    color: #78716c;
    font-weight: 800;
}

.side-card dd {
    margin: 0;
    color: #1f2937;
    font-weight: 900;
    text-align: right;
}

.side-card dd a {
    color: var(--amber);
}

.site-footer {
    border-top: 1px solid #fde68a;
    background: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer-grid p {
    max-width: 430px;
}

.footer-grid h2 {
    margin-top: 0;
    font-size: 18px;
}

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

.footer-grid a:hover {
    color: var(--amber);
}

.footer-bottom {
    padding: 18px 24px 26px;
    text-align: center;
    color: #78716c;
    font-weight: 700;
}

.hidden-by-filter {
    display: none !important;
}

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

    .split-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .ranking-panel,
    .detail-side {
        position: static;
    }

    .ranking-full {
        grid-template-columns: 1fr;
    }
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero {
        min-height: 620px;
        height: 78vh;
    }

    .hero-copy {
        margin-left: 24px;
        width: calc(100% - 48px);
    }

    .hero-arrow {
        display: none;
    }

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

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

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

@media (max-width: 620px) {
    .nav-wrap {
        height: 64px;
        padding: 0 16px;
    }

    .logo {
        font-size: 19px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

    .hero {
        min-height: 560px;
    }

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

    .hero-meta span {
        padding: 7px 10px;
        font-size: 13px;
    }

    .hero-actions,
    .home-search-panel form,
    .large-search,
    .mobile-search {
        flex-direction: column;
    }

    .home-search-panel,
    .page-wrap,
    .footer-grid {
        width: calc(100% - 28px);
    }

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

    .card-body p {
        min-height: auto;
    }

    .filter-box {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-box input {
        width: 100%;
    }

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