:root {
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.10), 0 2px 4px -2px rgb(0 0 0 / 0.10);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.12), 0 4px 6px -4px rgb(0 0 0 / 0.10);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.14), 0 8px 10px -6px rgb(0 0 0 / 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--green-50), #ffffff 42%);
    color: var(--gray-800);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-nav {
    background: linear-gradient(90deg, var(--green-700), var(--green-900));
    color: #ffffff;
    box-shadow: var(--shadow-lg);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1280px;
    min-height: 4rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    white-space: nowrap;
}

.brand-icon {
    font-size: 1.6rem;
}

.brand-text {
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    font-size: 0.96rem;
}

.nav-link {
    color: rgb(255 255 255 / 0.92);
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
    color: var(--green-200);
    transform: translateY(-1px);
}

.nav-search,
.mobile-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-search input,
.mobile-search input {
    width: 13rem;
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 999px;
    background: rgb(20 83 45 / 0.8);
    color: #ffffff;
    outline: none;
    padding: 0.58rem 4rem 0.58rem 1rem;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
    color: var(--green-300);
}

.nav-search button,
.mobile-search button {
    position: absolute;
    right: 0.35rem;
    border: 0;
    border-radius: 999px;
    background: var(--green-600);
    color: #ffffff;
    padding: 0.32rem 0.72rem;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 0.55rem;
    background: rgb(255 255 255 / 0.10);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 1.2rem;
    height: 2px;
    margin: 4px auto;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-menu {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem 1rem;
}

.mobile-link {
    display: block;
    padding: 0.7rem 0;
    color: rgb(255 255 255 / 0.95);
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.hero-carousel {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background: linear-gradient(90deg, var(--green-800), var(--green-700), var(--green-900));
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.26;
    filter: saturate(1.15) contrast(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 38%, rgb(34 197 94 / 0.35), transparent 30%), linear-gradient(90deg, rgb(20 83 45 / 0.96), rgb(21 128 61 / 0.78), rgb(17 24 39 / 0.84));
}

.hero-glow {
    position: absolute;
    width: 17rem;
    height: 17rem;
    border-radius: 999px;
    filter: blur(62px);
    opacity: 0.25;
    animation: pulseGlow 3s ease-in-out infinite;
}

.glow-left {
    top: 3rem;
    left: 3rem;
    background: #ffffff;
}

.glow-right {
    right: 5rem;
    bottom: 2rem;
    background: #facc15;
    animation-delay: 1.2s;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3rem;
    align-items: center;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 5rem 0 6rem;
    color: #ffffff;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    border: 1px solid rgb(255 255 255 / 0.25);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.12);
    padding: 0.42rem 0.85rem;
    color: var(--green-100);
    font-weight: 700;
}

.hero-copy h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(2.3rem, 6vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    color: var(--green-100);
}

.hero-copy p {
    max-width: 650px;
    margin: 0 0 1.3rem;
    color: var(--green-100);
    font-size: 1.1rem;
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.hero-meta span {
    border-radius: 999px;
    background: rgb(255 255 255 / 0.14);
    padding: 0.38rem 0.78rem;
    color: var(--green-100);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    border-radius: 999px;
    padding: 0.72rem 1.45rem;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    background: #ffffff;
    color: var(--green-800);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background: var(--green-100);
}

.btn-ghost {
    border: 1px solid rgb(255 255 255 / 0.34);
    color: #ffffff;
    background: rgb(255 255 255 / 0.12);
}

.hero-poster-card {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 8px solid rgb(255 255 255 / 0.16);
    border-radius: 1.3rem;
    box-shadow: 0 30px 80px rgb(0 0 0 / 0.35);
    transform: rotate(2deg);
}

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

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 2.1rem;
    display: flex;
    gap: 0.5rem;
    transform: translateX(-50%);
}

.hero-dot {
    width: 0.75rem;
    height: 0.75rem;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 2.1rem;
    background: #ffffff;
}

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 2.8rem;
    height: 2.8rem;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.18);
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 1.2rem;
}

.hero-next {
    right: 1.2rem;
}

.hero-wave {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 80px;
}

.category-strip {
    background: var(--green-50);
    padding: 1.2rem 1rem 0;
}

.category-strip-inner {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
    max-width: 1180px;
    margin: 0 auto;
}

.category-strip a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--green-100);
    border-radius: 0.95rem;
    background: #ffffff;
    padding: 0.9rem 1rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-strip a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.category-strip span {
    color: var(--gray-700);
    font-weight: 800;
}

