:root {
    --sand-50: #faf8f3;
    --sand-100: #f5f0e6;
    --sand-200: #ece0c8;
    --sand-300: #dcc493;
    --sand-400: #c9a876;
    --sand-600: #a3774c;
    --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: #2b211c;
    --muted: #77685c;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(91, 64, 48, 0.16);
    --soft-shadow: 0 10px 26px rgba(91, 64, 48, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

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

.top-nav {
    width: min(var(--container), calc(100% - 32px));
    min-height: 66px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

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

.brand span {
    font-size: 21px;
    white-space: nowrap;
}

.logo-icon {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: var(--desert-300);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
}

.brand:hover .logo-icon {
    transform: scale(1.08) rotate(-2deg);
}

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

.nav-link,
.mobile-link {
    border-radius: 12px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 650;
    color: rgba(250, 248, 243, 0.92);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.nav-search,
.mobile-search,
.large-search {
    display: flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-search input,
.mobile-search input,
.large-search input {
    min-width: 190px;
    border: 0;
    outline: 0;
    color: inherit;
    background: transparent;
    padding: 8px 12px;
}

.nav-search input::placeholder,
.mobile-search input::placeholder,
.large-search input::placeholder {
    color: rgba(250, 248, 243, 0.72);
}

.nav-search button,
.mobile-search button,
.large-search button {
    border: 0;
    border-radius: 999px;
    background: var(--desert-500);
    color: #fff;
    padding: 8px 15px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.large-search button:hover {
    background: var(--desert-600);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.13);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #fff;
}

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

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

.mobile-links {
    display: grid;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(245, 240, 230, 0.16);
}

.mobile-search {
    margin-top: 10px;
}

.mobile-search input {
    min-width: 0;
    width: 100%;
}

.quick-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.quick-cats a {
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--desert-100);
    background: rgba(255, 255, 255, 0.12);
    font-size: 13px;
}

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

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

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

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

.hero-image,
.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 18%, rgba(241, 176, 112, 0.32), transparent 26%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42) 50%, rgba(0, 0, 0, 0.18));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--container), calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
    padding: 80px 0 96px;
}

.hero-kicker,
.detail-kicker,
.page-hero span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--desert-300);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.hero-content p {
    max-width: 680px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.card-tags,
.category-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags span,
.hero-tags a,
.card-tags span,
.category-links-row a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--desert-100);
    background: rgba(136, 94, 64, 0.78);
    border: 1px solid rgba(253, 242, 224, 0.18);
    font-size: 13px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

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

.btn.primary {
    color: #fff;
    background: linear-gradient(90deg, var(--desert-500), var(--desert-700));
    box-shadow: 0 14px 28px rgba(217, 121, 53, 0.28);
}

.btn.ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(91, 64, 48, 0.66);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    transition: background 0.22s ease, transform 0.22s ease;
}

.hero-control:hover {
    background: var(--desert-600);
    transform: translateY(-50%) scale(1.05);
}

.hero-control.prev {
    left: 24px;
    transform: translateY(-50%);
}

.hero-control.next {
    right: 24px;
    transform: translateY(-50%);
}

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

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

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

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

.inner-page {
    padding-top: 42px;
}

.content-section,
.search-panel,
.page-hero,
.player-section {
    margin: 34px 0;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 26px;
    align-items: center;
    padding: 30px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--sand-900), var(--sand-700));
    color: var(--sand-50);
    box-shadow: var(--shadow);
}

.search-panel h2 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.15;
}

.search-panel p {
    margin: 0;
    color: rgba(250, 248, 243, 0.72);
}

.large-search {
    background: rgba(255, 255, 255, 0.18);
}

.large-search input {
    width: 100%;
    min-width: 0;
    font-size: 16px;
}

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

.section-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--sand-900);
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.14;
    font-weight: 900;
}

.section-head h2 span {
    color: var(--desert-600);
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-more {
    flex: none;
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--desert-700);
    background: var(--desert-100);
    font-weight: 800;
}

