:root {
    --cream-50: #fefdfb;
    --warm-50: #faf5f0;
    --warm-100: #f5ebe0;
    --warm-200: #e8d4be;
    --warm-300: #d2b392;
    --warm-500: #a86d44;
    --warm-700: #714834;
    --warm-800: #5d3d2d;
    --warm-900: #3e2a22;
    --tea-50: #fdf8f3;
    --tea-100: #fbeee0;
    --tea-400: #eca368;
    --tea-600: #d9703c;
    --tea-700: #b45833;
    --text: #33251f;
    --muted: #77594a;
    --white: #ffffff;
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
    --shadow-soft-lg: 0 10px 40px -10px rgba(0, 0, 0, 0.1), 0 20px 25px -5px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, var(--cream-50), var(--white));
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
}

.header-inner {
    max-width: 1180px;
    height: 64px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--tea-600), var(--warm-500));
    box-shadow: 0 10px 22px rgba(217, 112, 60, 0.22);
    font-size: 13px;
}

.brand-text,
.footer-brand span:last-child {
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 22px;
    letter-spacing: 0.02em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link,
.mobile-link {
    color: var(--warm-700);
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--tea-600);
}

.menu-toggle {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--tea-50);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--warm-800);
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--warm-100);
    padding: 12px 20px 16px;
    background: var(--white);
}

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

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: var(--warm-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2)), var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.75s ease;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 55%, rgba(217, 112, 60, 0.28), transparent 38%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    height: 100%;
    margin: 0 auto;
    padding: 96px 20px 80px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: end;
    gap: 54px;
    color: var(--white);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-weight: 800;
    line-height: 1.08;
}

.hero-copy h1 {
    max-width: 780px;
    font-size: clamp(38px, 6vw, 66px);
}

.hero-desc {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--tea-400);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-tags,
.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-meta span {
    border-radius: 999px;
    padding: 7px 13px;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.wide-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: 46px;
    padding: 0 26px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn,
.wide-search button {
    border: 0;
    color: var(--white);
    background: var(--tea-600);
    box-shadow: 0 16px 36px rgba(217, 112, 60, 0.26);
}

.primary-btn:hover,
.wide-search button:hover {
    transform: translateY(-2px);
    background: var(--tea-700);
}

.ghost-btn {
    color: var(--white);
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(10px);
}

.ghost-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
}

.hero-poster {
    justify-self: end;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
    transform: translateY(16px);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(10px);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.52);
    transform: translateY(-2px);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 28px;
    border-radius: 99px;
    background: var(--tea-400);
}

.section-block {
    max-width: 1180px;
    margin: 0 auto;
    padding: 66px 20px;
}

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

.section-heading.centered {
    max-width: 760px;
    margin: 0 auto 26px;
    display: block;
    text-align: center;
}

.section-heading h2,
.story-card h2,
.category-row h2 {
    margin: 0;
    color: var(--warm-900);
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
}

.section-heading p:not(.eyebrow),
.category-row p,
.story-card p,
.page-hero p,
.footer-about p {
    color: var(--muted);
    line-height: 1.8;
}

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

.section-link:hover {
    color: var(--tea-700);
}

.intro-search {
    padding-top: 50px;
    padding-bottom: 34px;
}

.wide-search {
    max-width: 720px;
    margin: 0 auto;
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    border-radius: 999px;
    background: var(--white);
    box-shadow: var(--shadow-soft-lg);
}

.wide-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid var(--warm-100);
    outline: none;
    color: var(--warm-900);
    background: var(--white);
}

.wide-search input {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
}

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

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

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft-lg);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--warm-100);
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 60%);
    opacity: 0.75;
}

.play-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--tea-600);
    background: rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%) scale(0.78);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-label,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.card-label {
    right: 12px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.55);
}

.rank-badge {
    left: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tea-600);
}

.card-body {
    padding: 16px;
}

.card-body h2 {
    margin: 0 0 9px;
    color: var(--warm-900);
    font-size: 18px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-body h2 a:hover {
    color: var(--tea-600);
}

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

.card-meta {
    color: #8a6b5e;
    font-size: 12px;
    font-weight: 750;
}

.warm-panel {
    max-width: none;
    background: linear-gradient(180deg, var(--warm-50), var(--tea-50));
}

.warm-panel > .section-heading,
.warm-panel > .category-grid {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

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

.category-card {
    position: relative;
    min-height: 248px;
    overflow: hidden;
    border-radius: 24px;
    isolation: isolate;
    box-shadow: var(--shadow-soft);
    background: var(--warm-900);
}

.category-card:hover .category-covers img {
    transform: translateY(-4px);
}

.category-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.2)), var(--category-image);
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    transform: scale(1.05);
}

