:root {
    --amber-950: #451a03;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --amber-500: #f59e0b;
    --amber-300: #fcd34d;
    --orange-900: #7c2d12;
    --orange-700: #c2410c;
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-100: #f5f5f4;
    --white: #ffffff;
    --shadow-soft: 0 16px 40px rgba(69, 26, 3, 0.16);
    --shadow-strong: 0 24px 70px rgba(69, 26, 3, 0.25);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--stone-900);
    background: #fffaf0;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-900), var(--amber-800), var(--orange-900));
    box-shadow: 0 10px 30px rgba(69, 26, 3, 0.35);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--amber-900);
    background: var(--amber-300);
    box-shadow: 0 0 0 6px rgba(252, 211, 77, 0.16);
}

.brand-text {
    font-size: 20px;
}

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

.nav-link {
    font-weight: 700;
    opacity: 0.9;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber-300);
    opacity: 1;
}

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

.header-search input,
.mobile-search input,
.inline-filter input,
.search-panel input {
    min-width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--white);
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.inline-filter input::placeholder,
.search-panel input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.mobile-search button,
.inline-filter button,
.search-panel button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    color: var(--amber-900);
    cursor: pointer;
    background: var(--amber-300);
}

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

.mobile-menu {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

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

.mobile-menu-inner {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
    display: grid;
    gap: 14px;
}

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

.category-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(69, 26, 3, 0.22);
}

.strip-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.nav-chip {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-chip:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.26);
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: var(--stone-950);
}

.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-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 40%, rgba(245, 158, 11, 0.28), transparent 32%),
        linear-gradient(90deg, rgba(69, 26, 3, 0.96) 0%, rgba(120, 53, 15, 0.8) 46%, rgba(12, 10, 9, 0.52) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    align-items: center;
    gap: 56px;
    color: var(--white);
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    color: var(--amber-300);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero h2 {
    margin: 18px 0 14px;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.2;
}

.hero p,
.page-hero p,
.detail-copy .lead {
    max-width: 720px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    line-height: 1.8;
}

.hero-tags,
.detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.hero-tags span,
.detail-facts span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--amber-900);
    font-size: 13px;
    font-weight: 800;
    background: rgba(252, 211, 77, 0.92);
}

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

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

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

.btn-primary {
    color: var(--amber-950);
    background: var(--white);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow-strong);
    transform: rotate(2deg);
}

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

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

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

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

.section {
    padding: 72px 0;
}

.white-section {
    background: #fffaf0;
}

.warm-section {
    background: linear-gradient(180deg, #fff7ed, #fffbeb);
}

.dark-section {
    color: var(--white);
    background: linear-gradient(135deg, var(--stone-950), var(--amber-950));
}

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

.section-head h2 {
    margin: 0 0 8px;
    color: var(--stone-950);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
}

.section-head p {
    margin: 0;
    color: var(--stone-600);
}

.dark-section .section-head h2,
.dark-section .section-head p {
    color: var(--white);
}

.section-action {
    flex: 0 0 auto;
    color: var(--amber-800);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--stone-800);
}

.card-cover img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .card-cover img {
    transform: scale(1.08);
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
    transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
    opacity: 1;
}

.card-play {
    position: absolute;
    z-index: 2;
    left: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--amber-900);
    background: var(--white);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.rank-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-700));
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--amber-800);
    font-size: 13px;
    font-weight: 800;
}

.card-body h3 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.card-body p {
    min-height: 52px;
    margin: 0 0 14px;
    color: var(--stone-600);
    font-size: 14px;
    line-height: 1.65;
}

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

.tag-list span {
    min-height: 26px;
    padding: 5px 10px;
    color: var(--amber-800);
    background: #ffedd5;
}

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 10, 9, 0.05), rgba(69, 26, 3, 0.86));
}

.category-card div {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: 18px;
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.28), transparent 30%),
        linear-gradient(135deg, var(--amber-950), var(--orange-900));
}

.page-hero {
    padding: 92px 0;
}

.small-hero,
.category-hero,
.rank-hero,
.search-hero {
    min-height: 330px;
    display: flex;
    align-items: center;
}

.inline-filter,
.search-panel {
    display: flex;
    max-width: 620px;
    gap: 10px;
    margin-top: 28px;
}

.inline-filter input,
.search-panel input {
    flex: 1;
}

