: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-100: #fae9d1;
    --dune-500: #d97c1e;
    --dune-600: #c05f14;
    --white: #ffffff;
    --ink: #24180d;
    --shadow: 0 12px 30px rgba(74, 50, 24, 0.12);
    --shadow-lg: 0 24px 60px rgba(74, 50, 24, 0.22);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

img {
    display: block;
    max-width: 100%;
    background: linear-gradient(135deg, var(--sand-200), var(--dune-100));
}

button,
input,
select {
    font: inherit;
}

[hidden] {
    display: none !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(221, 201, 163, 0.65);
    box-shadow: 0 8px 24px rgba(74, 50, 24, 0.08);
    backdrop-filter: blur(16px);
}

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

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

.brand-mark {
    width: 40px;
    height: 40px;
    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 8px 18px rgba(192, 95, 20, 0.28);
}

.brand-text {
    font-size: 1.25rem;
    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;
}

.nav-link {
    color: var(--sand-700);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--sand-100);
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

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

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

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

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--sand-900);
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    line-height: 1.25;
}

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

.section-intro {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--sand-600);
}

.text-link {
    color: var(--dune-600);
    font-weight: 800;
}

.hero {
    position: relative;
    min-height: clamp(540px, 72vw, 720px);
    overflow: hidden;
    background: var(--sand-900);
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(217, 124, 30, 0.35), transparent 32%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.34) 52%, rgba(0, 0, 0, 0.1));
}

.hero-copy {
    position: absolute;
    left: 50%;
    bottom: 84px;
    width: min(1280px, calc(100% - 32px));
    transform: translateX(-50%);
    color: var(--white);
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 780px;
    margin: 16px 0;
    font-size: clamp(2rem, 5.4vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    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 14px 28px rgba(192, 95, 20, 0.32);
}

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

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

.btn-ghost {
    color: var(--sand-800);
    background: var(--sand-100);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transform: translateY(-50%);
}

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

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

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

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

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

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

.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    color: var(--sand-700);
    background: var(--sand-100);
    font-size: 0.78rem;
    font-weight: 700;
}

.tag-glass {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

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

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

.movie-card,
.category-card,
.feature-card,
.detail-card,
.side-card,
.search-panel,
.player-card {
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover,
.category-card:hover,
.feature-card:hover,
.media-row:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.poster-wrap {
    position: relative;
    display: block;
    height: 190px;
    overflow: hidden;
    background: var(--sand-200);
}

.poster-wrap img,
.feature-card img,
.media-thumb img,
.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img,
.feature-card:hover img,
.media-row:hover img,
.related-link:hover img {
    transform: scale(1.08);
}

.view-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.68);
    font-size: 0.76rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.movie-card-body {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.movie-card-body strong {
    color: var(--sand-900);
    font-size: 1.08rem;
    line-height: 1.35;
}

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

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

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

.feature-row {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scrollbar-width: none;
}

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

.feature-row .movie-card {
    width: 320px;
    flex: 0 0 320px;
}

.feature-card {
    position: relative;
    display: block;
    min-height: 460px;
    overflow: hidden;
    color: var(--white);
}

.feature-card img,
.feature-shade {
    position: absolute;
    inset: 0;
}

.feature-shade {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.2));
}

.feature-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    gap: 10px;
    padding: 26px;
}

.feature-info strong {
    font-size: clamp(1.45rem, 2.7vw, 2.35rem);
    line-height: 1.18;
}

.feature-info span,
.feature-info em {
    color: rgba(255, 255, 255, 0.86);
    font-style: normal;
}

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

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

.category-card {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid rgba(221, 201, 163, 0.7);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--dune-500), var(--dune-600));
    font-size: 1.2rem;
    font-weight: 900;
}

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

.category-card p {
    margin: 0;
    color: var(--sand-600);
}

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

.media-row {
    display: grid;
    grid-template-columns: auto 112px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-index {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--dune-500), var(--dune-600));
    font-weight: 900;
}

.media-thumb {
    width: 112px;
    height: 78px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--sand-200);
}

.media-row-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.media-row-copy strong,
.media-row-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-row-copy span {
    color: var(--sand-600);
    font-size: 0.92rem;
}

.media-row-copy em {
    color: var(--sand-500);
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 800;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
    gap: 28px;
}

.search-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid rgba(221, 201, 163, 0.7);
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 190px));
    gap: 12px;
}

.search-input,
.filter-select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--sand-300);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--sand-900);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.no-results {
    padding: 36px;
    border-radius: var(--radius);
    color: var(--sand-600);
    background: var(--sand-100);
    text-align: center;
    font-weight: 800;
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

.detail-main {
    display: grid;
    gap: 22px;
}

.player-card {
    overflow: hidden;
    background: #000000;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000000;
}

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(217, 124, 30, 0.26), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-symbol {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dune-500), var(--dune-600));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    font-size: 1.6rem;
    padding-left: 4px;
}

.player-overlay span:last-child {
    font-size: 1.08rem;
    font-weight: 900;
}

.player-error {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    padding: 12px 18px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.72);
    transform: translate(-50%, -50%);
    font-weight: 800;
}

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

.detail-card h1 {
    margin: 14px 0 18px;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--sand-200);
    color: var(--sand-600);
    font-weight: 800;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 12px;
    color: var(--sand-900);
    font-size: 1.25rem;
}

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

.review-card {
    background: linear-gradient(135deg, var(--dune-50), var(--sand-50));
}

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

.related-link {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 12px;
    align-items: center;
}

.related-thumb {
    height: 76px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--sand-200);
}

.related-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.related-copy strong,
.related-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-copy span {
    color: var(--sand-500);
    font-size: 0.8rem;
    font-weight: 800;
}

.sticky-side {
    position: sticky;
    top: 92px;
}

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

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

.footer-grid p {
    max-width: 520px;
    color: var(--sand-700);
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 1.1rem;
}

.footer-links {
    display: grid;
    gap: 9px;
    color: var(--sand-700);
    font-weight: 700;
}

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

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

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: var(--sand-700);
    border-top: 1px solid rgba(143, 98, 53, 0.18);
    font-weight: 700;
}

.page-hero {
    background:
        radial-gradient(circle at 18% 0%, rgba(217, 124, 30, 0.18), transparent 34%),
        linear-gradient(180deg, #ffffff, var(--sand-50));
    border-bottom: 1px solid rgba(221, 201, 163, 0.6);
}

.page-hero .section-container {
    padding-top: 48px;
    padding-bottom: 34px;
}

.page-hero h1 {
    max-width: 920px;
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.14;
    letter-spacing: -0.04em;
}

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

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

    .mobile-toggle {
        display: inline-block;
    }

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

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

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

    .sticky-side {
        position: static;
    }
}

@media (max-width: 760px) {
    .nav-shell {
        height: 60px;
    }

    .hero {
        min-height: 610px;
    }

    .hero-copy {
        bottom: 74px;
    }

    .hero-control {
        top: auto;
        bottom: 24px;
        transform: none;
    }

    .hero-dots {
        bottom: 30px;
    }

    .section-head {
        display: grid;
        align-items: start;
    }

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

    .poster-wrap {
        height: 168px;
    }

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

    .media-row {
        grid-template-columns: auto 92px 1fr;
    }

    .media-thumb {
        width: 92px;
        height: 66px;
    }

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

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

    .feature-row .movie-card {
        width: 280px;
        flex-basis: 280px;
    }

    .poster-wrap {
        height: 210px;
    }

    .related-link {
        grid-template-columns: 96px 1fr;
    }

    .related-thumb {
        height: 68px;
    }
}
