:root {
    --sand-50: #faf8f3;
    --sand-100: #f5f0e6;
    --sand-200: #ebe2cd;
    --sand-300: #ddc9a3;
    --sand-400: #d4b683;
    --sand-500: #c49a5c;
    --sand-600: #b07d44;
    --sand-700: #8f6235;
    --sand-800: #6d4a29;
    --sand-900: #4a3218;
    --dune-50: #fdf6ed;
    --dune-100: #fae9d1;
    --dune-200: #f5d4a3;
    --dune-300: #ebb76a;
    --dune-400: #e19838;
    --dune-500: #d97c1e;
    --dune-600: #c05f14;
    --dune-700: #9c4613;
    --white: #ffffff;
    --shadow: 0 16px 40px rgba(74, 50, 24, 0.12);
    --shadow-soft: 0 8px 22px rgba(74, 50, 24, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--sand-900);
    background: var(--sand-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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(18px);
    border-bottom: 1px solid rgba(221, 201, 163, 0.65);
}

.header-inner {
    max-width: 1280px;
    height: 70px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--dune-500), var(--dune-600));
    box-shadow: 0 10px 18px rgba(217, 124, 30, 0.25);
}

.brand-text {
    font-size: 1.35rem;
    background: linear-gradient(90deg, var(--dune-600), var(--sand-700));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--sand-700);
    white-space: nowrap;
}

.nav-link {
    position: relative;
    transition: color 0.25s ease;
}

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

.nav-link.active::after,
.nav-link:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--dune-500), var(--sand-500));
}

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

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--sand-800);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 12px 24px 20px;
    border-top: 1px solid var(--sand-200);
    background: var(--white);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav-link {
    padding: 10px 0;
    color: var(--sand-700);
    font-weight: 600;
}

.mobile-nav-link.active {
    color: var(--dune-600);
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 28px;
}

.section-title::before {
    content: "";
    width: 5px;
    height: 34px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--dune-500), var(--dune-600));
}

.section-title h1,
.section-title h2 {
    margin: 0;
    font-size: clamp(1.65rem, 2.4vw, 2.35rem);
    line-height: 1.2;
}

.section-lead {
    max-width: 780px;
    margin: -12px 0 32px;
    color: var(--sand-700);
    font-size: 1.03rem;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: var(--sand-900);
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.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-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 5s ease;
}

.hero-slide.is-active img {
    transform: scale(1.08);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.25) 52%, rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 680px;
    margin: 0 auto;
    padding: 120px 24px 96px;
    display: flex;
    align-items: flex-end;
}

.hero-copy {
    max-width: 760px;
    color: var(--white);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--dune-100);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-weight: 700;
}

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

.hero-copy p {
    max-width: 680px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.hero-meta,
.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta span,
.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
}

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

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--dune-500), var(--dune-600));
    box-shadow: 0 16px 28px rgba(217, 124, 30, 0.26);
}

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

.btn-secondary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-control {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.25s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.34);
}

.hero-control.prev {
    left: 28px;
}

.hero-control.next {
    right: 28px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.horizontal-scroll {
    margin: 0 -24px;
    padding: 0 24px 12px;
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}

.horizontal-scroll .movie-card {
    min-width: 310px;
    max-width: 310px;
    scroll-snap-align: start;
}

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

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

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

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

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--sand-200);
}

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

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

.view-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 10px;
    color: var(--white);
    font-weight: 800;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(8px);
}

.view-badge {
    top: 12px;
    right: 12px;
    padding: 5px 9px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dune-500), var(--dune-700));
}

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

.movie-card h2 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    line-height: 1.34;
}

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

.movie-card p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--sand-600);
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.movie-meta {
    margin-bottom: 12px;
    color: var(--sand-500);
    font-size: 0.82rem;
    font-weight: 700;
}

.movie-meta span:not(:last-child)::after {
    content: "•";
    margin-left: 10px;
    color: var(--sand-400);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span {
    padding: 5px 9px;
    border-radius: 8px;
    color: var(--sand-700);
    background: var(--sand-100);
    font-size: 0.78rem;
    font-weight: 700;
}

.feature-band {
    background: linear-gradient(180deg, var(--sand-50), var(--white));
}

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

.category-card {
    min-height: 190px;
    padding: 24px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--white), var(--dune-50));
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(221, 201, 163, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 1.18rem;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--sand-700);
    font-size: 0.92rem;
}

