:root {
    color-scheme: dark;
    --bg: #120907;
    --bg-soft: #1d0f0b;
    --panel: rgba(36, 17, 12, 0.82);
    --panel-solid: #26110c;
    --text: #fff7ed;
    --muted: rgba(255, 237, 213, 0.76);
    --faint: rgba(255, 237, 213, 0.58);
    --amber: #f59e0b;
    --amber-soft: #fcd34d;
    --orange: #ea580c;
    --rose: #be123c;
    --border: rgba(251, 191, 36, 0.24);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(245, 158, 11, 0.22), transparent 30%),
        radial-gradient(circle at 82% 0%, rgba(190, 18, 60, 0.24), transparent 28%),
        linear-gradient(135deg, #130805 0%, #24100a 48%, #3a0f15 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    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: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 82%);
    z-index: -1;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(28, 12, 8, 0.84);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #451a03;
    font-weight: 900;
    background: linear-gradient(135deg, #fef3c7, #f59e0b 62%, #fb7185);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.34);
}

.brand-text {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

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

.nav-link,
.mobile-nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #fff;
    background: rgba(245, 158, 11, 0.16);
}

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

.header-search {
    width: 300px;
}

.header-search input,
.mobile-search input,
.wide-search input {
    width: 100%;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 999px;
    outline: none;
    padding: 11px 16px;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus {
    border-color: rgba(252, 211, 77, 0.9);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button,
.mobile-search button,
.wide-search button,
.primary-button,
.ghost-button,
.text-button {
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}

.header-search button,
.mobile-search button,
.wide-search button,
.primary-button {
    color: #2b1106;
    background: linear-gradient(135deg, #fef3c7, #f59e0b 58%, #fb7185);
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    box-shadow: 0 16px 38px rgba(245, 158, 11, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(245, 158, 11, 0.38);
}

.ghost-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-soft);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover,
.text-button:hover {
    background: rgba(245, 158, 11, 0.18);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--amber-soft);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(28, 12, 8, 0.96);
}

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

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

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

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

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

.hero-slide > img,
.page-hero > img,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay,
.detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 5, 3, 0.92) 0%, rgba(18, 9, 7, 0.72) 42%, rgba(18, 9, 7, 0.32) 100%),
        linear-gradient(0deg, rgba(18, 9, 7, 1) 0%, rgba(18, 9, 7, 0.08) 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 72vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1180px;
    padding: 80px 0 110px;
}

.hero-kicker,
.section-heading span,
.page-hero span,
.category-overview-card span,
.detail-copy .card-tags,
.card-tags {
    color: var(--amber-soft);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 800;
}

.hero-content h1 {
    margin: 16px 0 16px;
    max-width: 760px;
    font-size: clamp(42px, 7vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 22px 60px rgba(0, 0, 0, 0.58);
}

.hero-content p {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(17px, 2.4vw, 24px);
    line-height: 1.7;
}

.hero-tags,
.card-tags,
.detail-meta,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

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

.hero-tags span,
.card-tags span,
.detail-meta span,
.tag-cloud a {
    color: #fff7ed;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(252, 211, 77, 0.25);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 800;
}

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

.hero-control {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 30px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.hero-arrow,
.hero-dot {
    pointer-events: auto;
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 58px;
    background: var(--amber-soft);
}

.quick-search-panel,
.section,
.page-hero,
.detail-inner {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.quick-search-panel {
    margin-top: -42px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 26px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(32, 14, 10, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-search-panel h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.quick-search-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.section {
    padding: 72px 0 0;
}

.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(28px, 4vw, 44px);
    line-height: 1;
}

.section-heading a {
    color: var(--amber-soft);
    font-weight: 800;
}

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

.compact-heading h2 {
    font-size: 30px;
}

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

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

.search-grid,
.related-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22);
    transition: transform 0.26s ease, border 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(252, 211, 77, 0.62);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

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

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

.movie-card:hover .poster-link img {
    transform: scale(1.07);
    filter: saturate(1.1) brightness(1.05);
}

.play-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    color: #2b1106;
    background: var(--amber-soft);
    border-radius: 999px;
    padding: 7px 11px;
    font-weight: 900;
    font-size: 12px;
    transform: translateY(18px);
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    padding: 15px;
}

.card-tags {
    gap: 6px;
    margin-bottom: 10px;
}

.card-tags span {
    padding: 5px 8px;
    font-size: 11px;
}

.movie-card h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card h2 a:hover,
.ranking-body h2 a:hover,
.overview-links a:hover {
    color: var(--amber-soft);
}

.movie-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

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

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: var(--panel-solid);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.24s ease, border 0.24s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(252, 211, 77, 0.66);
}

.category-tile img,
.tile-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-shade {
    background: linear-gradient(0deg, rgba(18, 9, 7, 0.92), rgba(18, 9, 7, 0.2));
}

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

.category-tile strong {
    font-size: 24px;
}

.category-tile em {
    margin-top: 8px;
    color: var(--muted);
    font-style: normal;
    line-height: 1.55;
}

.rank-panel {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow);
}

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

.rank-mini-item {
    display: grid;
    grid-template-columns: 34px 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-mini-item:hover {
    background: rgba(245, 158, 11, 0.14);
    transform: translateX(4px);
}

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

.rank-mini-item img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}

.rank-info {
    display: grid;
    min-width: 0;
}

.rank-info strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-info em {
    margin-top: 4px;
    color: var(--faint);
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.page-hero {
    position: relative;
    min-height: 360px;
    margin-top: 34px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.8), rgba(127, 29, 29, 0.72));
    box-shadow: var(--shadow);
}

