:root {
    --alley-50: #faf9f7;
    --alley-100: #f5f1ec;
    --rain-100: #e9ecef;
    --rain-200: #dee2e6;
    --rain-300: #ced4da;
    --rain-500: #6c757d;
    --rain-600: #495057;
    --rain-700: #343a40;
    --rain-800: #212529;
    --rain-900: #111418;
    --mist-50: #f0f4f8;
    --mist-100: #d9e2ec;
    --mist-300: #9fb3c8;
    --mist-500: #627d98;
    --mist-600: #486581;
    --mist-700: #334e68;
    --mist-800: #243b53;
    --gold: #facc15;
    --shadow: 0 16px 40px rgba(17, 20, 24, 0.12);
    --soft-shadow: 0 10px 24px rgba(17, 20, 24, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    background: var(--alley-50);
    color: var(--rain-800);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: Georgia, Cambria, "Times New Roman", "Noto Serif SC", serif;
    line-height: 1.2;
}

p {
    margin: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 249, 247, 0.92);
    border-bottom: 1px solid rgba(222, 226, 230, 0.8);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    font-family: Georgia, Cambria, "Times New Roman", "Noto Serif SC", serif;
    color: var(--rain-900);
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mist-600), var(--mist-800));
    color: #fff;
    font-size: 14px;
    box-shadow: var(--soft-shadow);
}

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

.desktop-nav a,
.mobile-panel a {
    color: var(--rain-600);
    font-size: 15px;
    font-weight: 650;
    padding: 9px 14px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
    color: var(--mist-700);
    background: var(--mist-50);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--rain-200);
    border-radius: 12px;
    background: #fff;
    color: var(--rain-800);
}

.mobile-panel {
    display: none;
    padding: 0 24px 18px;
    border-top: 1px solid var(--rain-200);
    background: rgba(250, 249, 247, 0.97);
}

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

.mobile-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 8px;
}

.hero-carousel {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #000;
}

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

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

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

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

.hero-shade {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.06));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px 120px;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    margin-bottom: 16px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

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

.hero-content h1 {
    margin-bottom: 18px;
    font-size: clamp(38px, 7vw, 76px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-desc {
    max-width: 680px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(16px, 2vw, 20px);
}

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

.hero-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    font-size: 14px;
}

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

.primary-btn,
.ghost-btn,
.panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.primary-btn {
    background: #fff;
    color: var(--rain-900);
    box-shadow: var(--soft-shadow);
}

.primary-btn:hover {
    background: var(--mist-50);
    transform: translateY(-2px);
}

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

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

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

.hero-arrow {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

.hero-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

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

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.intro-section {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 28px;
    align-items: center;
}

.intro-copy h2 {
    margin-bottom: 14px;
    color: var(--rain-800);
    font-size: clamp(28px, 4vw, 44px);
}

.intro-copy p:last-child {
    max-width: 760px;
    color: var(--rain-600);
    font-size: 17px;
}

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

.section-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading h2 {
    color: var(--rain-800);
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 900;
}

.heading-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mist-50);
    color: var(--mist-600);
    font-weight: 900;
}

.more-link,
.text-link {
    color: var(--mist-700);
    font-weight: 800;
}

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

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

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

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

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

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

.movie-cover {
    position: relative;
    display: block;
    height: 280px;
    overflow: hidden;
    background: var(--rain-100);
}

.movie-cover.small {
    height: 210px;
}

.movie-cover.medium {
    height: 300px;
}

.movie-cover.large {
    height: 360px;
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .movie-cover img,
.compact-card:hover img,
.category-tile:hover img,
.top-feature:hover img {
    transform: scale(1.08);
}

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.2), transparent);
    transition: opacity 0.25s ease;
}

.movie-card:hover .movie-cover::after {
    opacity: 1;
}

.type-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    padding: 5px 9px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(6px);
}

.rank-badge {
    left: 14px;
    right: auto;
    background: var(--gold);
    color: #412d00;
}

