:root {
    --color-red-50: #fff1f2;
    --color-red-100: #ffe4e6;
    --color-red-500: #ef4444;
    --color-red-600: #dc2626;
    --color-red-700: #b91c1c;
    --color-rose-600: #e11d48;
    --color-rose-700: #be123c;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-500: #6b7280;
    --color-gray-700: #374151;
    --color-gray-900: #111827;
    --shadow-soft: 0 18px 55px rgba(17, 24, 39, 0.14);
    --shadow-card: 0 12px 30px rgba(17, 24, 39, 0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-gray-900);
    background: linear-gradient(180deg, #fff7f7 0%, #ffffff 36%, #f9fafb 100%);
    min-height: 100vh;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #fee2e2, #fff7ed);
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, var(--color-red-600), var(--color-red-700), var(--color-rose-600));
    box-shadow: 0 12px 30px rgba(185, 28, 28, 0.28);
}

.nav-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    font-weight: 900;
    font-size: 22px;
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    font-size: 19px;
    letter-spacing: 0.02em;
}

.brand-text em {
    font-size: 12px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.78);
}

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

.nav-link,
.nav-dropdown > button {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown:hover > button {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 190px;
    padding: 12px;
    display: grid;
    gap: 6px;
    background: #ffffff;
    color: var(--color-gray-900);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease;
}

.dropdown-panel a {
    padding: 9px 12px;
    border-radius: 12px;
    color: var(--color-gray-700);
}

.dropdown-panel a:hover {
    color: var(--color-red-600);
    background: var(--color-red-50);
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

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

.mobile-nav {
    display: none;
    padding: 0 20px 16px;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-nav a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 14px;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 78px 24px 110px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(22px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.45;
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.20), transparent 30%),
        linear-gradient(120deg, rgba(127, 29, 29, 0.95), rgba(190, 18, 60, 0.80), rgba(17, 24, 39, 0.88));
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff7ed;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 22px 0 18px;
    color: #ffffff;
    font-size: clamp(40px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    max-width: 840px;
}

.hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(18px, 2.2vw, 25px);
    line-height: 1.7;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.card-body .tag,
.content-card .tag,
.movie-card-list .tag {
    background: var(--color-red-50);
    color: var(--color-red-700);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #ffffff;
    color: var(--color-red-600);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

.btn-ghost.dark {
    color: var(--color-red-700);
    border-color: rgba(220, 38, 38, 0.3);
    background: #ffffff;
}

.btn-light {
    color: var(--color-red-600);
    background: #ffffff;
}

.btn-outline-light {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
}

.hero-poster {
    height: 500px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

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

.hero-controls button {
    width: 38px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-controls button.is-active {
    background: #ffffff;
}

.search-band,
.section-wrap,
.detail-layout,
.page-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 58px 24px;
}

.search-band {
    margin-top: -44px;
    position: relative;
    z-index: 5;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) minmax(150px, 190px) auto;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(229, 231, 235, 0.86);
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--color-gray-200);
    border-radius: 999px;
    background: #ffffff;
    padding: 0 16px;
    outline: none;
    color: var(--color-gray-900);
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--color-red-500);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.sticky-filter {
    position: sticky;
    top: 84px;
    z-index: 20;
    margin-bottom: 28px;
}

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

.section-head.compact {
    display: block;
    margin-bottom: 18px;
}

.section-head .section-kicker,
.page-hero .section-kicker {
    background: var(--color-red-50);
    color: var(--color-red-700);
}

.section-head h2,
.page-hero h1 {
    margin: 8px 0 0;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
    margin: 10px 0 0;
    color: var(--color-gray-500);
    line-height: 1.7;
}

.section-head a,
.text-link {
    color: var(--color-red-600);
    font-weight: 800;
}

.soft-bg {
    max-width: none;
    background: linear-gradient(135deg, #fff7f7, #fff1f2);
}

.soft-bg > .section-head,
.soft-bg > .list-grid {
    max-width: 1232px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.movie-card {
    display: block;
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(229, 231, 235, 0.72);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px rgba(17, 24, 39, 0.18);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fee2e2, #fff7ed);
}

.poster-wrap img,
.feature-card img,
.category-card img,
.category-cover img,
.compact-poster-wrap img {
    transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img,
.feature-card:hover img,
.category-card:hover img,
.category-overview-card:hover .category-cover img {
    transform: scale(1.08);
}

.play-mark {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red-600), var(--color-rose-600));
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.35);
}

.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, #facc15, #ef4444);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.28);
}

.card-body {
    display: grid;
    gap: 9px;
    padding: 16px;
}

.card-body strong,
.list-info strong,
.compact-info strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-size: 17px;
}

.card-meta,
.card-footer,
.compact-info em,
.compact-info small {
    color: var(--color-gray-500);
    font-size: 13px;
    font-style: normal;
}

.card-desc {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    color: var(--color-gray-700);
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 12%, rgba(17, 24, 39, 0.32) 42%, rgba(17, 24, 39, 0.94) 100%);
}

.feature-content {
    position: absolute;
    inset: auto 0 0 0;
    display: grid;
    gap: 12px;
    padding: 26px;
    color: #ffffff;
}

.feature-content strong {
    font-size: 25px;
    line-height: 1.2;
}

.feature-content em {
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
    line-height: 1.6;
}

.pill,
.feature-action {
    width: max-content;
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 13px;
    font-weight: 800;
}

.feature-action {
    background: #ffffff;
    color: var(--color-red-600);
}

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

.movie-card-list {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
    padding: 12px;
}

.movie-card-list .poster-wrap {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
}

.list-info {
    display: grid;
    align-content: center;
    gap: 8px;
    min-width: 0;
}