.category-card span {
    display: inline-flex;
    color: var(--dune-600);
    font-weight: 800;
}

.page-hero {
    padding: 72px 24px 46px;
    background: linear-gradient(135deg, var(--sand-100), var(--dune-50));
    border-bottom: 1px solid var(--sand-200);
}

.page-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.08;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: var(--sand-700);
    font-size: 1.08rem;
}

.search-panel {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--sand-300);
    border-radius: 12px;
    padding: 0 14px;
    color: var(--sand-900);
    background: var(--sand-50);
    outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--dune-500);
    box-shadow: 0 0 0 4px rgba(217, 124, 30, 0.12);
}

.search-panel button {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    padding: 0 22px;
    color: var(--white);
    background: var(--dune-600);
    font-weight: 800;
    cursor: pointer;
}

.empty-state {
    display: none;
    padding: 40px;
    text-align: center;
    color: var(--sand-700);
    border-radius: var(--radius);
    background: var(--sand-100);
}

.empty-state.show {
    display: block;
}

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

.detail-hero {
    background: linear-gradient(135deg, var(--sand-100), var(--dune-50));
    border-bottom: 1px solid var(--sand-200);
}

.detail-hero-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 58px 24px;
    display: grid;
    grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    background: var(--sand-200);
    box-shadow: var(--shadow);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--sand-600);
    font-weight: 700;
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--dune-600);
}

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.1;
}

.detail-copy .summary-line {
    margin: 0 0 20px;
    color: var(--sand-700);
    font-size: 1.1rem;
}

.detail-copy .detail-meta span {
    color: var(--sand-800);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.player-section {
    background: var(--sand-900);
}

.player-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.65));
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.player-cover.is-hidden {
    display: none;
}

.play-icon {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--dune-500), var(--dune-600));
    box-shadow: 0 20px 45px rgba(217, 124, 30, 0.34);
    font-size: 2.4rem;
    line-height: 1;
    padding-left: 6px;
}

.player-title {
    font-size: clamp(1.3rem, 2.8vw, 2.1rem);
    font-weight: 900;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 0.85fr);
    gap: 32px;
}

.article-panel,
.side-panel {
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    padding: 28px;
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 16px;
    font-size: 1.4rem;
}

.article-panel p {
    margin: 0 0 20px;
    color: var(--sand-800);
    font-size: 1.02rem;
}

.side-links {
    display: grid;
    gap: 14px;
}

.side-link {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: var(--sand-50);
    transition: background 0.25s ease, transform 0.25s ease;
}

.side-link:hover {
    background: var(--dune-50);
    transform: translateX(3px);
}

.side-link img {
    width: 92px;
    height: 62px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--sand-200);
}

.side-link strong {
    display: block;
    line-height: 1.35;
    margin-bottom: 4px;
}

.side-link span {
    color: var(--sand-600);
    font-size: 0.82rem;
}

.site-footer {
    margin-top: 54px;
    background: linear-gradient(180deg, var(--sand-100), var(--sand-200));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 34px;
    padding-top: 48px;
    padding-bottom: 38px;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.site-footer p,
.site-footer li {
    margin: 0;
    color: var(--sand-700);
    font-size: 0.92rem;
}

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

.site-footer a:hover {
    color: var(--dune-600);
}

.footer-brand {
    margin-bottom: 16px;
    font-size: 1.12rem;
}

.footer-bottom {
    padding: 18px 24px 28px;
    text-align: center;
    color: var(--sand-600);
    border-top: 1px solid rgba(221, 201, 163, 0.75);
    font-size: 0.9rem;
}

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

    .menu-toggle {
        display: flex;
    }

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

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

@media (max-width: 820px) {
    .hero,
    .hero-content {
        min-height: 590px;
    }

    .hero-content {
        padding-top: 92px;
        padding-bottom: 88px;
    }

    .hero-control {
        display: none;
    }

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

    .detail-hero-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

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

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

    .brand-text {
        font-size: 1.12rem;
    }

    .section-container {
        padding: 42px 16px;
    }

    .page-hero {
        padding: 46px 16px 34px;
    }

    .movie-grid,
    .rank-list,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-hero-grid,
    .player-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .article-panel,
    .side-panel {
        padding: 22px;
    }
}
