: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;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-500: #78716c;
    --stone-700: #44403c;
    --stone-900: #1c1917;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(120, 53, 15, 0.14);
    --shadow-card: 0 12px 28px rgba(120, 53, 15, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --content: min(1180px, calc(100% - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--stone-900);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(252, 211, 77, 0.34), transparent 32rem),
        linear-gradient(180deg, #fff7ed 0%, #fffbeb 34%, #ffffff 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(180, 83, 9, 0.12);
    background: rgba(255, 251, 235, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
}

.header-inner {
    width: var(--content);
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--amber-800);
    font-weight: 800;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.26);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-title {
    font-size: 1.3rem;
    letter-spacing: 0.02em;
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--amber-600);
    font-size: 0.76rem;
    font-weight: 600;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #78350f;
    font-size: 0.96rem;
    font-weight: 700;
}

.desktop-nav a,
.mobile-panel a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel a:hover,
.mobile-panel a.is-active {
    color: var(--orange-600);
}

.nav-search {
    width: 260px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.32);
    border-radius: 999px;
    background: var(--white);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-search input,
.mobile-search input,
.search-box-large input,
.filter-input,
.search-page-input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--stone-900);
    background: transparent;
}

.nav-search input {
    padding: 10px 6px 10px 16px;
}

.nav-search button,
.mobile-search button {
    border: 0;
    color: var(--amber-700);
    background: transparent;
    cursor: pointer;
}

.nav-search button {
    width: 42px;
    font-size: 1.35rem;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--amber-800);
    background: var(--amber-100);
    cursor: pointer;
}

.mobile-panel {
    width: var(--content);
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-panel nav {
    display: grid;
    gap: 10px;
    padding-top: 14px;
}

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

.mobile-search input {
    padding: 12px 14px;
    border: 1px solid rgba(217, 119, 6, 0.32);
    border-radius: 999px;
    background: var(--white);
}

.mobile-search button,
.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.mobile-search button,
.primary-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 15px 30px rgba(234, 88, 12, 0.26);
}

.mobile-search button {
    padding: 0 18px;
    border: 0;
}

main {
    overflow: hidden;
}

.hero-slider {
    position: relative;
    min-height: 650px;
    isolation: isolate;
    color: var(--white);
    background: #221207;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.42fr);
    align-items: center;
    gap: 52px;
    width: var(--content);
    margin: 0 auto;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-backdrop {
    position: fixed;
    inset: 0;
    z-index: -2;
    opacity: 0.28;
    filter: blur(6px) saturate(1.2);
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.5), transparent 34rem),
        linear-gradient(110deg, rgba(28, 25, 23, 0.96), rgba(120, 53, 15, 0.82) 48%, rgba(234, 88, 12, 0.56));
}

.hero-content {
    padding-top: 72px;
}

.hero-kicker,
.section-heading p,
.page-hero p {
    margin: 0 0 12px;
    color: var(--amber-600);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-kicker {
    color: var(--amber-200);
}

.hero-content h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 6.4rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 700px;
    margin: 26px 0 0;
    color: rgba(255, 251, 235, 0.88);
    font-size: clamp(1rem, 1.8vw, 1.32rem);
    line-height: 1.9;
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-tags span,
.detail-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
}

.hero-tags span {
    color: var(--amber-100);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.primary-button,
.ghost-button {
    min-height: 48px;
    padding: 0 24px;
}

.ghost-button {
    color: var(--amber-50);
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

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

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.36);
}

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

.hero-dot {
    width: 42px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--amber-300);
}

.section {
    width: var(--content);
    margin: 0 auto;
    padding: 58px 0;
}

.section-overlap {
    position: relative;
    z-index: 2;
    margin-top: -74px;
    padding: 28px;
    border: 1px solid rgba(217, 119, 6, 0.13);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

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

.section-heading h2,
.page-hero h1 {
    margin: 0;
    color: var(--stone-900);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

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

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

.category-chip {
    min-height: 124px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 22px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover,
.movie-card:hover,
.horizontal-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.category-chip span {
    color: var(--amber-800);
    font-size: 1.08rem;
    font-weight: 900;
}

.category-chip small {
    color: var(--stone-500);
    line-height: 1.7;
}

.movie-grid,
.compact-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(120, 53, 15, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card-link {
    display: block;
    height: 100%;
}

.movie-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--stone-100));
}

.movie-card-compact .movie-thumb {
    aspect-ratio: 16 / 9;
}

.movie-thumb img,
.detail-card img,
.horizontal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.movie-duration,
.movie-type,
.rank-mark,
.list-rank {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    font-size: 0.74rem;
    font-weight: 900;
    background: rgba(28, 25, 23, 0.74);
    backdrop-filter: blur(8px);
}

.movie-duration {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
}

.movie-type {
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    background: rgba(234, 88, 12, 0.86);
}

.rank-mark {
    left: 12px;
    bottom: 12px;
    min-width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

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

.movie-card h3,
.horizontal-card h3 {
    margin: 0;
    color: var(--stone-900);
    font-size: 1.06rem;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover h3,
.horizontal-card:hover h3 {
    color: var(--orange-600);
}

.movie-card p,
.horizontal-card p,
.footer-grid p,
.page-hero span,
.detail-main-text p {
    color: var(--stone-500);
    line-height: 1.75;
}

.movie-card p {
    min-height: 52px;
    margin: 8px 0 12px;
    font-size: 0.92rem;
}

.movie-meta-row,
.horizontal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--stone-500);
    font-size: 0.84rem;
}

.movie-meta-row span,
.horizontal-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--amber-50);
}

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

