:root {
    --sand-50: #faf8f3;
    --sand-100: #f4efe6;
    --sand-200: #e8ddc9;
    --stone-50: #fbfaf8;
    --stone-100: #eeebe6;
    --stone-200: #ddd8cf;
    --stone-500: #7a6f65;
    --stone-700: #4f463f;
    --stone-800: #342e2a;
    --stone-900: #1d1a18;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --pink-500: #ec4899;
    --desert-500: #d4844b;
    --radius-lg: 18px;
    --radius-xl: 28px;
    --shadow-sand: 0 10px 30px -5px rgba(184, 144, 89, 0.2);
    --shadow-desert: 0 22px 50px -18px rgba(212, 132, 75, 0.55);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--stone-800);
    background: var(--sand-50);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

main {
    min-height: 65vh;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled,
.site-header:hover {
    background: rgba(250, 248, 243, 0.96);
    box-shadow: var(--shadow-sand);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose-500), var(--purple-600));
    box-shadow: var(--shadow-desert);
}

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

.brand-copy strong {
    font-size: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--rose-600), var(--purple-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy small {
    color: var(--stone-500);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 700;
    color: var(--stone-700);
}

.nav-link {
    position: relative;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--desert-500);
    transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--desert-500);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    color: var(--stone-700);
    background: rgba(255, 255, 255, 0.75);
    font-size: 22px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 12px;
    padding: 12px;
    border: 1px solid var(--sand-200);
    border-radius: 18px;
    background: rgba(250, 248, 243, 0.98);
    box-shadow: var(--shadow-sand);
}

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

.mobile-nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--stone-700);
    font-weight: 700;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--rose-600);
    background: #ffffff;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 130px 0 70px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-600), var(--purple-600) 52%, var(--pink-500));
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    filter: blur(10px);
}

.hero-section::before {
    width: 280px;
    height: 280px;
    left: 7%;
    top: 96px;
}

.hero-section::after {
    width: 420px;
    height: 420px;
    right: -40px;
    bottom: -90px;
}

.hero-inner,
.section-inner,
.page-hero-inner,
.detail-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto 42px;
    text-align: center;
}

.eyebrow,
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    color: inherit;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button-primary,
.button-secondary,
.hero-link,
.search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary,
.search-button {
    padding: 13px 22px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose-500), var(--purple-600));
    box-shadow: var(--shadow-desert);
}

.button-secondary {
    padding: 13px 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
}

.button-primary:hover,
.button-secondary:hover,
.hero-link:hover,
.search-button:hover {
    transform: translateY(-2px);
}

.hero-search {
    display: flex;
    max-width: 640px;
    margin: 28px auto 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 0 18px;
    color: #ffffff;
    background: transparent;
    font-size: 15px;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.hero-search .search-button {
    min-width: 96px;
    background: #ffffff;
    color: var(--rose-600);
    box-shadow: none;
}

.hero-slider {
    position: relative;
    z-index: 1;
    min-height: 420px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 35px 80px -30px rgba(28, 15, 30, 0.75);
    background: var(--stone-900);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-slide-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.08));
}

.hero-slide-copy {
    position: absolute;
    left: clamp(22px, 5vw, 58px);
    bottom: clamp(24px, 5vw, 56px);
    width: min(620px, calc(100% - 44px));
}

.hero-slide-copy h2 {
    margin: 14px 0 10px;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.08;
}

.hero-slide-copy p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    line-height: 1.8;
}

.hero-link {
    margin-top: 16px;
    padding: 12px 20px;
    color: #ffffff;
    background: rgba(244, 63, 94, 0.92);
}

.hero-dots {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

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

.hero-dot.is-active {
    width: 28px;
    background: #ffffff;
}

.content-section {
    padding: 70px 0;
    background: #ffffff;
}

.content-section.alt {
    background: linear-gradient(135deg, var(--stone-50), var(--stone-100));
}

.content-section.tint {
    background: linear-gradient(135deg, #fff1f2, #faf5ff);
}

.content-section.dark {
    color: #ffffff;
    background: var(--stone-900);
}

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

.section-title h2,
.section-title h1 {
    margin: 0;
    color: var(--stone-800);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
}

.dark .section-title h2,
.dark .section-title h1 {
    color: #ffffff;
}

.section-title p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--stone-500);
    line-height: 1.8;
}

.dark .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

.section-more {
    color: var(--rose-600);
    font-weight: 800;
    white-space: nowrap;
}

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

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

.card-grid.wide {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.movie-strip {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scroll-snap-type: x mandatory;
}

.strip-item {
    flex: 0 0 315px;
    scroll-snap-align: start;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(232, 221, 201, 0.8);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sand);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--stone-200);
}

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

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

