:root {
    --forest-50: #f5f7f5;
    --forest-100: #e8eee6;
    --forest-200: #d5dfd2;
    --forest-500: #5f7f58;
    --forest-600: #4a6644;
    --forest-700: #3c5238;
    --forest-800: #32432f;
    --earth-100: #f3eee6;
    --earth-300: #c5bcaa;
    --earth-800: #4e443a;
    --earth-900: #423a32;
    --deer-500: #a88558;
    --ink: #182019;
    --muted: #65706a;
    --line: #e5e7eb;
    --card: #ffffff;
    --soft-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
    --hover-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
}

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

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

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 0 rgba(229, 231, 235, 0.8);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--forest-600), var(--deer-500));
    box-shadow: var(--soft-shadow);
    font-size: 16px;
}

.brand-text {
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: 22px;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.mobile-link {
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--forest-600);
    background: var(--forest-50);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--forest-50);
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    padding: 8px 16px 18px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.mobile-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.is-active {
    color: var(--forest-600);
    background: var(--forest-50);
}

.hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    color: #ffffff;
    background: var(--earth-900);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(30, 40, 28, 0.96) 0%, rgba(30, 40, 28, 0.72) 46%, rgba(30, 40, 28, 0.32) 100%), var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 420px);
    align-items: center;
    gap: 56px;
    padding: 96px 0 118px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #f5dfb8;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--forest-600);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(42px, 7vw, 78px);
}

.hero p {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

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

.hero-tags span,
.detail-tags a,
.tag-row span,
.genre-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span,
.detail-tags a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.primary-button,
.ghost-button,
.search-form button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-form button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--forest-600), var(--deer-500));
    box-shadow: 0 18px 32px rgba(74, 102, 68, 0.26);
}

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

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
    aspect-ratio: 3 / 4;
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(74, 102, 68, 0.82);
    transform: translate(-50%, -50%);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
}

.hero-controls {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 18px;
    transform: translateX(-50%);
}

.hero-controls button {
    border: 0;
    color: #ffffff;
    cursor: pointer;
}

.hero-controls > button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    font-size: 28px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
}

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

.home-search {
    position: relative;
    z-index: 4;
    margin-top: -54px;
}

.search-panel,
.filter-panel,
.prose-panel,
.detail-panel,
.side-card,
.player-card,
.category-detail-card,
.search-page-panel {
    background: var(--card);
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: 24px;
    box-shadow: var(--soft-shadow);
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
    gap: 28px;
    align-items: center;
    padding: 28px;
}

.search-panel h2,
.filter-panel h2 {
    margin: 0 0 4px;
    color: var(--forest-800);
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: 26px;
}

.search-panel p,
.filter-panel p {
    margin: 0;
    color: var(--muted);
}

.search-form {
    display: flex;
    gap: 12px;
}

.search-form input,
.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    padding: 0 18px;
    color: var(--ink);
    background: #ffffff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--forest-600);
    box-shadow: 0 0 0 4px rgba(74, 102, 68, 0.12);
}

.content-section {
    margin-top: 72px;
}

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

.section-heading h2 {
    position: relative;
    margin: 0;
    color: #111827;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
}

.section-heading h2::after {
    content: "";
    display: block;
    width: 82px;
    height: 4px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--forest-600), var(--deer-500));
}

.section-heading p {
    max-width: 780px;
    margin: 12px 0 0;
    color: var(--muted);
}

.section-link {
    color: var(--forest-600);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

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

.category-card {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(145deg, var(--forest-700), var(--earth-900));
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong {
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: 26px;
}

.category-card small {
    color: #f5dfb8;
    font-weight: 800;
}

.category-card p {
    margin: 14px 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

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

.category-card span {
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    font-size: 12px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--forest-100);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.2s ease;
}

.movie-card:hover .poster-shade {
    background: rgba(0, 0, 0, 0.36);
}

.play-chip {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(74, 102, 68, 0.88);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.84);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--deer-500), #c07a3f);
    font-size: 12px;
    font-weight: 900;
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 12px;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 8px;
    overflow: hidden;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card h3 a:hover {
    color: var(--forest-600);
}

.movie-card p {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #5f6b65;
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row span,
.genre-row span {
    color: var(--forest-700);
    background: var(--forest-50);
}

.ranking-band {
    padding: 72px 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--earth-900), var(--forest-800));
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1.22fr);
    gap: 44px;
    align-items: center;
}

.ranking-copy h2 {
    margin: 0 0 16px;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.15;
}

.ranking-copy p {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.78);
}

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

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

.index-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(229, 231, 235, 0.72);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, border 0.2s ease;
}

.ranking-band .index-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
}

.index-card:hover {
    transform: translateX(4px);
    border-color: rgba(74, 102, 68, 0.42);
}