.ranking-panel,
.side-recommend,
.ranking-board {
    padding: 24px;
    border: 1px solid rgba(217, 119, 6, 0.13);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-card);
}

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

.horizontal-card {
    border-radius: 18px;
    background: var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-card a {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
}

.horizontal-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    border-radius: 14px;
    background: var(--amber-100);
}

.list-rank {
    left: 8px;
    top: 8px;
    min-width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.horizontal-body h3 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.horizontal-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 7px 0 10px;
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.compact-heading {
    align-items: center;
}

.page-hero {
    width: var(--content);
    margin: 34px auto 0;
    padding: 70px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at right top, rgba(249, 115, 22, 0.24), transparent 24rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(254, 243, 199, 0.7));
    box-shadow: var(--shadow-soft);
}

.page-hero span {
    display: block;
    max-width: 680px;
    margin-top: 18px;
    font-size: 1.08rem;
}

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

.category-overview-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border: 1px solid rgba(217, 119, 6, 0.13);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-card h2 {
    margin: 0 0 12px;
    color: var(--amber-800);
    font-size: 1.4rem;
}

.category-overview-card p {
    margin: 0;
    color: var(--stone-500);
    line-height: 1.8;
}

.category-samples {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.category-samples a {
    overflow: hidden;
    color: var(--stone-700);
    font-size: 0.92rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.search-heading {
    align-items: center;
}

.filter-input,
.search-page-input {
    max-width: 320px;
    padding: 13px 18px;
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-radius: 999px;
    background: var(--white);
    box-shadow: 0 8px 18px rgba(120, 53, 15, 0.06);
}

.search-box-large {
    margin-bottom: 28px;
}

.search-page-input {
    max-width: 640px;
    width: 100%;
    font-size: 1.05rem;
}

.detail-top {
    width: var(--content);
    margin: 34px auto 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--stone-500);
    font-size: 0.92rem;
}

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

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

.watch-panel,
.detail-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.player-panel,
.video-shell {
    position: relative;
    height: 100%;
    min-height: 540px;
    background: #0c0a09;
}

.video-shell video {
    width: 100%;
    height: 100%;
    min-height: 540px;
    display: block;
    background: #0c0a09;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: var(--white);
    background:
        radial-gradient(circle, rgba(249, 115, 22, 0.28), transparent 18rem),
        linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.68));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-ring {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 22px 48px rgba(234, 88, 12, 0.4);
    font-size: 1.8rem;
}

.detail-card {
    position: relative;
    min-height: 540px;
}

.detail-card img {
    height: 100%;
    min-height: 540px;
}

.detail-score {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: grid;
    gap: 2px;
    padding: 14px 18px;
    border-radius: 18px;
    color: var(--white);
    background: rgba(28, 25, 23, 0.74);
    backdrop-filter: blur(10px);
}

.detail-score strong {
    font-size: 1.9rem;
    line-height: 1;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.detail-main-text {
    padding: 38px;
    border: 1px solid rgba(217, 119, 6, 0.13);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.detail-main-text h1 {
    margin: 0;
    color: var(--stone-900);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 900px;
    margin: 18px 0 0;
    font-size: 1.12rem;
}

.detail-tags span {
    color: var(--amber-800);
    background: var(--amber-50);
    border: 1px solid rgba(217, 119, 6, 0.15);
}

.detail-meta-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 30px 0;
}

.detail-meta-list div {
    padding: 16px;
    border-radius: 18px;
    background: var(--amber-50);
}

.detail-meta-list dt {
    color: var(--stone-500);
    font-size: 0.82rem;
}

.detail-meta-list dd {
    margin: 8px 0 0;
    color: var(--stone-900);
    font-weight: 900;
}

.detail-main-text h2 {
    margin: 32px 0 12px;
    color: var(--amber-800);
    font-size: 1.35rem;
}

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

.site-footer {
    margin-top: 40px;
    color: var(--amber-100);
    background: linear-gradient(135deg, #78350f, #451a03);
}

.footer-grid {
    width: var(--content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding: 54px 0;
}

.footer-brand {
    color: var(--amber-100);
    font-size: 1.4rem;
}

.footer-grid p {
    max-width: 430px;
    color: rgba(254, 243, 199, 0.78);
}

.footer-grid h2 {
    margin: 0 0 16px;
    color: var(--amber-100);
    font-size: 1rem;
}

.footer-grid a:not(.footer-brand) {
    display: block;
    margin: 10px 0;
    color: rgba(254, 243, 199, 0.78);
}

.footer-bottom {
    width: var(--content);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid rgba(254, 243, 199, 0.18);
    color: rgba(254, 243, 199, 0.76);
    font-size: 0.92rem;
}

.is-hidden {
    display: none !important;
}

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
    }

    .hero-poster {
        display: none;
    }

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

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

    .detail-card {
        display: none;
    }
}

@media (max-width: 720px) {
    :root {
        --content: min(100% - 22px, 1180px);
    }

    .header-inner {
        height: 66px;
    }

    .brand-title {
        font-size: 1.08rem;
    }

    .brand-subtitle {
        display: none;
    }

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

    .hero-content h1 {
        font-size: clamp(2.4rem, 15vw, 4.5rem);
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section,
    .section-overlap {
        padding: 36px 0;
    }

    .section-overlap {
        padding: 20px;
    }

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

    .movie-grid,
    .compact-grid,
    .category-chip-grid,
    .category-overview-grid,
    .detail-meta-list {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 38px 24px;
    }

    .horizontal-card a {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .player-panel,
    .video-shell,
    .video-shell video {
        min-height: 260px;
    }

    .detail-main-text {
        padding: 24px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