.simple-hero,
.category-hero {
    display: flex;
    align-items: center;
    padding: 48px;
}

.page-hero > div {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.page-hero h1 {
    margin: 12px 0 14px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.page-hero p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.overview-cover {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 18px;
}

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

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

.category-overview-card p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
}

.overview-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.overview-links a {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

.filter-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 22px;
}

.filter-chip {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
    flex: 0 0 auto;
}

.filter-chip.active,
.filter-chip:hover {
    color: #2b1106;
    background: var(--amber-soft);
}

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

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, border 0.2s ease;
}

.ranking-item:hover {
    transform: translateY(-4px);
    border-color: rgba(252, 211, 77, 0.6);
}

.ranking-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
}

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

.ranking-poster span {
    position: absolute;
    left: 8px;
    top: 8px;
    color: #2b1106;
    background: var(--amber-soft);
    border-radius: 999px;
    padding: 4px 8px;
    font-weight: 900;
    font-size: 12px;
}

.ranking-body h2 {
    margin: 8px 0;
    font-size: 23px;
}

.ranking-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.ranking-body em {
    display: inline-block;
    margin-top: 8px;
    color: var(--faint);
    font-style: normal;
}

.score {
    color: var(--amber-soft);
    font-size: 24px;
}

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

.detail-inner {
    position: relative;
    z-index: 2;
    padding: 34px 0 70px;
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 38px;
    align-items: end;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.detail-copy h1 {
    margin: 16px 0;
    font-size: clamp(38px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.lead-text {
    max-width: 800px;
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 21px;
    line-height: 1.75;
}

.detail-meta {
    margin-bottom: 28px;
}

.detail-section {
    margin-top: -74px;
    position: relative;
    z-index: 5;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(252, 211, 77, 0.34);
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.video-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12), rgba(0, 0, 0, 0.62));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.video-mask span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #2b1106;
    background: var(--amber-soft);
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 18px 54px rgba(245, 158, 11, 0.42);
    padding-left: 6px;
}

.video-mask.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.story-block {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
}

.story-block h2 {
    margin: 0 0 12px;
    font-size: 27px;
}

.story-block p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
    font-size: 17px;
}

.tag-cloud a:hover {
    background: var(--amber-soft);
    color: #2b1106;
}

.site-footer {
    margin-top: 84px;
    background: linear-gradient(90deg, rgba(69, 26, 3, 0.96), rgba(124, 45, 18, 0.96), rgba(136, 19, 55, 0.96));
    border-top: 1px solid var(--border);
}

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

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

.site-footer p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

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

.footer-links a {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
    background: rgba(245, 158, 11, 0.18);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 24px;
    color: var(--faint);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

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

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

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

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

    .rank-panel {
        position: static;
    }
}

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

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

    .hero-content h1,
    .detail-copy h1 {
        letter-spacing: -0.035em;
    }

    .quick-search-panel,
    .detail-layout,
    .footer-grid,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

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

    .detail-layout {
        align-items: start;
    }

    .detail-poster {
        max-width: 240px;
    }
}

@media (max-width: 620px) {
    .header-inner {
        height: 66px;
    }

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

    .hero-carousel,
    .hero-content {
        min-height: 680px;
    }

    .hero-control {
        bottom: 18px;
    }

    .hero-arrow {
        width: 42px;
        height: 42px;
    }

    .quick-search-panel,
    .simple-hero,
    .category-hero,
    .story-block {
        padding: 22px;
    }

    .section {
        padding-top: 54px;
    }

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

    .movie-grid,
    .featured-grid,
    .spotlight-row,
    .search-grid,
    .related-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-body {
        padding: 12px;
    }

    .movie-card h2 {
        font-size: 15px;
    }

    .movie-card p {
        font-size: 12px;
    }

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

    .score {
        grid-column: 2;
        justify-self: start;
    }

    .page-hero {
        min-height: 300px;
    }

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

@media (max-width: 420px) {
    .movie-grid,
    .featured-grid,
    .spotlight-row,
    .search-grid,
    .related-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .wide-search,
    .mobile-search {
        flex-direction: column;
        align-items: stretch;
    }
}