.play-orb {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 66px;
    height: 66px;
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: var(--rain-900);
    font-size: 26px;
    transition: all 0.25s ease;
}

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

.cover-line {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 3;
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .cover-line {
    opacity: 1;
}

.movie-info {
    padding: 18px;
}

.movie-info h3 {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 10px;
    color: var(--rain-800);
    font-size: 19px;
    font-weight: 800;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.movie-info h3 a:hover {
    color: var(--mist-700);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--rain-500);
    font-size: 13px;
}

.movie-meta span:first-child {
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--mist-50);
    color: var(--mist-700);
    font-weight: 800;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
    margin-top: 12px;
}

.movie-tags span,
.tag-cloud a {
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--rain-100);
    color: var(--rain-700);
    font-size: 12px;
    font-weight: 700;
}

.strip-section {
    background: #fff;
}

.strip-section .inner,
.soft-section .inner,
.editor-section .inner {
    padding-top: 72px;
    padding-bottom: 72px;
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 300px);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 18px;
    scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
    scroll-snap-align: start;
}

.chip-row,
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.chip,
.quick-filters button {
    border: 1px solid var(--rain-200);
    border-radius: 999px;
    padding: 9px 15px;
    background: #fff;
    color: var(--rain-700);
    font-weight: 750;
    transition: all 0.2s ease;
}

.chip:hover,
.chip.active,
.quick-filters button:hover,
.quick-filters button.active {
    background: var(--mist-600);
    border-color: var(--mist-600);
    color: #fff;
    box-shadow: var(--soft-shadow);
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
    box-shadow: var(--soft-shadow);
}

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

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.15));
}

.category-tile span,
.category-tile em {
    position: relative;
    z-index: 2;
}

.category-tile span {
    margin-bottom: 8px;
    font-family: Georgia, Cambria, "Times New Roman", "Noto Serif SC", serif;
    font-size: 23px;
    font-weight: 900;
}

.category-tile em {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.soft-section {
    background: var(--mist-50);
}

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

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

.compact-card {
    display: grid;
    grid-template-columns: auto 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.compact-card img {
    width: 112px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.compact-text {
    min-width: 0;
}

.compact-text strong,
.compact-text em {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.compact-text strong {
    color: var(--rain-800);
    font-size: 16px;
}

.compact-text em {
    color: var(--rain-500);
    font-size: 13px;
    font-style: normal;
}

.compact-rank {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rain-800);
    color: #fff;
    font-weight: 900;
}

.rank-panel,
.related-panel,
.poster-card,
.detail-card,
.filter-bar {
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.rank-panel {
    padding: 24px;
    align-self: start;
}

.rank-panel h2,
.related-panel h2 {
    margin-bottom: 18px;
    color: var(--rain-800);
    font-size: 28px;
}

.panel-link {
    width: 100%;
    margin-top: 18px;
    background: var(--mist-600);
    color: #fff;
}

.editor-section {
    background: linear-gradient(135deg, var(--mist-600), var(--mist-800));
}

.editor-section .section-heading h2,
.editor-section .more-link {
    color: #fff;
}

.editor-section .heading-icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--gold);
}

.filter-bar {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px;
}

.search-box {
    display: grid;
    gap: 8px;
    color: var(--rain-600);
    font-weight: 800;
}

.search-box input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--rain-200);
    border-radius: 14px;
    padding: 0 16px;
    background: var(--alley-50);
    color: var(--rain-800);
    outline: none;
}

.search-box input:focus {
    border-color: var(--mist-500);
    box-shadow: 0 0 0 4px rgba(98, 125, 152, 0.14);
}

.page-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 76px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.small-hero,
.category-hero,
.ranking-hero {
    min-height: 360px;
    align-items: end;
    background: linear-gradient(135deg, var(--mist-600), var(--mist-800));
    color: #fff;
    border-radius: 0 0 36px 36px;
}

.page-hero h1 {
    margin-bottom: 16px;
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 900;
}

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

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

