:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-soft: #dbeafe;
    --accent: #f97316;
    --accent-soft: #ffedd5;
    --night: #0f172a;
    --night-soft: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --paper: #ffffff;
    --bg: #f8fafc;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: #0f172a;
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand {
    font-size: 22px;
    white-space: nowrap;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
    font-size: 15px;
}

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

.desktop-nav a,
.mobile-nav a {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--primary);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.hero-search input,
.inline-filter input {
    width: 250px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 11px 16px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.hero-search input:focus,
.inline-filter input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.header-search button,
.hero-search button,
.inline-filter button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ffffff;
    background: var(--primary);
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.hero-search button:hover,
.inline-filter button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 18px;
    border-top: 1px solid var(--line);
}

.mobile-nav.open {
    display: grid;
    gap: 14px;
}

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

.mobile-nav input {
    min-width: 0;
    flex: 1;
}

.mobile-cat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.mobile-cat-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--primary-dark);
}

.hero {
    background: var(--night);
}

.hero-stage {
    position: relative;
    min-height: 620px;
    overflow: hidden;
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.2)), linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 42%);
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100% - 1240px) / 2));
    top: 50%;
    width: min(680px, calc(100% - 64px));
    transform: translateY(-50%);
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h2,
.quick-strip h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-weight: 950;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.hero-content h2 {
    max-width: 760px;
    font-size: clamp(42px, 6vw, 86px);
}

.hero-content p:not(.eyebrow) {
    max-width: 620px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

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

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

.hero-tags span,
.mini-tags span {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

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

.primary-btn,
.ghost-btn,
.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-btn,
.ghost-btn {
    min-height: 48px;
    padding: 0 24px;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 18px 35px rgba(249, 115, 22, 0.28);
}

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

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
    backdrop-filter: blur(12px);
}

.hero-control.prev {
    left: 24px;
}

.hero-control.next {
    right: 24px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dots button.active {
    width: 34px;
    background: #ffffff;
}

.section-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.quick-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.quick-strip-inner {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 30px;
    align-items: center;
    padding: 34px 0;
}

.quick-strip h1 {
    font-size: clamp(28px, 3vw, 44px);
}

.quick-strip p:not(.eyebrow) {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.hero-search {
    display: flex;
    gap: 10px;
    justify-self: end;
    width: 100%;
}

.hero-search input {
    width: 100%;
}

.section-block,
.section-inner.category-cloud,
.section-inner.rank-lead-grid,
.section-inner.rank-list,
.section-inner.library-list,
.section-inner.player-section,
.section-inner.detail-content-grid {
    padding-top: 64px;
    padding-bottom: 64px;
}

.tinted {
    background: linear-gradient(135deg, #eff6ff, #fff7ed);
}

.night-panel {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.38), transparent 32%), var(--night);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 950;
    letter-spacing: -0.03em;
}

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

.light-heading h2,
.light-heading a {
    color: #ffffff;
}

.light-heading .eyebrow {
    color: #fed7aa;
}

.cat-chip-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.cat-chip-grid a {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    color: #0f172a;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.cat-chip-grid a:hover {
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

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

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

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

.listing-grid {
    align-items: stretch;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--night-soft);
}

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

.movie-card:hover .movie-poster img,
.wide-card:hover img,
.rank-lead-card:hover img,
.category-card:hover img {
    transform: scale(1.08);
}

.movie-badge,
.movie-duration {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.movie-badge {
    top: 12px;
    left: 12px;
    background: rgba(37, 99, 235, 0.92);
}

.movie-duration {
    right: 12px;
    bottom: 12px;
    background: rgba(15, 23, 42, 0.82);
}

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

.movie-card h3,
.wide-card h3,
.rank-row h2,
.rank-lead-card h2,
.category-card h2 {
    margin: 0;
    line-height: 1.35;
    font-weight: 950;
}

.movie-card h3 {
    font-size: 18px;
}

.movie-card h3 a:hover,
.wide-card h3 a:hover,
.rank-row h2 a:hover,
.library-item a:hover,
.category-card h2 a:hover {
    color: var(--primary);
}

.movie-meta,
.movie-desc {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

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

.mini-tags {
    margin-top: 14px;
}

.mini-tags span {
    background: #eff6ff;
    color: var(--primary-dark);
    font-size: 12px;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.wide-card-poster {
    overflow: hidden;
    min-height: 180px;
}

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

.wide-card-content {
    padding: 24px;
}

.wide-card-content p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.75;
}

.page-main {
    min-height: 60vh;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 76px max(32px, calc((100% - 1240px) / 2));
    color: #ffffff;
    background: radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.42), transparent 34%), linear-gradient(135deg, var(--night), #1d4ed8);
}

.page-hero h1 {
    max-width: 920px;
    font-size: clamp(36px, 5vw, 68px);
}

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

.inline-filter {
    display: flex;
    max-width: 720px;
    gap: 10px;
    margin-top: 26px;
}

.inline-filter input {
    flex: 1;
    width: auto;
}

.inline-filter button[type="reset"] {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.category-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding-top: 64px;
    padding-bottom: 64px;
}

.category-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.category-card > a {
    position: relative;
    min-height: 170px;
    overflow: hidden;
}

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

.category-card > a span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.82);
    font-size: 13px;
    font-weight: 900;
}

.category-card > div {
    padding: 24px;
}

.category-card p {
    color: var(--muted);
    line-height: 1.75;
}

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

.rank-lead-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.rank-lead-card > a {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

.rank-lead-card span {
    position: absolute;
    top: 14px;
    left: 14px;
    border-radius: 999px;
    padding: 8px 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    font-weight: 950;
}

.rank-lead-card h2,
.rank-lead-card p {
    padding-left: 22px;
    padding-right: 22px;
}

.rank-lead-card h2 {
    margin-top: 20px;
    font-size: 22px;
}

.rank-lead-card p {
    margin-bottom: 24px;
    color: var(--muted);
    line-height: 1.75;
}

.rank-list {
    display: grid;
    gap: 14px;
    padding-top: 0;
}

.rank-row {
    display: grid;
    grid-template-columns: 58px 96px 1fr auto;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.rank-num {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-weight: 950;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 10;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-row h2 {
    font-size: 19px;
}

.rank-row p {
    margin: 6px 0 0;
    color: var(--muted);
}

.library-list {
    display: grid;
    gap: 8px;
}

.library-item {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 100px 120px 150px;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 18px;
    background: #ffffff;
}

.library-item a {
    font-weight: 900;
}

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

.search-summary {
    margin-bottom: 22px;
    color: var(--muted);
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: var(--night);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    filter: blur(3px);
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72)), linear-gradient(0deg, var(--night), transparent 70%);
}

.detail-layout {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 42px;
    align-items: center;
    padding: 72px 0;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.38);
    aspect-ratio: 3 / 4;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.detail-info h1 {
    font-size: clamp(38px, 5vw, 74px);
}

.detail-one-line {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
    line-height: 1.8;
}

.player-section {
    padding-bottom: 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.52), rgba(15, 23, 42, 0.08));
    cursor: pointer;
    font-size: 18px;
    font-weight: 950;
}