.warm-section,
.sand-section {
    margin-left: -24px;
    margin-right: -24px;
    padding: 34px 24px;
    border-radius: var(--radius-xl);
}

.warm-section {
    background: linear-gradient(90deg, var(--desert-50), var(--sand-50));
}

.sand-section {
    background: var(--sand-100);
}

.movie-grid,
.featured-grid,
.mini-grid,
.category-grid,
.category-overview-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    content-visibility: auto;
    contain-intrinsic-size: 360px 520px;
}

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

.cover-shell {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 35% 22%, rgba(241, 176, 112, 0.55), transparent 32%),
        linear-gradient(135deg, var(--sand-900), var(--sand-600));
}

.movie-card-wide .cover-shell {
    aspect-ratio: 16 / 10;
}

.movie-card-small .cover-shell {
    aspect-ratio: 16 / 11;
}

.cover-shell img,
.category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.36s ease, opacity 0.24s ease;
}

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

.cover-shell.image-off img,
.category-cover.image-off img,
.hero-slide.image-off img,
.detail-poster.image-off img {
    display: none;
}

.year-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 10px;
    color: #fff;
    background: rgba(91, 64, 48, 0.78);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 800;
}

.play-mark {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--desert-500), var(--desert-700));
    box-shadow: 0 12px 24px rgba(91, 64, 48, 0.28);
}

.card-content {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: var(--sand-900);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title:hover {
    color: var(--desert-700);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 9px 0 10px;
    color: var(--muted);
    font-size: 13px;
}

.card-meta a {
    color: var(--desert-700);
    font-weight: 800;
}

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

.card-tags span {
    padding: 4px 9px;
    color: var(--desert-700);
    background: var(--desert-100);
    border: 0;
    font-size: 12px;
}

.movie-rail {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 4px 0 20px;
    scroll-snap-type: x proximity;
}

.movie-rail::-webkit-scrollbar {
    height: 8px;
}

.movie-rail::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--sand-300);
}

.rail-card {
    width: 260px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

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

.category-tile {
    min-height: 168px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 85% 18%, rgba(241, 176, 112, 0.38), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(250, 248, 243, 0.78));
    box-shadow: var(--soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-tile span {
    color: var(--desert-600);
    font-weight: 900;
}

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

.category-tile em {
    color: var(--muted);
    font-style: normal;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(280px, 430px) 1fr;
    gap: 34px;
    align-items: start;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: auto 64px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 78px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 20px rgba(91, 64, 48, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: var(--soft-shadow);
}

.rank-num {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--desert-500), var(--desert-700));
    font-weight: 900;
}

.rank-item img {
    width: 64px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--sand-900), var(--sand-600));
}

.rank-copy {
    display: grid;
    gap: 4px;
}

.rank-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--sand-900);
    font-size: 15px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-copy em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: clamp(30px, 6vw, 64px);
    color: #fff;
    background:
        radial-gradient(circle at 85% 16%, rgba(241, 176, 112, 0.42), transparent 30%),
        linear-gradient(135deg, var(--sand-900), var(--sand-700));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(36px, 5vw, 62px);
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.category-links-row {
    margin-top: 22px;
}

.category-links-row a {
    background: rgba(255, 255, 255, 0.14);
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 20px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
}

.category-cover {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--sand-900), var(--sand-600));
    aspect-ratio: 4 / 5;
}

.category-cover span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    color: #fff;
    background: rgba(91, 64, 48, 0.78);
    font-weight: 800;
}

.category-card-large h2 {
    margin: 0 0 8px;
    color: var(--sand-900);
    font-size: 24px;
}

.category-card-large p {
    margin: 0 0 12px;
    color: var(--muted);
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-samples a {
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--desert-700);
    background: var(--desert-100);
    font-size: 13px;
    font-weight: 700;
}

.local-filter {
    position: relative;
    margin: 0 0 24px;
}

