:root {
    --stone-950: #1c1917;
    --stone-900: #292524;
    --stone-800: #44403c;
    --stone-700: #57534e;
    --stone-600: #78716c;
    --stone-500: #a8a29e;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --stone-50: #fafaf9;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-100: #fef3c7;
    --green-900: #14532d;
    --green-800: #166534;
    --green-700: #15803d;
    --green-600: #16a34a;
    --green-100: #dcfce7;
    --green-50: #f0fdf4;
    --shadow-soft: 0 18px 40px rgba(41, 37, 36, 0.12);
    --shadow-card: 0 10px 28px rgba(41, 37, 36, 0.10);
    --radius-xl: 1.25rem;
    --radius-2xl: 1.75rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--stone-900);
    background: linear-gradient(135deg, #fffbeb 0%, #fafaf9 45%, #ecfdf5 100%);
}

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

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

button,
input {
    font: inherit;
}

.page-bg {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--stone-200);
    box-shadow: 0 4px 18px rgba(41, 37, 36, 0.06);
    backdrop-filter: blur(16px);
}

.site-header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    white-space: nowrap;
    color: var(--green-800);
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-600), var(--green-700));
    box-shadow: 0 10px 24px rgba(22, 101, 52, 0.24);
    transition: transform 0.2s ease;
}

.site-logo:hover .logo-mark {
    transform: scale(1.06) rotate(-2deg);
}

.logo-mark svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

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

.nav-link,
.mobile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    color: var(--stone-700);
    border-radius: 12px;
    font-weight: 650;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
    color: var(--green-700);
    background: var(--green-50);
    transform: translateY(-1px);
}

.header-search {
    width: 260px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--stone-200);
    border-radius: 999px;
    background: rgba(250, 250, 249, 0.86);
}

.header-search input,
.mobile-search input,
.filter-panel input,
.home-search-panel input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--stone-900);
    background: transparent;
}

.header-search button,
.mobile-search button,
.filter-panel button[type="submit"],
.home-search-panel button {
    border: 0;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--green-600), var(--green-800));
    box-shadow: 0 10px 20px rgba(22, 101, 52, 0.18);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--stone-100);
    cursor: pointer;
}

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

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

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

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
    background: var(--stone-100);
}

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

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

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

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform 7s ease;
}

.hero-slide.active .hero-image {
    transform: scale(1.12);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 40%, rgba(245, 158, 11, 0.22), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.20));
}

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

.hero-content h1,
.hero-content h2 {
    max-width: 760px;
    margin: 16px 0;
    font-size: clamp(2.7rem, 7vw, 6.2rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.hero-content p {
    max-width: 650px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.8;
}

.hero-kicker,
.hero-tags,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-kicker span,
.hero-kicker a,
.hero-kicker em,
.hero-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-style: normal;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.hero-kicker span {
    background: var(--green-600);
}

.hero-kicker em {
    color: #fde68a;
}

.hero-actions {
    margin-top: 10px;
}

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

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--green-600), var(--green-800));
    box-shadow: 0 16px 32px rgba(22, 101, 52, 0.35);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px) scale(1.02);
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 4;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    color: #fff;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.hero-dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.hero-dot.active {
    width: 34px;
    background: #fff;
}

.home-search-panel,
.content-wrap,
.footer-grid,
.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.home-search-panel {
    position: relative;
    z-index: 10;
    margin-top: -54px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 24px;
    align-items: center;
}

.home-search-panel h2 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.home-search-panel p {
    margin: 0;
    color: var(--stone-600);
}

.home-search-panel form,
.filter-panel form {
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--stone-200);
    border-radius: 999px;
    background: #fff;
}

.content-wrap {
    padding: 76px 0;
    display: grid;
    gap: 76px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-link {
    color: var(--green-700);
    font-weight: 800;
    white-space: nowrap;
}

.section-link span {
    font-size: 1.35em;
    vertical-align: -0.06em;
}

.section-link.inline {
    display: inline-flex;
    margin-top: 14px;
}

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

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

.all-grid {
    align-items: stretch;
}

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(41, 37, 36, 0.18);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--stone-200);
}

.movie-card.compact .poster-wrap {
    aspect-ratio: 3 / 4.1;
}

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

