:root {
    --bg: #030712;
    --panel: #111827;
    --panel-soft: rgba(17, 24, 39, 0.72);
    --panel-deep: #0b1120;
    --line: rgba(55, 65, 81, 0.9);
    --text: #f9fafb;
    --muted: #9ca3af;
    --muted-strong: #d1d5db;
    --brand: #10b981;
    --brand-light: #34d399;
    --brand-deep: #059669;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.13), transparent 34rem),
        linear-gradient(180deg, #030712 0%, #050816 52%, #030712 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
    background: #111827;
}

body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
    background: var(--brand);
    border-radius: 999px;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(31, 41, 55, 0.95);
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-light);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(52, 211, 153, 0.45);
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.18);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.22);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--muted-strong);
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-light);
}

.menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: 0;
    color: var(--text);
    background: transparent;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: var(--muted-strong);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.96);
}

.mobile-nav a {
    display: block;
    padding: 12px;
    color: var(--muted-strong);
}

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

.site-main {
    min-height: 70vh;
}

.hero-carousel {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: var(--panel-deep);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    padding: 132px max(24px, calc((100vw - 1180px) / 2)) 92px;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1.1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    max-width: 690px;
}

.eyebrow,
.hero-content .eyebrow,
.section-title span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 12px;
    border: 1px solid rgba(52, 211, 153, 0.45);
    border-radius: 999px;
    color: var(--brand-light);
    background: rgba(16, 185, 129, 0.16);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-content h1 {
    margin: 18px 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 640px;
    margin: 0 0 22px;
    color: var(--muted-strong);
    font-size: 19px;
}

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

.hero-tags span,
.detail-tags a,
.tag-row span {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(31, 41, 55, 0.78);
    font-size: 12px;
}

.hero-actions,
.detail-info .primary-button {
    margin-top: 28px;
}

.primary-button,
.ghost-button,
.hero-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 750;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    color: white;
    background: var(--brand-deep);
    box-shadow: 0 18px 48px rgba(5, 150, 105, 0.28);
}

.primary-button:hover,
.hero-search button:hover {
    transform: translateY(-2px);
    background: var(--brand);
}

.ghost-button {
    margin-left: 12px;
    border: 1px solid rgba(209, 213, 219, 0.24);
    color: var(--muted-strong);
    background: rgba(17, 24, 39, 0.66);
}

.ghost-button:hover {
    transform: translateY(-2px);
    border-color: rgba(52, 211, 153, 0.44);
    color: var(--brand-light);
}

.hero-search-panel {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 58px;
    width: min(430px, calc(100% - 48px));
    padding: 18px;
    border: 1px solid rgba(55, 65, 81, 0.74);
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.hero-search label {
    grid-column: 1 / -1;
    color: var(--brand-light);
    font-size: 13px;
    font-weight: 700;
}

.hero-search input,
.search-box input {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(75, 85, 99, 0.95);
    border-radius: 12px;
    outline: none;
    color: var(--text);
    background: rgba(3, 7, 18, 0.74);
    padding: 0 14px;
}

.hero-search input:focus,
.search-box input:focus {
    border-color: rgba(52, 211, 153, 0.8);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.hero-search button {
    border: 0;
    color: white;
    background: var(--brand-deep);
    cursor: pointer;
}

.hero-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hero-category-links a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(31, 41, 55, 0.9);
    font-size: 12px;
}

.hero-category-links a:hover {
    color: var(--brand-light);
}

.hero-dots {
    position: absolute;
    left: max(24px, calc((100vw - 1180px) / 2));
    bottom: 44px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 28px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(156, 163, 175, 0.45);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 46px;
    background: var(--brand-light);
}

.content-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 0;
}

.section-title {
    position: relative;
    margin-bottom: 28px;
}

.section-title h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
}

.section-title p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
}

.section-more {
    position: absolute;
    right: 0;
    bottom: 6px;
    color: var(--brand-light);
    font-size: 14px;
}

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

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

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

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

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid rgba(55, 65, 81, 0.9);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 30% 20%, rgba(16, 185, 129, 0.28), transparent 40%),
        linear-gradient(135deg, #111827, #030712);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

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

.poster-frame img.img-off,
.feature-main img.img-off,
.mini-card img.img-off,
.mosaic-item img.img-off,
.category-card img.img-off,
.top-rank-card img.img-off,
.detail-poster img.img-off {
    display: none;
}

.poster-shade,
.mosaic-layer,
.feature-main span,
.category-card span {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.82));
    opacity: 0.72;
    transition: opacity 0.3s ease;
}

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: rgba(5, 150, 105, 0.92);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-frame img,
.mini-card:hover img,
.mosaic-item:hover img,
.feature-main:hover img,
.category-card:hover img,
.top-rank-card:hover img {
    transform: scale(1.08);
}

