:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-strong: #ffffff;
    --ink: #1c1917;
    --muted: #78716c;
    --line: rgba(120, 53, 15, 0.16);
    --amber: #f59e0b;
    --orange: #ea580c;
    --brown: #78350f;
    --dark: #1c1917;
    --dark-2: #292524;
    --shadow: 0 24px 70px rgba(120, 53, 15, 0.18);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(245, 158, 11, 0.22), transparent 32rem),
        radial-gradient(circle at 88% 0%, rgba(234, 88, 12, 0.14), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, #fffbeb 42%, #fff7ed 100%);
    font-family:
        "Microsoft YaHei",
        "PingFang SC",
        "Hiragino Sans GB",
        Arial,
        sans-serif;
    line-height: 1.65;
}

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

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

main {
    min-height: 68vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background:
        linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(67, 20, 7, 0.94), rgba(28, 25, 23, 0.96));
    border-bottom: 1px solid rgba(245, 158, 11, 0.22);
    box-shadow: 0 16px 45px rgba(28, 25, 23, 0.22);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fef3c7;
}

.brand-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #451a03;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.38);
}

.brand-text strong {
    display: block;
    font-size: 22px;
    letter-spacing: 0.04em;
}

.brand-text small {
    display: block;
    margin-top: -4px;
    color: #fcd34d;
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #fef3c7;
    font-weight: 700;
}

.main-nav a {
    position: relative;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: #fbbf24;
    border-radius: 999px;
    transition: width 0.2s ease;
}

.main-nav a:hover {
    color: #fde68a;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(252, 211, 77, 0.35);
    border-radius: 12px;
    background: rgba(255, 251, 235, 0.08);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #fef3c7;
    border-radius: 999px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    background: var(--dark);
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 650px;
    isolation: isolate;
}

.hero-slide.is-active {
    display: block;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1);
    transform: scale(1.04);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(28, 25, 23, 0.92) 0%, rgba(28, 25, 23, 0.74) 42%, rgba(28, 25, 23, 0.24) 100%),
        linear-gradient(180deg, rgba(28, 25, 23, 0.12) 0%, rgba(255, 247, 237, 0.98) 100%);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 180px;
    background: linear-gradient(180deg, transparent, #fff7ed 72%);
}

.hero-content {
    width: min(1280px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) 420px;
    align-items: center;
    gap: 44px;
    padding: 72px 0 96px;
    color: #fff7ed;
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fcd34d;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-summary {
    max-width: 680px;
    margin: 24px 0 26px;
    color: #fed7aa;
    font-size: 18px;
}

.hero-meta,
.detail-meta,
.movie-meta {
    color: #a8a29e;
    font-size: 14px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #fde68a;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

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

.btn-primary {
    color: #431407;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.32);
}

.btn-ghost {
    color: #fef3c7;
    border-color: rgba(253, 230, 138, 0.38);
    background: rgba(255, 251, 235, 0.08);
    backdrop-filter: blur(12px);
}

.hero-poster-card {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255, 251, 235, 0.12);
    border: 1px solid rgba(253, 230, 138, 0.2);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.42);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.hero-poster-card .floating-score {
    position: absolute;
    right: 18px;
    top: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #431407;
    background: linear-gradient(135deg, #fde68a, #f97316);
    font-weight: 900;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.25);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(120, 113, 108, 0.55);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.quick-search {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 32px));
    margin: -52px auto 72px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-search form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(120, 53, 15, 0.15);
    border-radius: 16px;
    background: #fffaf0;
    color: var(--ink);
    padding: 0 16px;
    outline: none;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(245, 158, 11, 0.75);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.page-section,
.page-hero,
.detail-shell,
.sitemap-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.page-section {
    padding: 34px 0;
}

.page-hero {
    padding: 62px 0 26px;
}

.page-hero-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
        radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.28), transparent 28rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 251, 235, 0.7));
    box-shadow: var(--shadow);
    padding: clamp(26px, 4vw, 52px);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.04em;
}

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

.section-action {
    flex: none;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--brown);
    background: rgba(255, 255, 255, 0.64);
    font-weight: 800;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: 0 16px 38px rgba(120, 53, 15, 0.09);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.36);
    box-shadow: 0 26px 64px rgba(120, 53, 15, 0.16);
}

.movie-poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(120, 53, 15, 0.16));
}

.movie-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.movie-type,
.rank-badge {
    position: absolute;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.movie-type {
    left: 12px;
    color: #431407;
    background: rgba(253, 230, 138, 0.92);
}

.rank-badge {
    right: 12px;
    color: #fef3c7;
    background: rgba(28, 25, 23, 0.74);
}

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(28, 25, 23, 0.76));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card:hover .poster-glow {
    opacity: 1;
}

