:root {
    --rose: #f43f5e;
    --pink: #ec4899;
    --amber: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #fff1f2;
    --line: #ffe4e6;
    --card: #ffffff;
    --shadow: 0 24px 70px rgba(244, 63, 94, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

input,
button,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    backdrop-filter: blur(16px);
}

.site-header-inner {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(135deg, var(--rose), var(--pink), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.28);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
}

.site-nav a {
    color: #374151;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--rose);
}

.site-search {
    display: flex;
    align-items: center;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
    min-width: 260px;
}

.site-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    color: #374151;
}

.site-search button,
.hero-search button {
    border: 0;
    padding: 10px 18px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: #fff1f2;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    background: var(--rose);
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    padding: 14px 24px 24px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.mobile-panel.is-open {
    display: grid;
    gap: 12px;
}

.mobile-panel a {
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
    color: #4b5563;
    background: #fff7f8;
}

.mobile-panel form {
    display: flex;
    gap: 8px;
}

.mobile-panel input {
    flex: 1;
    min-width: 0;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    padding: 10px 14px;
}

.mobile-panel button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #fff;
    background: var(--rose);
}

.page-shell {
    padding-top: 72px;
}

.home-hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    align-items: center;
    gap: 34px;
    padding: 64px max(24px, calc((100vw - 1280px) / 2)) 54px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 54%, #fffbeb 100%);
}

.hero-blob {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    opacity: 0.32;
    filter: blur(34px);
    mix-blend-mode: multiply;
    animation: floatBlob 10s ease-in-out infinite;
}

.hero-blob-one {
    top: 12%;
    left: 6%;
    background: #fda4af;
}

.hero-blob-two {
    right: 8%;
    top: 18%;
    background: #f9a8d4;
    animation-delay: 1.6s;
}

.hero-blob-three {
    left: 34%;
    bottom: 8%;
    background: #fcd34d;
    animation-delay: 3.2s;
}

@keyframes floatBlob {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(18px, -22px, 0) scale(1.08);
    }
}

.hero-static-copy,
.hero-stage {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #be123c;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(244, 63, 94, 0.18);
    font-weight: 800;
    font-size: 14px;
}

.hero-static-copy h1,
.page-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #e11d48, #ec4899, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-static-copy p,
.page-hero p {
    max-width: 720px;
    margin: 0 0 28px;
    color: #4b5563;
    font-size: 20px;
    line-height: 1.8;
}

.hero-search {
    display: flex;
    width: min(100%, 620px);
    padding: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(244, 63, 94, 0.15);
    box-shadow: var(--shadow);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 13px 18px;
    background: transparent;
}

.hero-search button {
    border-radius: 999px;
    padding-left: 24px;
    padding-right: 24px;
}

.hero-stage {
    min-height: 560px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 270px;
    align-items: center;
    gap: 26px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.hero-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.12;
}

.hero-copy p {
    color: #4b5563;
    line-height: 1.85;
    font-size: 18px;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 14px 32px rgba(244, 63, 94, 0.25);
}

.ghost-button {
    color: #e11d48;
    background: #fff;
    border: 1px solid #fecdd3;
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(244, 63, 94, 0.22);
}

.hero-poster {
    height: 420px;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.22);
}

.hero-poster img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: #fecdd3;
}

.hero-dots button.is-active {
    width: 28px;
    background: var(--rose);
}

.feature-strip {
    max-width: 1280px;
    margin: -34px auto 0;
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 24px;
}

.feature-strip a {
    display: grid;
    gap: 6px;
    padding: 22px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 42px rgba(244, 63, 94, 0.11);
}

.feature-strip strong {
    font-size: 19px;
}

.feature-strip span {
    color: var(--muted);
    font-size: 14px;
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 74px 24px;
}

.soft-section {
    max-width: none;
    padding-left: max(24px, calc((100vw - 1280px) / 2));
    padding-right: max(24px, calc((100vw - 1280px) / 2));
    background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

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

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.section-heading a {
    flex-shrink: 0;
    color: var(--rose);
    font-weight: 800;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 24px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(254, 205, 211, 0.86);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(244, 63, 94, 0.18);
}

.movie-card figure {
    position: relative;
    height: 330px;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

.movie-card img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.movie-card figcaption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(10px);
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    flex: 1;
}

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--rose);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-row span,
.tag-cloud a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #be123c;
    background: #ffe4e6;
    font-size: 12px;
    font-weight: 800;
}

.horizontal-cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
}

.horizontal-cards .movie-card {
    scroll-snap-align: start;
}

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

.category-tile {
    display: grid;
    gap: 8px;
    padding: 24px;
    min-height: 148px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(244, 63, 94, 0.14);
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 52px rgba(244, 63, 94, 0.16);
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

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

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

.compact-card {
    position: relative;
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.compact-card img {
    height: 118px;
    border-radius: 16px;
    object-fit: cover;
}

.compact-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.compact-card p,
.compact-card span {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.rank-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose), var(--amber));
}

