:root {
    --rose: #e11d48;
    --rose-dark: #be123c;
    --orange: #f97316;
    --amber: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --paper: #ffffff;
    --line: #e5e7eb;
    --soft: #fff7ed;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
    --shadow-soft: 0 12px 28px rgba(17, 24, 39, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ink);
    background: #f9fafb;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
    border-bottom: 1px solid rgba(229, 231, 235, 0.88);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink);
}

.brand-mark {
    width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #fb7185, #fdba74);
    box-shadow: 0 10px 25px rgba(244, 63, 94, 0.28);
}

.brand-name {
    font-size: 1.32rem;
    line-height: 1.1;
    font-weight: 900;
    background: linear-gradient(90deg, var(--rose-dark), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-nav {
    gap: 2rem;
}

.nav-link {
    position: relative;
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.5rem;
    height: 0.16rem;
    border-radius: 999px;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--rose), var(--orange));
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--rose-dark);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.8rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.28rem;
    background: #fff7ed;
}

.menu-toggle span {
    width: 1.25rem;
    height: 0.13rem;
    border-radius: 999px;
    background: var(--rose-dark);
}

.mobile-menu {
    display: none;
    padding: 0 0 1rem;
    border-top: 1px solid var(--line);
}

.mobile-menu.is-open {
    display: grid;
    gap: 0.35rem;
}

.mobile-link {
    padding: 0.72rem 0.25rem;
    color: #374151;
    font-weight: 700;
}

.mobile-link-sub {
    color: var(--rose-dark);
    font-size: 0.95rem;
}

.hero-carousel {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: linear-gradient(115deg, #fff1f2 0%, #fff7ed 45%, #fffbeb 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.6;
    background:
        radial-gradient(circle at 12% 18%, rgba(244, 63, 94, 0.18), transparent 26rem),
        radial-gradient(circle at 82% 20%, rgba(249, 115, 22, 0.16), transparent 24rem),
        linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
}

.hero-track {
    position: relative;
    width: min(1180px, calc(100% - 2rem));
    min-height: 585px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.78fr);
    gap: 3rem;
    align-items: center;
    padding: 4rem 0 3rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: var(--rose-dark);
    font-weight: 800;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(251, 113, 133, 0.26);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.1);
}

.hero-copy h1 {
    margin: 1rem 0 0;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.05em;
    color: var(--ink);
}

.hero-copy h2 {
    margin: 1rem 0 0;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    line-height: 1.18;
    font-weight: 900;
    background: linear-gradient(90deg, var(--rose-dark), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    margin: 1.1rem 0 0;
    font-size: 1.08rem;
    line-height: 1.85;
    color: #4b5563;
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.15rem;
}

.hero-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    color: var(--rose-dark);
    font-weight: 700;
    font-size: 0.86rem;
    background: #fff;
    border: 1px solid rgba(244, 63, 94, 0.16);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-primary,
.hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.3rem;
    padding: 0 1.8rem;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hero-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    box-shadow: 0 16px 30px rgba(225, 29, 72, 0.25);
}

.hero-secondary {
    color: #1f2937;
    background: rgba(255, 255, 255, 0.88);
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
}

.hero-primary:hover,
.hero-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.hero-cover {
    position: relative;
    display: block;
    width: min(390px, 100%);
    justify-self: end;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(17, 24, 39, 0.22);
    border: 10px solid rgba(255, 255, 255, 0.74);
    background: linear-gradient(135deg, #f3f4f6, #fff7ed);
}

.hero-cover img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-cover:hover img {
    transform: scale(1.06);
}

.hero-cover span {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: 2.5rem;
    color: #fff;
    font-weight: 850;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(12px);
}

.hero-controls {
    position: relative;
    width: min(1180px, calc(100% - 2rem));
    margin: -2.4rem auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 2;
}

.hero-dots {
    display: flex;
    gap: 0.55rem;
}

.hero-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: rgba(190, 18, 60, 0.26);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 2.4rem;
    background: linear-gradient(90deg, var(--rose), var(--orange));
}

.hero-rank-link {
    color: var(--rose-dark);
    font-weight: 900;
}

.hero-category-links {
    position: relative;
    width: min(1180px, calc(100% - 2rem));
    margin: 1.2rem auto 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    z-index: 2;
}

.hero-category-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0 1rem;
    border-radius: 999px;
    color: #374151;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.92);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.4rem;
    margin-bottom: 2rem;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.25rem);
    line-height: 1.1;
    font-weight: 950;
    color: var(--ink);
}

