:root {
    --amber-50: #fff7ed;
    --amber-100: #ffedd5;
    --amber-200: #fed7aa;
    --amber-300: #fdba74;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-900: #7c2d12;
    --text: #3f2508;
    --muted: #8a5a20;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.18);
    --radius: 22px;
    font-family: "PingFang SC", "Microsoft YaHei", "Heiti SC", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, var(--amber-50) 48%, var(--orange-100) 100%);
}

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

img {
    display: block;
    max-width: 100%;
    background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96), rgba(255, 251, 235, 0.96));
    border-bottom: 1px solid var(--amber-200);
    box-shadow: 0 4px 20px rgba(146, 64, 14, 0.08);
    backdrop-filter: blur(14px);
}

.nav-shell {
    max-width: 1180px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-icon,
.footer-logo span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.26);
    font-size: 14px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    color: var(--amber-900);
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-text small {
    margin-top: 2px;
    color: var(--amber-600);
    font-size: 12px;
}

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

.nav-link {
    color: var(--amber-900);
    font-size: 15px;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber-700);
    transform: translateY(-1px);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--amber-300);
    border-radius: 999px;
    background: var(--white);
    overflow: hidden;
}

.header-search input,
.mobile-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 9px 12px 9px 16px;
    color: var(--amber-900);
    background: transparent;
}

.header-search button,
.mobile-search button,
.hero-search button,
.filter-bar button {
    border: 0;
    cursor: pointer;
    color: var(--white);
    background: var(--amber-600);
    padding: 9px 16px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.filter-bar button:hover {
    background: var(--amber-700);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: var(--amber-900);
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--amber-200);
    padding: 12px 22px 18px;
    background: var(--white);
}

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

.mobile-link {
    display: block;
    padding: 11px 0;
    color: var(--amber-900);
    font-weight: 650;
}

.mobile-link.active {
    color: var(--amber-700);
}

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

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--orange-100), var(--amber-200));
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.88) 0%, rgba(120, 53, 15, 0.63) 46%, rgba(120, 53, 15, 0.08) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: calc((100vw - min(1180px, 100vw)) / 2 + 22px);
    width: min(620px, calc(100vw - 44px));
    transform: translateY(-50%);
    color: var(--white);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 7px 12px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0 0 24px;
    max-width: 620px;
    color: #ffedd5;
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.8;
}

.hero-tags,
.detail-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    color: var(--amber-800);
    background: var(--amber-100);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #fffbeb;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: var(--white);
    background: var(--amber-600);
    box-shadow: 0 16px 28px rgba(217, 119, 6, 0.28);
}

.primary-btn:hover {
    background: var(--amber-700);
    transform: translateY(-2px);
}

.ghost-btn {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(120, 53, 15, 0.45);
    cursor: pointer;
    transform: translateY(-50%);
    font-size: 36px;
    line-height: 1;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(120, 53, 15, 0.72);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.intro-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 26px;
    align-items: center;
}

.intro-strip h2 {
    margin: 0 0 10px;
    color: var(--amber-900);
    font-size: clamp(24px, 3vw, 34px);
}

.intro-strip p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.hero-search {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--amber-300);
    border-radius: 999px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.hero-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 15px 18px;
    background: transparent;
}

.hero-search button {
    min-width: 110px;
}

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

.section-title h2 {
    margin: 0;
    color: var(--amber-900);
    font-size: clamp(24px, 3vw, 34px);
}

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

.section-title a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--amber-700);
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    min-height: 178px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--amber-200);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 178px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile span {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(120, 53, 15, 0.92), rgba(120, 53, 15, 0.06));
}

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 18px;
    right: 18px;
    color: var(--white);
    z-index: 2;
}

.category-tile strong {
    bottom: 52px;
    font-size: 21px;
}

.category-tile em {
    bottom: 22px;
    color: #ffedd5;
    font-size: 13px;
    font-style: normal;
    line-height: 1.4;
}

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

.cards-grid-large {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.movie-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(253, 186, 116, 0.7);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-200), var(--orange-100));
}

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

.movie-link:hover .poster-wrap img {
    transform: scale(1.07);
}

.type-badge,
.rank-badge {
    position: absolute;
    top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.type-badge {
    right: 10px;
    padding: 0 9px;
    color: var(--amber-900);
    background: rgba(255, 237, 213, 0.9);
}

.rank-badge {
    left: 10px;
    width: 30px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px;
}

.card-meta {
    color: var(--amber-600);
    font-size: 12px;
    font-weight: 700;
}

.card-body h2 {
    margin: 8px 0 8px;
    color: var(--amber-900);
    font-size: 16px;
    line-height: 1.35;
}

.card-body p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.card-tags {
    margin-top: auto;
}

.rank-panel .ranking-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.page-hero {
    min-height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 22px;
    text-align: center;
    color: var(--white);
    background: radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.72), transparent 30%), linear-gradient(135deg, var(--amber-900), var(--orange-900));
}