.movie-card:hover .poster-wrap img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 55%);
    transition: opacity 0.24s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--green-700);
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.65);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.movie-card:hover .poster-play {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.region-pill,
.rank-badge {
    position: absolute;
    top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 9px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
}

.region-pill {
    right: 10px;
    background: var(--amber-500);
}

.rank-badge {
    left: 10px;
    background: linear-gradient(135deg, #ef4444, var(--amber-500));
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 1.04rem;
    line-height: 1.35;
    font-weight: 850;
}

.movie-card h3 a:hover {
    color: var(--green-700);
}

.meta-line,
.one-line {
    margin: 0;
    color: var(--stone-600);
    font-size: 0.9rem;
}

.one-line {
    margin-top: 8px;
    line-height: 1.58;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row,
.detail-tags,
.mini-chip-row,
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.tag-row span,
.detail-tags span,
.mini-chip-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--green-700);
    background: var(--green-50);
    border: 1px solid var(--green-100);
    font-size: 0.78rem;
    font-weight: 700;
}

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

.category-tile {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    color: #fff;
    box-shadow: var(--shadow-card);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.48s ease;
}

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

.category-tile span {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.16));
}

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 22px;
    right: 22px;
    z-index: 2;
}

.category-tile strong {
    bottom: 58px;
    font-size: 1.5rem;
    font-weight: 900;
}

.category-tile em {
    bottom: 24px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.82);
}

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

.rank-list,
.side-card-list,
.related-mini-list {
    display: grid;
    gap: 12px;
}

.rank-row,
.side-item {
    display: grid;
    align-items: center;
    gap: 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(41, 37, 36, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover,
.side-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(41, 37, 36, 0.13);
}

.rank-row {
    grid-template-columns: 54px 64px minmax(0, 1fr);
    padding: 12px 16px;
}

.rank-row strong {
    color: var(--amber-600);
    font-size: 1.25rem;
    font-weight: 900;
}

.rank-row img,
.side-item img {
    width: 64px;
    height: 86px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-row span,
.side-item span {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.rank-row b,
.side-item b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row em,
.side-item em {
    color: var(--stone-600);
    font-style: normal;
    font-size: 0.88rem;
}

.side-item {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 10px;
}

.side-item img {
    width: 58px;
    height: 76px;
}

.page-hero {
    min-height: 340px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.26), transparent 28%),
        linear-gradient(135deg, var(--stone-950), var(--green-900));
    color: #fff;
}

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

.page-hero span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 12px;
    color: #fff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.page-hero h1 {
    max-width: 760px;
    margin: 18px 0 12px;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.14rem;
    line-height: 1.8;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border-radius: var(--radius-2xl);
    background: #fff;
    box-shadow: var(--shadow-card);
}

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

.category-cover-stack img {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 1.6rem;
}

.category-overview-card p {
    margin: 0 0 14px;
    color: var(--stone-600);
    line-height: 1.7;
}

.filter-panel {
    padding: 22px;
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 16px;
}

.filter-panel.large {
    gap: 18px;
}

.filter-chips button {
    border: 1px solid var(--stone-200);
    cursor: pointer;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--stone-700);
    background: #fff;
    font-weight: 700;
}

.filter-chips button:hover,
.filter-chips button.active {
    color: #fff;
    border-color: var(--green-700);
    background: var(--green-700);
}

.filter-chips.secondary button.active {
    background: var(--amber-600);
    border-color: var(--amber-600);
}

.empty-state {
    margin: 24px 0 0;
    padding: 32px;
    color: var(--stone-600);
    text-align: center;
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-card);
}

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

.top-rank-card {
    overflow: hidden;
    border-radius: var(--radius-2xl);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.top-rank-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.top-rank-card div {
    padding: 22px;
}

.top-rank-card span {
    color: var(--amber-600);
    font-weight: 900;
}

.top-rank-card h2 {
    margin: 8px 0 10px;
    font-size: 1.5rem;
}

.top-rank-card p {
    margin: 0;
    color: var(--stone-600);
    line-height: 1.7;
}

.rank-page-list .rank-row {
    grid-template-columns: 62px 76px minmax(0, 1fr);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--stone-600);
    font-size: 0.95rem;
}