.index-rank,
.index-dot {
    flex: 0 0 auto;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: var(--forest-600);
    font-weight: 900;
}

.index-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.index-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.index-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.index-main small {
    overflow: hidden;
    color: #6b7280;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-band .index-main small {
    color: rgba(255, 255, 255, 0.68);
}

.page-main {
    min-height: 60vh;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--forest-700), var(--earth-900));
}

.slim-hero {
    padding: 72px 0;
}

.ranking-hero {
    background: linear-gradient(135deg, #283825, #5a4738 58%, #8f714d);
}

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

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

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

.category-detail-card {
    padding: 24px;
}

.category-detail-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.category-detail-head h2 {
    margin: 0 0 8px;
    color: var(--forest-800);
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: 28px;
}

.category-detail-head p {
    margin: 0;
    color: var(--muted);
}

.category-sample-list {
    display: grid;
    gap: 10px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(320px, 1.25fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
    padding: 24px;
}

.filter-controls {
    display: grid;
    grid-template-columns: 1fr 160px 150px;
    gap: 12px;
}

.movie-hero-detail {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: var(--earth-900);
}

.movie-hero-detail::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--detail-image);
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    transform: scale(1.08);
    opacity: 0.4;
}

.movie-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(32, 43, 30, 0.96), rgba(32, 43, 30, 0.72));
}

.movie-detail-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 36px;
    align-items: end;
    padding: 62px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
    aspect-ratio: 3 / 4;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

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

.detail-copy h1 {
    font-size: clamp(34px, 5vw, 62px);
}

.detail-one-line {
    max-width: 860px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

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

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

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

.player-card {
    padding: 12px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #050505;
    aspect-ratio: 16 / 9;
}

.player-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.46));
    cursor: pointer;
}

.player-overlay span {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 50%;
    background: rgba(74, 102, 68, 0.9);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
    font-size: 30px;
}

.player-card.is-playing .player-overlay {
    display: none;
}

.detail-panel {
    padding: 26px;
}

.detail-panel h2,
.side-card h2 {
    margin: 0 0 14px;
    color: var(--forest-800);
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: 26px;
}

.detail-panel p {
    margin: 0;
    color: #374151;
    font-size: 16px;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
}

.info-list div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
}

.info-list dt {
    color: #6b7280;
    font-weight: 800;
}

.info-list dd {
    margin: 0;
}

.info-list a {
    color: var(--forest-600);
    font-weight: 800;
}

.detail-sidebar {
    position: sticky;
    top: 94px;
    display: grid;
    gap: 18px;
}

.side-card {
    padding: 22px;
}

.side-list {
    display: grid;
    gap: 10px;
}

.side-actions {
    display: grid;
    gap: 10px;
}

.side-actions a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--forest-700);
    background: var(--forest-50);
    font-weight: 800;
}

.search-page-panel {
    padding: 26px;
}

.search-form-large {
    max-width: 920px;
}

.search-status {
    margin-top: 18px;
    color: var(--muted);
    font-weight: 700;
}

.site-footer {
    margin-top: 86px;
    padding: 52px 0 0;
    color: var(--earth-300);
    background: var(--earth-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 1fr 1fr;
    gap: 36px;
}

.brand-in-footer {
    margin-bottom: 16px;
    color: #ffffff;
}

.footer-brand p {
    max-width: 560px;
    margin: 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 38px;
    padding: 22px 0;
    border-top: 1px solid var(--earth-800);
    color: #a99f8e;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

.prose-panel {
    padding: 30px;
}

.prose-panel h2 {
    margin: 0 0 14px;
    color: var(--forest-800);
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: 30px;
}

.prose-panel p {
    margin: 0 0 12px;
    color: #4b5563;
}

.prose-panel p:last-child {
    margin-bottom: 0;
}

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

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

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

    .mobile-menu-button {
        display: block;
    }

    body.menu-open .mobile-nav {
        display: block;
    }

    .hero {
        min-height: 760px;
    }

    .hero-content,
    .search-panel,
    .ranking-layout,
    .filter-panel,
    .movie-detail-layout,
    .detail-main-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 28px;
        padding: 64px 0 112px;
    }

    .hero-poster {
        width: min(300px, 100%);
        margin: 0 auto;
    }

    .detail-sidebar {
        position: static;
    }

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

    .category-detail-grid,
    .two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .brand-text {
        font-size: 19px;
    }

    .hero {
        min-height: 760px;
    }

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

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

    .hero-actions,
    .search-form,
    .footer-bottom {
        flex-direction: column;
    }

    .search-form button,
    .primary-button,
    .ghost-button {
        width: 100%;
    }

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

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

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

    .movie-card p {
        display: none;
    }

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

    .detail-panel,
    .side-card,
    .search-page-panel {
        padding: 20px;
        border-radius: 18px;
    }

    .info-list div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}
