* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --amber: #d97706;
    --amber-dark: #92400e;
    --orange: #f97316;
    --orange-soft: #ffedd5;
    --gold: #f59e0b;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(146, 64, 14, 0.16);
    --surface: rgba(255, 255, 255, 0.9);
    --surface-solid: #ffffff;
    --shadow: 0 22px 60px rgba(124, 45, 18, 0.14);
    --shadow-soft: 0 14px 35px rgba(124, 45, 18, 0.11);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.2), transparent 28rem),
        radial-gradient(circle at 100% 10%, rgba(249, 115, 22, 0.16), transparent 30rem),
        linear-gradient(180deg, #fffbeb 0%, #ffffff 42%, #fff7ed 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 251, 235, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.32);
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--amber-dark), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber-dark);
    background: rgba(251, 191, 36, 0.17);
}

.header-search {
    position: relative;
    width: min(260px, 28vw);
}

.header-search input,
.wide-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid rgba(217, 119, 6, 0.2);
    outline: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    padding: 12px 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.header-search input:focus,
.wide-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(249, 115, 22, 0.55);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.search-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    max-height: 380px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-soft);
    z-index: 90;
}

.search-panel.open {
    display: grid;
    gap: 6px;
}

.search-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.search-item:hover {
    background: #fff7ed;
}

.search-item img {
    width: 48px;
    height: 66px;
    border-radius: 10px;
    object-fit: cover;
    background: #fed7aa;
}

.search-item strong {
    display: block;
    font-size: 14px;
}

.search-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: var(--amber-dark);
    background: rgba(251, 191, 36, 0.2);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
}

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

main {
    overflow: hidden;
}

.hero-section {
    position: relative;
    height: min(86vh, 820px);
    min-height: 620px;
    background: #111827;
    overflow: hidden;
}

.hero-slides,
.hero-slide,
.hero-image-layer,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-image-layer {
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    filter: brightness(0.72) saturate(1.08);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 42%, rgba(0, 0, 0, 0.14) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.08) 52%);
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 0 88px;
    color: #ffffff;
}

.hero-kicker,
.hero-tags,
.hero-actions,
.card-meta,
.tag-row,
.detail-meta,
.band-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-kicker span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
}

.hero-kicker span:first-child {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.38);
}

.hero-kicker span:last-child,
.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    max-width: 780px;
    margin: 18px 0 16px;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.primary-btn,
.secondary-btn,
.ghost-link,
.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 {
    padding: 13px 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 14px 32px rgba(249, 115, 22, 0.34);
}

.secondary-btn {
    padding: 12px 21px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.secondary-btn.dark {
    color: var(--amber-dark);
    border-color: rgba(146, 64, 14, 0.22);
    background: #fff7ed;
}

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

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

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

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.section-heading.centered {
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.section-heading.compact {
    margin-bottom: 20px;
}

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

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

.section-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.25);
    font-size: 20px;
}

.text-link {
    margin-left: auto;
    color: var(--amber-dark);
    padding: 10px 14px;
    background: #fff7ed;
}

.wide-search {
    position: relative;
    width: min(720px, 100%);
    margin: 24px auto 0;
}

.wide-search input {
    padding: 18px 22px;
    font-size: 18px;
    box-shadow: var(--shadow-soft);
}

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

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

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 26px;
    background: #111827;
    box-shadow: var(--shadow-soft);
    isolation: isolate;
}

.category-cover,
.category-shade,
.category-content {
    position: absolute;
    inset: 0;
}

.category-cover {
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform 0.35s ease;
}

.category-shade {
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.1) 75%),
        linear-gradient(135deg, rgba(217, 119, 6, 0.55), rgba(249, 115, 22, 0.2));
}

.category-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    color: #ffffff;
}

.category-content strong {
    font-size: 24px;
    line-height: 1;
}

.category-content em {
    margin-top: 8px;
    font-style: normal;
    color: #fed7aa;
    font-weight: 800;
}

.category-content small {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.55;
}

.category-card:hover .category-cover {
    transform: scale(1.12);
}

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

.page-grid {
    grid-template-columns: repeat(5, 1fr);
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(146, 64, 14, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

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

.poster-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 14px;
}

.card-meta {
    gap: 6px;
    color: var(--amber-dark);
    font-size: 12px;
    font-weight: 800;
}

.card-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 6px;
    color: rgba(146, 64, 14, 0.45);
}

.movie-card h3 {
    min-height: 2.6em;
    margin: 8px 0 8px;
    font-size: 17px;
    line-height: 1.3;
}

.movie-card h3 a:hover,
.ranking-info h2 a:hover {
    color: var(--orange);
}

.movie-card p {
    min-height: 4.7em;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.tag-row {
    gap: 6px;
}

.tag-row span {
    color: var(--amber-dark);
    background: #fff7ed;
    border: 1px solid rgba(217, 119, 6, 0.12);
    font-size: 12px;
    padding: 5px 9px;
}

.tag-row.large span {
    font-size: 13px;
    padding: 7px 11px;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.compact-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 18px;
    background: #111827;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.compact-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
    transition: transform 0.3s ease;
}

.compact-card:hover img {
    transform: scale(1.08);
}

.compact-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 62%);
}

