:root {
    --color-primary: #ec4899;
    --color-primary-dark: #db2777;
    --color-secondary: #f97316;
    --color-accent: #8b5cf6;
    --color-cyan: #06b6d4;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-soft: #fff7ed;
    --color-border: #f3d7e7;
    --shadow-card: 0 18px 45px rgba(236, 72, 153, 0.16);
    --shadow-soft: 0 16px 50px rgba(31, 41, 55, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 214, 238, 0.75), transparent 32rem),
        radial-gradient(circle at top right, rgba(255, 231, 204, 0.72), transparent 30rem),
        linear-gradient(180deg, #fff7fb 0%, #fffaf4 34%, #ffffff 100%);
    min-height: 100vh;
}

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(var(--container), calc(100% - 32px));
    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: linear-gradient(90deg, rgba(255, 241, 248, 0.94), rgba(255, 247, 237, 0.94));
    box-shadow: 0 12px 35px rgba(236, 72, 153, 0.12);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    width: min(var(--container), calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 800;
}

.site-logo__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
}

.site-logo__text,
.footer-logo {
    font-size: 24px;
    line-height: 1;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.site-nav a {
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--color-primary);
    transform: translateY(-1px);
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(330px, 28vw);
    min-width: 230px;
    margin-left: 8px;
    border: 1px solid rgba(236, 72, 153, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.08);
    overflow: hidden;
}

.nav-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 12px 14px 12px 18px;
    background: transparent;
    color: var(--color-text);
}

.nav-search button {
    border: 0;
    padding: 10px 18px;
    color: #ffffff;
    border-radius: 999px;
    margin-right: 4px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    cursor: pointer;
    font-weight: 700;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 14px;
    background: rgba(236, 72, 153, 0.12);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--color-primary);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(236, 72, 153, 0.14);
}

.mobile-panel a {
    display: block;
    padding: 12px 4px;
    color: #4b5563;
    font-weight: 700;
}

.mobile-panel .nav-search {
    width: 100%;
    min-width: 0;
    margin: 10px 0 0;
}

.hero-slider {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.015);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(236, 72, 153, 0.55), transparent 38%),
        radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.55), transparent 35%),
        linear-gradient(135deg, #111827, #3b0764 58%, #7c2d12);
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: saturate(1.12) contrast(1.04) blur(1px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.76) 46%, rgba(17, 24, 39, 0.32) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.82), transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 640px;
    display: grid;
    grid-template-columns: 1.1fr 0.55fr;
    align-items: center;
    gap: 64px;
    padding: 58px 0 82px;
}

.hero-copy {
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 14px;
    color: #fff7ed;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-weight: 700;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-one-line {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
    line-height: 1.8;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hero-tags span,
.tag-list span,
.category-chip,
.filter-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--color-primary-dark);
    background: #ffe4f2;
    font-size: 13px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 13px 24px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.32);
}

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

.hero-meta,
.movie-meta,
.detail-meta,
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
}

.hero-meta {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.hero-meta span,
.detail-meta span {
    position: relative;
    padding-right: 13px;
}

.hero-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    transform: translateY(-50%);
    opacity: 0.65;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    min-height: 440px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.34), rgba(249, 115, 22, 0.22));
    box-shadow: 0 36px 70px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: inherit;
    pointer-events: none;
}

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

.hero-arrow,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.65;
    transition: width 0.2s ease, opacity 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    opacity: 1;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.main-stack {
    display: grid;
    gap: 54px;
    padding: 54px 0 72px;
}

.content-section {
    position: relative;
}

.panel {
    border: 1px solid rgba(236, 72, 153, 0.11);
    border-radius: var(--radius-xl);
    padding: 30px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.panel--pink {
    background: linear-gradient(135deg, rgba(255, 241, 248, 0.94), rgba(255, 247, 237, 0.86));
}

.panel--blue {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.94), rgba(236, 254, 255, 0.86));
}

.panel--purple {
    background: linear-gradient(135deg, rgba(250, 245, 255, 0.94), rgba(253, 242, 248, 0.88));
}

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

.section-heading h1,
.section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--color-muted);
    line-height: 1.8;
}

.section-link,
.text-link {
    color: var(--color-primary-dark);
    font-weight: 800;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(236, 72, 153, 0.22);
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.36), transparent 38%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.38), transparent 42%),
        linear-gradient(135deg, #3b0764, #111827);
}

.poster-frame img {
    width: 100%;
    height: 245px;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.poster-frame.missing-cover img,
.img-missing {
    opacity: 0;
}

.poster-frame.missing-cover::after {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
    color: #ffffff;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.4;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.58), rgba(249, 115, 22, 0.48));
}

.movie-region {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 10px;
    color: #4b5563;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-weight: 800;
}

.movie-card__body,
.featured-content {
    padding: 18px;
}

.movie-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.45em;
    color: #111827;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 900;
    transition: color 0.2s ease;
}

.movie-title:hover {
    color: var(--color-primary-dark);
}

.movie-card p,
.movie-card--compact p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 10px 0 0;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.72;
}

.movie-meta {
    margin-top: 14px;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 9px;
    color: #d1d5db;
}

.category-chip {
    margin-top: 14px;
}

