/*
 * 国产影视静态站样式
 * 视觉参考上传的原始 CSS：白色粘性导航、绿色/琥珀渐变、圆角卡片、阴影、Hero 大图和响应式网格。
 */
:root {
    --color-stone-50: #fafaf9;
    --color-stone-100: #f5f5f4;
    --color-stone-200: #e7e5e4;
    --color-stone-300: #d6d3d1;
    --color-stone-500: #78716c;
    --color-stone-700: #44403c;
    --color-stone-800: #292524;
    --color-stone-900: #1c1917;
    --color-green-50: #f0fdf4;
    --color-green-100: #dcfce7;
    --color-green-600: #16a34a;
    --color-green-700: #15803d;
    --color-green-800: #166534;
    --color-amber-400: #fbbf24;
    --color-amber-600: #d97706;
    --color-amber-700: #b45309;
    --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.08);
    --shadow-md: 0 8px 20px rgba(28, 25, 23, 0.10);
    --shadow-lg: 0 20px 45px rgba(28, 25, 23, 0.16);
    --radius-lg: 18px;
    --radius-xl: 28px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-stone-800);
    background: linear-gradient(180deg, #fff 0%, var(--color-stone-50) 45%, #fff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.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;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--color-stone-200);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--color-amber-600), var(--color-green-700));
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.06) rotate(-2deg);
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: transparent;
    background: linear-gradient(90deg, var(--color-amber-700), var(--color-green-700));
    -webkit-background-clip: text;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    color: var(--color-stone-700);
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-green-700);
    background: var(--color-green-50);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 0;
    color: var(--color-stone-700);
    background: var(--color-stone-100);
    border-radius: 12px;
    cursor: pointer;
}

.menu-toggle-line {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    color: #fff;
}

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img,
.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.06);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 30%, rgba(22, 163, 74, 0.26), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 48px;
    min-height: 70vh;
    padding: 72px 0;
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-eyebrow span {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    color: #fff;
    background: var(--color-green-600);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
}

.hero-eyebrow strong {
    color: var(--color-amber-400);
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(2.5rem, 7vw, 4.75rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    max-width: 680px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.125rem;
}

.hero-tags,
.tag-list,
.detail-genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-list span,
.detail-genre-tags span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    line-height: 1;
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.tag-list span,
.detail-genre-tags span {
    color: var(--color-green-700);
    background: var(--color-green-50);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--color-green-600), var(--color-green-700));
    box-shadow: 0 12px 25px rgba(21, 128, 61, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--color-green-700), var(--color-green-800));
    box-shadow: 0 18px 34px rgba(21, 128, 61, 0.32);
}

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

.btn-ghost.dark {
    color: var(--color-stone-800);
    border-color: var(--color-stone-200);
    background: rgba(255, 255, 255, 0.68);
}

.hero-focus {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
}

.hero-focus h2 {
    margin: 0 0 16px;
    font-size: 1.1rem;
}

.hero-focus-card {
    display: grid;
    grid-template-columns: 62px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-focus-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
}

.hero-focus-card img {
    width: 62px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

.hero-focus-card span {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-weight: 700;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.section-block {
    padding: 48px 0;
}

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

.section-heading span,
.page-hero span,
.text-panel span {
    display: inline-flex;
    margin-bottom: 4px;
    color: var(--color-green-700);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading h2,
.text-panel h2 {
    margin: 0;
    color: var(--color-stone-900);
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    line-height: 1.1;
}

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

.compact-heading {
    align-items: center;
}

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

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

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

.movie-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-stone-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    border-color: rgba(22, 163, 74, 0.25);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-stone-200), var(--color-green-100));
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    color: #fff;
    background: rgba(22, 163, 74, 0.92);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.card-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.24s ease, transform 0.24s ease;
    backdrop-filter: blur(8px);
}

.movie-card:hover .card-play {
    opacity: 1;
    transform: scale(1);
}

.movie-card-body {
    padding: 16px;
}

.movie-card h3 {
    margin: 0;
    color: var(--color-stone-900);
    font-size: 1rem;
    line-height: 1.35;
}

.movie-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta,
.card-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.card-meta {
    min-height: 36px;
    margin: 8px 0 0;
    color: var(--color-stone-500);
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
}

.card-desc {
    min-height: 66px;
    margin: 10px 0 14px;
    color: var(--color-stone-700);
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
}

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

.category-tile,
.stat-card {
    padding: 22px;
    border: 1px solid var(--color-stone-200);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.category-tile {
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.16), rgba(22, 163, 74, 0.16));
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-tile span {
    color: var(--color-green-700);
    font-size: 0.82rem;
    font-weight: 900;
}

.category-tile strong,
.category-tile em {
    display: block;
}

.category-tile strong {
    margin-top: 6px;
    color: var(--color-stone-900);
    font-size: 1.15rem;
}

.category-tile em {
    margin-top: 8px;
    color: var(--color-stone-500);
    font-style: normal;
}

.stat-card strong {
    display: block;
    color: transparent;
    background: linear-gradient(90deg, var(--color-amber-700), var(--color-green-700));
    -webkit-background-clip: text;
    background-clip: text;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 8px;
    color: var(--color-stone-500);
    font-weight: 700;
}

.split-sections,
.ranking-home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 42px;
}

.ranking-panel,
.ranking-full-panel,
.filter-panel,
.text-panel {
    padding: 24px;
    border: 1px solid var(--color-stone-200);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.rank-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-stone-100);
}

