:root {
    color-scheme: dark;
    --bg: #0f172a;
    --bg-soft: #111827;
    --panel: rgba(30, 41, 59, 0.78);
    --panel-strong: #1e293b;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #22d3ee;
    --cyan-strong: #06b6d4;
    --orange: #fb923c;
    --green: #4ade80;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --radius: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 32rem),
        linear-gradient(180deg, #0f172a 0%, #111827 52%, #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.45), transparent 70%);
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

main {
    min-height: 68vh;
}

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

.site-nav {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cyan);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.brand__icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--cyan-strong), #2563eb);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.28);
    font-size: 14px;
}

.brand--footer {
    font-size: 22px;
    margin-bottom: 16px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted-strong);
}

.nav-links > a,
.nav-dropdown > button {
    color: var(--muted-strong);
    border: 0;
    background: transparent;
    transition: color 0.2s ease;
}

.nav-links > a:hover,
.nav-dropdown > button:hover,
.mobile-panel a:hover {
    color: var(--cyan);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 170px;
    padding: 8px;
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown__menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted-strong);
}

.nav-dropdown__menu a:hover {
    color: var(--cyan);
    background: rgba(51, 65, 85, 0.75);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.68);
}

.nav-search input,
.hero-search input,
.search-form input,
.search-form select,
.local-filter input {
    min-width: 0;
    color: var(--text);
    border: 1px solid var(--line);
    outline: 0;
    background: rgba(15, 23, 42, 0.72);
}

.nav-search input {
    width: 210px;
    padding: 9px 14px;
    border: 0;
    background: transparent;
}

.nav-search button,
.hero-search button,
.search-form button {
    border: 0;
    color: white;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan-strong), #2563eb);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button {
    padding: 9px 15px;
}

.nav-search button:hover,
.hero-search button:hover,
.search-form button:hover,
.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(6, 182, 212, 0.26);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.75);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.mobile-panel {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid var(--line);
}

.mobile-panel a {
    display: block;
    padding: 11px 0;
    color: var(--muted-strong);
}

.mobile-panel__group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 16px;
    padding-top: 8px;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    isolation: isolate;
}

.hero__media-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.hero-cover {
    position: relative;
    min-width: 0;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(37, 99, 235, 0.18));
    overflow: hidden;
}

.hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.08);
    transition: transform 0.8s ease, opacity 0.4s ease;
}

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

.hero-cover span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 22px;
    z-index: 2;
    color: rgba(255,255,255,0.85);
    font-weight: 700;
    text-shadow: 0 3px 20px rgba(0,0,0,0.5);
}

.hero-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.08));
}

.hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.1)),
        linear-gradient(180deg, rgba(15, 23, 42, 0.08), #0f172a 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--container));
    min-height: 640px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: min(100% - 32px, var(--container));
}

.hero__content > * {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    color: white;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero p,
.page-hero p {
    margin: 22px 0 0;
    color: var(--muted-strong);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

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

.hero__meta span,
.detail-meta span,
.detail-meta a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.56);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 26px;
    border-radius: 14px;
    font-weight: 800;
    transition: 0.2s ease;
}

.button--primary {
    color: white;
    background: linear-gradient(135deg, var(--cyan-strong), #2563eb);
}

.button--glass {
    border: 1px solid var(--line);
    color: white;
    background: rgba(51, 65, 85, 0.72);
    backdrop-filter: blur(14px);
}

.hero-search {
    display: flex;
    gap: 10px;
    width: min(100%, 680px);
    margin-top: 28px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.66);
    backdrop-filter: blur(14px);
}

.hero-search input {
    flex: 1;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 13px;
}

.hero-search button,
.search-form button {
    padding: 0 24px;
    min-height: 48px;
}

.section-wrap {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 54px 0;
}

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

.section-heading h2,
.link-panel h2,
.related-panel h2 {
    margin: 0;
    color: white;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
}