.movie-card:hover .play-dot {
    opacity: 1;
    transform: translateY(0);
}

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

.card-body h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 16px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body h3 a:hover {
    color: var(--brand-light);
}

.card-body p {
    margin: 4px 0 10px;
    color: var(--muted);
    font-size: 13px;
}

.tag-row span {
    border-radius: 8px;
}

.feature-section {
    width: 100%;
    max-width: none;
    padding: 72px max(16px, calc((100vw - 1180px) / 2));
    background: rgba(17, 24, 39, 0.48);
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 24px;
}

.feature-main {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-radius: 24px;
    background: var(--panel);
}

.feature-main img,
.mosaic-item img,
.category-card img,
.top-rank-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.feature-main div {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 32px;
}

.feature-main b,
.top-rank-card b {
    color: var(--brand-light);
    font-size: 13px;
}

.feature-main h3,
.top-rank-card h2 {
    margin: 8px 0;
    font-size: 30px;
    line-height: 1.12;
}

.feature-main p,
.top-rank-card p {
    max-width: 650px;
    margin: 0;
    color: var(--muted-strong);
}

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

.mini-card {
    display: flex;
    gap: 14px;
    min-height: 96px;
    overflow: hidden;
    border: 1px solid rgba(55, 65, 81, 0.8);
    border-radius: 16px;
    background: rgba(31, 41, 55, 0.54);
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
    transform: translateY(-2px);
    background: rgba(31, 41, 55, 0.84);
}

.mini-card img {
    width: 130px;
    height: 96px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.mini-card span {
    display: grid;
    align-content: center;
    padding-right: 12px;
}

.mini-card b {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.horizontal-row {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 18px;
    scroll-snap-type: x mandatory;
}

.horizontal-row .movie-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
}

.horizontal-row .poster-frame {
    aspect-ratio: 16 / 10;
}

.movie-card-compact .card-body h3 {
    min-height: 44px;
    font-size: 15px;
}

.category-mosaic {
    width: 100%;
    max-width: none;
    padding: 72px max(16px, calc((100vw - 1180px) / 2));
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.45), rgba(3, 7, 18, 0.96));
}

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

.mosaic-item {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--panel);
}

.mosaic-large {
    grid-row: span 2;
    min-height: 460px;
}

.mosaic-item strong,
.mosaic-item em {
    position: absolute;
    left: 22px;
    z-index: 2;
}

.mosaic-item strong {
    right: 22px;
    bottom: 48px;
    font-size: 20px;
}

.mosaic-item em {
    bottom: 22px;
    color: var(--brand-light);
    font-size: 13px;
    font-style: normal;
}

.page-main {
    padding-top: 68px;
}

.page-hero {
    min-height: 320px;
    display: grid;
    place-items: center;
    padding: 72px 16px;
    background:
        radial-gradient(circle at 28% 15%, rgba(16, 185, 129, 0.22), transparent 32rem),
        linear-gradient(135deg, rgba(17, 24, 39, 0.86), rgba(3, 7, 18, 0.98));
    text-align: center;
}

.page-hero div {
    max-width: 760px;
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.1;
}

.page-hero p {
    margin: 0;
    color: var(--muted-strong);
    font-size: 18px;
}

.filter-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(55, 65, 81, 0.78);
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.66);
}

.search-box span {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-light);
    font-size: 13px;
    font-weight: 700;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(75, 85, 99, 0.9);
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(3, 7, 18, 0.52);
    cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
    border-color: rgba(52, 211, 153, 0.7);
    color: var(--brand-light);
    background: rgba(16, 185, 129, 0.14);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 48px 0 0;
}

.pagination a,
.pagination strong,
.pagination span {
    min-width: 40px;
    min-height: 40px;
    display: inline-grid;
    place-items: center;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(31, 41, 55, 0.82);
    color: var(--muted-strong);
}

.pagination strong,
.pagination a:hover {
    color: white;
    background: var(--brand-deep);
}

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 22px;
    background:
        radial-gradient(circle at 30% 15%, rgba(16, 185, 129, 0.24), transparent 42%),
        linear-gradient(135deg, #111827, #030712);
}

.category-card div {
    position: absolute;
    right: 20px;
    bottom: 18px;
    left: 20px;
    z-index: 2;
}

.category-card h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--muted-strong);
    font-size: 13px;
}