.section-head p {
    margin-top: 0.55rem;
    color: var(--muted);
}

.section-head a {
    flex-shrink: 0;
    color: var(--rose-dark);
    font-weight: 900;
}

.section-head-dark h2 {
    color: #fff;
}

.section-head-dark p {
    color: #d1d5db;
}

.section-head-dark a {
    color: #fda4af;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.74fr) minmax(300px, 1fr);
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2.2rem;
    padding: 1.2rem;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(229, 231, 235, 0.86);
}

.search-panel h2 {
    font-size: 1.35rem;
    font-weight: 950;
}

.search-panel p {
    margin-top: 0.35rem;
    color: var(--muted);
    line-height: 1.7;
}

.search-box input {
    width: 100%;
    min-height: 3.1rem;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #f9fafb;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
    border-color: rgba(225, 29, 72, 0.42);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.filter-chip {
    min-height: 2.2rem;
    padding: 0 0.85rem;
    border-radius: 999px;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 800;
    background: #f3f4f6;
    transition: background 0.2s ease, color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: #fff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
}

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

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

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

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

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

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 1.25rem;
    background: var(--paper);
    border: 1px solid rgba(229, 231, 235, 0.86);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(251, 113, 133, 0.34);
}

.movie-poster {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #f3f4f6, #fff7ed);
}

.featured-grid .movie-poster {
    aspect-ratio: 4 / 3;
}

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

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

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

.movie-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    padding: 0 0.62rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 850;
    color: var(--rose-dark);
    background: #fff1f2;
}

