:root {
    color-scheme: dark;
    --bg: #0f172a;
    --bg-deep: #020617;
    --panel: #1e293b;
    --panel-soft: rgba(30, 41, 59, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-soft: rgba(245, 158, 11, 0.18);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --shadow: 0 24px 60px rgba(2, 6, 23, 0.48);
    --max: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.12), transparent 28rem),
        linear-gradient(180deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
    color: var(--text);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 72%);
}

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

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

button,
input,
select {
    font: inherit;
}

.shell {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(100% - 32px, var(--max));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #f97316);
    color: #ffffff;
    box-shadow: 0 0 26px rgba(245, 158, 11, 0.42);
    font-size: 14px;
}

.brand-name {
    font-size: 21px;
    color: #ffffff;
    white-space: nowrap;
}

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

.nav-link,
.mobile-link {
    color: #cbd5e1;
    font-weight: 650;
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #ffffff;
    background: var(--accent-soft);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-row input,
.filter-row select {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 210px;
    padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-row input:focus,
.filter-row select:focus {
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

.header-search button,
.mobile-search button,
.btn,
.section-link {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 750;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.header-search button,
.mobile-search button {
    padding: 10px 16px;
    background: var(--accent);
    color: #ffffff;
}

.header-search button:hover,
.mobile-search button:hover,
.btn-primary:hover {
    background: var(--accent-dark);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #e2e8f0;
    border-radius: 10px;
}

.mobile-panel {
    display: none;
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-link {
    display: block;
    margin: 4px 0;
}

.mobile-search {
    margin-top: 12px;
}

.mobile-search input {
    flex: 1;
    padding: 12px 14px;
}

.hero {
    position: relative;
    height: min(760px, 72vh);
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.42) blur(2px);
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.26)),
        linear-gradient(0deg, #0f172a 0%, transparent 34%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--max));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 48px;
}

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

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.hero-title-lite {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.06;
    font-weight: 850;
}

.hero-desc {
    max-width: 680px;
    margin: 0 0 24px;
    color: #e2e8f0;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

.hero-tags,
.detail-meta,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-tags span,
.detail-meta span,
.detail-meta a,
.tag-list span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #f8fafc;
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
}

.btn:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.24);
}

.btn-ghost {
    border: 1px solid var(--line);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.5);
}

.btn-ghost:hover {
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(245, 158, 11, 0.16);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 34px rgba(245, 158, 11, 0.42);
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 34px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 58px;
    background: var(--accent);
}

.section {
    padding: 74px 0;
}

.section-muted {
    background: rgba(15, 23, 42, 0.36);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2,
.page-hero h1,
.detail-card h1 {
    margin: 0;
    color: #ffffff;
    font-weight: 880;
    letter-spacing: -0.04em;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 44px);
}

.section-heading p:not(.eyebrow),
.page-hero p,
.footer-grid p {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.8;
}

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

.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.38);
}

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

.quick-links a {
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: #e2e8f0;
    font-weight: 750;
    transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.quick-links a:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.13);
}

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

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

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

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

.movie-card a {
    display: block;
    height: 100%;
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.72);
    box-shadow: 0 20px 42px rgba(2, 6, 23, 0.22);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card a:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: var(--shadow);
    border-color: rgba(245, 158, 11, 0.32);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.92));
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92), transparent);
    opacity: 0.86;
}

.poster-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
}

.poster-year {
    right: 10px;
    background: rgba(245, 158, 11, 0.94);
}

.rank-badge {
    left: 10px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.poster-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--accent);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 8px;
    min-height: 2.7em;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card a:hover .movie-info h3 {
    color: var(--accent);
}

.movie-info p {
    margin: 0 0 12px;
    min-height: 3.1em;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    gap: 8px;
    color: #94a3b8;
    font-size: 12px;
}

.movie-meta span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-compact .movie-info h3 {
    font-size: 14px;
}

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

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

.category-tile {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    min-height: 190px;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.14);
    overflow: hidden;
    transition: transform 0.22s ease, border 0.22s ease, background 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(30, 41, 59, 0.92);
}

.category-tile img {
    width: 150px;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    border-radius: 20px;
}

.category-tile h3 {
    margin: 4px 0 10px;
    color: #ffffff;
    font-size: 24px;
}

.category-tile p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.65;
}

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

.category-samples span {
    max-width: 180px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #f8fafc;
    background: rgba(245, 158, 11, 0.14);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.page-hero {
    padding: 92px 0 52px;
    background:
        radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.13), transparent 24rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.42), rgba(15, 23, 42, 0.1));
    border-bottom: 1px solid var(--line);
}

