:root {
    --teal: #0d9488;
    --cyan: #0891b2;
    --emerald: #059669;
    --orange: #f97316;
    --rose: #e11d48;
    --amber: #f59e0b;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 16px 35px rgba(15, 23, 42, 0.14);
    --shadow-lg: 0 26px 70px rgba(15, 23, 42, 0.22);
    --radius-lg: 18px;
    --radius-xl: 26px;
    --container: min(1180px, calc(100% - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--slate-800);
    background: linear-gradient(180deg, #f8fafc 0%, #eef7f7 50%, #f8fafc 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    color: var(--white);
    box-shadow: 0 10px 26px rgba(8, 145, 178, 0.28);
}

.header-inner {
    width: var(--container);
    margin: 0 auto;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    color: #fde68a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    transition: transform 0.22s ease;
}

.brand:hover .brand-mark {
    transform: rotate(10deg) scale(1.04);
}

.brand-text {
    font-size: 1.45rem;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
}

.desktop-nav > a,
.nav-dropdown > button {
    color: rgba(255, 255, 255, 0.92);
    border: 0;
    background: transparent;
    padding: 22px 0;
    cursor: pointer;
    transition: color 0.18s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.nav-active,
.nav-dropdown > button:hover {
    color: #fde68a;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    padding: 10px;
    border-radius: 16px;
    background: var(--white);
    color: var(--slate-800);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.18s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700;
}

.dropdown-panel a:hover {
    background: #ecfeff;
    color: var(--teal);
}

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

.header-search input,
.mobile-search input,
.wide-search input,
.search-page-form input {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    min-width: 230px;
    color: var(--slate-800);
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.search-page-form input:focus {
    box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.55);
}

.header-search button,
.mobile-search button,
.wide-search button,
.search-page-form button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: var(--white);
    background: linear-gradient(90deg, var(--orange), var(--rose));
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(225, 29, 72, 0.28);
}

.mobile-menu-button {
    display: none;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border: 0;
    border-radius: 12px;
    padding: 8px 11px;
    font-size: 1.3rem;
}

.mobile-menu {
    width: var(--container);
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-menu nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-menu nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 700;
}

.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(110deg, #f97316, #ec4899, #e11d48);
}

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

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-image,
.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.78), rgba(15, 23, 42, 0.48), rgba(225, 29, 72, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: var(--container);
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1180px;
    color: var(--white);
    animation: fadeUp 0.7s ease both;
}

.hero-content h1 {
    margin: 8px 0 14px;
    max-width: 740px;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.05em;
    text-shadow: 0 14px 38px rgba(0, 0, 0, 0.36);
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 18px;
    font-size: clamp(1rem, 2vw, 1.28rem);
    color: rgba(255, 255, 255, 0.9);
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #fde68a;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.tag-row span {
    background: #ecfeff;
    color: var(--teal);
}

.tag-row.large span {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    padding: 12px 22px;
    color: var(--white);
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    box-shadow: 0 18px 35px rgba(8, 145, 178, 0.34);
}

.ghost-button {
    padding: 12px 22px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: var(--white);
    cursor: pointer;
}

.hero-arrow {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.7rem;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 30px;
    background: #fde68a;
}

.section-block {
    width: var(--container);
    margin: 0 auto;
    padding: 54px 0;
}

.intro-strip,
.filter-card,
.search-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.intro-strip {
    margin-top: -34px;
    position: relative;
    z-index: 6;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.intro-strip h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.panel-card h2,
.detail-text-block h2,
.player-card h2,
.category-card-large h2,
.ranking-column h2 {
    margin: 0;
    color: var(--slate-900);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.intro-strip h2 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.intro-strip p {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--slate-600);
}

.wide-search {
    min-width: min(420px, 100%);
}

.wide-search input,
.search-page-form input {
    flex: 1;
    min-width: 0;
    box-shadow: inset 0 0 0 1px #dbeafe;
}

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

.section-heading h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.section-heading a,
.text-link {
    color: var(--teal);
    font-weight: 900;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.category-tile {
    position: relative;
    min-height: 150px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--slate-900);
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.74;
    transition: transform 0.26s ease, opacity 0.26s ease;
}

.category-tile span {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 950;
    text-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
}

.category-tile:hover img {
    transform: scale(1.08);
    opacity: 0.92;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #ccfbf1, #cffafe);
}

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

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

.movie-play {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: rgba(8, 145, 178, 0.92);
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: 0.2s ease;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.35);
}

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

.movie-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.68);
    font-size: 0.78rem;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    color: var(--slate-900);
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 950;
}

.movie-card p {
    min-height: 50px;
    margin: 0 0 12px;
    color: var(--slate-600);
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--slate-600);
    font-size: 0.84rem;
    font-weight: 800;
}

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