.category-covers {
    position: absolute;
    inset: 18px 18px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.category-covers img {
    height: 112px;
    width: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.25s ease;
}

.category-content {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: var(--white);
}

.category-content strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
    font-family: Georgia, Cambria, "Times New Roman", serif;
}

.category-content small {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
}

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

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

.movie-card.compact .card-cover {
    height: 100%;
    min-height: 138px;
}

.movie-card.compact .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--warm-900);
}

.page-hero {
    min-height: 340px;
    padding: 112px 20px 74px;
    text-align: center;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.35)), var(--page-image);
    background-size: cover;
    background-position: center;
}

.simple-hero {
    background-image: radial-gradient(circle at 20% 20%, rgba(217, 112, 60, 0.38), transparent 34%), linear-gradient(135deg, var(--warm-900), var(--warm-700));
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 60px);
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.78);
}

.filter-bar {
    margin-bottom: 26px;
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
}

.filter-bar-sticky {
    position: sticky;
    top: 80px;
    z-index: 8;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    border-radius: 14px;
    padding: 0 14px;
}

.empty-state {
    display: none;
    padding: 40px;
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
    background: var(--warm-50);
}

.empty-state.is-visible {
    display: block;
}

.category-index {
    display: grid;
    gap: 18px;
}

.category-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 24px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.category-row h2 {
    font-size: 26px;
}

.text-links {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: 10px;
}

.text-links a {
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--warm-700);
    background: var(--warm-50);
    font-weight: 700;
}

.text-links a:hover {
    color: var(--white);
    background: var(--tea-600);
}

.detail-hero {
    min-height: 660px;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.28)), var(--detail-image);
    background-size: cover;
    background-position: center;
}

.detail-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 98px 20px 70px;
}

.breadcrumb,
.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 750;
}

.breadcrumb:hover {
    color: var(--tea-400);
}

.detail-layout {
    margin-top: 38px;
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 48px;
    align-items: end;
}

.detail-cover {
    width: 330px;
    aspect-ratio: 4 / 5;
    border-radius: 26px;
    object-fit: cover;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.detail-copy h1 {
    font-size: clamp(38px, 6vw, 68px);
}

.detail-one-line {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    margin: 22px 0 28px;
}

.player-section {
    padding-top: 76px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    aspect-ratio: 16 / 9;
    background: #060606;
    box-shadow: var(--shadow-soft-lg);
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-start {
    position: absolute;
    inset: 0;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at 50% 45%, rgba(217, 112, 60, 0.28), rgba(0, 0, 0, 0.56));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
}

.player-start span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--tea-600);
    background: rgba(255, 255, 255, 0.92);
    font-size: 34px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.player-start strong {
    font-size: 18px;
    letter-spacing: 0.1em;
}

.player-shell.is-playing .player-start {
    display: none;
}

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

.story-card {
    padding: 30px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

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

.story-card p {
    margin: 0;
    font-size: 16px;
}

.info-list {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.info-list div {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--warm-50);
}

.info-list dt {
    color: var(--tea-600);
    font-size: 13px;
    font-weight: 800;
}

.info-list dd {
    margin: 6px 0 0;
    color: var(--warm-900);
    line-height: 1.6;
}

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

.site-footer {
    color: var(--warm-100);
    background: var(--warm-900);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 20px 38px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    color: var(--white);
}

.footer-about p {
    max-width: 520px;
    color: var(--warm-200);
}

.footer-links h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

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

.footer-links a {
    color: var(--warm-200);
}

.footer-links a:hover {
    color: var(--tea-400);
}

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid rgba(232, 212, 190, 0.18);
    color: var(--warm-300);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

    .rank-list,
    .large-rank {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        grid-template-columns: 260px 1fr;
    }

    .detail-cover {
        width: 260px;
    }
}

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        padding: 94px 20px 78px;
    }

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

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .wide-search {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .wide-search button {
        width: 100%;
    }

    .category-row,
    .footer-inner,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        width: min(100%, 330px);
    }

    .info-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .header-inner {
        padding: 0 16px;
    }

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

    .hero {
        height: auto;
        min-height: 610px;
    }

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

    .hero-arrow {
        display: none;
    }

    .section-block {
        padding: 46px 16px;
    }

    .section-heading {
        display: block;
    }

    .section-link {
        display: inline-block;
        margin-top: 12px;
    }

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

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

    .page-hero {
        padding: 98px 16px 62px;
    }

    .player-start span {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }
}
