:root {
    --vintage-950: #1d1410;
    --vintage-900: #2b1d16;
    --vintage-800: #3d2a20;
    --vintage-700: #563b2c;
    --vintage-600: #79553f;
    --vintage-200: #e7d8c6;
    --vintage-100: #f1e7da;
    --vintage-50: #fbf7f0;
    --aged-900: #34251b;
    --aged-800: #4a3629;
    --aged-700: #6a4f3f;
    --aged-600: #846956;
    --aged-200: #dfd0bf;
    --aged-100: #f3eadf;
    --sepia-900: #5a3417;
    --sepia-800: #7a471f;
    --sepia-700: #9a5d2b;
    --sepia-600: #bd7937;
    --sepia-500: #d9994b;
    --sepia-400: #e8b76a;
    --sepia-100: #f7e6c9;
    --paper: #fffaf2;
    --ink: #2a211b;
    --muted: #7b6655;
    --line: rgba(89, 62, 42, 0.16);
    --shadow: 0 24px 70px rgba(43, 29, 22, 0.18);
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: radial-gradient(circle at 20% 0, rgba(217, 153, 75, 0.16), transparent 34rem), var(--vintage-50);
    line-height: 1.65;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 247, 240, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    max-width: 1500px;
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--vintage-900);
    letter-spacing: 0.04em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    color: var(--vintage-50);
    background: linear-gradient(135deg, var(--sepia-600), var(--vintage-800));
    box-shadow: 0 12px 28px rgba(189, 121, 55, 0.32);
}

.brand-text {
    white-space: nowrap;
}

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

.nav-link,
.mobile-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--aged-700);
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--vintage-50);
    background: var(--vintage-800);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(360px, 28vw);
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
}

.header-search input,
.mobile-search input,
.quick-search input,
.search-page-form input,
.local-filter input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.header-search button,
.mobile-search button,
.quick-search button,
.search-page-form button {
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    color: var(--vintage-50);
    background: var(--sepia-700);
    font-weight: 800;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--vintage-900);
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--vintage-50);
}

.mobile-nav {
    display: none;
    padding: 0 28px 18px;
}

.mobile-nav.is-open {
    display: grid;
    gap: 10px;
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
}

.hero {
    position: relative;
    min-height: clamp(620px, 82vh, 860px);
    overflow: hidden;
    color: var(--vintage-50);
    background: var(--vintage-900);
}

.hero::before,
.page-hero::before,
.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    background-position: center;
    background-size: cover;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-content,
.detail-hero-inner,
.page-hero-inner,
.content-section,
.quick-search-panel,
.footer-inner {
    width: min(1500px, calc(100% - 40px));
    margin: 0 auto;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
    gap: clamp(28px, 5vw, 80px);
    align-items: center;
    padding-top: 60px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: var(--sepia-100);
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    max-width: 980px;
    margin: 22px 0 16px;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: clamp(38px, 6vw, 82px);
    line-height: 1.08;
    letter-spacing: 0.03em;
}

.hero-one-line {
    max-width: 780px;
    margin: 0 0 22px;
    color: rgba(255, 250, 242, 0.88);
    font-size: clamp(17px, 2vw, 24px);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--sepia-900);
    background: var(--sepia-100);
    font-size: 12px;
    font-weight: 800;
}

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

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

.primary-button {
    padding: 13px 24px;
    color: var(--vintage-50);
    background: linear-gradient(135deg, var(--sepia-600), var(--sepia-800));
    box-shadow: 0 18px 36px rgba(189, 121, 55, 0.36);
}

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

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

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
    transform: rotate(2deg);
}

.hero-poster::after,
.card-poster::after,
.detail-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: inherit;
    pointer-events: none;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--paper);
    background: rgba(29, 20, 16, 0.74);
    backdrop-filter: blur(10px);
    font-weight: 900;
    text-align: center;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--sepia-400);
}