.rank-item:last-child {
    border-bottom: 0;
}

.rank-number {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--color-amber-600), var(--color-green-700));
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 900;
}

.rank-item a {
    overflow: hidden;
    color: var(--color-stone-900);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-item span:last-child {
    color: var(--color-amber-700);
    font-weight: 800;
}

.rank-list-wide {
    columns: 2;
    column-gap: 36px;
}

.rank-list-wide .rank-item {
    break-inside: avoid;
}

.page-hero {
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.2), transparent 28%),
        linear-gradient(135deg, var(--color-stone-900), var(--color-stone-800) 50%, var(--color-green-800));
}

.page-hero .container {
    padding: 72px 0;
}

.soft-hero,
.search-hero {
    color: var(--color-stone-900);
    background:
        radial-gradient(circle at 90% 0%, rgba(22, 163, 74, 0.18), transparent 30%),
        linear-gradient(135deg, #fff, var(--color-green-50));
    border-bottom: 1px solid var(--color-stone-200);
}

.soft-hero p,
.search-hero p {
    color: var(--color-stone-700);
}

.page-actions {
    margin-top: 26px;
}

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

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

.category-card {
    position: relative;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    overflow: hidden;
    min-height: 178px;
    padding: 18px;
    border: 1px solid var(--color-stone-200);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card img {
    width: 120px;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

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

.category-card h2 {
    margin: 4px 0 8px;
    color: var(--color-stone-900);
}

.category-card p {
    margin: 0;
    color: var(--color-stone-600);
}

.category-card strong {
    display: inline-flex;
    margin-top: 12px;
    color: var(--color-amber-700);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px 160px auto;
    align-items: end;
    gap: 16px;
    margin-bottom: 26px;
}

.filter-panel label {
    display: block;
    margin-bottom: 6px;
    color: var(--color-stone-700);
    font-size: 0.85rem;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid var(--color-stone-200);
    border-radius: 14px;
    color: var(--color-stone-900);
    background: var(--color-stone-50);
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--color-green-600);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.filter-count {
    margin: 0;
    color: var(--color-stone-600);
    font-weight: 800;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
}

.detail-bg div {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.32)),
        linear-gradient(0deg, rgba(28, 25, 23, 1), rgba(28, 25, 23, 0.12));
}

.detail-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 38px;
    padding: 44px 0 64px;
}

.breadcrumbs {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.breadcrumbs a:hover {
    color: #fff;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.detail-info {
    align-self: center;
}

.detail-info h1 {
    font-size: clamp(2.25rem, 6vw, 4.4rem);
}

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

.detail-meta span {
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.player-shell {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    background: #000;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.movie-video {
    width: 100%;
    min-height: 420px;
    max-height: 74vh;
    background: #000;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    width: 100%;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(22, 163, 74, 0.38), rgba(0, 0, 0, 0.58));
    cursor: pointer;
}

.play-overlay span {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    padding-left: 4px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-amber-600), var(--color-green-700));
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    font-size: 2rem;
}

.play-overlay strong {
    font-size: 1.45rem;
}

.play-overlay em {
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
}

.player-shell.is-playing .play-overlay {
    display: none;
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 14px;
    margin: 0;
    padding: 6px 10px;
    color: rgba(255, 255, 255, 0.84);
    background: rgba(0, 0, 0, 0.38);
    border-radius: 999px;
    font-size: 0.82rem;
    pointer-events: none;
}

.player-shell.is-playing .player-status {
    display: none;
}

.detail-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.text-panel p {
    margin: 12px 0 0;
    color: var(--color-stone-700);
}

.text-panel-wide {
    grid-column: 1 / -1;
}

.detail-genre-tags {
    margin-top: 16px;
}

.site-footer {
    margin-top: 64px;
    color: var(--color-stone-300);
    background: linear-gradient(90deg, var(--color-stone-900), var(--color-stone-800));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 36px;
    padding: 54px 0 34px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: #fff;
}

.site-footer p,
.site-footer ul {
    margin: 0;
}

.site-footer p {
    color: var(--color-stone-300);
}

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

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

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--color-stone-400);
}

@media (max-width: 1080px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

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

    .hero-focus h2 {
        grid-column: 1 / -1;
    }

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

    .hero-focus-card img {
        width: 100%;
    }

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

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

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

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

    .nav-menu {
        position: fixed;
        top: 68px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--color-stone-200);
        border-radius: 18px;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-link {
        justify-content: center;
    }

    .hero,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding: 64px 0;
    }

    .hero h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: clamp(2.1rem, 12vw, 3.4rem);
    }

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

    .stats-grid,
    .category-grid,
    .split-sections,
    .ranking-home,
    .detail-text-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .rank-list-wide {
        columns: 1;
    }
}

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

    .brand-name {
        font-size: 1.05rem;
    }

    .hero-actions,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-focus {
        display: none;
    }

    .section-block {
        padding: 34px 0;
    }

    .movie-grid-four,
    .movie-grid-six {
        gap: 14px;
    }

    .movie-card-body {
        padding: 12px;
    }

    .card-desc {
        display: none;
    }

    .category-card {
        grid-template-columns: 92px 1fr;
        min-height: 142px;
        padding: 12px;
    }

    .category-card img {
        width: 92px;
        border-radius: 14px;
    }

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

    .player-shell,
    .movie-video {
        min-height: 260px;
    }
}
