:root {
    color-scheme: light;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-900: #78350f;
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --red-600: #dc2626;
    --text: #432818;
    --muted: #7c6b5a;
    --line: rgba(180, 83, 9, 0.16);
    --shadow: 0 20px 50px rgba(120, 53, 15, 0.13);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--amber-50), var(--orange-50) 45%, var(--amber-50));
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--amber-900);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    color: white;
    box-shadow: 0 12px 25px rgba(217, 119, 6, 0.28);
    font-size: 15px;
}

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

.nav-links a {
    color: #6b4e34;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--orange-600);
}

.site-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-search input,
.filter-panel input,
.filter-panel select {
    min-width: 210px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
}

.site-search button,
.btn {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    color: white;
    padding: 10px 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.site-search button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(234, 88, 12, 0.3);
    filter: saturate(1.08);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

.btn.small {
    padding: 9px 16px;
    font-size: 14px;
}

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

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-menu.is-open {
    display: grid;
    gap: 12px;
}

.mobile-menu a {
    padding: 10px 0;
    color: var(--amber-900);
    font-weight: 800;
    border-bottom: 1px solid var(--line);
}

.hero {
    position: relative;
    height: 620px;
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(180deg, #451a03, #7c2d12);
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.54) 44%, rgba(0, 0, 0, 0.08)), linear-gradient(0deg, rgba(69, 26, 3, 0.58), rgba(69, 26, 3, 0.08));
}

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

.hero-copy {
    width: min(620px, 92%);
    color: white;
}

.eyebrow {
    margin: 0 0 12px;
    color: #fcd34d;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--orange-600);
}

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