.quick-search-panel {
    position: relative;
    z-index: 5;
    margin-top: -42px;
    padding: 18px;
    border-radius: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    background: rgba(255, 250, 242, 0.94);
    border: 1px solid rgba(89, 62, 42, 0.14);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-search {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 20px;
    background: var(--vintage-50);
    border: 1px solid var(--line);
}

.quick-search input {
    padding: 0 12px;
}

.quick-stats {
    display: flex;
    gap: 16px;
    color: var(--aged-600);
    font-size: 14px;
    white-space: nowrap;
}

.quick-stats strong {
    color: var(--sepia-700);
    font-size: 20px;
}

.content-section {
    padding: clamp(44px, 7vw, 86px) 0;
}

.content-section.aged-panel,
.content-section.warm-panel {
    width: 100%;
    max-width: none;
    padding-left: max(20px, calc((100vw - 1500px) / 2));
    padding-right: max(20px, calc((100vw - 1500px) / 2));
}

.aged-panel {
    background: var(--aged-100);
}

.warm-panel {
    background: linear-gradient(135deg, rgba(247, 230, 201, 0.84), rgba(241, 231, 218, 0.9));
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.section-line {
    width: 6px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--sepia-500), var(--vintage-800));
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.story-card h2,
.category-strip h3,
.overview-body h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    color: var(--vintage-900);
    line-height: 1.18;
}

.section-heading h2 {
    font-size: clamp(28px, 3.4vw, 46px);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 16px 45px rgba(43, 29, 22, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(43, 29, 22, 0.18);
    border-color: rgba(189, 121, 55, 0.38);
}

.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--vintage-800);
}

.card-poster img {
    transition: transform 0.32s ease, filter 0.32s ease;
}

.movie-card:hover .card-poster img {
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.04);
}

.poster-shine {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(29, 20, 16, 0.66), transparent);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--vintage-50);
    background: linear-gradient(135deg, var(--sepia-500), var(--sepia-800));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.card-body {
    padding: 18px;
}

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

.card-meta span,
.detail-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--aged-100);
}

.card-body h3 {
    min-height: 1.4em;
    margin: 12px 0 8px;
    font-size: 20px;
    color: var(--vintage-900);
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--sepia-700);
}

.card-body p {
    display: -webkit-box;
    min-height: 3.4em;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
}

.featured-main .card-poster {
    aspect-ratio: 16 / 8;
}

.featured-main .card-body h3 {
    font-size: 28px;
}

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

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 18px 50px rgba(43, 29, 22, 0.1);
}

.category-card {
    min-height: 240px;
    padding: 22px;
    color: var(--paper);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-card img {
    position: absolute;
    inset: 0;
    z-index: 0;
    filter: saturate(0.94) contrast(1.05);
    transition: transform 0.32s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(29, 20, 16, 0.88), rgba(29, 20, 16, 0.22));
}

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

.category-card strong,
.category-card p,
.category-count {
    position: relative;
    z-index: 2;
}

.category-card strong {
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: 24px;
}

.category-card p {
    margin: 8px 0 0;
    color: rgba(255, 250, 242, 0.82);
}

.category-count {
    width: max-content;
    margin-bottom: auto;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--vintage-900);
    background: var(--sepia-100);
    font-size: 12px;
    font-weight: 900;
}

.category-strips {
    display: grid;
    gap: 38px;
}

.strip-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.strip-head a,
.text-link {
    color: var(--sepia-700);
    font-weight: 900;
}

.center-actions {
    justify-content: center;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--vintage-50);
    background: linear-gradient(135deg, var(--vintage-900), var(--aged-800));
}

.page-hero-inner {
    position: relative;
    padding: clamp(70px, 10vw, 130px) 0;
    text-align: center;
}

.page-hero h1 {
    color: var(--vintage-50);
    font-size: clamp(36px, 5vw, 68px);
    margin-top: 18px;
}

.page-hero p {
    max-width: 860px;
    margin: 18px auto 0;
    color: rgba(255, 250, 242, 0.84);
    font-size: 18px;
}

.local-filter,
.search-page-form {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 14px 42px rgba(43, 29, 22, 0.08);
}

.local-filter input,
.search-page-form input {
    width: 100%;
    min-height: 46px;
    padding: 0 15px;
    border-radius: 15px;
    background: var(--vintage-50);
    border: 1px solid var(--line);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tags button {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--aged-700);
    background: var(--aged-100);
    font-weight: 800;
}

.filter-tags button.is-active,
.filter-tags button:hover {
    color: var(--vintage-50);
    background: var(--vintage-800);
}

