:root {
    --sand-50: #faf8f3;
    --sand-100: #f5f0e6;
    --sand-200: #e8ddc4;
    --sand-300: #dbc5a0;
    --sand-400: #c9a876;
    --sand-500: #b8895a;
    --sand-600: #a3744c;
    --sand-700: #885e40;
    --sand-800: #6f4d38;
    --sand-900: #5b4030;
    --desert-50: #fef9f0;
    --desert-100: #fdf2e0;
    --desert-300: #f6cd9a;
    --desert-400: #f1b070;
    --desert-500: #ec944f;
    --desert-600: #d97935;
    --desert-700: #b5602a;
    --ink: #2a1c14;
    --muted: #7a6758;
    --paper: #ffffff;
    --line: rgba(136, 94, 64, 0.18);
    --shadow: 0 22px 60px rgba(91, 64, 48, 0.16);
    --shadow-soft: 0 12px 32px rgba(91, 64, 48, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

main {
    min-height: 70vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, var(--sand-700), var(--desert-700));
    color: var(--sand-50);
    box-shadow: 0 8px 30px rgba(91, 64, 48, 0.25);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(253, 242, 224, 0.16);
    color: var(--desert-300);
    box-shadow: inset 0 0 0 1px rgba(253, 242, 224, 0.25);
    transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(6deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    padding: 9px 13px;
    border-radius: 12px;
    color: var(--sand-100);
    font-size: 14px;
    font-weight: 650;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    background: rgba(245, 240, 230, 0.16);
    color: #ffffff;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(245, 240, 230, 0.12);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: var(--sand-50);
}

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

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    background:
        radial-gradient(circle at 15% 15%, rgba(241, 176, 112, 0.32), transparent 30%),
        linear-gradient(135deg, var(--sand-800), var(--sand-900) 55%, #22130e);
    color: var(--sand-50);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 48px;
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
    padding: 68px 0 86px;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(253, 242, 224, 0.12);
    color: var(--desert-300);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-content h1 {
    max-width: 680px;
    margin: 22px 0 16px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.hero-content p {
    max-width: 650px;
    margin: 0 0 24px;
    color: var(--sand-200);
    font-size: 18px;
}

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

.hero-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--sand-100);
    font-size: 13px;
    font-weight: 700;
}

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

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

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

.button-primary {
    background: var(--desert-600);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(217, 121, 53, 0.36);
}

.button-primary:hover {
    background: var(--desert-700);
}

.button-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: var(--sand-50);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-visual {
    position: relative;
    min-height: 460px;
}

.hero-card {
    position: absolute;
    inset: 0;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
    transform: rotate(1.5deg);
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.72)),
        radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.22), transparent 26%);
}

.hero-side-card {
    position: absolute;
    right: -18px;
    bottom: 32px;
    width: 58%;
    min-height: 150px;
    padding: 20px;
    border: 1px solid rgba(253, 242, 224, 0.26);
    border-radius: 24px;
    background: rgba(91, 64, 48, 0.74);
    backdrop-filter: blur(18px);
    color: var(--sand-100);
    box-shadow: var(--shadow);
}

.hero-side-card strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 18px;
}

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

.hero-dot {
    width: 36px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
}

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

.section {
    padding: 56px 0;
}

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

.section-kicker {
    color: var(--desert-600);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-heading h2 {
    margin: 4px 0 0;
    color: var(--sand-900);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 900;
}

.section-heading p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--muted);
}

.section-link {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--desert-100);
    color: var(--desert-700);
    font-weight: 800;
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

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

.category-tile {
    position: relative;
    min-height: 178px;
    overflow: hidden;
    padding: 22px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 100% 0, rgba(236, 148, 79, 0.32), transparent 35%),
        linear-gradient(135deg, #ffffff, var(--sand-100));
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(136, 94, 64, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--desert-100);
    color: var(--desert-700);
    font-weight: 800;
    font-size: 13px;
}

.category-tile h3 {
    margin: 0 0 8px;
    color: var(--sand-900);
    font-size: 22px;
}

.category-tile p {
    margin: 0;
    color: var(--muted);
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(136, 94, 64, 0.13);
    border-radius: var(--radius-xl);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(217, 121, 53, 0.35);
    box-shadow: var(--shadow);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--sand-100);
}

.movie-cover img {
    transition: transform 0.45s ease;
}

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

.cover-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55));
}