.play-circle {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    font-size: 30px;
}

.player-shell.playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.detail-article,
.detail-side {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.detail-article {
    padding: 34px;
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 950;
}

.detail-article h2:not(:first-child) {
    margin-top: 30px;
}

.detail-article p {
    margin: 0;
    color: #334155;
    font-size: 17px;
    line-height: 1.95;
}

.detail-side {
    padding: 26px;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    margin: 0;
}

.detail-side dt {
    color: var(--muted);
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
    font-weight: 800;
}

.detail-side a {
    color: var(--primary);
}

.site-footer {
    background: var(--night);
    color: #ffffff;
}

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

.footer-brand {
    color: #ffffff;
    font-size: 24px;
}

.site-footer p {
    max-width: 520px;
    color: #cbd5e1;
    line-height: 1.8;
}

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

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

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

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

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

    .menu-toggle {
        display: inline-flex;
    }

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

    .hero-control {
        display: none;
    }

    .quick-strip-inner,
    .wide-card-grid,
    .category-list-grid,
    .rank-lead-grid,
    .detail-layout,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .detail-layout {
        padding: 46px 0;
    }

    .detail-poster {
        width: min(300px, 100%);
    }

    .rank-row,
    .library-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .section-inner,
    .detail-layout,
    .footer-grid,
    .mobile-nav {
        width: min(100% - 24px, 1240px);
    }

    .brand {
        font-size: 18px;
    }

    .hero-content {
        left: 20px;
        width: calc(100% - 40px);
    }

    .hero-content h2 {
        font-size: 38px;
    }

    .hero-content p:not(.eyebrow) {
        font-size: 16px;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .cat-chip-grid {
        grid-template-columns: 1fr;
    }

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

    .page-hero {
        padding: 54px 20px;
    }

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

    .detail-article,
    .detail-side {
        padding: 22px;
    }
}
