:root {
    color-scheme: dark;
    --bg: #090a0f;
    --bg-soft: #11131c;
    --bg-card: rgba(24, 27, 39, 0.78);
    --bg-card-strong: rgba(33, 37, 52, 0.92);
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(245, 158, 11, 0.28);
    --text: #f8fafc;
    --muted: #a3aab9;
    --subtle: #71798a;
    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --rose: #f43f5e;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --radius: 22px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 30rem),
        radial-gradient(circle at top right, rgba(244, 63, 94, 0.1), transparent 26rem),
        linear-gradient(180deg, #090a0f 0%, #11131c 46%, #090a0f 100%);
    font-family: "Noto Serif SC", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    line-height: 1.6;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 82%);
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.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;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 10, 15, 0.82);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #111827;
    font-weight: 800;
    background: linear-gradient(135deg, var(--amber-light), var(--amber), var(--rose));
    box-shadow: 0 14px 32px rgba(245, 158, 11, 0.3);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, #fff7ed, var(--amber-light));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.72rem;
}

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

.desktop-nav a,
.mobile-nav a {
    color: #d8deea;
    font-weight: 600;
    transition: color 0.22s ease, transform 0.22s ease;
}

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

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

.header-search input,
.local-search input,
.wide-search input {
    width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    outline: none;
    color: var(--text);
    background: rgba(16, 19, 29, 0.72);
    padding: 11px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.local-search input:focus,
.wide-search input:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
    background: rgba(16, 19, 29, 0.94);
}

.header-search button,
.wide-search button {
    border: 0;
    border-radius: 14px;
    color: #171923;
    font-weight: 800;
    padding: 11px 16px;
    background: linear-gradient(135deg, var(--amber-light), var(--amber));
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
}

.mobile-nav {
    display: none;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(16, 19, 29, 0.95);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

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

main {
    min-height: 64vh;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    border-bottom: 1px solid var(--line);
}

.hero-slider {
    position: relative;
    min-height: 680px;
}

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

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

.hero-bg,
.detail-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: saturate(1.08);
}

.hero-bg::after,
.detail-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(180deg, transparent, rgba(9, 10, 15, 0.88)),
        radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.2), transparent 26rem);
}

.hero-content,
.detail-layout {
    position: relative;
    z-index: 2;
    width: min(var(--container), calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 56px;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber-light);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 26px;
    height: 2px;
    border-radius: 999px;
    content: "";
    background: currentColor;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 16px 0 18px;
    font-size: clamp(2.4rem, 6vw, 5.8rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero p,
.page-hero p,
.detail-info p {
    max-width: 760px;
    margin: 0;
    color: #d2d8e6;
    font-size: 1.08rem;
}

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

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

.hero-tags span,
.tag-row span,
.filter-chip {
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.09);
    padding: 7px 12px;
    font-size: 0.84rem;
}

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

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.primary-button {
    color: #171923;
    padding: 0 22px;
    background: linear-gradient(135deg, var(--amber-light), var(--amber));
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.28);
}

.ghost-button,
.section-more {
    border: 1px solid var(--line-strong);
    color: #fde68a;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.04);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.movie-card:hover,
.category-card:hover,
.rank-card:hover {
    transform: translateY(-3px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
    aspect-ratio: 2 / 3;
}

.hero-poster img,
.poster-link img,
.detail-cover img,
.rank-poster img,
.category-collage img,
.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(244, 63, 94, 0.08));
}

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    border-radius: 14px;
    color: #171923;
    font-weight: 800;
    text-align: center;
    padding: 10px;
    background: rgba(251, 191, 36, 0.9);
}

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

.hero-dot {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
}

.hero-dot.is-active {
    background: var(--amber-light);
}