.panel-card,
.detail-text-block,
.player-card,
.filter-card,
.search-panel,
.category-card-large {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.panel-card,
.detail-text-block,
.player-card {
    padding: 24px;
}

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

.compact-item {
    display: grid;
    grid-template-columns: auto 88px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
    transition: background 0.18s ease, transform 0.18s ease;
}

.compact-item:hover {
    background: #ecfeff;
    transform: translateX(3px);
}

.compact-item img {
    width: 88px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    background: #ccfbf1;
}

.compact-text {
    display: grid;
    min-width: 0;
}

.compact-text strong {
    color: var(--slate-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-text small {
    color: var(--slate-600);
}

.rank-number,
.rank-dot {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--rose));
    font-weight: 950;
}

.rank-dot {
    background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.page-hero {
    padding: 76px 0;
    color: var(--white);
}

.page-hero > div {
    width: var(--container);
    margin: 0 auto;
}

.page-hero h1 {
    margin: 10px 0;
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.cyan-hero {
    background: linear-gradient(100deg, var(--cyan), var(--teal), var(--emerald));
}

.orange-hero {
    background: linear-gradient(100deg, var(--orange), #ec4899, var(--rose));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

.breadcrumb a:hover {
    color: #fde68a;
}

.filter-card,
.search-panel {
    padding: 24px;
}

.filter-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
}

.filter-grid label {
    display: grid;
    gap: 8px;
    color: var(--slate-700);
    font-weight: 900;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 11px 12px;
    color: var(--slate-800);
    background: var(--white);
    outline: none;
}

.filter-grid input:focus,
.filter-grid select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.14);
}

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

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

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 18px;
    background: #ecfeff;
}

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.category-card-large p {
    color: var(--slate-600);
}

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

.ranking-column h2 {
    margin-bottom: 18px;
    font-size: 1.35rem;
}

.search-panel {
    display: block;
}

.search-page-form {
    margin-bottom: 18px;
}

.search-status {
    min-height: 28px;
    margin-bottom: 14px;
    color: var(--slate-600);
    font-weight: 800;
}

.detail-hero {
    position: relative;
    min-height: 570px;
    overflow: hidden;
    color: var(--white);
    background: var(--slate-900);
}

.detail-bg {
    position: absolute;
    inset: 0;
    filter: blur(3px) saturate(1.1);
    transform: scale(1.03);
    opacity: 0.62;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.75), rgba(8, 145, 178, 0.36));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: var(--container);
    margin: 0 auto;
    padding: 52px 0;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    background: #ccfbf1;
}

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

.detail-copy h1 {
    margin: 10px 0 14px;
    color: var(--white);
    font-size: clamp(2.1rem, 5vw, 4.4rem);
}

.detail-one-line {
    max-width: 760px;
    font-size: 1.18rem;
    color: rgba(255, 255, 255, 0.88);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.detail-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.detail-content {
    display: grid;
    gap: 22px;
}

.detail-side {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 22px;
}

.video-player {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 16 / 9;
    background: #020617;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.46));
    cursor: pointer;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

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

.play-button {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    font-size: 2rem;
    box-shadow: 0 22px 48px rgba(8, 145, 178, 0.42);
}

.detail-text-block p {
    margin: 12px 0 0;
    color: var(--slate-700);
    font-size: 1.04rem;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 16px 0 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.info-list dt {
    color: var(--slate-600);
    font-weight: 900;
}

.info-list dd {
    margin: 0;
    color: var(--slate-900);
    font-weight: 800;
}

.site-footer {
    margin-top: 42px;
    color: #cbd5e1;
    background: linear-gradient(180deg, var(--slate-800), var(--slate-950));
}

.footer-inner {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 40px;
    padding: 48px 0;
}

.footer-brand {
    color: var(--white);
    font-size: 1.45rem;
}

.footer-inner p {
    max-width: 560px;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-content: start;
}

.footer-links a:hover {
    color: #fde68a;
}

.footer-bottom {
    width: var(--container);
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    text-align: center;
    color: #94a3b8;
}

.is-filtered-out {
    display: none;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

    .split-layout,
    .ranking-grid,
    .detail-main-grid {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .header-inner {
        min-height: 62px;
    }

    .hero-section {
        height: 560px;
    }

    .hero-content {
        padding-right: 20px;
    }

    .intro-strip,
    .filter-card {
        display: block;
    }

    .wide-search {
        margin-top: 18px;
    }

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

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

    .category-large-grid,
    .category-card-large,
    .detail-hero-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .category-cover-stack {
        max-width: 320px;
    }

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

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

@media (max-width: 560px) {
    :root {
        --container: min(100% - 22px, 1180px);
    }

    .brand-text {
        font-size: 1.12rem;
    }

    .hero-section {
        height: 600px;
    }

    .hero-actions,
    .wide-search,
    .search-page-form,
    .mobile-search {
        flex-direction: column;
        align-items: stretch;
    }

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

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

    .compact-item {
        grid-template-columns: auto 76px minmax(0, 1fr);
    }

    .compact-item img {
        width: 76px;
    }

    .detail-hero-inner {
        padding: 34px 0;
    }
}
