:root {
    --sand-50: #faf8f3;
    --sand-100: #f5f0e6;
    --sand-200: #ebe2cd;
    --sand-300: #ddc9a3;
    --sand-500: #c49a5c;
    --sand-600: #b07d44;
    --sand-700: #8f6235;
    --sand-800: #6d4a29;
    --sand-900: #4a3218;
    --dune-50: #fdf6ed;
    --dune-500: #d97c1e;
    --dune-600: #c05f14;
    --dune-700: #9c4613;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 22px 55px rgba(74, 50, 24, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--sand-900);
    background: linear-gradient(180deg, var(--sand-50), #ffffff 45%, var(--sand-100));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(221, 201, 163, 0.7);
    box-shadow: 0 10px 35px rgba(74, 50, 24, 0.08);
    backdrop-filter: blur(14px);
}

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

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

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--dune-500), var(--dune-600));
    box-shadow: 0 14px 28px rgba(192, 95, 20, 0.26);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--sand-700);
    font-weight: 650;
}

.nav-link {
    position: relative;
    padding: 8px 0;
    transition: color 0.2s 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: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--dune-500), var(--sand-500));
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--sand-100);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: var(--sand-800);
}

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

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

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

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

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

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 28%, rgba(217, 124, 30, 0.32), transparent 28%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.45) 54%, rgba(0, 0, 0, 0.78)),
        linear-gradient(0deg, rgba(74, 50, 24, 0.64), transparent 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 52px;
    padding: 80px 0;
}

.hero-copy {
    color: var(--white);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #ffe5bd;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-feature-title {
    margin: 18px 0 0;
    color: #ffe5bd;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 850;
}

.hero-desc,
.page-hero p,
.detail-one-line {
    max-width: 780px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    padding: 8px 13px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(6px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.btn-primary,
.btn-ghost,
.text-link {
    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;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--dune-500), var(--dune-600));
    box-shadow: 0 16px 30px rgba(192, 95, 20, 0.32);
}

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

.btn-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-poster {
    display: block;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: inherit;
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-size: 38px;
    line-height: 1;
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.search-card,
.ranking-feature,
.text-panel,
.category-overview-card,
.channel-nav {
    border: 1px solid rgba(221, 201, 163, 0.72);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.search-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: center;
    gap: 28px;
    padding: 28px;
}

.search-card h2,
.section-heading h2,
.ranking-feature h2,
.text-panel h2,
.channel-nav h2 {
    margin: 0;
    color: var(--sand-900);
    font-size: 28px;
    font-weight: 900;
}

.search-card p,
.section-heading p,
.ranking-feature p,
.category-overview-body p,
.channel-nav p {
    margin: 8px 0 0;
    color: var(--sand-700);
    line-height: 1.75;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: 1px solid var(--sand-300);
    border-radius: 999px;
    background: var(--sand-50);
}

.search-box span {
    color: var(--dune-600);
    font-weight: 850;
}

.search-box input {
    width: 100%;
    min-height: 38px;
    border: 0;
    outline: 0;
    color: var(--sand-900);
    background: transparent;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 28px;
}

.section-mark {
    width: 6px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--dune-500), var(--dune-600));
}

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

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

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 310px;
    gap: 22px;
    margin: 0 -16px;
    padding: 0 16px 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
    display: none;
}

.movie-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(74, 50, 24, 0.11);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 42px rgba(74, 50, 24, 0.18);
}

.movie-card.is-hidden {
    display: none;
}

.movie-card-link {
    display: block;
    height: 100%;
}

.poster-frame {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: var(--sand-200);
}

.compact-card .poster-frame {
    height: 250px;
}

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

.movie-card:hover .poster-frame img {
    transform: scale(1.07);
}

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.poster-year,
.poster-type,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 850;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(6px);
}

.poster-year {
    left: 12px;
    top: 12px;
}

.poster-type {
    right: 12px;
    top: 12px;
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    color: var(--sand-900);
    background: #ffe5bd;
}

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

