:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.78);
    --bg-card-strong: rgba(15, 23, 42, 0.95);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --orange: #f97316;
    --orange-light: #fb923c;
    --red: #dc2626;
    --yellow: #facc15;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.18), transparent 32rem),
        radial-gradient(circle at 88% 12%, rgba(220, 38, 38, 0.15), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #030712 52%, #020617 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    height: 68px;
    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 {
    font-size: 22px;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--orange-light), #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.3);
}

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

.desktop-nav a,
.mobile-menu a {
    color: var(--muted-strong);
    font-weight: 700;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a {
    padding: 10px 14px;
    font-size: 14px;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-menu a:hover,
.mobile-menu a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(220, 38, 38, 0.9));
}

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

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #fff;
    border-radius: 999px;
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 68px 0 auto 0;
    z-index: 49;
    padding: 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(18px);
}

.mobile-menu a {
    display: block;
    padding: 14px 16px;
    margin: 4px 0;
}

.hero-carousel {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #000;
}

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

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.78) 38%, rgba(0, 0, 0, 0.2) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 44%, rgba(2, 6, 23, 0.15) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: max(24px, calc((100vw - 1240px) / 2));
    width: min(680px, calc(100% - 48px));
    transform: translateY(-50%);
    z-index: 2;
}

.hero-pill,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 14px;
    padding: 8px 14px;
    color: var(--orange-light);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    border: 1px solid rgba(249, 115, 22, 0.55);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.14);
    backdrop-filter: blur(10px);
}

.hero-content h1,
.page-banner h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-meta,
.detail-meta,
.banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
    color: var(--muted-strong);
}

.hero-meta span,
.detail-meta span,
.banner-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.5);
}

.hero-content p,
.page-banner p,
.section-heading p,
.story-card p,
.category-overview-card p {
    color: var(--muted-strong);
    line-height: 1.8;
}

.hero-content p {
    max-width: 620px;
    margin: 0 0 22px;
    font-size: 18px;
}

.hero-search {
    display: flex;
    gap: 10px;
    max-width: 560px;
    margin: 0 0 22px;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    outline: none;
    background: rgba(2, 6, 23, 0.7);
}

.hero-search input {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 12px;
}

.hero-search button,
.primary-button,
.ghost-button,
.mini-button,
.filter-reset,
.ranking-side a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    color: #fff;
    font-weight: 800;
    border: 0;
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search button,
.primary-button,
.mini-button,
.ranking-side a {
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.24);
}

.ghost-button,
.filter-reset {
    background: rgba(30, 41, 59, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.mini-button:hover,
.filter-reset:hover,
.ranking-side a:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(249, 115, 22, 0.32);
}

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

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

.hero-dots button {
    width: 34px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-dots button.is-active {
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.content-section {
    padding: 70px 0;
}

.dark-section {
    background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

.gradient-section {
    background:
        radial-gradient(circle at 88% 10%, rgba(249, 115, 22, 0.13), transparent 28rem),
        linear-gradient(180deg, #0f172a 0%, #020617 100%);
}

.split-section {
    background: linear-gradient(180deg, #020617, #030712);
}

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

.section-heading h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 720px;
    margin: 0;
}

.section-link {
    flex: 0 0 auto;
    color: var(--orange-light);
    font-weight: 800;
}

.horizontal-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 245px;
    gap: 18px;
    overflow-x: auto;
    padding: 6px 2px 24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

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

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

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

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

.movie-card {
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    scroll-snap-align: start;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card[hidden] {
    display: none;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(249, 115, 22, 0.55);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.movie-link {
    display: block;
    height: 100%;
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(220, 38, 38, 0.16));
}

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

.movie-card:hover .poster-frame img {
    transform: scale(1.08);
    filter: saturate(1.12) contrast(1.05);
}

.rating-badge,
.play-badge,
.detail-poster span {
    position: absolute;
    z-index: 2;
    color: #fff;
    font-weight: 900;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(12px);
}

.rating-badge {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    color: var(--yellow);
    font-size: 13px;
}

.play-badge {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    opacity: 0;
    background: linear-gradient(135deg, var(--orange), var(--red));
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-info {
    padding: 14px;
}

.movie-info h3 {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.card-desc {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.65;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.compact-desc {
    -webkit-line-clamp: 2;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    color: var(--orange-light);
    font-size: 12px;
    border: 1px solid rgba(249, 115, 22, 0.28);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.1);
}

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

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius);
    background: #111827;
    box-shadow: var(--shadow);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.category-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.1));
}

.category-copy {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
}

.category-copy strong,
.category-copy em {
    display: block;
}

.category-copy strong {
    margin-bottom: 4px;
    font-size: 22px;
}

.category-copy em {
    color: var(--muted-strong);
    font-style: normal;
}

.split-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 56px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.8);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(249, 115, 22, 0.45);
}

.rank-number {
    color: transparent;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange-light), var(--red));
    -webkit-background-clip: text;
    background-clip: text;
}

.rank-item img {
    width: 56px;
    height: 74px;
    object-fit: cover;
    border-radius: 10px;
}

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

.rank-copy strong {
    margin-bottom: 4px;
}

.rank-copy em,
.rank-score {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.rank-score {
    color: var(--yellow);
    font-weight: 900;
}

.page-banner {
    padding: 82px 0 58px;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.16), transparent 32%),
        linear-gradient(180deg, #020617, #0f172a);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.page-banner h1 {
    margin-bottom: 16px;
}