.category-strip strong {
    color: var(--green-700);
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.25rem;
}

.section-soft {
    max-width: none;
    background: linear-gradient(90deg, var(--green-100), var(--green-50));
}

.section-soft > .section-heading,
.section-soft > .movie-grid,
.section-soft > .filter-panel,
.section-soft > .ranking-list {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

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

.section-heading h2 {
    margin: 0;
    color: var(--gray-800);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.1;
}

.section-heading p {
    margin: 0.45rem 0 0;
    color: var(--gray-600);
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card[hidden],
.ranking-row[hidden] {
    display: none;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: var(--shadow-xl);
}

.movie-poster {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-100), var(--green-50));
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgb(0 0 0 / 0.58));
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.movie-badge,
.movie-year {
    position: absolute;
    z-index: 2;
    top: 0.75rem;
    border-radius: 999px;
    padding: 0.32rem 0.72rem;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: var(--shadow-md);
}

.movie-badge {
    left: 0.75rem;
    background: var(--green-600);
}

.movie-year {
    right: 0.75rem;
    background: rgb(17 24 39 / 0.78);
}

.movie-card-body {
    padding: 1rem;
}

.movie-card-body h3 {
    margin: 0 0 0.48rem;
    overflow: hidden;
    color: var(--gray-800);
    font-size: 1.05rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.movie-card-link:hover h3 {
    color: var(--green-600);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 2.65rem;
    margin: 0 0 0.85rem;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    color: var(--gray-500);
    font-size: 0.78rem;
}

.compact .movie-card-body p {
    min-height: 2.35rem;
}

.page-hero {
    background: linear-gradient(90deg, var(--green-800), var(--green-700), var(--green-900));
    color: #ffffff;
}

.small-hero {
    position: relative;
    overflow: hidden;
}

.small-hero::before,
.small-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(58px);
    opacity: 0.2;
}

.small-hero::before {
    top: 1rem;
    left: 8%;
    width: 12rem;
    height: 12rem;
    background: #ffffff;
}

.small-hero::after {
    right: 12%;
    bottom: -3rem;
    width: 16rem;
    height: 16rem;
    background: #facc15;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 4rem 0;
}

.page-hero-inner span {
    display: inline-block;
    margin-bottom: 0.8rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.14);
    padding: 0.38rem 0.82rem;
    color: var(--green-100);
    font-weight: 800;
}

.page-hero-inner h1 {
    max-width: 800px;
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.08;
}

.page-hero-inner p {
    max-width: 760px;
    margin: 0;
    color: var(--green-100);
    font-size: 1.08rem;
    line-height: 1.8;
}

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

.category-card a {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    height: 100%;
    overflow: hidden;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-cover {
    min-height: 180px;
    background: var(--green-50);
}

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

.category-card-body {
    padding: 1.1rem;
}

.category-card-body span {
    color: var(--green-700);
    font-weight: 900;
}

.category-card-body h2 {
    margin: 0.3rem 0 0.55rem;
    font-size: 1.3rem;
}

.category-card-body p {
    margin: 0 0 0.8rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.category-card-body small {
    color: var(--gray-500);
    line-height: 1.6;
}

.filter-panel {
    margin-bottom: 1.6rem;
    border: 1px solid var(--green-100);
    border-radius: 1rem;
    background: #ffffff;
    padding: 1.2rem;
    box-shadow: var(--shadow-md);
}

.filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-title h2 {
    margin: 0;
    font-size: 1.35rem;
}

.filter-title p {
    margin: 0;
    color: var(--gray-600);
}

.filter-title strong {
    color: var(--green-700);
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.filter-controls label {
    display: grid;
    gap: 0.35rem;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 700;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: 0.7rem;
    background: #ffffff;
    color: var(--gray-800);
    outline: none;
    padding: 0.72rem 0.8rem;
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgb(34 197 94 / 0.16);
}

.ranking-list {
    display: grid;
    gap: 0.9rem;
}

.ranking-row {
    display: grid;
    grid-template-columns: 56px 110px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    border-radius: 1rem;
    background: #ffffff;
    padding: 0.8rem;
    box-shadow: var(--shadow-md);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-800);
    font-weight: 900;
}

.rank-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 0.75rem;
}

.rank-thumb img {
    height: 100%;
    object-fit: cover;
}

.rank-info a {
    display: inline-block;
    margin-bottom: 0.3rem;
    color: var(--gray-800);
    font-size: 1.05rem;
    font-weight: 900;
}

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

.rank-info p {
    margin: 0 0 0.4rem;
    color: var(--gray-600);
}

.rank-info div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--gray-500);
    font-size: 0.84rem;
}