.section-heading a {
    color: var(--cyan);
    font-weight: 700;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card__link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(30, 41, 59, 0.84);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card__link:hover {
    transform: translateY(-5px) scale(1.015);
    border-color: rgba(34, 211, 238, 0.72);
    box-shadow: 0 20px 46px rgba(6, 182, 212, 0.14);
}

.movie-card__cover {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(30, 41, 59, 0.96));
}

.movie-card--large .movie-card__cover {
    aspect-ratio: 16 / 9;
}

.movie-card--small .movie-card__cover {
    aspect-ratio: 16 / 9;
}

.movie-card__cover img,
.compact-card__cover img,
.category-card__covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.25s ease;
}

.movie-card__link:hover img,
.compact-card:hover img,
.category-card:hover img {
    transform: scale(1.08);
}

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

.movie-card__link:hover .movie-card__cover::after {
    opacity: 1;
}

.movie-card__fallback,
.compact-card__cover span {
    position: absolute;
    inset: auto 14px 14px;
    z-index: 1;
    display: none;
    color: white;
    font-weight: 800;
    line-height: 1.35;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.58);
}

.is-missing .movie-card__fallback,
.is-missing span {
    display: block;
}

.is-missing img {
    display: none;
}

.movie-card__badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 6px 9px;
    border-radius: 9px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(10px);
}

.movie-card__badge--type {
    left: 12px;
    background: rgba(249, 115, 22, 0.86);
}

.movie-card__badge--region {
    right: 12px;
}

.movie-card__play {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 3;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: rgba(6, 182, 212, 0.88);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: 0.25s ease;
}

.movie-card__link:hover .movie-card__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-card__body {
    padding: 18px;
}

.movie-card__body h3 {
    margin: 0 0 10px;
    color: white;
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card__body p {
    margin: 0;
    min-height: 44px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

.movie-card__meta span:last-child {
    color: var(--cyan);
}

.movie-card__tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.movie-card__tags span,
.tag-list span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 12px;
    background: rgba(51, 65, 85, 0.72);
}

.ranking-strip,
.category-panel,
.link-panel,
.search-panel {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(30, 41, 59, 0.42);
    box-shadow: var(--shadow);
    padding: 34px;
}

.rank-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 28px;
    align-items: start;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.42);
    transition: 0.2s ease;
}

.rank-item:hover {
    border-color: rgba(34, 211, 238, 0.56);
    transform: translateX(4px);
}

.rank-item__number {
    color: var(--orange);
    font-size: 22px;
    font-weight: 900;
}

.rank-item__title {
    color: white;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-item__meta {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

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

.category-tile {
    min-height: 142px;
    padding: 22px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(37, 99, 235, 0.08));
    transition: 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.52);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(37, 99, 235, 0.14));
}

.category-tile strong {
    display: block;
    margin-bottom: 10px;
    color: white;
    font-size: 20px;
}

.category-tile span {
    color: var(--muted-strong);
    font-size: 14px;
    line-height: 1.65;
}

.page-hero {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 72px 0 36px;
}

.page-hero--compact {
    max-width: 860px;
    text-align: center;
}

.page-hero--compact .eyebrow {
    margin-inline: auto;
}

.page-hero--category {
    padding-bottom: 20px;
}

.local-filter {
    margin-top: 26px;
}

.local-filter input {
    width: min(100%, 560px);
    min-height: 50px;
    padding: 0 16px;
    border-radius: 14px;
}

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

.category-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(30, 41, 59, 0.68);
    transition: 0.24s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.52);
}

.category-card__covers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    aspect-ratio: 16 / 9;
    background: rgba(15, 23, 42, 0.7);
    overflow: hidden;
}

.category-card__body {
    padding: 22px;
}

.category-card__body h2 {
    margin: 0 0 10px;
    color: white;
}

.category-card__body p {
    margin: 0;
    color: var(--muted-strong);
    line-height: 1.7;
}

.link-panel h2 {
    margin-bottom: 18px;
    font-size: 26px;
}

.link-panel div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.link-panel a {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.36);
}

.link-panel a:hover {
    color: var(--cyan);
    border-color: rgba(34, 211, 238, 0.45);
}