.category-panels {
    display: grid;
    gap: 26px;
}

.category-panel {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 26px;
    align-items: center;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.panel-copy h2 {
    margin: 0 0 12px;
    font-size: 30px;
}

.panel-copy p {
    margin: 0 0 22px;
    color: var(--stone-600);
    line-height: 1.7;
}

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

.mini-card {
    position: relative;
    display: grid;
    gap: 8px;
    overflow: hidden;
    border-radius: 16px;
    background: #fffbeb;
}

.mini-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.mini-card span:not(.mini-rank) {
    padding: 0 10px;
    font-weight: 800;
    line-height: 1.3;
}

.mini-card small {
    padding: 0 10px 10px;
    color: var(--stone-600);
}

.mini-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    font-weight: 900;
    background: var(--amber-700);
}

.rank-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: start;
}

.rank-aside {
    position: sticky;
    top: 120px;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.rank-aside h2 {
    margin: 0 0 16px;
}

.rank-aside ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-aside li + li {
    border-top: 1px solid #fed7aa;
}

.rank-aside a {
    display: grid;
    grid-template-columns: 34px 1fr 42px;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
}

.rank-aside span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: var(--amber-700);
}

.rank-aside strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.detail-hero {
    min-height: 620px;
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 42%, rgba(245, 158, 11, 0.25), transparent 28%),
        linear-gradient(90deg, rgba(12, 10, 9, 0.95), rgba(69, 26, 3, 0.78), rgba(12, 10, 9, 0.58));
}

.detail-top {
    position: relative;
    z-index: 2;
    padding: 46px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.76);
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 46px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow-strong);
}

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

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

.detail-facts span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-tags {
    margin-bottom: 28px;
}

.player-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 26px;
    align-items: start;
}

.movie-player {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow-strong);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    cursor: pointer;
    background: linear-gradient(180deg, rgba(12, 10, 9, 0.15), rgba(12, 10, 9, 0.82));
}

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

.big-play {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--amber-900);
    font-size: 30px;
    background: var(--white);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.player-side {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.player-side h2 {
    margin: 0 0 20px;
}

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

.player-side dl div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.player-side dt {
    color: rgba(255, 255, 255, 0.62);
}

.player-side dd {
    margin: 0;
    text-align: right;
    font-weight: 800;
}

.article-layout {
    max-width: 920px;
}

.movie-article {
    padding: 34px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.movie-article h2 {
    margin: 0 0 14px;
    color: var(--amber-900);
    font-size: 28px;
}

.movie-article h2:not(:first-child) {
    margin-top: 30px;
}

.movie-article p {
    margin: 0;
    color: var(--stone-700);
    font-size: 17px;
    line-height: 1.9;
}

.search-panel input {
    color: var(--white);
}

.no-results {
    grid-column: 1 / -1;
    padding: 36px;
    border-radius: var(--radius-xl);
    color: var(--stone-600);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.site-footer {
    color: #d6d3d1;
    background: linear-gradient(180deg, var(--stone-900), #000000);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 52px 0;
}

.footer-brand {
    color: var(--white);
    font-size: 22px;
}

.site-footer h3 {
    margin: 0 0 16px;
    color: var(--white);
}

.site-footer p {
    color: #a8a29e;
    line-height: 1.8;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: 10px;
}

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

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 18px 16px;
    color: #a8a29e;
    border-top: 1px solid #292524;
}

[data-filter-list] .is-hidden {
    display: none;
}

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

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

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

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

    .rank-layout,
    .player-layout {
        grid-template-columns: 1fr;
    }

    .rank-aside {
        position: static;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .hero,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
        padding: 64px 0 96px;
    }

    .hero-poster {
        max-width: 280px;
        transform: none;
    }

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

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

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

@media (max-width: 640px) {
    .header-inner {
        height: 62px;
    }

    .brand-text {
        font-size: 18px;
    }

    .mobile-search,
    .inline-filter,
    .search-panel,
    .section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .mobile-search input,
    .inline-filter input,
    .search-panel input {
        min-width: 0;
        width: 100%;
    }

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

    .hero h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 36px;
    }

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

    .page-hero {
        padding: 64px 0;
    }

    .section {
        padding: 52px 0;
    }

    .movie-article {
        padding: 24px;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: center;
    }
}