.hero-copy p:not(.eyebrow) {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    border-radius: 999px;
    background: rgba(255, 237, 213, 0.92);
    color: var(--orange-700);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

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

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.hero-nav.prev {
    left: 24px;
}

.hero-nav.next {
    right: 24px;
}

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

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

.hero-dot.active {
    width: 54px;
    background: var(--amber-500);
}

.section {
    padding: 54px 0;
}

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

.section-head.compact {
    margin-bottom: 18px;
}

.section-head h2,
.page-hero h1 {
    margin: 0;
    color: var(--amber-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-link {
    color: var(--orange-600);
    font-weight: 900;
}

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

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

.movie-card a {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(180, 83, 9, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 36px rgba(120, 53, 15, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card a:hover {
    transform: translateY(-8px);
    border-color: rgba(249, 115, 22, 0.38);
    box-shadow: var(--shadow);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
}

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

.movie-card a:hover .poster-frame img {
    transform: scale(1.08);
}

.type-badge,
.rank-mark {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    background: var(--amber-600);
    color: white;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.rank-mark {
    left: 12px;
    right: auto;
    background: rgba(0, 0, 0, 0.62);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.card-body strong {
    color: var(--amber-900);
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.card-meta em {
    border-radius: 999px;
    background: var(--amber-100);
    color: var(--amber-700);
    padding: 3px 8px;
    font-style: normal;
    font-weight: 800;
}

.card-desc {
    color: #6b5b4b;
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row span {
    background: var(--orange-100);
    padding: 4px 8px;
}

.movie-scroller {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scrollbar-width: none;
}

.movie-scroller::-webkit-scrollbar {
    display: none;
}

.movie-scroller .movie-card {
    width: 210px;
    flex: 0 0 auto;
}

.feature-section {
    width: min(1180px, calc(100% - 32px));
    margin: 20px auto 0;
    padding: 34px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
    box-shadow: var(--shadow);
}

.feature-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.movie-card.large .poster-frame {
    aspect-ratio: 16 / 9;
}

.movie-card.large .card-body strong {
    font-size: 26px;
}

.feature-side {
    display: grid;
    gap: 16px;
}

.movie-card.horizontal a {
    flex-direction: row;
}

.movie-card.horizontal .poster-frame {
    width: 128px;
    flex: 0 0 128px;
    aspect-ratio: 3 / 4;
}

.movie-card.horizontal .card-body {
    justify-content: center;
}

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

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

.category-tile,
.category-block,
.rank-panel,
.detail-content article,
.detail-side,
.player-panel,
.filter-panel,
.page-hero,
.ranking-card a {
    border: 1px solid rgba(180, 83, 9, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 34px rgba(120, 53, 15, 0.08);
}

.category-tile {
    display: block;
    padding: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile strong {
    display: block;
    color: var(--amber-900);
    font-size: 22px;
}

.category-tile p {
    margin: 8px 0 14px;
    color: var(--muted);
}

.category-tile div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tile span {
    border-radius: 999px;
    background: var(--amber-100);
    color: var(--amber-700);
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
}

.rank-panel {
    padding: 24px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 46px;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: var(--amber-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: var(--orange-100);
    transform: translateX(4px);
}

.rank-row span {
    color: var(--orange-600);
    font-weight: 900;
}

.rank-row strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--amber-900);
}

.rank-row em {
    color: var(--amber-700);
    font-style: normal;
    font-weight: 900;
}

.page-hero {
    margin-top: 34px;
    padding: 42px;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.94), rgba(255, 237, 213, 0.86));
}

.page-hero p:last-child {
    max-width: 780px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.category-overview {
    display: grid;
    gap: 24px;
}

.category-block {
    padding: 26px;
}

.category-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.category-block h2 {
    margin: 0;
    color: var(--amber-900);
    font-size: 28px;
}

.category-block p {
    margin: 6px 0 0;
    color: var(--muted);
}

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

.movie-card.mini .card-desc,
.movie-card.mini .tag-row {
    display: none;
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 18px;
}

.filter-panel input {
    flex: 1 1 260px;
}

.filter-panel select {
    min-width: 150px;
}

.empty-state {
    padding: 42px;
    text-align: center;
    color: var(--muted);
    font-weight: 800;
}

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

.ranking-card a {
    display: grid;
    grid-template-columns: 64px 80px minmax(0, 1fr) 58px;
    align-items: center;
    gap: 16px;
    padding: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ranking-number {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    color: white;
    font-weight: 900;
}

.ranking-card img {
    width: 80px;
    height: 108px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--amber-100);
}

.ranking-info {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.ranking-info strong {
    color: var(--amber-900);
    font-size: 20px;
}

.ranking-info small {
    color: var(--muted);
}

.ranking-info em {
    color: #6b5b4b;
    font-style: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-card b {
    color: var(--orange-600);
    font-size: 22px;
}

.detail-page {
    padding: 34px 0 58px;
}

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

.breadcrumb a {
    color: var(--orange-600);
    font-weight: 800;
}

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

.player-panel {
    overflow: hidden;
    background: #111827;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
    color: white;
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 20px 45px rgba(234, 88, 12, 0.38);
    font-size: 34px;
    padding-left: 5px;
}

.play-layer strong {
    font-size: 18px;
    letter-spacing: 0.04em;
}

.play-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-side {
    overflow: hidden;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--amber-100);
}

.detail-facts {
    padding: 24px;
}

.detail-facts h1 {
    margin: 0;
    color: var(--amber-900);
    font-size: 30px;
    line-height: 1.16;
}

.detail-facts p {
    margin: 12px 0 18px;
    color: #6b5b4b;
}

.fact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding: 11px 0;
}

.fact-row span {
    color: var(--muted);
}

.fact-row strong {
    color: var(--amber-900);
    text-align: right;
}

.detail-tags {
    margin-top: 14px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 28px;
}

.detail-content article {
    padding: 28px;
}

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

.detail-content p {
    margin: 0;
    color: #5f4f40;
    font-size: 16px;
    line-height: 1.9;
}

.related-section {
    padding-bottom: 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(255, 251, 235, 0.88);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 0;
    color: var(--muted);
}

.footer-inner strong {
    display: block;
    color: var(--amber-900);
    font-size: 22px;
    margin-bottom: 6px;
}

.footer-inner p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.footer-links a {
    color: var(--orange-600);
    font-weight: 800;
}

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

    .mobile-menu .site-search {
        display: flex;
    }

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

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

    .rank-panel,
    .detail-side {
        width: 100%;
    }

    .detail-side {
        display: grid;
        grid-template-columns: 260px 1fr;
    }
}

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

    .nav-toggle {
        display: block;
    }

    .hero {
        height: 560px;
        min-height: 520px;
    }

    .hero-nav {
        display: none;
    }

    .hero-copy {
        width: 100%;
    }

    .hero-copy p:not(.eyebrow) {
        font-size: 16px;
    }

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

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

    .feature-layout,
    .category-grid,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .feature-section {
        padding: 24px;
    }

    .detail-side {
        grid-template-columns: 1fr;
    }

    .ranking-card a {
        grid-template-columns: 52px 68px minmax(0, 1fr);
    }

    .ranking-card b {
        grid-column: 3;
    }
}

@media (max-width: 560px) {
    .container,
    .nav-wrap,
    .mobile-menu,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

    .brand {
        font-size: 19px;
    }

    .hero {
        height: 520px;
        min-height: 500px;
    }

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

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn,
    .site-search button {
        text-align: center;
    }

    .movie-grid,
    .mini-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .card-body {
        padding: 12px;
    }

    .card-desc,
    .tag-row {
        display: none;
    }

    .movie-card.horizontal a {
        flex-direction: column;
    }

    .movie-card.horizontal .poster-frame {
        width: 100%;
        flex-basis: auto;
    }

    .page-hero,
    .detail-content article,
    .category-block,
    .rank-panel {
        padding: 22px;
    }

    .play-layer span {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
