:root {
    color-scheme: light;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-600: #ea580c;
    --orange-800: #9a3412;
    --text: #261307;
    --muted: #745542;
    --surface: #ffffff;
    --soft: #fff7ed;
    --line: #f6dba7;
    --shadow: 0 18px 50px rgba(120, 53, 15, 0.18);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 34rem),
        linear-gradient(180deg, #fffaf0 0%, #fff7ed 42%, #fff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--amber-50);
    background: linear-gradient(90deg, var(--amber-800), var(--orange-600), var(--amber-900));
    box-shadow: 0 12px 32px rgba(120, 53, 15, 0.22);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 74px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--amber-900);
    font-weight: 900;
    background: var(--amber-100);
    box-shadow: inset 0 -3px 0 rgba(120, 53, 15, 0.15);
}

.brand-text {
    display: grid;
    gap: 3px;
    line-height: 1;
}

.brand strong,
.footer-brand strong {
    font-size: 24px;
    letter-spacing: 0.02em;
}

.brand small {
    color: var(--amber-200);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
}

.main-nav a,
.nav-dropdown > button {
    color: var(--amber-50);
    background: none;
    border: 0;
    cursor: pointer;
    padding: 10px 0;
}

.main-nav a:hover,
.nav-dropdown > button:hover {
    color: var(--amber-200);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    min-width: 180px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(120, 53, 15, 0.95);
    box-shadow: var(--shadow);
}

.nav-dropdown:hover .nav-dropdown-panel {
    display: grid;
    gap: 4px;
}

.nav-dropdown-panel a {
    padding: 9px 12px;
    border-radius: 10px;
}

.nav-dropdown-panel a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.top-search {
    display: flex;
    align-items: center;
    width: min(320px, 28vw);
    border: 1px solid rgba(253, 230, 138, 0.55);
    border-radius: 999px;
    background: rgba(120, 53, 15, 0.48);
    overflow: hidden;
}

.top-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    color: var(--amber-50);
    background: transparent;
    padding: 11px 14px;
}

.top-search input::placeholder {
    color: var(--amber-200);
}

.top-search button {
    border: 0;
    color: var(--amber-900);
    font-weight: 800;
    background: var(--amber-200);
    padding: 11px 16px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--amber-50);
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    background: rgba(120, 53, 15, 0.98);
}

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

.mobile-panel a {
    color: var(--amber-50);
    font-weight: 700;
    padding: 8px 0;
}

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

.mobile-panel input {
    width: 100%;
    border: 1px solid var(--amber-600);
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--amber-50);
    background: rgba(0, 0, 0, 0.18);
}

.mobile-panel button {
    border: 0;
    border-radius: 999px;
    color: var(--amber-900);
    font-weight: 800;
    background: var(--amber-200);
    padding: 10px 16px;
}

.hero-carousel {
    position: relative;
    height: clamp(620px, 82vh, 760px);
    overflow: hidden;
    background: var(--amber-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 600ms ease, transform 900ms ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7) saturate(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(80, 31, 6, 0.9), rgba(154, 52, 18, 0.56), rgba(255, 251, 235, 0.12)),
        linear-gradient(0deg, #fff7ed 0%, rgba(255, 247, 237, 0) 28%);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.6fr);
    align-items: center;
    gap: 52px;
    height: 100%;
    color: var(--amber-50);
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber-200);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 20px 0;
    font-size: clamp(44px, 8vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.hero-line {
    margin: 0 0 14px;
    font-size: clamp(19px, 2.2vw, 28px);
    font-weight: 800;
    color: #fff8dc;
}

.hero-summary {
    margin: 0;
    max-width: 660px;
    color: var(--amber-100);
    font-size: 17px;
    line-height: 1.8;
}

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

.hero-tags {
    margin: 24px 0 30px;
}

.hero-tags span,
.tag-row span,
.tag-cloud span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 800;
}

.hero-tags span {
    color: var(--amber-900);
    background: rgba(254, 243, 199, 0.9);
    padding: 8px 13px;
}

.hero-actions,
.intro-actions,
.filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.primary-btn,
.ghost-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-btn {
    color: white;
    background: var(--amber-600);
    padding: 14px 24px;
    box-shadow: 0 14px 30px rgba(217, 119, 6, 0.35);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.primary-btn:hover {
    background: var(--amber-700);
}

.ghost-btn {
    color: var(--amber-900);
    background: rgba(255, 255, 255, 0.9);
    padding: 14px 22px;
}

.ghost-btn.dark {
    color: var(--amber-50);
    background: var(--amber-900);
}

.hero-poster {
    display: block;
    border: 8px solid rgba(254, 243, 199, 0.55);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(-50%);
    z-index: 5;
}

.hero-controls > button,
.hero-dots button {
    border: 0;
    cursor: pointer;
}

.hero-controls > button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--amber-900);
    font-size: 30px;
    border-radius: 50%;
    background: rgba(254, 243, 199, 0.88);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(254, 243, 199, 0.55);
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--amber-200);
}

