:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --red: #ef4444;
    --orange: #f97316;
    --amber: #f59e0b;
    --green: #10b981;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.94);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(18px);
}

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

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

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.32);
}

.brand-text {
    font-size: 1.2rem;
    background: linear-gradient(90deg, #f87171, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.nav-link {
    color: #e2e8f0;
    font-size: 0.96rem;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fb923c;
    transform: translateY(-1px);
}

.nav-link.compact {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.top-search,
.mobile-search,
.home-search-block form,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-search input,
.home-search-block input,
.search-page-form input {
    min-width: 0;
    color: #ffffff;
    background: #334155;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    outline: none;
    padding: 11px 15px;
}

.top-search input:focus,
.mobile-search input:focus,
.home-search-block input:focus,
.search-page-form input:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.top-search button,
.mobile-search button,
.home-search-block button,
.search-page-form button {
    color: #ffffff;
    cursor: pointer;
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.25);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-panel a {
    padding: 11px 12px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.hero-section {
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(239, 68, 68, 0.26), transparent 34%), linear-gradient(135deg, #0f172a, #111827 52%, #450a0a);
    padding: 34px 0 30px;
}

.hero-shell {
    width: min(1240px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 34px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 32px;
    padding: 58px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.015);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 25%, rgba(251, 146, 60, 0.22), transparent 30%);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 1;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    color: #fed7aa;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 760px;
    margin: 18px 0 20px;
    font-size: clamp(2.7rem, 7vw, 5.6rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 680px;
    margin: 0;
    color: #e2e8f0;
    font-size: 1.08rem;
}

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

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

.hero-tags span,
.tag-cloud span,
.chip-row span {
    color: #fff7ed;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.22);
    border: 1px solid rgba(251, 146, 60, 0.25);
}

.hero-actions,
.detail-actions,
.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn {
    color: #ffffff;
    padding: 13px 22px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 18px 36px rgba(239, 68, 68, 0.28);
}

.primary-btn.small {
    padding: 10px 16px;
    font-size: 0.93rem;
}

.ghost-btn {
    color: #ffffff;
    padding: 12px 21px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
}

.ghost-btn.light {
    color: var(--ink);
    border-color: rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.72);
}

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

.hero-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.46);
    background: linear-gradient(135deg, #334155, #111827);
}

.hero-poster img,
.poster-link img,
.rank-poster img,
.detail-poster img,
.category-tile img,
.category-thumbs img,
.rank-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    left: 58px;
    bottom: 38px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 5px;
    padding: 0;
    cursor: pointer;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.hero-dot.active {
    background: linear-gradient(90deg, #ef4444, #fb923c);
}

.hero-side-card {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 620px;
    padding: 28px;
    border-radius: 34px;
    background: linear-gradient(150deg, rgba(239, 68, 68, 0.96), rgba(249, 115, 22, 0.88));
    box-shadow: 0 28px 70px rgba(239, 68, 68, 0.28);
}

.hero-side-card span {
    color: #ffedd5;
    font-weight: 800;
}

.hero-side-card h2 {
    margin: 12px 0;
    font-size: 2rem;
    line-height: 1.12;
}

.hero-side-card p {
    color: #fff7ed;
}

.hero-side-card a {
    width: max-content;
    margin-top: 18px;
    color: #7f1d1d;
    font-weight: 850;
    padding: 11px 18px;
    border-radius: 999px;
    background: #ffffff;
}

.hero-category-pills {
    width: min(1240px, calc(100% - 32px));
    margin: 18px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-category-pills a {
    color: #e2e8f0;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.content-section,
.split-section,
.home-search-block,
.category-overview,
.rank-page-list,
.sitemap-grid,
.detail-content,
.player-section {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.content-section,
.split-section,
.category-overview,
.rank-page-list,
.sitemap-grid,
.detail-content,
.player-section {
    padding: 58px 0;
}

.alt-section {
    padding-top: 28px;
}

.home-search-block {
    margin-top: -32px;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.home-search-block h2,
.section-heading h2,
.page-hero h1 {
    margin: 8px 0 10px;
    letter-spacing: -0.03em;
}

.home-search-block h2,
.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
}

.home-search-block p,
.section-heading p,
.page-hero p {
    margin: 0;
    color: var(--muted);
}

.home-search-block input,
.search-page-form input {
    width: 100%;
    color: var(--ink);
    background: #f1f5f9;
}

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

.section-more {
    flex: 0 0 auto;
    color: #ef4444;
    padding: 10px 16px;
    background: #fff1f2;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #cbd5e1, #64748b);
}

.poster-year,
.rank-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 850;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
}

.poster-year {
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    font-size: 0.8rem;
}

.rank-badge {
    left: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

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

.movie-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.movie-meta-line a {
    color: #ef4444;
}

.movie-card h3 {
    margin: 9px 0 8px;
    color: var(--ink);
    font-size: 1.16rem;
    line-height: 1.25;
}

.compact-card h3 {
    font-size: 1rem;
}

.movie-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.93rem;
}

.chip-row span {
    color: #9a3412;
    background: #ffedd5;
    border-color: #fed7aa;
}

.card-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 750;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: auto 60px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.rank-row img {
    width: 60px;
    height: 82px;
    border-radius: 14px;
    background: #cbd5e1;
}

.small-rank {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 850;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.rank-row-info {
    min-width: 0;
}

.rank-row-info strong,
.rank-row-info em {
    display: block;
}

.rank-row-info strong {
    overflow: hidden;
    color: var(--ink);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-row-info em {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.85rem;
    font-style: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-row b {
    color: #ef4444;
}

.category-grid,
.category-panels {
    display: grid;
    gap: 18px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #ffffff;
    border-radius: 24px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    filter: saturate(1.1);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.88));
}

.category-tile span,
.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 1;
}

.category-tile span {
    color: #fed7aa;
    font-weight: 850;
}

.category-tile strong {
    margin-top: 6px;
    font-size: 1.15rem;
}

.category-tile em {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-style: normal;
}

.page-hero {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 68px max(16px, calc((100vw - 1240px) / 2)) 72px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.20), transparent 24%), linear-gradient(135deg, #991b1b, #f97316);
}

.page-hero h1 {
    max-width: 900px;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1;
}

.page-hero p {
    max-width: 760px;
    color: #fff7ed;
    font-size: 1.08rem;
}

.category-hero {
    color: var(--ink);
    background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.22), transparent 28%), linear-gradient(135deg, #fff7ed, #ffffff 58%, #fee2e2);
}

.category-hero p {
    color: #475569;
}

.rank-hero {
    background: radial-gradient(circle at 78% 20%, rgba(251, 191, 36, 0.32), transparent 30%), linear-gradient(135deg, #0f172a, #7f1d1d);
}

.search-hero {
    background: radial-gradient(circle at 20% 20%, rgba(239, 68, 68, 0.25), transparent 25%), linear-gradient(135deg, #111827, #334155);
}

.search-page-form {
    width: min(680px, 100%);
    margin-top: 28px;
}

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

.category-panel {
    overflow: hidden;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    padding: 18px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.category-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.category-thumbs img {
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    background: #cbd5e1;
}

.category-panel-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-panel-body h2 {
    margin: 8px 0 10px;
    font-size: 1.55rem;
    line-height: 1.16;
}

.category-panel-body p {
    margin: 0 0 18px;
    color: var(--muted);
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
    padding: 18px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.rank-poster span {
    position: absolute;
    left: 10px;
    top: 10px;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.rank-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rank-card-body h2 {
    margin: 8px 0 10px;
    font-size: 1.6rem;
    line-height: 1.2;
}

.rank-card-body p {
    margin: 0 0 12px;
    color: var(--muted);
}

.rank-category {
    color: #ef4444;
    font-weight: 850;
}

.inline-meta {
    color: #475569;
}

.score-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.score-line b {
    color: #9a3412;
    padding: 7px 11px;
    border-radius: 999px;
    background: #ffedd5;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

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

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

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    background: #334155;
    box-shadow: 0 34px 78px rgba(0, 0, 0, 0.42);
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #fed7aa;
    font-weight: 700;
}

.detail-main h1 {
    margin: 14px 0 16px;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 20px;
    color: #e2e8f0;
    font-size: 1.12rem;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.tag-cloud {
    margin-top: 14px;
}

.player-card {
    overflow: hidden;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.video-shell {
    position: relative;
    background: #020617;
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.72));
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 24px 60px rgba(239, 68, 68, 0.38);
    font-size: 2rem;
}

.video-shell.playing .play-overlay {
    display: none;
}

.player-info {
    padding: 24px 28px 30px;
}

.player-info h2 {
    margin: 8px 0 10px;
    font-size: 1.9rem;
}

.player-info p {
    margin: 0;
    color: var(--muted);
}

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

.story-card {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.story-card h2 {
    margin: 0 0 12px;
    font-size: 1.7rem;
}

.story-card p {
    margin: 0;
    color: #475569;
}

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

.sitemap-block {
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.sitemap-block h2 {
    margin: 0;
    padding: 18px 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.sitemap-block ul {
    max-height: 520px;
    overflow: auto;
    margin: 0;
    padding: 16px 22px 22px;
    list-style: none;
}

.sitemap-block li + li {
    border-top: 1px solid var(--line);
}

.sitemap-block a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.sitemap-block span {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
    padding: 48px 0;
}

.footer-grid {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 34px;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.footer-grid p {
    color: #94a3b8;
}

.footer-grid a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

.footer-grid a:hover {
    color: #fb923c;
}

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

    .hero-shell {
        grid-template-columns: 1fr;
    }

    .hero-side-card {
        min-height: auto;
    }

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

    .category-panels,
    .split-section,
    .detail-content,
    .sitemap-grid {
        grid-template-columns: 1fr;
    }
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-wrap {
        height: 66px;
    }

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 32px 24px 70px;
    }

    .hero-poster {
        width: min(260px, 70vw);
        margin: 0 auto;
    }

    .hero-dots {
        left: 24px;
        bottom: 28px;
    }

    .home-search-block,
    .rank-card,
    .category-panel,
    .detail-wrap {
        grid-template-columns: 1fr;
    }

    .detail-wrap {
        gap: 24px;
    }

    .detail-poster {
        width: min(300px, 82vw);
    }

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

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

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

@media (max-width: 560px) {
    .hero-content h1,
    .detail-main h1,
    .page-hero h1 {
        font-size: 2.55rem;
    }

    .movie-grid,
    .movie-grid.tight,
    .feature-rank {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: auto 52px 1fr;
    }

    .rank-row b {
        display: none;
    }

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