.page-hero.compact {
    padding: 58px 0 44px;
}

.page-hero h1 {
    font-size: clamp(38px, 6vw, 66px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 24px;
    color: #94a3b8;
    font-size: 14px;
}

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

.filter-panel {
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.56);
    border: 1px solid var(--line);
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
    gap: 12px;
}

.filter-row input,
.filter-row select {
    width: 100%;
    padding: 13px 15px;
}

.movie-card.is-hidden {
    display: none;
}

.detail-shell {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 38px 0 74px;
}

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

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

.player-card,
.detail-card,
.related-box,
.side-poster {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-xl);
    background: rgba(30, 41, 59, 0.76);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.25);
}

.player-card {
    overflow: hidden;
    margin-bottom: 24px;
    background: #000000;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: rgba(2, 6, 23, 0.28);
    overflow: hidden;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45) blur(1px);
    transform: scale(1.02);
}

.play-circle,
.play-text {
    position: relative;
    z-index: 2;
}

.play-circle {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 30px;
    box-shadow: 0 0 38px rgba(245, 158, 11, 0.55);
}

.play-text {
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    font-weight: 800;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.detail-card {
    padding: clamp(24px, 4vw, 38px);
}

.detail-card h1 {
    margin-bottom: 18px;
    font-size: clamp(32px, 5vw, 56px);
}

.detail-card .one-line {
    margin: 26px 0;
    padding: 20px 22px;
    border-left: 4px solid var(--accent);
    border-radius: 18px;
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    font-size: 18px;
    line-height: 1.75;
}

.detail-card section {
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid var(--line);
}

.detail-card h2,
.related-box h2,
.site-footer h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 22px;
}

.detail-card p {
    color: #cbd5e1;
    line-height: 1.9;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.side-poster,
.related-box {
    padding: 18px;
    margin-bottom: 22px;
}

.side-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 22px;
    margin-bottom: 16px;
}

.side-poster strong,
.side-poster span {
    display: block;
}

.side-poster strong {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.35;
}

.side-poster span {
    margin-top: 6px;
    color: var(--muted);
}

.related-box {
    position: sticky;
    top: 96px;
}

.related-list {
    display: grid;
    gap: 12px;
}

.mini-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.42);
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
    background: rgba(245, 158, 11, 0.12);
    transform: translateX(3px);
}

.mini-card img {
    width: 76px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.mini-card strong,
.mini-card em {
    display: block;
}

.mini-card strong {
    color: #ffffff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-card em {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.86);
}

.footer-grid {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 20px;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    color: #64748b;
    text-align: center;
    font-size: 14px;
}

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

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

    .menu-toggle {
        display: block;
    }

    .hero-inner {
        grid-template-columns: 1fr 260px;
    }

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

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

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

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

    .related-box {
        position: static;
    }
}

@media (max-width: 760px) {
    .nav-shell {
        height: 66px;
        gap: 12px;
    }

    .brand-name {
        font-size: 18px;
    }

    .header-search {
        display: none;
    }

    .hero {
        min-height: 720px;
        height: auto;
    }

    .hero-slide {
        min-height: 720px;
    }

    .hero-inner {
        min-height: 720px;
        padding: 54px 0 92px;
        grid-template-columns: 1fr;
        align-items: end;
    }

    .hero-poster {
        width: min(250px, 76vw);
        grid-row: 1;
        transform: none;
    }

    .hero-copy {
        grid-row: 2;
    }

    .hero h1,
    .hero-title-lite {
        font-size: 42px;
    }

    .hero h2 {
        font-size: 30px;
    }

    .quick-links {
        grid-template-columns: 1fr 1fr;
    }

    .section {
        padding: 50px 0;
    }

    .section-heading.with-link {
        display: block;
    }

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

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

    .movie-info {
        padding: 13px;
    }

    .movie-info h3 {
        font-size: 14px;
    }

    .movie-info p {
        font-size: 12px;
    }

    .category-tile {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .category-tile img {
        width: 110px;
        min-height: 138px;
    }

    .category-tile h3 {
        font-size: 20px;
    }

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

    .page-hero,
    .page-hero.compact {
        padding: 42px 0 32px;
    }

    .detail-shell {
        padding-top: 24px;
    }

    .detail-card {
        padding: 22px;
    }

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

@media (max-width: 440px) {
    .movie-grid,
    .featured-grid,
    .compact-grid,
    .rank-grid,
    .rank-page-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

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

    .category-tile img {
        width: 100%;
        height: 180px;
    }
}