.ranking-row strong {
    color: var(--green-700);
    font-size: 1.08rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem 0;
    color: var(--gray-600);
    font-size: 0.93rem;
}

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

.detail-page {
    background: var(--gray-50);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
    gap: 1.5rem;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0 0 2rem;
}

.player-card,
.detail-card,
.aside-card,
.prose-card {
    overflow: hidden;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

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

.player-video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.7rem;
    border: 0;
    background: linear-gradient(180deg, rgb(0 0 0 / 0.18), rgb(0 0 0 / 0.54));
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    display: grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    background: rgb(34 197 94 / 0.92);
    box-shadow: 0 20px 50px rgb(0 0 0 / 0.35);
    font-size: 2.4rem;
    line-height: 1;
    text-indent: 0.22rem;
}

.player-overlay strong {
    font-size: 1.1rem;
}

.detail-card {
    margin-top: 1rem;
    padding: 1.5rem;
}

.detail-card h1 {
    margin: 0 0 0.8rem;
    color: var(--gray-900);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.16;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.2rem;
}

.detail-meta span,
.tag-cloud span {
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-800);
    padding: 0.36rem 0.75rem;
    font-size: 0.86rem;
    font-weight: 800;
}

.detail-lead {
    margin: 0 0 1.5rem;
    color: var(--gray-700);
    font-size: 1.08rem;
    line-height: 1.85;
}

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

.detail-card h2 {
    margin: 0 0 0.75rem;
    color: var(--gray-900);
    font-size: 1.25rem;
}

.detail-card p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.9;
}

.review-text {
    border-radius: 0.8rem;
    background: var(--green-50);
    padding: 1rem;
    font-style: italic;
}

.detail-aside {
    min-width: 0;
}

.aside-card {
    position: sticky;
    top: 5.2rem;
    padding: 1rem;
}

.aside-card > img {
    aspect-ratio: 4 / 3;
    border-radius: 0.8rem;
    object-fit: cover;
}

.movie-info-list {
    display: grid;
    gap: 0.8rem;
    margin: 1rem 0;
}

.movie-info-list div {
    display: grid;
    gap: 0.2rem;
}

.movie-info-list dt {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.movie-info-list dd {
    margin: 0;
    color: var(--gray-800);
    font-weight: 800;
}

.movie-info-list a:hover {
    color: var(--green-700);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.related-section {
    padding-top: 2rem;
}

.cta-section {
    padding: 4rem 1.25rem;
    background: linear-gradient(90deg, var(--green-700), var(--green-900));
    color: #ffffff;
}

.cta-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.cta-card h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.cta-card p {
    margin: 0 auto 1.4rem;
    max-width: 760px;
    color: var(--green-100);
    line-height: 1.8;
}

.prose-section {
    max-width: 900px;
}

.prose-card {
    padding: 1.6rem;
}

.prose-card h2 {
    margin: 0 0 1rem;
    font-size: 1.6rem;
}

.prose-card p {
    color: var(--gray-700);
    line-height: 1.9;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.18;
        transform: scale(0.92);
    }
    50% {
        opacity: 0.34;
        transform: scale(1.05);
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .nav-search {
        margin-left: auto;
    }

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

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

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

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

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

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 4rem 0 6rem;
    }

    .hero-poster-card {
        display: none;
    }

    .hero-arrow {
        display: none;
    }

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

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

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

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

    .aside-card {
        position: static;
    }

    .ranking-row {
        grid-template-columns: 42px 86px minmax(0, 1fr);
    }

    .ranking-row strong {
        grid-column: 3;
    }
}

@media (max-width: 560px) {
    .nav-inner {
        padding: 0 0.9rem;
    }

    .brand-text {
        font-size: 1rem;
    }

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

    .hero-copy p {
        font-size: 1rem;
    }

    .content-section {
        padding: 2.6rem 0.9rem;
    }

    .movie-grid,
    .category-grid,
    .category-strip-inner,
    .filter-controls {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .filter-title {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .category-cover {
        min-height: 210px;
    }

    .ranking-row {
        grid-template-columns: 38px 78px minmax(0, 1fr);
        gap: 0.7rem;
    }

    .rank-info p {
        display: none;
    }

    .detail-card {
        padding: 1.1rem;
    }

    .play-icon {
        width: 4rem;
        height: 4rem;
        font-size: 2rem;
    }
}