.movie-card h3 {
    margin-top: 0.7rem;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 950;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card p {
    margin-top: 0.5rem;
    min-height: 3.2rem;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: block;
    margin-top: 0.72rem;
    color: #9ca3af;
    font-size: 0.82rem;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-band {
    padding: 4rem 0;
    background: linear-gradient(90deg, #fffbeb, #fff7ed);
}

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

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

.category-card a {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 1.45rem;
    background: #fff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(229, 231, 235, 0.88);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fff1f2, #fffbeb);
}

.category-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-body {
    display: block;
    padding: 1.1rem;
}

.category-body strong {
    display: block;
    font-size: 1.18rem;
    font-weight: 950;
}

.category-body em {
    display: block;
    margin-top: 0.5rem;
    min-height: 4.5rem;
    color: var(--muted);
    font-style: normal;
    line-height: 1.65;
    font-size: 0.92rem;
}

.category-body span {
    display: inline-flex;
    margin-top: 0.85rem;
    color: var(--rose-dark);
    font-weight: 900;
}

.ranking-band {
    padding: 4rem 0;
    background: linear-gradient(135deg, #111827, #1f2937);
}

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

.ranking-list-page {
    gap: 1rem;
}

.ranking-row {
    min-width: 0;
}

.ranking-link {
    display: grid;
    grid-template-columns: 4rem 5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 0.95rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-band .ranking-link {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.ranking-link:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.ranking-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 1rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 950;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

.ranking-thumb {
    display: block;
    overflow: hidden;
    border-radius: 0.8rem;
    aspect-ratio: 1;
    background: #f3f4f6;
}

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

.ranking-copy {
    min-width: 0;
}

.ranking-copy strong {
    display: block;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-band .ranking-copy strong {
    color: #fff;
}

.ranking-copy em {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-style: normal;
    line-height: 1.55;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-band .ranking-copy em {
    color: #d1d5db;
}

.ranking-copy span {
    display: block;
    margin-top: 0.32rem;
    color: #9ca3af;
    font-size: 0.82rem;
}

.page-hero {
    padding: 4.5rem 0;
    color: #fff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
}

.page-hero-soft {
    color: var(--ink);
    background: linear-gradient(115deg, #fff1f2, #fff7ed);
}

.page-hero-dark {
    background: linear-gradient(135deg, #111827, #374151);
}

.page-hero span,
.breadcrumb-link {
    display: inline-flex;
    margin-bottom: 0.8rem;
    font-weight: 900;
    opacity: 0.92;
}

.page-hero h1 {
    max-width: 820px;
    font-size: clamp(2.1rem, 5vw, 3.75rem);
    line-height: 1.08;
    font-weight: 950;
}

.page-hero p {
    max-width: 760px;
    margin-top: 1rem;
    font-size: 1.08rem;
    line-height: 1.85;
    opacity: 0.9;
}

.page-hero-soft p {
    color: #4b5563;
}

.detail-shell {
    width: min(1280px, 100%);
}

.detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    color: #6b7280;
    font-weight: 800;
}

.detail-breadcrumb a {
    color: var(--rose-dark);
}

.detail-card,
.related-panel {
    overflow: hidden;
    border-radius: 1.6rem;
    background: #fff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(229, 231, 235, 0.88);
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.movie-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    color: #fff;
    cursor: pointer;
    background: radial-gradient(circle, rgba(17, 24, 39, 0.25), rgba(17, 24, 39, 0.68));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 18px 40px rgba(225, 29, 72, 0.32);
    position: relative;
}

.play-icon::before {
    content: "";
    position: absolute;
    left: 2.15rem;
    top: 1.7rem;
    width: 0;
    height: 0;
    border-top: 1.05rem solid transparent;
    border-bottom: 1.05rem solid transparent;
    border-left: 1.45rem solid #fff;
}

.player-overlay strong {
    font-size: 1.12rem;
    letter-spacing: 0.08em;
}

.detail-content {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 2rem;
    padding: 2rem;
}

.detail-poster {
    overflow: hidden;
    border-radius: 1.2rem;
    background: #f3f4f6;
    box-shadow: var(--shadow-soft);
}

.detail-poster img {
    aspect-ratio: 3 / 4;
    height: 100%;
    object-fit: cover;
}

.detail-copy h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.15;
    font-weight: 950;
}

.detail-one-line {
    margin-top: 1rem;
    color: #4b5563;
    font-size: 1.06rem;
    line-height: 1.85;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.2rem;
}

.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 0.72rem;
    border-radius: 0.7rem;
    color: #4b5563;
    font-weight: 800;
    background: #f3f4f6;
}

.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
    gap: 1.4rem;
    padding: 0 2rem 2rem;
}

.story-grid section {
    padding: 1.25rem;
    border-radius: 1.15rem;
    background: #f9fafb;
    border: 1px solid rgba(229, 231, 235, 0.78);
}

.story-grid h2 {
    font-size: 1.25rem;
    font-weight: 950;
    margin-bottom: 0.6rem;
}

.story-grid p {
    color: #4b5563;
    line-height: 1.9;
}

.related-panel {
    margin-top: 1.4rem;
    padding: 1.5rem;
}

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

.small-movie-card a {
    display: block;
}

.small-poster {
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 3 / 4;
    background: #f3f4f6;
    box-shadow: var(--shadow-soft);
}

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

.small-movie-card a:hover img {
    transform: scale(1.08);
}

.small-movie-card strong {
    display: block;
    margin-top: 0.65rem;
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.35;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.small-movie-card em {
    display: block;
    margin-top: 0.24rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
}

.empty-state {
    display: none;
    padding: 3rem 1rem;
    text-align: center;
    color: #6b7280;
    font-weight: 800;
}

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

.site-footer {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #d1d5db;
    padding-top: 3.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 2rem;
}

.footer-logo {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 950;
    margin-bottom: 0.8rem;
}

.site-footer h2 {
    color: #fff;
    font-size: 1.02rem;
    font-weight: 950;
    margin-bottom: 0.8rem;
}

.site-footer p,
.site-footer li {
    color: #9ca3af;
    line-height: 1.8;
}

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

.footer-cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.15rem 0.9rem;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding: 1.1rem;
    text-align: center;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 0.62fr);
        gap: 2rem;
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
    }

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

    .hero-track {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding-top: 2.5rem;
        gap: 1.6rem;
    }

    .hero-cover {
        justify-self: start;
        width: min(290px, 92%);
    }

    .hero-controls {
        margin-top: -1rem;
        align-items: flex-start;
        flex-direction: column;
    }

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

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

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

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

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

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

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

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

@media (max-width: 560px) {
    .brand-name {
        font-size: 1.05rem;
    }

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

    .hero-track {
        width: calc(100% - 1.2rem);
        min-height: 805px;
    }

    .hero-category-links,
    .hero-controls {
        width: calc(100% - 1.2rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-primary,
    .hero-secondary {
        width: 100%;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .category-movie-grid,
    .category-grid,
    .large-category-grid {
        grid-template-columns: 1fr;
    }

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

    .ranking-link {
        grid-template-columns: 3.2rem 4rem minmax(0, 1fr);
        gap: 0.7rem;
        padding: 0.7rem;
    }

    .ranking-index {
        width: 2.7rem;
        height: 2.7rem;
        font-size: 1rem;
    }

    .detail-content,
    .story-grid,
    .related-panel {
        padding: 1rem;
    }

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