:root {
    --color-primary: #f5871f;
    --color-primary-soft: #f79f3f;
    --color-primary-dark: #d66d0f;
    --color-dark-900: #0b0f14;
    --color-dark-850: #0f151d;
    --color-dark-800: #111821;
    --color-dark-700: #151a21;
    --color-dark-600: #1a2129;
    --color-dark-500: #263140;
    --color-text: #ffffff;
    --color-muted: #9ca3af;
    --color-muted-strong: #d1d5db;
    --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.32);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-text);
    background:
        radial-gradient(circle at top left, rgba(245, 135, 31, 0.16), transparent 36rem),
        linear-gradient(180deg, var(--color-dark-900) 0%, var(--color-dark-800) 48%, #0c1118 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(15, 21, 29, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1280px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-soft));
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(245, 135, 31, 0.35);
}

.brand-text {
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.nav-link {
    color: var(--color-muted-strong);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    position: relative;
    width: min(280px, 26vw);
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(26, 33, 41, 0.9);
}

.search-box input {
    width: 100%;
    height: 40px;
    padding: 0 8px 0 16px;
    color: #fff;
    background: transparent;
    border: 0;
    outline: 0;
}

.search-box input::placeholder {
    color: #7c8796;
}

.search-box button {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    background: transparent;
    border: 0;
}

.search-results {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(420px, 90vw);
    max-height: 520px;
    overflow-y: auto;
    display: none;
    padding: 10px;
    background: rgba(15, 21, 29, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
}

.search-results.is-open {
    display: grid;
    gap: 8px;
}

.search-result-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

.search-result-item img {
    width: 52px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-dark-500), var(--color-dark-700));
}

.search-result-item strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 14px;
}

.search-result-item span,
.search-result-item small {
    display: block;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.5;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 4px;
}

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

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

.mobile-link {
    padding: 12px 14px;
    color: var(--color-muted-strong);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 520px;
    max-height: 820px;
    overflow: hidden;
    background: var(--color-dark-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.66;
    transform: scale(1.03);
}

.hero-bg.image-missing,
.detail-hero img.image-missing {
    display: none;
}

.hero-overlay,
.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(11, 15, 20, 0.98) 0%, rgba(17, 24, 33, 0.78) 46%, rgba(17, 24, 33, 0.18) 100%),
        linear-gradient(0deg, rgba(11, 15, 20, 0.96) 0%, rgba(11, 15, 20, 0.08) 54%);
}

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