.page-hero div {
    max-width: 780px;
}

.page-hero p {
    margin: 0 0 12px;
    color: #fde68a;
    font-weight: 800;
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 60px);
    line-height: 1.08;
}

.page-hero span {
    color: #ffedd5;
    font-size: 18px;
    line-height: 1.8;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 160px 160px 140px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--amber-200);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid var(--amber-300);
    border-radius: 999px;
    outline: 0;
    padding: 12px 14px;
    color: var(--amber-900);
    background: var(--white);
}

.search-main-bar {
    grid-template-columns: minmax(260px, 1fr) 160px 160px 120px;
}

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

.category-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--amber-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
}

.category-card div {
    padding: 22px;
}

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

.category-card h2 {
    margin: 10px 0;
    color: var(--amber-900);
    font-size: 26px;
}

.category-card p,
.category-card em {
    color: var(--muted);
    line-height: 1.7;
}

.category-card em {
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-size: 13px;
}

.detail-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 22px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--amber-700);
    font-weight: 800;
}

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

.player-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #000000;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.24);
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.42));
}

.player-overlay.is-hidden {
    display: none;
}

.player-overlay span {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.92);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
    font-size: 30px;
    text-indent: 5px;
}

.detail-copy {
    margin-top: 26px;
    padding: 28px;
    border: 1px solid var(--amber-200);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
}

.detail-copy h1 {
    margin: 0 0 14px;
    color: var(--amber-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
}

.detail-copy .one-line {
    margin: 0 0 18px;
    color: var(--amber-700);
    font-size: 18px;
    line-height: 1.7;
    font-weight: 750;
}

.detail-copy h2 {
    margin: 26px 0 10px;
    color: var(--amber-900);
    font-size: 24px;
}

.detail-copy p {
    color: var(--muted);
    line-height: 1.9;
}

.detail-side {
    position: sticky;
    top: 92px;
}

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

.side-card {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid var(--amber-200);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
}

.side-card h2 {
    margin: 0 0 16px;
    color: var(--amber-900);
}

dl {
    margin: 0;
}

dt {
    float: left;
    clear: left;
    width: 56px;
    color: var(--amber-600);
    font-weight: 800;
}

dd {
    margin: 0 0 12px 68px;
    color: var(--text);
}

.full-btn {
    width: 100%;
    margin-top: 12px;
}

.related-section {
    padding-top: 46px;
}

.ranking-page-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.search-page {
    min-height: 520px;
}

.site-footer {
    margin-top: 72px;
    border-top: 1px solid var(--amber-200);
    background: linear-gradient(180deg, var(--amber-50), var(--orange-100));
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 46px 22px;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--amber-900);
    font-size: 20px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--amber-900);
    font-size: 16px;
}

.site-footer p,
.site-footer a {
    color: var(--muted);
    line-height: 1.8;
    font-size: 14px;
}

.site-footer a {
    display: block;
    margin-bottom: 8px;
}

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

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 22px 28px;
    border-top: 1px solid var(--amber-200);
    color: var(--muted);
    font-size: 14px;
}

.is-hidden-card {
    display: none;
}

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

    .cards-grid-large,
    .ranking-page-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .rank-panel .ranking-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        height: 560px;
    }

    .intro-strip,
    .detail-grid,
    .footer-grid,
    .category-overview {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
        max-width: 360px;
    }

    .category-grid,
    .cards-grid,
    .cards-grid-large,
    .ranking-page-list,
    .rank-panel .ranking-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-bar,
    .search-main-bar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .nav-shell {
        height: 62px;
        padding: 0 16px;
    }

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

    .brand-text small {
        font-size: 11px;
    }

    .hero {
        height: 520px;
    }

    .hero-content {
        left: 18px;
        width: calc(100vw - 36px);
    }

    .hero-arrow {
        display: none;
    }

    .container,
    .detail-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .category-grid,
    .cards-grid,
    .cards-grid-large,
    .ranking-page-list,
    .rank-panel .ranking-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .category-card img {
        min-height: 180px;
    }

    .category-card div {
        padding: 16px;
    }

    .filter-bar,
    .search-main-bar {
        grid-template-columns: 1fr;
    }

    .detail-copy {
        padding: 20px;
    }
}

@media (max-width: 420px) {
    .category-grid,
    .cards-grid,
    .cards-grid-large,
    .ranking-page-list,
    .rank-panel .ranking-list {
        grid-template-columns: 1fr;
    }
}
