:root {
    --cream-50: #fefdfb;
    --tea-50: #fdf8f3;
    --tea-100: #fbeeef;
    --tea-400: #eca368;
    --tea-600: #d9703c;
    --tea-700: #b45833;
    --warm-50: #faf5f0;
    --warm-100: #f5ebe0;
    --warm-200: #e8d4be;
    --warm-300: #d9b896;
    --warm-500: #be8350;
    --warm-600: #a86d44;
    --warm-700: #8b583a;
    --warm-800: #714834;
    --warm-900: #5d3d2d;
    --ink: #241610;
    --muted: #7a6254;
    --white: #ffffff;
    --black: #000000;
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
    --shadow-strong: 0 10px 40px -10px rgba(0, 0, 0, 0.16), 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: linear-gradient(180deg, var(--cream-50), var(--white));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(245, 235, 224, 0.86);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--warm-900);
    letter-spacing: 0.04em;
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--tea-600), var(--warm-600));
    box-shadow: var(--shadow-soft);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--warm-700);
    font-size: 15px;
    font-weight: 600;
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--tea-600);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--warm-200);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--warm-800);
    background: var(--white);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border: 1px solid var(--warm-100);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.mobile-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--warm-700);
    font-weight: 700;
}

.mobile-nav a:hover {
    color: var(--tea-700);
    background: var(--tea-50);
}

.mobile-nav.is-open {
    display: block;
}

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

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.16)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.10) 52%, rgba(0, 0, 0, 0.34));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 70vh;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    padding: 80px 0 92px;
}

.hero-copy {
    width: min(680px, 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--tea-400);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin: 0 0 18px;
    font-family: Georgia, Cambria, "Times New Roman", "Microsoft YaHei", serif;
    font-size: clamp(40px, 7vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero p {
    width: min(620px, 100%);
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
}

.pill-list span,
.card-tags span,
.meta-pill,
.rank-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.pill-list span {
    padding: 7px 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 22px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: var(--tea-600);
    font-weight: 800;
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 16px 36px rgba(217, 112, 60, 0.28);
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--tea-700);
    box-shadow: 0 18px 40px rgba(217, 112, 60, 0.38);
}

.btn.btn-light {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.btn.btn-light:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-control {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.36);
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.58);
}

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

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

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

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

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

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

.section-tight {
    padding: 34px 0;
}

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

.section-kicker {
    margin: 0 0 6px;
    color: var(--tea-600);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.section-title {
    margin: 0;
    color: var(--warm-900);
    font-family: Georgia, Cambria, "Times New Roman", "Microsoft YaHei", serif;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.section-desc {
    max-width: 780px;
    margin: 10px 0 0;
    color: var(--muted);
}

.link-more {
    flex: 0 0 auto;
    color: var(--tea-700);
    font-weight: 800;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    margin: 24px 0 30px;
    padding: 18px;
    border: 1px solid var(--warm-100);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.search-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--warm-200);
    border-radius: 999px;
    padding: 0 18px;
    color: var(--warm-900);
    background: var(--white);
    outline: none;
}

.search-input:focus {
    border-color: var(--tea-400);
    box-shadow: 0 0 0 4px rgba(217, 112, 60, 0.12);
}

.search-hint {
    color: var(--warm-600);
    font-size: 14px;
    font-weight: 700;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--warm-100);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: var(--tea-400);
    box-shadow: var(--shadow-strong);
}

.movie-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--warm-100);
}

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

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 52%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0));
}

.movie-year {
    position: absolute;
    z-index: 2;
    left: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.46);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(6px);
}

.movie-body {
    padding: 18px;
}

.movie-body h3 {
    margin: 0 0 8px;
    color: var(--warm-900);
    font-size: 18px;
    line-height: 1.35;
}

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

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.card-tags span {
    padding: 4px 9px;
    color: var(--tea-700);
    background: var(--tea-50);
}

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

.category-card {
    min-height: 158px;
    padding: 22px;
    border: 1px solid var(--warm-100);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at top right, rgba(236, 163, 104, 0.20), transparent 36%),
        linear-gradient(135deg, var(--white), var(--tea-50));
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card h3 {
    margin: 0 0 9px;
    color: var(--warm-900);
    font-size: 20px;
}

.category-card p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
}

.category-card span {
    color: var(--tea-700);
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 108px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--warm-100);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.rank-badge {
    width: 52px;
    height: 52px;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--tea-600), var(--warm-600));
    font-size: 18px;
}

.rank-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    background: var(--warm-100);
}

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

.rank-info h3 {
    margin: 0 0 7px;
    color: var(--warm-900);
    font-size: 17px;
}

.rank-info p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.page-hero {
    padding: 78px 0 44px;
    background:
        radial-gradient(circle at 18% 18%, rgba(217, 112, 60, 0.20), transparent 36%),
        linear-gradient(135deg, var(--tea-50), var(--cream-50));
}

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

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

.page-hero h1 {
    margin: 0;
    color: var(--warm-900);
    font-family: Georgia, Cambria, "Times New Roman", "Microsoft YaHei", serif;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
    gap: 28px;
    align-items: start;
}

.player-card,
.detail-card,
.side-card {
    border: 1px solid var(--warm-100);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.player-card {
    overflow: hidden;
}

.player-wrap {
    position: relative;
    background: var(--black);
    aspect-ratio: 16 / 9;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--black);
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, rgba(217, 112, 60, 0.22), transparent 38%),
        rgba(0, 0, 0, 0.50);
    transition: opacity 0.2s ease;
}

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

.play-button {
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--tea-600), var(--warm-600));
    font-size: 28px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: scale(1.06);
}

.detail-card {
    padding: 28px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 14px;
    color: var(--warm-900);
    font-size: 24px;
}

.detail-card p {
    margin: 0 0 18px;
    color: var(--muted);
}

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

.meta-pill {
    padding: 6px 11px;
    color: var(--warm-800);
    background: var(--warm-50);
    border: 1px solid var(--warm-100);
}

.side-card {
    padding: 20px;
}

.related-list {
    display: grid;
    gap: 12px;
}

.related-item {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.related-item:hover {
    background: var(--tea-50);
}

.related-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: var(--warm-100);
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info h3 {
    margin: 0 0 5px;
    color: var(--warm-900);
    font-size: 15px;
    line-height: 1.35;
}

.related-info p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    margin-top: 36px;
    padding: 40px 0;
    color: var(--warm-200);
    background: var(--warm-900);
}

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

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
}

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

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

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

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

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .navbar {
        min-height: 64px;
    }

    .nav-links {
        display: none;
    }

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

    .hero,
    .hero-content {
        min-height: 640px;
    }

    .hero-content {
        padding: 82px 0 80px;
    }

    .hero-control {
        display: none;
    }

    .section {
        padding: 46px 0;
    }

    .section-head,
    .search-panel {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

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

    .rank-item {
        grid-template-columns: 52px 86px 1fr;
        gap: 12px;
    }

    .rank-badge {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .detail-card,
    .side-card {
        padding: 20px;
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .related-item {
        grid-template-columns: 86px 1fr;
    }

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

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