.page-banner p {
    max-width: 760px;
    margin: 0;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, minmax(130px, 1fr)) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.75);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
}

.result-status {
    margin: 0 0 18px;
    color: var(--muted-strong);
    font-weight: 700;
}

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

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

.category-overview-list {
    display: grid;
    gap: 22px;
}

.category-overview-card {
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.76);
    box-shadow: var(--shadow);
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.category-overview-head h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.category-preview-strip {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}

.category-preview-strip a {
    display: block;
    min-width: 0;
}

.category-preview-strip img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 8px;
}

.category-preview-strip span {
    display: block;
    overflow: hidden;
    color: var(--muted-strong);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-count {
    margin-top: 16px;
    color: var(--orange-light) !important;
    font-weight: 800;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 108px 1fr 118px;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.78);
}

.ranking-cover img {
    width: 108px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-title-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.ranking-title-line h2 {
    margin: 0;
    font-size: 22px;
}

.ranking-index {
    color: var(--orange-light);
    font-size: 24px;
    font-weight: 900;
}

.ranking-main p {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted-strong);
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-side {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.ranking-side strong {
    color: var(--yellow);
    font-size: 22px;
}

.ranking-side span {
    color: var(--muted);
}

.detail-hero {
    position: relative;
    min-height: 74vh;
    overflow: hidden;
    background: #000;
}

.detail-bg,
.detail-shade {
    position: absolute;
    inset: 0;
}

.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) saturate(1.1);
    transform: scale(1.03);
}

.detail-shade {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.95), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.22)),
        linear-gradient(0deg, #020617, transparent 55%);
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 40px;
    align-items: center;
}

.detail-poster {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 26px;
    overflow: hidden;
    background: #111827;
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-poster span {
    top: 14px;
    right: 14px;
    padding: 8px 12px;
    color: var(--yellow);
}

.detail-copy h1 {
    margin-bottom: 18px;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 18px;
    color: var(--muted-strong);
    font-size: 19px;
    line-height: 1.8;
}

.detail-tags {
    margin-bottom: 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 26px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: #fff;
    border: 0;
    background:
        radial-gradient(circle at center, rgba(249, 115, 22, 0.26), rgba(2, 6, 23, 0.72)),
        rgba(0, 0, 0, 0.48);
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.34);
}

.play-overlay strong {
    font-size: 24px;
}

.play-overlay em {
    color: var(--muted-strong);
    font-style: normal;
}

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

.player-status {
    position: absolute;
    left: 18px;
    bottom: 14px;
    margin: 0;
    color: var(--muted-strong);
    font-size: 13px;
    pointer-events: none;
}

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

.story-card {
    padding: 26px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

.story-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.story-card p:last-child {
    margin: 0;
    font-size: 16px;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: #020617;
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 28px;
}

.footer-inner p,
.footer-inner a,
.copyright {
    color: var(--muted);
    line-height: 1.75;
}

.footer-inner h3 {
    margin: 0 0 14px;
    font-size: 16px;
}

.footer-inner a {
    display: block;
    margin: 8px 0;
}

.footer-inner a:hover {
    color: var(--orange-light);
}

.footer-brand {
    margin-bottom: 14px;
    font-size: 20px;
}

.copyright {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 13px;
}

@media (max-width: 1180px) {
    .movie-grid,
    .home-grid,
    .all-movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

    .filter-search {
        grid-column: 1 / -1;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .mobile-menu.is-open {
        display: block;
    }

    .hero-carousel {
        min-height: 76vh;
    }

    .hero-content {
        top: auto;
        bottom: 78px;
        transform: none;
    }

    .hero-content h1,
    .page-banner h1,
    .detail-copy h1 {
        font-size: 40px;
    }

    .section-heading,
    .category-overview-head {
        display: block;
    }

    .section-link,
    .mini-button {
        margin-top: 16px;
    }

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

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

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

    .ranking-row {
        grid-template-columns: 82px 1fr;
    }

    .ranking-cover img {
        width: 82px;
    }

    .ranking-side {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .rank-item {
        grid-template-columns: 42px 48px 1fr;
    }

    .rank-score {
        grid-column: 3;
    }
}

@media (max-width: 640px) {
    .container,
    .header-inner,
    .footer-inner,
    .copyright {
        width: min(100% - 24px, 1240px);
    }

    .brand {
        font-size: 18px;
    }

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

    .hero-search,
    .hero-actions {
        display: grid;
    }

    .hero-search {
        max-width: none;
    }

    .hero-meta,
    .detail-meta,
    .banner-meta {
        gap: 7px;
    }

    .hero-content p,
    .detail-one-line {
        font-size: 16px;
    }

    .content-section {
        padding: 48px 0;
    }

    .page-banner {
        padding: 58px 0 42px;
    }

    .movie-grid,
    .home-grid,
    .all-movie-grid,
    .compact-grid,
    .category-grid,
    .category-preview-strip,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .horizontal-scroll {
        grid-auto-columns: 78%;
    }

    .movie-info h3 {
        font-size: 15px;
    }

    .category-card,
    .category-card img {
        min-height: 180px;
    }

    .detail-hero-inner {
        padding-bottom: 48px;
    }

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

    .story-card {
        padding: 20px;
    }

    .copyright {
        display: grid;
    }
}