.hero-content h1,
.detail-hero-content h1,
.sub-hero h1 {
    max-width: 760px;
    margin: 16px 0 18px;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p,
.detail-hero-content p,
.sub-hero p {
    max-width: 760px;
    color: var(--color-muted-strong);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

.hero-kicker,
.eyebrow {
    color: var(--color-primary-soft);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.hero-tags {
    margin: 26px 0 32px;
}

.hero-tags span,
.mini-tags span,
.term-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    color: var(--color-primary-soft);
    background: rgba(245, 135, 31, 0.14);
    border: 1px solid rgba(245, 135, 31, 0.2);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

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

.button-primary,
.button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: 0 12px 28px rgba(245, 135, 31, 0.28);
}

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

.button-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.button-primary.small {
    min-height: 38px;
    padding: 0 16px;
    font-size: 13px;
}

.button-primary.full,
.button-ghost.full {
    width: 100%;
}

.hero-dots {
    position: absolute;
    right: max(24px, calc((100vw - 1280px) / 2));
    bottom: 34px;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: min(560px, calc(100% - 48px));
}

.hero-dot {
    min-height: 58px;
    padding: 9px 12px;
    color: var(--color-muted-strong);
    text-align: left;
    background: rgba(15, 21, 29, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.hero-dot span {
    display: block;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 900;
}

.hero-dot.is-active {
    color: #fff;
    background: rgba(245, 135, 31, 0.22);
    border-color: rgba(245, 135, 31, 0.5);
}

.content-wrap {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 0;
}

.intro-panel {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.intro-panel > div:first-child,
.stats-grid,
.detail-card,
.sidebar-card,
.category-overview-card,
.category-showcase,
.listing-controls {
    background: rgba(21, 26, 33, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.intro-panel > div:first-child {
    padding: 34px;
}

.intro-panel h2,
.section-heading h2,
.detail-card h2,
.category-showcase h3,
.category-overview-head h2 {
    margin: 10px 0 0;
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.16;
}

.intro-panel p,
.section-heading p,
.category-showcase p,
.category-overview-head p,
.detail-card p,
.sidebar-card p {
    color: var(--color-muted-strong);
    line-height: 1.85;
}

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

.stats-grid div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
}

.stats-grid strong {
    color: var(--color-primary-soft);
    font-size: 34px;
}

.stats-grid span {
    color: var(--color-muted);
}

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

.section-heading.simple {
    margin-bottom: 22px;
}

.section-more {
    color: var(--color-primary-soft);
    font-weight: 800;
}

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

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    background: rgba(21, 26, 33, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    background: rgba(26, 33, 41, 0.96);
    border-color: rgba(245, 135, 31, 0.32);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(245, 135, 31, 0.24), rgba(38, 49, 64, 0.96)),
        var(--color-dark-600);
}

.poster-frame::after {
    content: attr(aria-label);
    position: absolute;
    inset: auto 12px 18px 12px;
    display: none;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.5;
}

.poster-frame:has(img.image-missing)::after {
    display: block;
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.poster-frame img.image-missing {
    opacity: 0;
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72) 100%);
}

.year-badge,
.rank-badge,
.play-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.year-badge {
    top: 10px;
    left: 10px;
    color: #fff;
    background: rgba(15, 21, 29, 0.76);
    backdrop-filter: blur(8px);
}

.rank-badge {
    top: 10px;
    right: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.play-chip {
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    color: #fff;
    background: rgba(245, 135, 31, 0.9);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--color-primary-soft);
}

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

.movie-one-line {
    display: -webkit-box;
    min-height: 44px;
    margin-top: 8px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.movie-card-compact .movie-card-body {
    padding: 12px;
}

.movie-card-compact .movie-one-line,
.movie-card-compact .mini-tags {
    display: none;
}

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

.category-entry {
    min-height: 170px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(145deg, rgba(245, 135, 31, 0.16), rgba(21, 26, 33, 0.9));
    border: 1px solid rgba(245, 135, 31, 0.16);
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-entry:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 135, 31, 0.42);
}

.category-entry span {
    font-size: 18px;
    font-weight: 900;
}

.category-entry strong {
    color: var(--color-primary-soft);
    font-size: 34px;
}

.category-entry small {
    color: var(--color-muted);
    line-height: 1.6;
}

.stacked-showcases {
    display: grid;
    gap: 24px;
    padding-bottom: 40px;
}

.category-showcase,
.category-overview-card {
    padding: 26px;
}

.category-showcase-head,
.category-overview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.category-showcase-head a {
    color: var(--color-primary-soft);
    font-weight: 800;
    white-space: nowrap;
}

.sub-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 22% 24%, rgba(245, 135, 31, 0.23), transparent 32rem),
        linear-gradient(135deg, var(--color-dark-900), var(--color-dark-700));
}

.sub-hero > div {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

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

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

.listing-section {
    padding-bottom: 60px;
}

.listing-controls {
    position: sticky;
    top: 86px;
    z-index: 30;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 28px;
    padding: 18px;
    backdrop-filter: blur(12px);
}

.listing-controls label {
    display: grid;
    gap: 7px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
}

.listing-controls input,
.listing-controls select {
    width: 100%;
    height: 44px;
    color: #fff;
    background: rgba(11, 15, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    outline: 0;
    padding: 0 12px;
}

.listing-count {
    min-width: 110px;
    color: var(--color-primary-soft);
    font-weight: 900;
    text-align: right;
}

.category-overview-list {
    display: grid;
    gap: 26px;
    padding-bottom: 60px;
}

.detail-hero {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    background: var(--color-dark-900);
}

.detail-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
    padding-bottom: 80px;
}

.detail-main {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.watch-panel {
    overflow: hidden;
    background: rgba(11, 15, 20, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-overlay-button {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    background:
        radial-gradient(circle at center, rgba(245, 135, 31, 0.22), transparent 26rem),
        rgba(0, 0, 0, 0.46);
    border: 0;
    transition: opacity 0.2s ease;
}

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

.player-overlay-button span {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 999px;
    box-shadow: 0 16px 42px rgba(245, 135, 31, 0.38);
    font-size: 32px;
}

.player-overlay-button strong {
    font-size: 20px;
}

.player-overlay-button small {
    color: var(--color-muted-strong);
}

.source-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(21, 26, 33, 0.94);
}

.source-panel span {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 800;
}

.source-button,
.source-jump {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.source-button.is-active {
    background: rgba(245, 135, 31, 0.22);
    border-color: rgba(245, 135, 31, 0.42);
}

.detail-card,
.sidebar-card {
    padding: 26px;
}

.detail-card h2,
.sidebar-card h3 {
    margin: 0 0 16px;
}

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

.meta-card dl div {
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
}

.meta-card dt {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
}

.meta-card dd {
    margin: 6px 0 0;
    color: #fff;
}

.meta-card dd a {
    color: var(--color-primary-soft);
}

.term-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.term-list strong {
    color: var(--color-muted-strong);
}

.detail-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.sidebar-rank {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.sidebar-rank a {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: center;
    min-height: 38px;
    color: var(--color-muted-strong);
}

.sidebar-rank span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #fff;
    background: rgba(245, 135, 31, 0.24);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 900;
}

.site-footer {
    margin-top: 40px;
    background: rgba(11, 15, 20, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-about p,
.footer-column a,
.footer-bottom {
    color: var(--color-muted);
    line-height: 1.8;
}

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

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

.footer-column a:hover {
    color: var(--color-primary-soft);
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 13px;
}

[data-listing-empty] {
    grid-column: 1 / -1;
    padding: 34px;
    color: var(--color-muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
}

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

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

    .search-box {
        width: min(300px, 42vw);
    }

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

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

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

    .detail-sidebar {
        position: static;
    }
}

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

    .brand-text {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .search-box {
        width: 46vw;
    }

    .hero-carousel {
        height: auto;
        min-height: 640px;
    }

    .hero-content,
    .detail-hero-content {
        padding: 80px 0 170px;
    }

    .hero-dots {
        left: 16px;
        right: 16px;
        bottom: 22px;
        width: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .intro-panel,
    .footer-inner,
    .listing-controls {
        grid-template-columns: 1fr;
    }

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

    .section-heading,
    .category-showcase-head,
    .category-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .listing-controls {
        position: static;
    }

    .listing-count {
        text-align: left;
    }

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

@media (max-width: 520px) {
    .header-inner {
        width: min(100% - 20px, 1280px);
        gap: 10px;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
    }

    .search-box {
        width: 44vw;
    }

    .search-box input {
        padding-left: 12px;
        font-size: 13px;
    }

    .hero-content h1,
    .detail-hero-content h1,
    .sub-hero h1 {
        font-size: 34px;
    }

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

    .content-wrap,
    .sub-hero > div,
    .hero-content,
    .detail-hero-content,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 22px, 1280px);
    }

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

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

    .movie-one-line,
    .mini-tags {
        display: none;
    }
}