.card-badge,
.score-pill {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.card-badge {
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    background: rgba(91, 64, 48, 0.78);
    color: var(--sand-50);
}

.score-pill {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: rgba(217, 121, 53, 0.92);
    color: #ffffff;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--sand-600);
    font-size: 12px;
    font-weight: 800;
}

.movie-meta span,
.movie-meta a {
    display: inline-flex;
    align-items: center;
}

.movie-meta span:not(:last-child)::after,
.movie-meta a:not(:last-child)::after {
    content: "";
    width: 4px;
    height: 4px;
    margin-left: 8px;
    border-radius: 50%;
    background: var(--sand-300);
}

.movie-card h3,
.ranking-content h3 {
    margin: 8px 0 8px;
    color: var(--sand-900);
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card h3 a:hover,
.ranking-content h3 a:hover {
    color: var(--desert-700);
}

.movie-card p,
.ranking-content p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

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

.tag {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--sand-100);
    color: var(--sand-700);
    font-size: 12px;
    font-weight: 750;
}

.movie-card-wide {
    display: grid;
    grid-template-columns: 40% 1fr;
}

.movie-card-wide .movie-cover {
    aspect-ratio: auto;
    min-height: 260px;
}

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

.movie-card-compact h3 {
    font-size: 17px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 160px 160px;
    gap: 12px;
    margin: 0 0 28px;
    padding: 18px;
    border: 1px solid rgba(136, 94, 64, 0.12);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid rgba(136, 94, 64, 0.16);
    border-radius: 14px;
    background: #ffffff;
}

.search-box span {
    color: var(--desert-600);
    font-size: 20px;
}

.search-box input,
.filter-panel select {
    width: 100%;
    height: 48px;
    border: 0;
    outline: 0;
    background: #ffffff;
    color: var(--sand-900);
    font: inherit;
}

.filter-panel select {
    padding: 0 12px;
    border: 1px solid rgba(136, 94, 64, 0.16);
    border-radius: 14px;
}

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

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

.page-hero {
    padding: 58px 0;
    background:
        radial-gradient(circle at 80% 0, rgba(236, 148, 79, 0.28), transparent 32%),
        linear-gradient(135deg, var(--sand-800), var(--sand-900));
    color: var(--sand-50);
}

.page-hero .page-shell {
    display: grid;
    gap: 10px;
}

.page-hero span {
    color: var(--desert-300);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.page-hero h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    font-weight: 950;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--sand-200);
    font-size: 17px;
}

.ranking-list {
    display: grid;
    gap: 16px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 96px 58px minmax(0, 1fr) 110px;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(136, 94, 64, 0.12);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.ranking-cover {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: var(--sand-100);
}

.ranking-number {
    color: var(--desert-600);
    font-size: 30px;
    font-weight: 950;
}

.ranking-score {
    justify-self: end;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--desert-100);
    color: var(--desert-700);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.detail-hero {
    background:
        radial-gradient(circle at 15% 0, rgba(241, 176, 112, 0.28), transparent 30%),
        linear-gradient(135deg, var(--sand-900), #24150f);
    color: var(--sand-50);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    padding: 56px 0;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 32px;
    background: var(--sand-100);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.detail-info h1 {
    margin: 14px 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.detail-info p {
    max-width: 780px;
    margin: 0 0 18px;
    color: var(--sand-200);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--desert-300);
    font-weight: 800;
    font-size: 14px;
}

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

.player-section {
    padding: 54px 0 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: var(--shadow);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.48));
    color: #ffffff;
    cursor: pointer;
}

.player-start span {
    display: inline-grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: rgba(217, 121, 53, 0.92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
    font-size: 34px;
    transform: translateZ(0);
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-start:hover span {
    background: var(--desert-700);
    transform: scale(1.05);
}

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

.content-card {
    padding: 30px;
    border: 1px solid rgba(136, 94, 64, 0.12);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.content-card h2 {
    margin: 0 0 12px;
    color: var(--sand-900);
    font-size: 28px;
    font-weight: 950;
}

.content-card p {
    margin: 0 0 14px;
    color: #4d3c31;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    padding: 24px 0 58px;
}

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

.side-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(136, 94, 64, 0.10);
}

.side-card img {
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    background: var(--sand-100);
}

.side-card h3 {
    margin: 2px 0 6px;
    color: var(--sand-900);
    font-size: 15px;
    line-height: 1.35;
}

.side-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    padding: 42px 0;
    background: var(--sand-900);
    color: var(--sand-200);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 14px;
    text-align: center;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a:hover {
    color: var(--desert-300);
}

.footer-inner p {
    margin: 0;
    color: var(--sand-300);
}

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        align-content: center;
    }

    .hero-visual {
        min-height: 340px;
    }

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

@media (max-width: 820px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 20px;
        background: rgba(91, 64, 48, 0.96);
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 14px;
    }

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

    .hero-slide {
        padding: 42px 0 86px;
    }

    .hero-content h1 {
        font-size: 44px;
    }

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

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

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

    .ranking-item {
        grid-template-columns: 78px 1fr;
    }

    .ranking-number {
        position: absolute;
        margin: -22px 0 0 -8px;
        color: rgba(217, 121, 53, 0.2);
        font-size: 58px;
    }

    .ranking-score {
        justify-self: start;
        grid-column: 2;
    }

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

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

@media (max-width: 560px) {
    .page-shell,
    .nav-shell,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .brand {
        font-size: 18px;
    }

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

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-side-card {
        right: 8px;
        left: 8px;
        width: auto;
    }

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

    .section {
        padding: 42px 0;
    }

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

    .ranking-item {
        grid-template-columns: 70px 1fr;
        gap: 12px;
    }

    .content-card {
        padding: 22px;
    }

    .side-card {
        grid-template-columns: 74px 1fr;
    }
}