.breadcrumb a:hover {
    color: var(--green-700);
}

.detail-wrap {
    gap: 36px;
}

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

.detail-main-card,
.side-panel {
    overflow: hidden;
    border-radius: var(--radius-2xl);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.video-shell {
    position: relative;
    background: #000;
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.46));
}

.player-overlay.hidden {
    display: none;
}

.player-overlay span {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 2.1rem;
    color: var(--green-700);
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease;
}

.player-overlay:hover span {
    transform: scale(1.06);
}

.detail-content {
    padding: 30px;
}

.detail-content h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

.detail-meta span {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 12px;
    color: var(--stone-700);
    background: var(--stone-100);
    font-weight: 750;
}

.detail-content section {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--stone-200);
}

.detail-content h2,
.side-panel h2 {
    margin: 0 0 14px;
    font-size: 1.35rem;
}

.detail-content p {
    color: var(--stone-700);
    line-height: 1.86;
    margin: 0 0 12px;
    font-size: 1.03rem;
}

.lead-text {
    color: var(--stone-900) !important;
    font-weight: 750;
}

blockquote {
    margin: 0;
    padding: 22px;
    color: var(--stone-800);
    line-height: 1.8;
    border-left: 5px solid var(--green-700);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--green-50), #fffbeb);
}

.detail-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 20px;
}

.side-panel {
    padding: 20px;
}

.poster-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    object-fit: cover;
}

.primary-button.full {
    width: 100%;
    margin-top: 18px;
}

.side-play-button {
    border: 0;
    cursor: pointer;
}

.site-footer {
    color: var(--stone-300);
    background: linear-gradient(135deg, var(--stone-950), var(--stone-800));
    padding: 56px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 34px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 1.08rem;
}

.site-footer p {
    margin: 0;
    line-height: 1.7;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.site-footer a:hover {
    color: #86efac;
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 22px;
    text-align: center;
    color: var(--stone-500);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.searchable-card[hidden] {
    display: none !important;
}

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

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

    .header-search {
        display: none;
    }

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

    .detail-side {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

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

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

    .home-search-panel {
        grid-template-columns: 1fr;
        margin-top: -36px;
    }

    .movie-grid,
    .featured-grid,
    .category-grid,
    .category-overview-grid,
    .top-rank-grid,
    .footer-grid,
    .split-section {
        grid-template-columns: 1fr 1fr;
    }

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

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

@media (max-width: 620px) {
    .site-header-inner {
        min-height: 64px;
    }

    .site-logo span {
        font-size: 1.08rem;
    }

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

    .hero-content h1,
    .hero-content h2 {
        font-size: clamp(2.35rem, 15vw, 4.6rem);
    }

    .hero-overlay {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.28));
    }

    .hero-controls {
        bottom: 18px;
    }

    .home-search-panel,
    .filter-panel,
    .detail-content,
    .side-panel {
        padding: 18px;
    }

    .home-search-panel form,
    .filter-panel form {
        border-radius: 18px;
        flex-direction: column;
    }

    .home-search-panel input,
    .filter-panel input {
        min-height: 42px;
        padding: 0 10px;
    }

    .content-wrap {
        padding: 46px 0;
        gap: 48px;
    }

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

    .movie-grid,
    .featured-grid,
    .category-grid,
    .category-overview-grid,
    .top-rank-grid,
    .footer-grid,
    .split-section {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

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

    .movie-card h3 {
        font-size: 0.98rem;
    }

    .one-line {
        display: none;
    }

    .category-tile {
        min-height: 180px;
    }

    .category-tile strong {
        left: 16px;
        right: 16px;
        bottom: 50px;
        font-size: 1.18rem;
    }

    .category-tile em {
        left: 16px;
        right: 16px;
        bottom: 18px;
        font-size: 0.82rem;
    }

    .category-overview-card {
        grid-column: span 2;
    }

    .rank-row {
        grid-template-columns: 42px 54px minmax(0, 1fr);
        padding: 10px;
    }

    .rank-row img {
        width: 54px;
        height: 72px;
    }

    .top-rank-card {
        grid-column: span 2;
    }

    .detail-layout,
    .detail-side {
        gap: 16px;
    }

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