.rank-hero {
    background:
        radial-gradient(circle at 70% 20%, rgba(16, 185, 129, 0.24), transparent 34rem),
        linear-gradient(135deg, #030712, #111827 48%, #030712);
}

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

.top-rank-card {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border-radius: 26px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.top-rank-card:after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.88));
}

.top-rank-card div {
    position: absolute;
    right: 24px;
    bottom: 26px;
    left: 24px;
    z-index: 2;
}

.top-rank-number,
.rank-badge {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    box-shadow: 0 14px 30px rgba(5, 150, 105, 0.28);
}

.top-rank-number {
    top: 18px;
    left: 18px;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    font-size: 24px;
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    font-size: 14px;
}

.detail-main {
    padding-top: 68px;
}

.detail-hero {
    min-height: 620px;
    display: grid;
    align-items: end;
    padding: 82px 0;
    background-position: center;
    background-size: cover;
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 38px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(75, 85, 99, 0.72);
    border-radius: 26px;
    background:
        radial-gradient(circle at 30% 20%, rgba(16, 185, 129, 0.28), transparent 42%),
        linear-gradient(135deg, #111827, #030712);
    box-shadow: var(--shadow);
}

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

.detail-info h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 780px;
    margin: 0 0 18px;
    color: var(--muted-strong);
    font-size: 19px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-meta span {
    padding: 6px 10px;
    border: 1px solid rgba(75, 85, 99, 0.8);
    border-radius: 10px;
    color: var(--muted-strong);
    background: rgba(17, 24, 39, 0.68);
    font-size: 13px;
}

.player-section {
    padding-top: 54px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(52, 211, 153, 0.28);
    border-radius: 26px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: white;
    background:
        radial-gradient(circle at center, rgba(16, 185, 129, 0.22), rgba(0, 0, 0, 0.68) 52%),
        rgba(0, 0, 0, 0.36);
    cursor: pointer;
}

.player-cover span {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-deep);
    box-shadow: 0 24px 70px rgba(5, 150, 105, 0.42);
    font-size: 28px;
}

.player-cover strong {
    font-size: 20px;
}

.player-cover.is-hidden {
    display: none;
}

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

.text-panel {
    padding: 28px;
    border: 1px solid rgba(55, 65, 81, 0.8);
    border-radius: 24px;
    background: rgba(17, 24, 39, 0.66);
}

.text-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.text-panel p {
    margin: 0;
    color: var(--muted-strong);
    font-size: 16px;
}

.site-footer {
    margin-top: 84px;
    border-top: 1px solid rgba(31, 41, 55, 0.96);
    background: rgba(3, 7, 18, 0.96);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 1fr 1fr;
    gap: 36px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
}

.footer-brand p {
    max-width: 520px;
    margin: 16px 0 0;
    color: var(--muted);
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 16px;
}

.footer-link {
    display: block;
    margin: 8px 0;
    color: var(--muted);
    font-size: 14px;
}

.footer-link:hover {
    color: var(--brand-light);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: #6b7280;
    font-size: 13px;
}

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

    .menu-button {
        display: flex;
    }

    .hero-search-panel {
        position: relative;
        right: auto;
        bottom: auto;
        width: min(680px, calc(100% - 32px));
        margin: -48px auto 0;
    }

    .hero-dots {
        bottom: 24px;
    }

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

    .feature-layout,
    .detail-content,
    .top-rank-grid {
        grid-template-columns: 1fr;
    }

    .detail-hero-inner {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .header-inner {
        height: 62px;
    }

    .site-logo {
        font-size: 19px;
    }

    .hero-carousel {
        min-height: 78vh;
    }

    .hero-slide {
        padding-top: 104px;
        padding-bottom: 104px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .ghost-button {
        margin-left: 0;
        margin-top: 10px;
    }

    .hero-actions {
        display: grid;
        max-width: 240px;
    }

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

    .section-more {
        position: static;
        display: inline-block;
        margin-top: 12px;
    }

    .feature-main {
        min-height: 320px;
    }

    .mosaic-large {
        grid-column: span 2;
        min-height: 300px;
    }

    .detail-hero {
        min-height: auto;
        padding: 42px 0 64px;
    }

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

    .detail-poster {
        width: min(240px, 70vw);
    }

    .detail-info h1 {
        font-size: 38px;
    }

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

@media (max-width: 460px) {
    .card-grid,
    .catalog-grid,
    .category-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .movie-grid {
        gap: 14px;
    }

    .card-body h3 {
        min-height: 42px;
        font-size: 14px;
    }

    .tag-row {
        display: none;
    }

    .content-section {
        padding-top: 52px;
    }

    .top-rank-card {
        min-height: 330px;
    }
}