.overview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    border-radius: 18px;
    background: #fff;
    padding: 18px;
    box-shadow: var(--soft-shadow);
}

.overview-thumb {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    overflow: hidden;
    border-radius: 14px;
}

.overview-thumb img {
    width: 100%;
    height: 84px;
    object-fit: cover;
}

.overview-card h2 {
    margin-bottom: 10px;
    color: var(--rain-800);
    font-size: 26px;
}

.overview-card p {
    margin-bottom: 14px;
    color: var(--rain-600);
}

.crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--rain-500);
    font-size: 14px;
}

.crumb a:hover {
    color: var(--mist-700);
}

.extra-years {
    margin-top: -10px;
}

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

.top-feature {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
}

.top-feature img,
.top-feature::after {
    position: absolute;
    inset: 0;
}

.top-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.top-feature::after {
    content: "";
    background: linear-gradient(to top, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.08));
}

.top-feature span,
.top-feature strong,
.top-feature em {
    position: relative;
    z-index: 2;
}

.top-feature span {
    color: var(--gold);
    font-weight: 900;
}

.top-feature strong {
    margin: 8px 0;
    font-family: Georgia, Cambria, "Times New Roman", "Noto Serif SC", serif;
    font-size: 24px;
}

.top-feature em {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.detail-page {
    padding-top: 36px;
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.video-start {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--rain-900);
    font-size: 34px;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.video-start:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.player-shell.playing .video-start {
    opacity: 0;
    pointer-events: none;
}

.video-state {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    min-height: 0;
    color: #fff;
    font-size: 14px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.detail-card {
    padding: 28px;
}

.detail-card h1 {
    margin-bottom: 16px;
    color: var(--rain-800);
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 900;
}

.detail-card .detail-meta span {
    background: var(--mist-50);
    color: var(--mist-700);
    backdrop-filter: none;
}

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

.detail-card h2 {
    margin-bottom: 12px;
    color: var(--rain-800);
    font-size: 22px;
}

.detail-card p {
    color: var(--rain-700);
    text-align: justify;
}

.lead-text {
    font-weight: 800;
}

.tag-cloud div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a:hover {
    background: var(--mist-600);
    color: #fff;
}

.detail-side {
    display: grid;
    gap: 22px;
    align-content: start;
}

.poster-card,
.related-panel {
    padding: 18px;
}

.poster-card img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
}

.primary-btn.full {
    width: 100%;
    background: var(--mist-600);
    color: #fff;
}

.site-footer {
    background: var(--rain-900);
    color: var(--rain-300);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 58px 24px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
}

.footer-logo {
    margin-bottom: 16px;
    color: #fff;
}

.site-footer h3 {
    margin-bottom: 14px;
    color: #fff;
    font-size: 18px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 10px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 24px;
    text-align: center;
    color: var(--rain-500);
}

.is-hidden {
    display: none !important;
}

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

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

    .two-col,
    .detail-grid,
    .intro-section {
        grid-template-columns: 1fr;
    }

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

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-wrap {
        height: 64px;
        padding: 0 16px;
    }

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

    .hero-content {
        padding: 0 18px 116px;
    }

    .content-section,
    .page-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .content-section {
        padding-top: 52px;
        padding-bottom: 52px;
    }

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

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

    .movie-cover.medium,
    .movie-cover.large {
        height: 260px;
    }

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

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

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

@media (max-width: 560px) {
    .logo {
        font-size: 19px;
    }

    .hero-actions,
    .section-heading,
    .detail-meta,
    .hero-meta {
        align-items: flex-start;
    }

    .section-heading {
        flex-direction: column;
    }

    .movie-grid,
    .large-grid,
    .category-list,
    .four-grid,
    .overview-grid,
    .top-features,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .movie-cover.medium,
    .movie-cover.large,
    .movie-cover.small {
        height: 320px;
    }

    .compact-card {
        grid-template-columns: auto 92px minmax(0, 1fr);
    }

    .compact-card img {
        width: 92px;
        height: 64px;
    }

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