.section-block {
    padding: 58px 0;
}

.intro-grid,
.split-layout,
.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 36px;
    align-items: start;
}

.intro-grid {
    align-items: center;
    padding-top: 44px;
}

.intro-grid h2,
.section-heading h2,
.page-hero h1,
.text-panel h2,
.player-panel h2,
.info-card h2 {
    margin: 8px 0 0;
    color: var(--amber-900);
    line-height: 1.12;
}

.intro-grid h2,
.section-heading h2,
.page-hero h1 {
    font-size: clamp(30px, 4vw, 48px);
}

.intro-grid p,
.page-hero p,
.category-overview-card p,
.text-panel p,
.info-card p,
.movie-card p {
    color: var(--muted);
    line-height: 1.8;
}

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

.section-heading > a,
.text-link {
    color: var(--amber-700);
    font-weight: 900;
}

.inline-heading {
    margin-bottom: 20px;
}

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

.category-tile,
.category-overview-card,
.movie-card,
.info-card,
.text-panel,
.player-panel,
.filter-bar {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.category-tile {
    min-height: 154px;
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(254, 243, 199, 0.96), rgba(255, 255, 255, 0.9)),
        radial-gradient(circle at top right, rgba(234, 88, 12, 0.24), transparent 9rem);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 70px rgba(120, 53, 15, 0.22);
}

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

.category-tile span {
    color: var(--muted);
    line-height: 1.7;
}

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

.movie-grid.is-list-view {
    grid-template-columns: 1fr;
}

.movie-grid.is-list-view .movie-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
}

.movie-grid.is-list-view .poster-link img {
    height: 100%;
    aspect-ratio: auto;
}

.movie-card {
    position: relative;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.poster-link {
    position: relative;
    display: block;
    background: linear-gradient(135deg, var(--amber-200), var(--orange-600));
    overflow: hidden;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 300ms ease, filter 300ms ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.05);
    filter: saturate(1.08);
}

.play-chip {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--amber-900);
    border-radius: 50%;
    background: rgba(254, 243, 199, 0.92);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 34px;
    padding: 0 8px;
    color: var(--amber-900);
    border-radius: 999px;
    background: var(--amber-200);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--amber-700);
    font-size: 13px;
    font-weight: 900;
}

.movie-card h2 {
    margin: 0 0 8px;
    color: var(--amber-900);
    font-size: 20px;
    line-height: 1.25;
}

.movie-card h2 a:hover {
    color: var(--amber-600);
}