.movie-card--featured {
    min-height: 100%;
}

.movie-card--featured .featured-image img {
    height: 380px;
}

.movie-card--featured .featured-content {
    position: absolute;
    inset: auto 0 0 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.04));
    padding-top: 76px;
}

.movie-card--featured .movie-title,
.movie-card--featured p,
.movie-card--featured .movie-meta,
.movie-card--featured .text-link {
    color: #ffffff;
}

.movie-card--compact {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 14px;
    padding: 12px;
    align-items: center;
}

.movie-card--compact .compact-cover {
    border-radius: 14px;
}

.movie-card--compact img {
    height: 96px;
}

.compact-body {
    min-width: 0;
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, #facc15, var(--color-secondary));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.26);
    font-weight: 900;
}

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

.category-card {
    display: grid;
    gap: 12px;
    min-height: 180px;
    border: 1px solid rgba(236, 72, 153, 0.10);
    border-radius: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 36px rgba(236, 72, 153, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(236, 72, 153, 0.20);
}

.category-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe4f2, #ffedd5);
    font-size: 30px;
}

.category-card h2,
.category-card h3 {
    margin: 0;
    color: #111827;
    font-size: 22px;
}

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

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

.stats-card {
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
}

.stats-card strong {
    display: block;
    color: var(--color-primary-dark);
    font-size: 34px;
    line-height: 1;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 10%, rgba(236, 72, 153, 0.70), transparent 36rem),
        radial-gradient(circle at 86% 0%, rgba(249, 115, 22, 0.55), transparent 32rem),
        linear-gradient(135deg, #111827, #581c87 54%, #9a3412);
}

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

.page-hero h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(36px, 5vw, 62px);
    letter-spacing: -0.05em;
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumbs {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

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

.filter-panel {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-row label {
    color: #4b5563;
    font-weight: 900;
}

.filter-input {
    width: min(460px, 100%);
    border: 1px solid rgba(236, 72, 153, 0.18);
    border-radius: 999px;
    padding: 13px 18px;
    outline: none;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.08);
}

.filter-chip {
    border: 0;
    cursor: pointer;
}

.filter-chip.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.no-results {
    display: none;
    padding: 28px;
    color: var(--color-muted);
    text-align: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
}

.no-results.is-visible {
    display: block;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 360px;
    gap: 28px;
    align-items: start;
}

.player-card,
.detail-card,
.aside-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.player-wrap {
    position: relative;
    background: #0f172a;
    aspect-ratio: 16 / 9;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f172a;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.14), transparent 52%);
}

.player-play-button {
    display: inline-grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 22px 44px rgba(236, 72, 153, 0.32);
    cursor: pointer;
    pointer-events: auto;
    font-size: 34px;
}

.player-status {
    padding: 12px 18px;
    color: #6b7280;
    background: #fff7ed;
    border-top: 1px solid rgba(236, 72, 153, 0.12);
    font-size: 14px;
}

.detail-card {
    padding: 28px;
}

.detail-card h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.detail-meta {
    margin: 16px 0 20px;
    color: #6b7280;
    font-weight: 700;
}

.detail-card h2,
.aside-card h2 {
    margin: 28px 0 12px;
    color: #111827;
    font-size: 24px;
}

.detail-card p {
    color: #374151;
    line-height: 1.9;
    margin: 0;
}

.aside-card {
    padding: 18px;
}

.aside-card h2 {
    margin-top: 0;
}

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

.search-page-results {
    display: grid;
    gap: 24px;
}

.search-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
}

.search-toolbar input {
    width: 100%;
    border: 1px solid rgba(236, 72, 153, 0.18);
    border-radius: 999px;
    padding: 15px 18px;
    outline: none;
    background: #ffffff;
}

.search-toolbar button {
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    font-weight: 900;
    cursor: pointer;
}

.sitemap-list {
    columns: 4 220px;
    column-gap: 30px;
}

.sitemap-list li {
    break-inside: avoid;
    margin: 0 0 10px;
}

.sitemap-list a {
    color: #374151;
}

.sitemap-list a:hover {
    color: var(--color-primary-dark);
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 32px;
    padding: 48px 0;
}

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

.site-footer h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

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

.site-footer li {
    margin-bottom: 9px;
}

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

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .site-nav,
    .site-header__inner > .nav-search {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

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

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

    .hero-poster {
        max-width: 360px;
        min-height: 420px;
    }

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

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

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

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

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

    .hero-slider,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        gap: 28px;
        padding-top: 42px;
        align-items: end;
    }

    .hero-copy h1 {
        font-size: clamp(36px, 11vw, 54px);
    }

    .hero-one-line {
        font-size: 16px;
    }

    .hero-poster {
        display: none;
    }

    .main-stack {
        padding: 36px 0 54px;
        gap: 36px;
    }

    .panel {
        padding: 20px;
        border-radius: 22px;
    }

    .section-heading {
        display: block;
    }

    .section-link {
        display: inline-block;
        margin-top: 10px;
    }

    .movie-grid,
    .movie-grid--featured,
    .movie-grid--compact,
    .category-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .movie-card--compact img {
        height: 82px;
    }

    .poster-frame img {
        height: 220px;
    }

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

    .search-toolbar {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
}