.page-hero {
    position: relative;
    padding: 76px max(24px, calc((100vw - 1280px) / 2));
    overflow: hidden;
    background: linear-gradient(135deg, #fff1f2, #fdf2f8 62%, #fffbeb);
}

.small-hero,
.category-hero,
.ranking-hero,
.search-hero {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.catalog-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px 80px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 28px;
}

.catalog-sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 22px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.catalog-sidebar h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.catalog-sidebar nav {
    display: grid;
    gap: 8px;
}

.catalog-sidebar a {
    padding: 10px 12px;
    border-radius: 14px;
    color: #4b5563;
    font-weight: 700;
}

.catalog-sidebar a:hover,
.catalog-sidebar a.is-current {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.filter-bar {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.filter-bar input,
.filter-bar select {
    border: 1px solid #fecdd3;
    border-radius: 999px;
    padding: 11px 14px;
    outline: 0;
    background: #fff;
}

.filter-bar input {
    flex: 1;
    min-width: 0;
}

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

.category-overview-card {
    display: grid;
    gap: 18px;
    padding: 18px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.category-collage {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 8px;
    height: 160px;
    overflow: hidden;
    border-radius: 22px;
    background: #fff1f2;
}

.category-collage img {
    height: 100%;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-overview-card p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
}

.category-overview-card span {
    color: var(--rose);
    font-weight: 900;
}

.ranking-page-list {
    display: grid;
    gap: 16px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 56px 96px 1fr 72px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.ranking-number {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose), var(--amber));
}

.ranking-row img {
    height: 126px;
    border-radius: 18px;
    object-fit: cover;
}

.ranking-row h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.ranking-row p {
    margin: 0 0 8px;
    color: #4b5563;
    line-height: 1.65;
}

.ranking-row small {
    color: var(--muted);
}

.ranking-row > strong {
    color: var(--rose);
    font-size: 24px;
}

.detail-page {
    background: #fff;
}

.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--rose);
    font-weight: 800;
}

.detail-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px 54px;
    display: grid;
    grid-template-columns: minmax(260px, 390px) 1fr;
    gap: 40px;
    align-items: center;
}

.detail-poster {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff1f2;
}

.detail-poster img {
    height: 560px;
    object-fit: cover;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #be123c;
    background: #ffe4e6;
    font-weight: 800;
    font-size: 13px;
}

.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.lead-text {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
    font-size: 19px;
}

.score-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.score-line strong {
    font-size: 38px;
    color: var(--rose);
}

.score-line span {
    color: var(--muted);
    font-weight: 800;
}

.player-section {
    padding: 58px max(24px, calc((100vw - 1280px) / 2));
    background: linear-gradient(135deg, #111827, #3f1235 54%, #881337);
    color: #fff;
}

.player-section h2 {
    margin: 0 0 22px;
    font-size: clamp(28px, 4vw, 42px);
}

.player-frame {
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.story-card {
    padding: 26px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.story-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.story-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
}

.meta-card dl {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
}

.meta-card dl div {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 10px;
}

.meta-card dt {
    color: var(--muted);
    font-weight: 800;
}

.meta-card dd {
    margin: 0;
    color: #111827;
}

.related-section {
    padding-top: 48px;
}

.search-empty {
    padding: 34px;
    border-radius: 24px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
}

.site-footer {
    background: linear-gradient(135deg, #fff1f2, #fdf2f8);
    border-top: 1px solid var(--line);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 30px;
}

.footer-logo {
    margin-bottom: 16px;
}

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

.site-footer p,
.site-footer a,
.site-footer li {
    color: #4b5563;
    line-height: 1.75;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.site-footer a:hover {
    color: var(--rose);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 28px;
    color: var(--muted);
    font-size: 14px;
}

[data-card][hidden] {
    display: none;
}

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

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

    .home-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-stage {
        min-height: 520px;
    }

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

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

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

@media (max-width: 860px) {
    .site-header-inner {
        padding: 0 16px;
    }

    .site-search {
        display: none;
    }

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

    .home-hero {
        padding: 44px 18px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        position: relative;
        display: none;
    }

    .hero-slide.is-active {
        display: grid;
    }

    .hero-poster {
        height: 320px;
        order: -1;
    }

    .feature-strip {
        grid-template-columns: 1fr 1fr;
        margin-top: 0;
    }

    .content-section,
    .soft-section {
        padding: 52px 18px;
    }

    .movie-grid,
    .category-grid,
    .overview-grid,
    .ranking-list {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
        padding: 34px 18px 56px;
    }

    .catalog-sidebar {
        position: static;
    }

    .filter-bar {
        flex-direction: column;
    }

    .detail-hero {
        grid-template-columns: 1fr;
        padding: 28px 18px 44px;
    }

    .detail-poster img {
        height: 420px;
    }

    .ranking-row {
        grid-template-columns: 42px 74px 1fr;
    }

    .ranking-row > strong {
        grid-column: 3;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        padding: 42px 18px;
    }
}

@media (max-width: 560px) {
    .site-logo {
        font-size: 18px;
    }

    .site-logo-mark {
        width: 34px;
        height: 34px;
    }

    .hero-search {
        border-radius: 24px;
        flex-direction: column;
    }

    .hero-search button {
        border-radius: 18px;
    }

    .feature-strip,
    .movie-grid,
    .category-grid,
    .overview-grid,
    .ranking-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-card figure {
        height: 300px;
    }

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

    .compact-card img {
        height: 108px;
    }

    .category-collage {
        height: 140px;
    }

    .ranking-row {
        grid-template-columns: 40px 1fr;
    }

    .ranking-row img {
        grid-column: 1 / -1;
        height: 220px;
    }

    .ranking-row > strong {
        grid-column: 2;
    }
}