.movie-card-body h3 {
    margin: 0;
    color: var(--sand-900);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body p {
    min-height: 48px;
    margin: 10px 0 0;
    color: var(--sand-700);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    color: var(--sand-600);
    font-size: 13px;
    font-weight: 700;
}

.tag-row {
    margin-top: 14px;
}

.tag-row span {
    padding: 5px 9px;
    color: var(--dune-700);
    background: var(--dune-50);
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    color: var(--white);
    box-shadow: var(--shadow);
}

.category-tile img,
.category-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-tile img {
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-shade {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
}

.category-tile strong,
.category-tile p {
    position: relative;
    z-index: 2;
}

.category-tile strong {
    font-size: 23px;
    font-weight: 900;
}

.category-tile p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-entry {
    padding-top: 34px;
}

.ranking-feature {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 36px;
    padding: 36px;
    background:
        radial-gradient(circle at 20% 20%, rgba(217, 124, 30, 0.18), transparent 30%),
        linear-gradient(135deg, var(--sand-900), #24180d);
    color: var(--white);
}

.ranking-feature h2,
.ranking-feature p {
    color: var(--white);
}

.ranking-feature .btn-primary {
    margin-top: 24px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.18);
}

.ranking-row span {
    color: #ffe5bd;
    font-weight: 900;
}

.ranking-row strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-row em {
    color: rgba(255, 255, 255, 0.72);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 72% 24%, rgba(217, 124, 30, 0.38), transparent 32%),
        linear-gradient(135deg, var(--sand-900), #1f140a 72%);
}

.small-hero {
    min-height: 330px;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 700;
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    overflow: hidden;
}

.category-cover img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.category-overview-body {
    padding: 24px;
}

.category-overview-body h2 {
    margin: 0;
    color: var(--sand-900);
    font-size: 26px;
    font-weight: 900;
}

.sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.sample-links a {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--sand-800);
    background: var(--sand-100);
    font-size: 13px;
    font-weight: 700;
}

.text-link {
    min-height: 40px;
    color: var(--dune-700);
    background: var(--dune-50);
}

.channel-nav {
    padding: 28px;
}

.channel-nav div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.channel-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--sand-800);
    background: var(--sand-100);
    font-weight: 800;
}

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

.detail-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 84% 20%, rgba(217, 124, 30, 0.26), transparent 28%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.5);
}

.detail-poster img {
    width: 100%;
    height: 470px;
    object-fit: cover;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    font-weight: 800;
}

.detail-section {
    padding-top: 38px;
    padding-bottom: 28px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: var(--black);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.player-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: var(--black);
}

.play-toggle {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18));
    cursor: pointer;
}

.play-toggle span {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    background: linear-gradient(135deg, var(--dune-500), var(--dune-600));
    box-shadow: 0 20px 45px rgba(192, 95, 20, 0.36);
    font-size: 34px;
}

.player-card.is-playing .play-toggle {
    opacity: 0;
    pointer-events: none;
}

.text-panel {
    padding: 32px;
}

.text-panel h2 + p {
    margin-top: 12px;
}

.text-panel h2:not(:first-child) {
    margin-top: 28px;
}

.text-panel p {
    margin: 0;
    color: var(--sand-800);
    font-size: 18px;
    line-height: 2;
}

.site-footer {
    margin-top: 64px;
    background: linear-gradient(180deg, var(--sand-100), var(--sand-200));
    border-top: 1px solid var(--sand-300);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 36px;
    padding: 48px 0;
}

.footer-brand p {
    max-width: 460px;
    margin: 16px 0 0;
    color: var(--sand-700);
    line-height: 1.8;
}

.footer-links h2 {
    margin: 0 0 18px;
    color: var(--sand-900);
    font-size: 18px;
    font-weight: 900;
}

.footer-link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-link-grid a {
    color: var(--sand-700);
    font-weight: 700;
}

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

.footer-bottom {
    border-top: 1px solid var(--sand-300);
    padding: 20px 16px;
    color: var(--sand-600);
    text-align: center;
    font-size: 14px;
}

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

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .hero-poster img {
        height: 430px;
    }
}

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

    .menu-button {
        display: block;
    }

    .header-inner {
        height: 66px;
    }

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

    .hero-content,
    .detail-grid,
    .search-card,
    .ranking-feature,
    .category-overview-card,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        width: min(320px, 100%);
        transform: rotate(0deg);
    }

    .hero-poster img {
        height: 420px;
    }

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

    .ranking-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .ranking-row em {
        grid-column: 2;
    }

    .detail-poster {
        width: min(320px, 100%);
    }
}

@media (max-width: 620px) {
    .section-container,
    .header-inner,
    .hero-content,
    .page-hero-inner,
    .detail-inner,
    .footer-inner {
        width: min(100% - 24px, 1280px);
    }

    .logo-text {
        font-size: 18px;
    }

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

    .hero-content {
        padding: 54px 0 84px;
        gap: 28px;
    }

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

    .hero-desc,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-arrow {
        display: none;
    }

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

    .poster-frame,
    .compact-card .poster-frame {
        height: 360px;
    }

    .search-card,
    .ranking-feature,
    .text-panel,
    .channel-nav {
        padding: 22px;
    }

    .detail-poster img {
        height: 430px;
    }

    .play-toggle span {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