.movie-card p {
    display: -webkit-box;
    min-height: 50px;
    margin: 0 0 14px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row span,
.tag-cloud span {
    color: var(--amber-800);
    background: linear-gradient(90deg, var(--amber-100), #ffedd5);
    padding: 6px 10px;
    font-size: 12px;
}

.compact-grid,
.ranking-list {
    display: grid;
    gap: 16px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
}

.compact-card .poster-link img {
    height: 100%;
    aspect-ratio: auto;
}

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

.compact-card h2 {
    font-size: 17px;
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0;
}

.amber-hero {
    color: var(--amber-50);
    background:
        radial-gradient(circle at 18% 10%, rgba(253, 230, 138, 0.28), transparent 20rem),
        linear-gradient(120deg, var(--amber-800), var(--orange-600), var(--amber-900));
}

.amber-hero h1,
.amber-hero p {
    color: var(--amber-50);
}

.amber-hero p {
    max-width: 760px;
    color: var(--amber-100);
    font-size: 18px;
}

.slim-actions {
    margin-top: 24px;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    padding: 18px;
}

.filter-search {
    flex: 1;
}

.filter-search input,
.filter-actions select,
.filter-actions button {
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    background: white;
    padding: 12px 16px;
}

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

.filter-actions button {
    color: var(--amber-900);
    font-weight: 900;
    cursor: pointer;
}

.filter-actions button.is-active {
    color: white;
    border-color: var(--amber-600);
    background: var(--amber-600);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-cover {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--amber-100);
}

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

.category-overview-card h2 {
    margin: 8px 0;
    color: var(--amber-900);
}

.detail-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: var(--amber-50);
    background: var(--amber-900);
}

.detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(67, 28, 7, 0.92), rgba(120, 53, 15, 0.68), rgba(0, 0, 0, 0.2)),
        linear-gradient(0deg, #fff7ed 0%, rgba(255, 247, 237, 0) 30%);
}

.detail-hero-inner {
    position: relative;
    padding: 42px 0 80px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 34px;
    color: var(--amber-200);
    font-weight: 800;
}

.breadcrumb a:hover {
    color: white;
}

.detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 8px solid rgba(254, 243, 199, 0.55);
    border-radius: 28px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
}

.detail-copy h1 {
    margin: 14px 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 780px;
    margin: 0;
    color: var(--amber-100);
    font-size: 22px;
    line-height: 1.7;
}

.content-column,
.side-column {
    display: grid;
    gap: 22px;
}

.player-panel,
.text-panel,
.info-card {
    padding: 24px;
}

.player-shell {
    position: relative;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 24px;
    background: #160903;
    box-shadow: inset 0 0 0 1px rgba(253, 230, 138, 0.18);
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 14px;
    border: 0;
    color: white;
    font-size: 20px;
    font-weight: 900;
    background:
        radial-gradient(circle, rgba(217, 119, 6, 0.26), rgba(0, 0, 0, 0.5)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46));
    cursor: pointer;
    transition: opacity 160ms ease, visibility 160ms ease;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin: 0 auto;
    color: var(--amber-900);
    border-radius: 50%;
    background: var(--amber-200);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

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

.text-panel p {
    margin: 16px 0 0;
    font-size: 17px;
}

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

.info-card dl div {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.info-card dt {
    color: var(--muted);
    font-weight: 800;
}

.info-card dd {
    margin: 0;
    color: var(--amber-900);
    font-weight: 900;
}

.tag-cloud {
    margin-top: 16px;
}

.site-footer {
    margin-top: 58px;
    color: var(--amber-100);
    background: linear-gradient(135deg, var(--amber-900), var(--orange-800), #431407);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 30px;
    padding: 46px 0;
}

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

.site-footer p,
.site-footer a {
    color: var(--amber-200);
    line-height: 1.75;
}

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

.site-footer a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 18px;
    color: var(--amber-300);
    border-top: 1px solid rgba(253, 230, 138, 0.18);
}

.no-results {
    grid-column: 1 / -1;
    padding: 28px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

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

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

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

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

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

    .menu-toggle {
        display: block;
    }

    .hero-content,
    .intro-grid,
    .split-layout,
    .detail-main,
    .detail-layout,
    .category-overview-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        height: auto;
        min-height: 760px;
    }

    .hero-slide {
        position: relative;
        display: none;
        min-height: 760px;
    }

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

    .hero-content {
        padding: 72px 0 110px;
    }

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

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

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

    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-actions {
        justify-content: space-between;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

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

    .brand small {
        display: none;
    }

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

    .movie-grid,
    .compact-grid,
    .movie-grid.is-list-view .movie-card,
    .compact-card {
        grid-template-columns: 1fr;
    }

    .filter-actions select,
    .filter-actions button {
        width: 100%;
    }

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

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