.compact-rank,
.compact-title,
.compact-meta {
    position: relative;
    z-index: 2;
    margin-left: 12px;
    margin-right: 12px;
}

.compact-rank {
    position: absolute;
    top: 10px;
    left: 0;
    margin: 0 0 0 10px;
}

.rank-num,
.rank-dot {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.compact-title {
    color: #ffffff;
    font-weight: 900;
    line-height: 1.25;
}

.compact-meta {
    margin-top: 6px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
    gap: 24px;
    align-items: start;
}

.split-main,
.split-side,
.content-card,
.feature-band,
.related-links {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
}

.split-main,
.split-side {
    padding: 24px;
}

.split-side h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 82px 54px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
}

.ranking-cover {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 2 / 3;
    background: #fed7aa;
}

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

.ranking-number {
    color: var(--orange);
    font-size: 32px;
    font-weight: 950;
    letter-spacing: -0.08em;
}

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

.ranking-info p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.6;
}

.ghost-link {
    padding: 9px 14px;
    color: var(--amber-dark);
    background: #fff7ed;
    white-space: nowrap;
}

.page-hero,
.detail-hero {
    position: relative;
    padding: 86px 0 48px;
    background:
        radial-gradient(circle at 12% 20%, rgba(251, 191, 36, 0.32), transparent 22rem),
        radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.25), transparent 26rem),
        linear-gradient(135deg, #fffbeb, #fff7ed);
}

.page-hero > div,
.detail-layout,
.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero h1 {
    max-width: 850px;
    margin: 12px 0 14px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--amber-dark);
    background: rgba(251, 191, 36, 0.22);
    font-weight: 900;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px 160px;
    gap: 12px;
    margin-bottom: 22px;
}

.empty-state {
    display: none;
    margin: 28px 0 0;
    padding: 18px;
    text-align: center;
    border-radius: 18px;
    color: var(--muted);
    background: #fff7ed;
}

.empty-state.open {
    display: block;
}

.related-links {
    padding: 28px;
}

.related-links h2 {
    margin: 0 0 16px;
}

.related-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-links a {
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--amber-dark);
    background: #fff7ed;
    font-weight: 800;
}

.feature-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.94), rgba(249, 115, 22, 0.88));
    color: #ffffff;
}

.feature-band h2 {
    margin: 0 0 8px;
    font-size: 34px;
}

.feature-band p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.48fr) minmax(340px, 0.52fr);
    gap: 26px;
    align-items: stretch;
}

.video-panel,
.detail-info {
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.video-panel {
    padding: 16px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
    object-fit: contain;
    pointer-events: auto;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.08));
    cursor: pointer;
    z-index: 3;
}

.play-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
    font-size: 30px;
    padding-left: 4px;
}

.detail-info {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    padding: 18px;
}

.detail-poster {
    width: 130px;
    height: 195px;
    object-fit: cover;
    border-radius: 18px;
    background: #fed7aa;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.16);
}

.detail-copy h1 {
    margin: 12px 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.lead {
    color: var(--muted);
    line-height: 1.75;
}

.detail-meta {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
    color: #4b5563;
}

.detail-meta a {
    color: var(--amber-dark);
    font-weight: 800;
}

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

.content-card {
    padding: 28px;
}

.content-card:nth-child(1) {
    grid-column: span 2;
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.content-card p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.95;
}

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

.site-footer {
    margin-top: 56px;
    color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(135deg, #111827, #1f2937 52%, #111827);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 520px;
    margin: 0;
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 16px;
    color: #ffffff;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a:hover {
    color: #fbbf24;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.62);
}

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

@media (max-width: 1120px) {
    .movie-grid,
    .page-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

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

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

@media (max-width: 860px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    .hero-section {
        min-height: 620px;
    }

    .hero-content {
        padding-bottom: 76px;
    }

    .section-heading,
    .feature-band,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .text-link {
        margin-left: 0;
    }

    .movie-grid,
    .page-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .ranking-row {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .ranking-number,
    .ranking-row .ghost-link {
        display: none;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        width: 150px;
        height: 225px;
    }

    .detail-section,
    .content-card:nth-child(1) {
        display: block;
        grid-column: auto;
    }

    .content-card + .content-card {
        margin-top: 18px;
    }

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

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

@media (max-width: 520px) {
    .site-nav,
    .mobile-nav,
    .section,
    .page-hero > div,
    .detail-layout,
    .breadcrumb,
    .footer-grid,
    .footer-bottom,
    .hero-content {
        width: min(100% - 22px, 1180px);
    }

    .brand-title {
        font-size: 18px;
    }

    .brand-subtitle {
        display: none;
    }

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

    .hero-content h1 {
        font-size: 42px;
    }

    .movie-grid,
    .page-grid,
    .related-grid,
    .category-grid,
    .category-grid.wide {
        grid-template-columns: 1fr;
    }

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