:root {
    --bg: #f7f7f6;
    --paper: #ffffff;
    --paper-soft: #fdf8f3;
    --ink: #343332;
    --muted: #6d6c67;
    --muted-soft: #87847e;
    --line: #e9ddd2;
    --primary: #c8643e;
    --primary-dark: #6c372b;
    --primary-deep: #1c1c1b;
    --accent: #dd4f16;
    --accent-light: #f08444;
    --shadow: 0 22px 60px rgba(46, 35, 28, 0.16);
    --radius: 22px;
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Noto Serif SC", "Songti SC", SimSun, Georgia, Cambria, "Times New Roman", serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(28, 28, 27, 0.94);
    color: #fff;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(244, 218, 194, 0.15);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    min-height: 76px;
}

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

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 12px 30px rgba(221, 79, 22, 0.36);
}

.brand-text {
    white-space: nowrap;
    font-size: 1.2rem;
}

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

.main-nav a,
.nav-dropdown > button {
    color: #f4dac2;
    background: transparent;
    border: 0;
    padding: 10px 0;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.nav-dropdown > button:hover {
    color: var(--accent-light);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 6px;
    min-width: 300px;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    color: var(--ink);
    padding: 10px 12px;
    border-radius: 12px;
}

.nav-dropdown-menu a:hover {
    background: var(--paper-soft);
    color: var(--primary);
}

.header-search {
    display: flex;
    align-items: center;
    border: 1px solid rgba(244, 218, 194, 0.28);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.header-search input {
    width: 220px;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    padding: 10px 14px;
}

.header-search input::placeholder {
    color: #ecbe98;
}

.header-search button {
    border: 0;
    color: #fff;
    background: var(--primary);
    padding: 10px 16px;
    transition: background 0.2s ease;
}

.header-search button:hover {
    background: var(--accent);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(244, 218, 194, 0.3);
    border-radius: 14px;
    background: transparent;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
    border-radius: 99px;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    background: var(--primary-deep);
    color: #fff;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.04);
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 28%, rgba(240, 132, 68, 0.28), transparent 28%),
        linear-gradient(90deg, rgba(28, 28, 27, 0.95) 0%, rgba(108, 55, 43, 0.78) 42%, rgba(28, 28, 27, 0.38) 100%),
        linear-gradient(0deg, rgba(28, 28, 27, 0.86), transparent 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    gap: 64px;
    align-items: center;
    min-height: 680px;
    padding: 96px 0 84px;
}

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

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-light);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-movie-title {
    margin-top: 12px !important;
    color: #f4dac2;
    font-size: clamp(1.5rem, 2.6vw, 2.7rem) !important;
}

.hero-copy p:not(.eyebrow) {
    max-width: 660px;
    margin: 22px 0 0;
    color: #f7e8da;
    font-size: 1.08rem;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #854132;
    background: #faeee1;
    border: 1px solid #f4dac2;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

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

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

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

.button-primary {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 16px 40px rgba(221, 79, 22, 0.3);
}

.button-primary:hover {
    background: #b73a14;
}

.button-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.button-ghost-dark {
    color: var(--primary-dark);
    border-color: #ecbe98;
    background: #fff;
}

.hero-card {
    position: relative;
    display: block;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(1.5deg);
    transition: transform 0.3s ease;
}

.hero-card:hover {
    transform: rotate(0deg) translateY(-8px);
}

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

.hero-card span {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    color: #fff;
    background: rgba(28, 28, 27, 0.74);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

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

.hero-dots button {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 54px;
    background: var(--accent-light);
}

.search-panel {
    position: relative;
    z-index: 4;
    margin-top: -46px;
    padding: 24px;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow);
}

.big-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.big-search input,
.advanced-search input,
.advanced-search select,
.filter-panel input {
    width: 100%;
    min-height: 50px;
    border: 1px solid #ecbe98;
    border-radius: 16px;
    outline: 0;
    background: #fff;
    color: var(--ink);
    padding: 0 16px;
}

.big-search input:focus,
.advanced-search input:focus,
.advanced-search select:focus,
.filter-panel input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(221, 79, 22, 0.1);
}

.big-search button,
.advanced-search button {
    min-height: 50px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: var(--primary);
    padding: 0 22px;
    font-weight: 800;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.quick-links a {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--paper-soft);
    color: var(--primary-dark);
    font-weight: 700;
}

.content-section {
    margin-top: 64px;
}

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

.section-heading h2,
.page-heading h1,
.detail-info h1,
.detail-content h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.section-link {
    color: var(--primary);
    font-weight: 800;
}

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

.movie-grid-full {
    margin-top: 28px;
}

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 28px rgba(52, 51, 50, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: #e39d6c;
    box-shadow: 0 18px 44px rgba(52, 51, 50, 0.14);
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--primary-deep);
}

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

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
    opacity: 0.9;
}