.search-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 0.7fr)) auto;
    gap: 12px;
    margin-bottom: 18px;
}

.search-form input,
.search-form select {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 13px;
}

.search-form select {
    appearance: none;
}

.search-summary {
    margin-bottom: 22px;
    color: var(--muted);
}

.detail-wrap {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.78fr);
    gap: 30px;
    padding: 34px 0 70px;
}

.back-link {
    display: inline-flex;
    margin: 0 0 18px;
    color: var(--muted-strong);
}

.back-link:hover {
    color: var(--cyan);
}

.player-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #020617;
    box-shadow: var(--shadow);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: black;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 12px;
    color: white;
    border: 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.38), rgba(2, 6, 23, 0.84));
    transition: opacity 0.2s ease;
}

.player-overlay[hidden] {
    display: none;
}

.player-overlay span {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan-strong), #2563eb);
    box-shadow: 0 22px 46px rgba(6, 182, 212, 0.32);
    font-size: 30px;
}

.player-overlay strong {
    font-size: 18px;
}

.player-status {
    padding: 12px 16px;
    color: var(--muted);
    font-size: 13px;
    background: rgba(15, 23, 42, 0.88);
}

.detail-card,
.related-panel {
    margin-top: 22px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.72);
}

.detail-card h1 {
    margin: 0;
    color: white;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.detail-card section {
    padding-top: 24px;
}

.detail-card h2 {
    margin: 0 0 12px;
    color: white;
    font-size: 20px;
}

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

.lead-text {
    color: white !important;
    font-size: 18px;
    font-style: italic;
}

.related-panel {
    position: sticky;
    top: 92px;
    align-self: start;
}

.related-panel h2 {
    margin-bottom: 18px;
    font-size: 24px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.4);
    transition: 0.2s ease;
}

.compact-card:hover {
    background: rgba(51, 65, 85, 0.62);
}

.compact-card__cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.26), rgba(15, 23, 42, 0.8));
}

.compact-card strong {
    display: -webkit-box;
    color: white;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-card small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

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

.footer-grid {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 36px;
    padding: 46px 0;
}

.footer-grid p,
.footer-grid a {
    color: var(--muted);
    line-height: 1.8;
}

.footer-grid a {
    display: block;
}

.footer-grid a:hover {
    color: var(--cyan);
}

.footer-grid h3 {
    margin: 0 0 12px;
    color: white;
}

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

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

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

    .related-panel {
        position: static;
    }

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

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

    .menu-toggle {
        display: flex;
    }

    .hero {
        min-height: 660px;
    }

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

    .hero-cover:nth-child(n+2) {
        display: none;
    }

    .hero__shade {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.52), #0f172a 82%);
    }

    .hero__content {
        min-height: 660px;
        justify-content: end;
        padding-bottom: 44px;
    }

    .hero-search,
    .section-heading,
    .rank-grid {
        display: block;
    }

    .hero-search input,
    .hero-search button {
        width: 100%;
        margin-top: 10px;
    }

    .section-heading a {
        display: inline-block;
        margin-top: 14px;
    }

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

    .rank-feature {
        margin-top: 22px;
    }

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

@media (max-width: 560px) {
    .site-nav {
        width: min(100% - 24px, var(--container));
    }

    .brand {
        font-size: 20px;
    }

    .section-wrap,
    .page-hero,
    .detail-wrap {
        width: min(100% - 24px, var(--container));
    }

    .movie-grid--three,
    .movie-grid--four,
    .category-grid,
    .category-card-grid,
    .search-form {
        grid-template-columns: 1fr;
    }

    .ranking-strip,
    .category-panel,
    .link-panel,
    .search-panel,
    .detail-card,
    .related-panel {
        padding: 20px;
        border-radius: 20px;
    }

    .rank-item {
        grid-template-columns: 44px 1fr;
    }

    .rank-item__meta {
        grid-column: 2;
    }

    .compact-card {
        grid-template-columns: 96px 1fr;
    }
}