.sticky-filter {
    position: sticky;
    top: 80px;
    z-index: 3;
}

.local-filter input {
    width: 100%;
    border: 1px solid rgba(136, 94, 64, 0.16);
    border-radius: 999px;
    outline: none;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--soft-shadow);
    padding: 15px 20px;
    color: var(--sand-900);
}

.empty-state {
    display: none;
    margin: 24px 0;
    border-radius: 18px;
    padding: 24px;
    color: var(--muted);
    background: var(--sand-100);
    text-align: center;
    font-weight: 800;
}

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

.detail-page {
    background: linear-gradient(180deg, var(--sand-50), #fff 50%, var(--desert-50));
}

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

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    filter: blur(2px);
    transform: scale(1.02);
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(241, 176, 112, 0.34), transparent 32%),
        linear-gradient(0deg, rgba(91, 64, 48, 0.94), rgba(91, 64, 48, 0.56));
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 64px;
    color: #fff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 8px 0 34px;
    color: rgba(250, 248, 243, 0.76);
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 330px) 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    border-radius: 26px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.detail-copy h1 {
    margin-top: 10px;
    max-width: 850px;
}

.detail-copy p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

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

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

.detail-shell {
    margin-top: -62px;
    position: relative;
    z-index: 5;
}

.player-section {
    border-radius: var(--radius-xl);
    padding: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 50% 30%, rgba(241, 176, 112, 0.18), transparent 36%),
        #050403;
}

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #050403;
}

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18));
    cursor: pointer;
}

.video-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.video-play-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--desert-500), var(--desert-700));
    box-shadow: 0 16px 32px rgba(217, 121, 53, 0.32);
    font-size: 28px;
}

.video-overlay strong {
    font-size: 18px;
}

.detail-text {
    border-radius: var(--radius-xl);
    padding: 34px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
}

.detail-text h2 {
    margin: 0 0 10px;
    color: var(--sand-900);
    font-size: 26px;
}

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

.detail-text p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.detail-info-grid div {
    border-radius: 18px;
    padding: 16px;
    background: var(--sand-100);
}

.detail-info-grid strong,
.detail-info-grid span {
    display: block;
}

.detail-info-grid strong {
    color: var(--desert-700);
    font-size: 13px;
    margin-bottom: 4px;
}

.detail-info-grid span {
    color: var(--sand-900);
    font-weight: 800;
}

.site-footer {
    margin-top: 60px;
    color: var(--sand-200);
    background: linear-gradient(135deg, var(--sand-800), var(--sand-900));
}

.footer-inner {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 42px;
    padding: 46px 0;
}

.footer-brand p {
    max-width: 420px;
    color: var(--sand-300);
}

.footer-logo {
    color: var(--sand-50);
    font-size: 22px;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: var(--sand-50);
    font-size: 16px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(245, 240, 230, 0.12);
    padding: 18px 16px;
    color: var(--sand-400);
    text-align: center;
    font-size: 13px;
}

[data-card].is-hidden {
    display: none;
}

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

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

    .featured-grid,
    .featured-grid.three,
    .category-overview-grid,
    .two-column,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

    .brand span {
        font-size: 18px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-carousel {
        height: 74vh;
        min-height: 560px;
    }

    .hero-content {
        padding-left: 8px;
        padding-right: 8px;
    }

    .hero-control {
        top: auto;
        bottom: 72px;
    }

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

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

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

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

    .featured-grid {
        gap: 16px;
    }

    .warm-section,
    .sand-section {
        margin-left: 0;
        margin-right: 0;
        padding: 24px 16px;
    }

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

    .category-card-large,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        min-height: auto;
    }

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

    .detail-shell {
        margin-top: -34px;
    }

    .player-section,
    .detail-text {
        padding: 18px;
    }
}

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

    .hero-actions,
    .large-search {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .large-search {
        border-radius: 24px;
    }

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

    .rank-item {
        grid-template-columns: auto 58px 1fr;
    }
}