.movie-card-body {
    padding: 14px;
}

.movie-card-title {
    margin: 0;
    min-height: 48px;
    font-size: 16px;
    line-height: 1.35;
}

.movie-card-title a:hover {
    color: var(--orange);
}

.movie-meta {
    margin: 8px 0 0;
}

.movie-line {
    min-height: 48px;
    margin: 8px 0 0;
    color: #57534e;
    font-size: 13px;
    line-height: 1.55;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.movie-tags span,
.tag-pill {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    color: #7c2d12;
    background: rgba(254, 215, 170, 0.68);
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: 0 18px 45px rgba(120, 53, 15, 0.1);
}

.category-card figure {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: rgba(120, 53, 15, 0.18);
}

.category-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.category-card-body {
    padding: 18px;
}

.category-card h2,
.category-card h3 {
    margin: 0;
    font-size: 20px;
}

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

.category-count {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--brown);
    font-weight: 900;
}

.filter-panel {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 26px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 48px rgba(120, 53, 15, 0.09);
}

.filter-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 160px auto;
    align-items: end;
    gap: 14px;
}

.filter-inner label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.result-count {
    margin: 0;
    color: var(--brown);
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.detail-shell {
    padding: 44px 0;
}

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

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

.detail-hero {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
    padding: clamp(18px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.24), transparent 34rem),
        rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    background: rgba(245, 158, 11, 0.12);
    box-shadow: 0 24px 70px rgba(120, 53, 15, 0.16);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-info .summary {
    color: #44403c;
    font-size: 17px;
}

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

.player-section {
    margin-top: 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 30px 80px rgba(28, 25, 23, 0.24);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0c0a09;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fef3c7;
    background:
        linear-gradient(135deg, rgba(28, 25, 23, 0.84), rgba(120, 53, 15, 0.54)),
        rgba(0, 0, 0, 0.32);
    cursor: pointer;
}

.player-shell.is-playing .player-cover {
    display: none;
}

.play-orb {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #431407;
    background: linear-gradient(135deg, #fde68a, #f97316);
    font-size: 34px;
    box-shadow: 0 20px 54px rgba(245, 158, 11, 0.36);
}

.player-copy {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #fef3c7;
}

.player-copy strong {
    font-size: 20px;
}

.player-status {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
    gap: 24px;
    margin-top: 32px;
}

.text-panel,
.side-panel {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 50px rgba(120, 53, 15, 0.08);
    padding: 24px;
}

.text-panel h2,
.side-panel h2 {
    margin: 0 0 14px;
}

.text-panel p,
.side-panel p {
    color: #44403c;
}

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

.mini-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.mini-item img {
    width: 54px;
    height: 74px;
    object-fit: cover;
    border-radius: 10px;
}

.mini-item strong {
    display: block;
    line-height: 1.3;
}

.mini-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.pagination-note {
    margin-top: 18px;
    color: var(--muted);
    text-align: center;
}

.site-footer {
    margin-top: 70px;
    padding: 44px 0 26px;
    color: #fef3c7;
    background:
        linear-gradient(90deg, rgba(28, 25, 23, 1), rgba(67, 20, 7, 1), rgba(28, 25, 23, 1));
}

.footer-grid {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1fr;
    gap: 34px;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 12px;
    color: #fde68a;
}

.footer-grid p {
    color: #fed7aa;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(255, 251, 235, 0.08);
}

.copyright {
    width: min(1280px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(253, 230, 138, 0.18);
    color: #fcd34d;
    font-size: 13px;
}

.sitemap-shell {
    padding: 50px 0;
}

.sitemap-list {
    columns: 4 220px;
    column-gap: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
}

.sitemap-list a {
    display: block;
    break-inside: avoid;
    padding: 6px 0;
    color: #7c2d12;
}

.empty-state {
    display: none;
    padding: 34px;
    border: 1px dashed rgba(120, 53, 15, 0.26);
    border-radius: 24px;
    color: var(--muted);
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

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

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

    .hero-content {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 820px) {
    .nav-wrap {
        height: auto;
        min-height: 68px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .mobile-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0 4px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 2px;
    }

    .hero,
    .hero-slide,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 56px 0 120px;
    }

    .hero-poster-card {
        max-width: 330px;
    }

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

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

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

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

    .filter-inner {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        max-width: 320px;
    }

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

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

    .player-copy {
        position: static;
        padding: 14px;
        background: rgba(0, 0, 0, 0.24);
    }
}

@media (max-width: 520px) {
    .brand-text strong {
        font-size: 18px;
    }

    .brand-text small {
        display: none;
    }

    .movie-card-title {
        font-size: 14px;
        min-height: 40px;
    }

    .movie-line {
        display: none;
    }

    .page-hero-card {
        border-radius: 24px;
    }
}