.overview-cover-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    aspect-ratio: 16 / 10;
}

.overview-body {
    padding: 22px;
}

.overview-body span {
    color: var(--sepia-700);
    font-weight: 900;
}

.overview-body h2 {
    margin: 6px 0 8px;
    font-size: 26px;
}

.overview-body p {
    color: var(--muted);
    margin: 0 0 14px;
}

.search-page-form {
    grid-template-columns: minmax(0, 1fr) auto;
    max-width: 820px;
    margin: 26px auto 0;
    background: rgba(255, 250, 242, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.search-page-form button {
    padding-left: 24px;
    padding-right: 24px;
}

.search-summary {
    margin-bottom: 20px;
    color: var(--aged-700);
    font-weight: 900;
}

.detail-hero {
    background-position: center;
    background-size: cover;
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(255, 250, 242, 0.72);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: var(--sepia-100);
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.detail-info h1 {
    color: var(--vintage-50);
    font-size: clamp(34px, 5vw, 66px);
    margin: 18px 0;
}

.detail-one-line {
    max-width: 920px;
    color: rgba(255, 250, 242, 0.88);
    font-size: clamp(18px, 2vw, 24px);
}

.detail-meta {
    margin: 18px 0;
}

.detail-meta span {
    color: var(--sepia-900);
    background: var(--sepia-100);
}

.player-section {
    width: min(1280px, calc(100% - 40px));
    margin: -44px auto 0;
    position: relative;
    z-index: 5;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #090604;
    box-shadow: 0 28px 80px rgba(43, 29, 22, 0.28);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #090604;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    cursor: pointer;
    color: var(--vintage-50);
    background: radial-gradient(circle, rgba(43, 29, 22, 0.15), rgba(0, 0, 0, 0.58));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    padding-left: 6px;
    background: linear-gradient(135deg, var(--sepia-500), var(--sepia-800));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
    font-size: 36px;
}

.play-overlay strong {
    font-size: 22px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.story-card {
    padding: clamp(22px, 3vw, 34px);
    border-radius: var(--radius-lg);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 16px 45px rgba(43, 29, 22, 0.08);
}

.story-card h2 {
    font-size: 28px;
    margin-bottom: 14px;
}

.story-card p {
    margin: 0;
    color: var(--aged-700);
    font-size: 17px;
}

.site-footer {
    margin-top: 40px;
    color: rgba(255, 250, 242, 0.74);
    background: var(--vintage-950);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1fr;
    gap: 24px;
    padding: 38px 0;
}

.footer-brand {
    color: var(--vintage-50);
    margin-bottom: 10px;
}

.footer-inner p {
    max-width: 640px;
    margin: 8px 0 0;
}

.footer-links,
.footer-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-content: flex-start;
}

.footer-links a,
.footer-category-links a {
    color: rgba(255, 250, 242, 0.72);
}

.footer-links a:hover,
.footer-category-links a:hover {
    color: var(--sepia-100);
}

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

@media (max-width: 1180px) {
    .movie-grid,
    .category-grid,
    .overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .header-search {
        display: none;
    }
}

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

    .mobile-menu-button {
        display: block;
        margin-left: auto;
    }

    .hero-content,
    .featured-layout,
    .detail-layout,
    .detail-content,
    .footer-inner,
    .quick-search-panel {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        width: min(320px, 70vw);
        margin: 0 auto;
    }

    .featured-side {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(280px, 72vw);
    }

    .quick-stats {
        white-space: normal;
    }
}

@media (max-width: 680px) {
    .header-inner,
    .mobile-nav {
        padding-left: 18px;
        padding-right: 18px;
    }

    .brand-text {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero {
        min-height: 760px;
    }

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

    .hero-content,
    .detail-hero-inner,
    .page-hero-inner,
    .content-section,
    .quick-search-panel,
    .footer-inner,
    .player-section {
        width: min(100% - 28px, 1500px);
    }

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

    .quick-search button,
    .search-page-form button {
        width: 100%;
    }

    .content-section.aged-panel,
    .content-section.warm-panel {
        padding-left: 14px;
        padding-right: 14px;
    }

    .play-icon {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