.quick-search-panel,
.content-section,
.split-section,
.player-section {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.quick-search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    align-items: center;
    gap: 24px;
    margin-top: -58px;
    position: relative;
    z-index: 6;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(17, 19, 28, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.quick-search-panel h2 {
    margin: 8px 0 0;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}

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

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

.content-section,
.split-section,
.player-section {
    padding-top: 74px;
}

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

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(1.65rem, 3vw, 2.7rem);
    line-height: 1.12;
}

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

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

.movie-card,
.rank-card,
.category-overview-card,
.text-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover,
.rank-card:hover,
.category-overview-card:hover {
    border-color: var(--line-strong);
    background: var(--bg-card-strong);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.poster-link img,
.rank-poster img {
    transition: transform 0.35s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-link img,
.rank-card:hover .rank-poster img {
    transform: scale(1.06);
}

.poster-badge,
.rank-medal {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    border-radius: 999px;
    color: #171923;
    font-weight: 900;
    padding: 6px 10px;
    background: linear-gradient(135deg, var(--amber-light), var(--amber));
}

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

.movie-meta,
.detail-meta-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

.movie-meta span,
.movie-meta a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
}

.movie-meta a {
    color: #fde68a;
}

.movie-card h3,
.rank-card h2 {
    margin: 12px 0 8px;
    font-size: 1.14rem;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-card h2 a:hover {
    color: var(--amber-light);
}

.movie-card p,
.rank-card p,
.text-panel p,
.site-footer p,
.category-overview-card p {
    color: var(--muted);
}

.movie-card p {
    display: -webkit-box;
    min-height: 4.8em;
    margin: 0 0 14px;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.movie-card-compact p {
    min-height: 3.2em;
    -webkit-line-clamp: 2;
}

.tag-row {
    min-height: 32px;
}

.tag-row span {
    padding: 4px 8px;
    font-size: 0.76rem;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
}

.ranking-panel {
    align-self: start;
    position: sticky;
    top: 96px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(17, 19, 28, 0.88);
    padding: 24px;
    box-shadow: var(--shadow);
}

.ranking-panel h2 {
    margin: 8px 0 18px;
}

.ranking-panel ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.ranking-panel li a {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.ranking-panel li a:hover {
    background: rgba(245, 158, 11, 0.1);
}

.rank-number {
    color: var(--amber-light);
    font-weight: 900;
}

.ranking-panel strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-panel em {
    grid-column: 2;
    color: var(--subtle);
    font-size: 0.8rem;
    font-style: normal;
}

.full {
    width: 100%;
    margin-top: 18px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(244, 63, 94, 0.08)),
        rgba(17, 19, 28, 0.88);
    padding: 20px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card span,
.category-card strong,
.category-card small {
    position: relative;
    z-index: 2;
    display: block;
}

.category-card span {
    font-size: 1.2rem;
    font-weight: 900;
}

.category-card strong {
    margin-top: 8px;
    color: var(--amber-light);
    font-size: 2rem;
}

.category-card small {
    max-width: 210px;
    color: var(--muted);
}

.category-covers {
    position: absolute;
    right: -16px;
    bottom: -18px;
    display: flex;
    gap: 8px;
    opacity: 0.58;
    transform: rotate(-8deg);
}

.category-covers img {
    width: 72px;
    height: 108px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.page-hero {
    position: relative;
    overflow: hidden;
    width: min(var(--container), calc(100% - 32px));
    margin: 40px auto 0;
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.2), transparent 26rem),
        linear-gradient(135deg, rgba(24, 27, 39, 0.92), rgba(9, 10, 15, 0.92));
    padding: clamp(28px, 5vw, 62px);
    box-shadow: var(--shadow);
}

.small-hero {
    min-height: 260px;
}

.category-page-hero {
    min-height: 330px;
}

.local-search {
    margin-top: 24px;
}

.local-search input {
    width: min(100%, 640px);
}

.local-search.narrow input {
    width: min(100%, 540px);
}

.filter-row {
    margin-top: 18px;
}

.filter-chip {
    color: #fde68a;
    cursor: pointer;
}

.filter-chip.is-active {
    color: #171923;
    background: var(--amber-light);
}

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

.category-overview-card a {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
    align-items: center;
    padding: 18px;
}

.category-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-collage img {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
}

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

.rank-list {
    display: grid;
    gap: 18px;
}

.rank-card {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 22px;
    padding: 16px;
}

.rank-poster {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 2 / 3;
}

.heat-line {
    overflow: hidden;
    height: 8px;
    margin-top: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.heat-line span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--amber-light), var(--rose));
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    border-bottom: 1px solid var(--line);
}

.detail-layout {
    grid-template-columns: 310px minmax(0, 1fr);
    min-height: 620px;
}

.detail-cover {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    aspect-ratio: 2 / 3;
    box-shadow: var(--shadow);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    margin-bottom: 20px;
}

.breadcrumb a:hover {
    color: var(--amber-light);
}

.detail-info h1 {
    font-size: clamp(2.1rem, 5vw, 4.9rem);
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 28px;
    gap: 12px;
}

.detail-meta-grid span {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.detail-meta-grid strong {
    color: var(--subtle);
    font-size: 0.78rem;
}

.player-section {
    scroll-margin-top: 92px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    background:
        radial-gradient(circle at center, rgba(245, 158, 11, 0.16), transparent 30rem),
        #05060a;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow);
}

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #05060a;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    border: 0;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.62)),
        rgba(0, 0, 0, 0.18);
}

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

.play-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #171923;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--amber-light), var(--amber));
    box-shadow: 0 18px 48px rgba(245, 158, 11, 0.35);
}

.play-overlay strong {
    font-size: 1.1rem;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.text-panel {
    padding: 26px;
}

.text-panel h2 {
    margin: 8px 0 12px;
}

.text-panel p {
    margin: 0;
    font-size: 1.02rem;
}

.detail-nav-links {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.detail-nav-links a {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: #fde68a;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
}

.empty-state {
    display: none;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
    padding: 28px;
    background: rgba(255, 255, 255, 0.04);
}

.empty-state.is-visible {
    display: block;
}

.site-footer {
    margin-top: 86px;
    border-top: 1px solid var(--line);
    background: rgba(9, 10, 15, 0.82);
}

.footer-grid {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 36px;
    padding: 44px 0 28px;
}

.footer-brand {
    color: var(--amber-light);
    font-size: 1.5rem;
    font-weight: 900;
}

.site-footer h3 {
    margin: 0 0 14px;
}

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

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

.footer-bottom {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    color: var(--subtle);
    padding: 18px 0 26px;
}

.is-hidden {
    display: none !important;
}

img.image-missing {
    visibility: hidden;
}

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

    .menu-toggle {
        display: block;
    }

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

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

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

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

    .hero-content {
        padding: 126px 0 110px;
    }

    .hero-poster,
    .detail-cover {
        width: min(330px, 74vw);
    }

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .header-inner {
        min-height: 66px;
        gap: 12px;
    }

    .brand-text small,
    .header-search {
        display: none;
    }

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

    .quick-search-panel {
        grid-template-columns: 1fr;
        margin-top: -34px;
    }

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

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid,
    .footer-grid,
    .detail-content {
        grid-template-columns: 1fr 1fr;
    }

    .category-overview-card a,
    .rank-card {
        grid-template-columns: 120px 1fr;
    }

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

@media (max-width: 560px) {
    .mobile-nav {
        grid-template-columns: 1fr;
    }

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

    .hero-content,
    .detail-layout {
        gap: 28px;
    }

    .hero-actions,
    .section-heading,
    .footer-bottom,
    .detail-nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid,
    .footer-grid,
    .detail-content,
    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-card a,
    .rank-card {
        grid-template-columns: 1fr;
    }

    .rank-poster {
        width: min(220px, 100%);
    }

    .page-hero {
        border-radius: 24px;
    }
}