.poster-year,
.rank-badge {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(28, 28, 27, 0.74);
    backdrop-filter: blur(12px);
    font-size: 0.78rem;
    font-weight: 800;
}

.poster-year {
    right: 12px;
    padding: 4px 9px;
}

.rank-badge {
    left: 12px;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: var(--accent);
}

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

.movie-meta {
    margin: 0 0 8px;
    color: var(--muted-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

.movie-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--primary);
}

.movie-desc {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 10px 0 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--muted);
    font-size: 0.92rem;
}

.movie-card-compact {
    display: grid;
    grid-template-columns: 108px 1fr;
    min-height: 152px;
}

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

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

.movie-card-compact .tag-row {
    margin-top: 12px;
}

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

.category-grid-large {
    margin-top: 32px;
}

.category-tile {
    min-height: 160px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, #fff, #fdf8f3);
    box-shadow: 0 10px 30px rgba(52, 51, 50, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span {
    display: block;
    color: var(--primary-dark);
    font-size: 1.24rem;
    font-weight: 900;
}

.category-tile p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.ranking-grid,
.spotlight-list,
.ranking-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.page-shell,
.detail-shell {
    padding: 42px 0 72px;
}

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

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

.breadcrumb span::before,
.breadcrumb a + a::before,
.breadcrumb a + span::before {
    content: "/";
    margin-right: 8px;
    color: #c9c8c5;
}

.page-heading {
    max-width: 780px;
}

.page-heading p:last-child {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.filter-panel,
.advanced-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-top: 32px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
}

.advanced-search {
    grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(140px, 1fr)) auto;
}

.search-status {
    margin: 22px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 38px;
    align-items: center;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        radial-gradient(circle at right top, rgba(240, 132, 68, 0.16), transparent 34%),
        linear-gradient(145deg, #fff, #fdf8f3);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 22px 52px rgba(52, 51, 50, 0.2);
}

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

.detail-line {
    max-width: 860px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.tag-row-large {
    margin-top: 22px;
}

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

.detail-meta div {
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
}

.detail-meta dt {
    color: var(--muted-soft);
    font-size: 0.82rem;
    font-weight: 800;
}

.detail-meta dd {
    margin: 4px 0 0;
    color: var(--ink);
    font-weight: 900;
}

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

.video-player {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: #000;
    overflow: hidden;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
}

.play-circle {
    position: relative;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 18px 44px rgba(221, 79, 22, 0.36);
    font-size: 2rem;
    text-indent: 4px;
}

.player-cover strong {
    position: relative;
    z-index: 2;
    margin-top: 112px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(12px);
}

.video-player.is-ready .player-cover {
    display: none;
}

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 42px;
}

.detail-content section {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #fff;
}

.detail-content h2 {
    font-size: 1.55rem;
}

.detail-content p {
    margin: 16px 0 0;
    color: var(--muted);
}

.related-section {
    margin-bottom: 30px;
}

.site-footer {
    margin-top: 64px;
    padding: 56px 0 0;
    color: #c9c8c5;
    background: var(--primary-deep);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    color: #fff;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #f4dac2;
    font-size: 1.08rem;
}

.site-footer p {
    max-width: 430px;
    margin: 18px 0 0;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    margin-top: 42px;
    padding: 18px 0;
    border-top: 1px solid rgba(244, 218, 194, 0.12);
    text-align: center;
    color: #87847e;
}

[data-search-card].is-hidden {
    display: none;
}

@media (max-width: 1080px) {
    .header-inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav,
    .header-search {
        display: none;
    }

    .main-nav.is-open {
        position: absolute;
        top: 76px;
        left: 16px;
        right: 16px;
        display: grid;
        justify-content: stretch;
        gap: 4px;
        padding: 16px;
        border-radius: 20px;
        background: #fff;
        color: var(--ink);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open a,
    .main-nav.is-open .nav-dropdown > button {
        color: var(--ink);
        text-align: left;
    }

    .nav-dropdown-menu {
        position: static;
        display: grid;
        min-width: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: var(--paper-soft);
    }

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

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

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

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

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

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

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

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

    .hero-content {
        padding: 70px 0 86px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 2.35rem;
    }

    .hero-card {
        display: none;
    }

    .search-panel {
        margin-top: -28px;
        padding: 16px;
    }

    .big-search,
    .filter-panel,
    .advanced-search {
        grid-template-columns: 1fr;
    }

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

    .movie-grid,
    .category-grid,
    .ranking-grid,
    .spotlight-list,
    .ranking-list,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-compact {
        grid-template-columns: 96px 1fr;
    }

    .detail-hero {
        grid-template-columns: 1fr;
        padding: 20px;
        border-radius: 24px;
    }

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

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

    .play-circle {
        width: 68px;
        height: 68px;
        font-size: 1.5rem;
    }
}