.type-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose-500), var(--purple-600));
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: auto;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
}

.play-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose-600);
    background: rgba(0, 0, 0, 0.18);
    font-size: 38px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card:hover .play-hover {
    opacity: 1;
}

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

.movie-card h3 {
    margin: 0 0 8px;
    color: var(--stone-800);
    font-size: 18px;
    line-height: 1.35;
}

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

.movie-meta {
    margin: 0 0 10px;
    color: var(--stone-500);
    font-size: 13px;
}

.movie-desc {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--stone-700);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-list span,
.pill-list a,
.pill-list span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--rose-600);
    background: #fff1f2;
    font-size: 12px;
    font-weight: 700;
}

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

.category-tile {
    min-height: 178px;
    padding: 24px;
    border: 1px solid rgba(232, 221, 201, 0.78);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ffffff, #fff7f8 58%, #faf5ff);
    box-shadow: var(--shadow-sand);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile h2,
.category-tile h3 {
    margin: 0 0 10px;
    color: var(--stone-800);
    font-size: 22px;
}

.category-tile p {
    margin: 0;
    color: var(--stone-500);
    line-height: 1.75;
}

.page-hero {
    padding: 128px 0 64px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--stone-900), #3d164d 54%, var(--rose-600));
}

.page-hero h1 {
    max-width: 850px;
    margin: 18px 0 14px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.85;
}

.search-panel {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sand);
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--sand-200);
    border-radius: 999px;
    outline: none;
    padding: 0 16px;
    color: var(--stone-800);
    background: var(--sand-50);
    font: inherit;
}

.empty-state {
    display: none;
    padding: 42px;
    border-radius: var(--radius-lg);
    color: var(--stone-500);
    background: #ffffff;
    text-align: center;
    box-shadow: var(--shadow-sand);
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 72px 120px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sand);
}

.rank-number {
    color: var(--rose-600);
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 120px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    background: var(--stone-200);
}

.rank-row h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.rank-row p {
    margin: 0;
    color: var(--stone-500);
    line-height: 1.7;
}

.detail-page {
    padding-top: 92px;
    background: linear-gradient(180deg, #1d1a18 0, #1d1a18 520px, var(--sand-50) 520px);
}

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

.breadcrumbs a:hover {
    color: #ffffff;
}

.detail-hero {
    color: #ffffff;
}

.detail-title {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
}

.detail-lead {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.85;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 28px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 800;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: 0 35px 80px -30px rgba(0, 0, 0, 0.75);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(244, 63, 94, 0.24), rgba(0, 0, 0, 0.52)), rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-play-icon {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    color: var(--rose-600);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-desert);
    font-size: 42px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
    padding: 34px 0 70px;
}

.article-box,
.side-box {
    border: 1px solid rgba(232, 221, 201, 0.86);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sand);
}

.article-box {
    padding: 30px;
}

.article-box h2,
.side-box h2 {
    margin: 0 0 16px;
    color: var(--stone-800);
    font-size: 24px;
}

.article-box p {
    margin: 0 0 20px;
    color: var(--stone-700);
    font-size: 16px;
    line-height: 2;
}

.side-box {
    padding: 20px;
}

.side-link {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--stone-100);
}

.side-link:last-child {
    border-bottom: 0;
}

.side-link img {
    width: 88px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    background: var(--stone-200);
}

.side-link strong {
    display: block;
    margin-bottom: 5px;
    color: var(--stone-800);
    font-size: 14px;
    line-height: 1.35;
}

.side-link span {
    color: var(--stone-500);
    font-size: 12px;
}

.site-footer {
    color: #ffffff;
    background: var(--stone-900);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 38px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 44px;
}

.footer-brand p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.8;
}

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

.footer-links h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 15px;
}

.footer-links a {
    display: block;
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
}

.footer-links a:hover {
    color: #fb7185;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
}

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

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

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

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

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

    .header-inner {
        height: 66px;
    }

    .brand-copy small {
        display: none;
    }

    .hero-section {
        padding-top: 104px;
    }

    .hero-search {
        border-radius: 22px;
        flex-direction: column;
    }

    .hero-search input {
        min-height: 44px;
    }

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

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

    .hero-slide-shade {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.82));
    }

    .hero-dots {
        left: 24px;
        right: auto;
    }

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

    .card-grid,
    .card-grid.three,
    .card-grid.wide,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .strip-item {
        flex-basis: 82vw;
    }

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

    .rank-row {
        grid-template-columns: 54px 90px 1fr;
    }

    .rank-row .button-primary {
        grid-column: 1 / -1;
        width: 100%;
    }

    .rank-row img {
        width: 90px;
    }

    .detail-page {
        padding-top: 82px;
    }

    .article-box {
        padding: 22px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