.list-info > span:not(.card-meta):not(.card-footer) {
    display: -webkit-box;
    overflow: hidden;
    color: var(--color-gray-700);
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-card {
    position: relative;
    min-height: 170px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: #111827;
}

.category-card span {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.84));
}

.category-card strong,
.category-card em {
    position: absolute;
    left: 18px;
    right: 18px;
    color: #ffffff;
}

.category-card strong {
    bottom: 42px;
    font-size: 21px;
}

.category-card em {
    bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
}

.page-hero {
    display: grid;
    align-items: center;
    min-height: 310px;
    margin-top: 24px;
    border-radius: 34px;
    color: var(--color-gray-900);
    background:
        radial-gradient(circle at 12% 20%, rgba(239, 68, 68, 0.18), transparent 26%),
        linear-gradient(135deg, #fff7f7, #ffffff);
    box-shadow: var(--shadow-card);
}

.page-hero.small {
    min-height: 250px;
}

.page-hero.category-page {
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 34px;
}

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

.movie-card-compact {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 8px;
    box-shadow: none;
    border: 1px solid var(--color-gray-200);
}

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

.compact-info {
    display: grid;
    gap: 5px;
    min-width: 0;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    padding: 18px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(229, 231, 235, 0.72);
}

.category-cover {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    border-radius: 22px;
}

.category-cover span {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(220, 38, 38, 0.86);
    font-weight: 800;
}

.category-overview-body h2 {
    margin: 4px 0 10px;
    font-size: 28px;
}

.category-overview-body p {
    margin: 0 0 16px;
    color: var(--color-gray-600, #4b5563);
    line-height: 1.7;
}

.compact-list {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    background: #111827;
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(127, 29, 29, 0.96), rgba(190, 18, 60, 0.82), rgba(17, 24, 39, 0.92));
}

.detail-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 24px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.detail-info {
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.detail-info h1 {
    margin: 18px 0;
    font-size: clamp(36px, 5.5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-info p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
    line-height: 1.75;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 24px;
    align-content: start;
}

.player-card,
.content-card,
.side-card {
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(229, 231, 235, 0.72);
    overflow: hidden;
}

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

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #050505;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle, rgba(239, 68, 68, 0.35), transparent 32%),
        rgba(0, 0, 0, 0.36);
    cursor: pointer;
    text-align: center;
}

.player-start span {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-red-600), var(--color-rose-600));
    box-shadow: 0 20px 42px rgba(220, 38, 38, 0.38);
    font-size: 30px;
}

.player-start strong {
    font-size: 22px;
}

.player-start em {
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
}

.player-start.is-hidden {
    display: none;
}

.player-note {
    margin: 0;
    padding: 14px 18px;
    color: var(--color-gray-500);
    background: var(--color-gray-50);
}

.content-card,
.side-card {
    padding: 26px;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.content-card p {
    margin: 0;
    color: var(--color-gray-700);
    line-height: 1.9;
    font-size: 17px;
}

.info-table {
    display: grid;
    gap: 0;
    margin: 0;
    border: 1px solid var(--color-gray-200);
    border-radius: 18px;
    overflow: hidden;
}

.info-table div {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
}

.info-table dt,
.info-table dd {
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-gray-200);
}

.info-table div:last-child dt,
.info-table div:last-child dd {
    border-bottom: 0;
}

.info-table dt {
    background: var(--color-red-50);
    color: var(--color-red-700);
    font-weight: 800;
}

.info-table dd {
    color: var(--color-gray-700);
}

.gradient-card {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red-600), var(--color-rose-600));
}

.gradient-card p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.gradient-card .btn {
    margin: 6px 6px 0 0;
}

.empty-result {
    margin: 24px 0 0;
    padding: 20px;
    border-radius: 18px;
    background: #ffffff;
    color: var(--color-gray-500);
    text-align: center;
    box-shadow: var(--shadow-card);
}

.site-footer {
    margin-top: 42px;
    background: #111827;
    color: #d1d5db;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 30px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
    gap: 42px;
}

.footer-brand {
    display: inline-flex;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.site-footer p {
    color: #9ca3af;
    line-height: 1.7;
}

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

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.copyright {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 34px;
    font-size: 14px;
}

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

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

    .hero-slide,
    .page-hero.category-page,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

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

    .menu-toggle {
        display: block;
    }

    .mobile-nav.is-open {
        display: flex;
    }

    .hero {
        min-height: 620px;
    }

    .hero-slide {
        padding: 58px 20px 92px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .list-grid,
    .footer-inner,
    .category-overview-card,
    .detail-inner {
        grid-template-columns: 1fr;
    }

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

    .sticky-filter {
        position: static;
    }
}

@media (max-width: 640px) {
    .nav-shell {
        padding: 12px 16px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .search-band,
    .section-wrap,
    .detail-layout,
    .page-hero {
        padding: 40px 16px;
    }

    .page-hero {
        margin: 16px;
    }

    .all-grid,
    .movie-grid,
    .category-grid,
    .hero-mini-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-card-list {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .movie-card-list .poster-wrap {
        aspect-ratio: 3 / 4;
    }

    .card-body {
        padding: 12px;
    }

    .card-desc,
    .tag-row {
        display: none;
    }

    .detail-inner {
        padding: 42px 16px;
    }

    .detail-info h1 {
        font-size: 38px;
    }

    .detail-info p {
        font-size: 17px;
    }

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

@media (max-width: 420px) {
    .all-grid,
    .movie-grid,
    .category-grid,
    .hero-mini-list {
        grid-template-columns: 1fr;
    }

    .movie-card-compact {
        grid-template-columns: 82px minmax(0, 1fr);
    }
}
