:root {
    --amber-50: #fff8ec;
    --amber-100: #ffedd5;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow-soft: 0 18px 55px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 35px rgba(15, 23, 42, 0.10);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--slate-800);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 30rem),
        linear-gradient(180deg, #fffaf3 0%, #ffffff 42%, #fff8ec 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
    width: 100%;
    height: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(255, 248, 236, 0.96), rgba(255, 237, 213, 0.96), rgba(255, 248, 236, 0.96));
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 72px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--slate-800);
}

.brand-mark,
.footer-logo span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.32);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong {
    font-size: 1.28rem;
    letter-spacing: 0.02em;
    color: transparent;
    background: linear-gradient(90deg, #d97706, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-text small {
    margin-top: 5px;
    color: var(--slate-500);
    font-size: 0.75rem;
}

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

.nav-link,
.mobile-link {
    color: var(--slate-700);
    font-weight: 700;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #92400e;
    background: rgba(245, 158, 11, 0.13);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    padding: 9px 14px;
    border-radius: 12px;
    color: #92400e;
    background: rgba(245, 158, 11, 0.12);
    font-weight: 800;
}

.mobile-nav {
    display: none;
    padding: 8px 22px 18px;
    border-top: 1px solid rgba(245, 158, 11, 0.18);
    background: var(--white);
}

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

.mobile-link {
    padding: 13px 14px;
}

main {
    min-height: 70vh;
}

.hero {
    position: relative;
    max-width: 1280px;
    margin: 28px auto 0;
    padding: 0 22px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    background: var(--slate-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 42px;
    align-items: center;
    padding: 64px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.28;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(7px) saturate(1.25);
    transform: scale(1.08);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.84) 48%, rgba(245, 158, 11, 0.18) 100%),
        radial-gradient(circle at 75% 30%, rgba(249, 115, 22, 0.45), transparent 26rem);
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    color: #92400e;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 0.85rem;
    font-weight: 800;
}

.hero .eyebrow {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(252, 211, 77, 0.32);
}

.hero-content h1 {
    max-width: 780px;
    margin-top: 24px;
    color: var(--white);
    font-size: clamp(2.3rem, 6vw, 5.6rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 720px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    line-height: 1.9;
}

.hero-tags,
.tag-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-tags span {
    color: #fffbeb;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.36);
}

.ghost-btn {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-poster {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    max-height: 450px;
    border-radius: 32px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

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

.hero-poster:hover img {
    transform: scale(1.08);
}

.poster-play,
.play-orb,
.big-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
    box-shadow: 0 18px 38px rgba(245, 158, 11, 0.36);
}

.poster-play {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: 62px;
    height: 62px;
}

.poster-play::before,
.play-orb::before,
.big-play::before {
    content: "";
    display: block;
    margin-left: 4px;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid var(--white);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    left: 64px;
    bottom: 32px;
    z-index: 5;
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--amber-300);
}

.hero-search {
    position: relative;
    z-index: 6;
    max-width: 820px;
    margin: -36px auto 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 50px;
    border-radius: 999px;
    color: var(--slate-800);
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    padding: 0 18px;
    outline: none;
}

.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.hero-search button {
    min-width: 118px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    font-weight: 900;
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 74px 22px 0;
}

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

.section-head h2 {
    margin-top: 14px;
    color: var(--slate-900);
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-head p {
    max-width: 720px;
    margin-top: 10px;
    color: var(--slate-500);
    line-height: 1.8;
}

.section-head > a,
.panel-head a {
    flex: none;
    color: #b45309;
    font-weight: 900;
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #ffedd5, #fef3c7);
}

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

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

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.64), transparent 58%);
}

.card-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    border-radius: 999px;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 900;
}

.card-badge {
    left: 12px;
    padding: 5px 10px;
    background: var(--amber-500);
}

.rank-badge {
    right: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #b45309);
}

.play-orb {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.play-orb::before {
    border-top-width: 10px;
    border-bottom-width: 10px;
    border-left-width: 15px;
}

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

.card-body {
    padding: 18px;
}

.card-body h2 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.1em;
    color: var(--slate-900);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.2em;
    margin-top: 8px;
    color: var(--slate-500);
    font-size: 0.92rem;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    color: var(--slate-500);
    font-size: 0.82rem;
}

.card-meta span:last-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tag-row {
    margin-top: 14px;
}

.tag-row span {
    color: #92400e;
    background: rgba(245, 158, 11, 0.12);
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border-radius: var(--radius-md);
    color: var(--white);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    box-shadow: var(--shadow-card);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.18));
}

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

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 2;
}

.category-tile span {
    font-size: 1.1rem;
    font-weight: 900;
}

.category-tile p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    line-height: 1.6;
}

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

.ranking-panel {
    position: sticky;
    top: 96px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
    padding: 20px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    color: var(--slate-900);
    font-weight: 900;
}

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

.strip-card a {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--white);
    transition: background 0.2s ease, transform 0.2s ease;
}

.strip-card a:hover {
    background: rgba(245, 158, 11, 0.09);
    transform: translateX(3px);
}

.strip-card img {
    width: 112px;
    height: 74px;
    border-radius: 12px;
    object-fit: cover;
}

.strip-card h2 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--slate-900);
    font-weight: 900;
}

.strip-card p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 4px;
    color: var(--slate-500);
    font-size: 0.84rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.strip-card span {
    display: inline-block;
    margin-top: 7px;
    color: #b45309;
    font-size: 0.8rem;
    font-weight: 800;
}

.strip-index {
    margin: 0 0 4px;
}

.page-hero,
.detail-hero {
    max-width: 1280px;
    margin: 28px auto 0;
    padding: 64px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at right top, rgba(245, 158, 11, 0.26), transparent 28rem),
        linear-gradient(135deg, #fff7ed, #ffffff 52%, #fffbeb);
    box-shadow: var(--shadow-soft);
}

.page-hero h1 {
    max-width: 900px;
    margin-top: 18px;
    color: var(--slate-900);
    font-size: clamp(2rem, 4.7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 850px;
    margin-top: 18px;
    color: var(--slate-500);
    font-size: 1.05rem;
    line-height: 1.9;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--slate-500);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #b45309;
    font-weight: 800;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
    margin-top: 28px;
    max-width: 760px;
}

.filter-bar--wide {
    grid-template-columns: minmax(0, 1fr) 170px 170px;
    max-width: 980px;
}

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

.category-card-large a {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card-large a:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.category-collage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    height: 170px;
    overflow: hidden;
    background: var(--amber-100);
}

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

.category-large-body {
    padding: 22px;
}

.category-large-body span {
    color: #b45309;
    font-size: 0.82rem;
    font-weight: 900;
}

.category-large-body h2 {
    margin-top: 8px;
    color: var(--slate-900);
    font-size: 1.35rem;
    font-weight: 900;
}

.category-large-body p {
    margin-top: 10px;
    color: var(--slate-500);
    line-height: 1.7;
}

.narrow-section {
    max-width: 960px;
}

.ranking-list .strip-card a {
    grid-template-columns: 150px minmax(0, 1fr);
    box-shadow: var(--shadow-card);
}

.ranking-list .strip-card img {
    width: 150px;
    height: 94px;
}

.detail-hero {
    background:
        radial-gradient(circle at right top, rgba(249, 115, 22, 0.24), transparent 28rem),
        linear-gradient(135deg, #111827, #1e293b 56%, #7c2d12);
}

.detail-hero .breadcrumb,
.detail-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.78);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 36px;
    align-items: center;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--white);
    background: rgba(2, 6, 23, 0.46);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
}

.player-cover strong,
.big-play {
    position: relative;
    z-index: 2;
}

.player-cover strong {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.big-play {
    width: 82px;
    height: 82px;
}

.detail-info h1 {
    margin-top: 20px;
    color: var(--white);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-lede {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
    line-height: 1.9;
}

.detail-meta {
    margin-top: 22px;
}

.detail-meta span {
    color: #fffbeb;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
    font-size: 0.86rem;
}

.detail-tags {
    margin-top: 18px;
}

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

.article-card {
    padding: 30px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.article-card h2 {
    color: var(--slate-900);
    font-size: 1.45rem;
    font-weight: 900;
}

.article-card p {
    margin-top: 16px;
    color: var(--slate-700);
    line-height: 2;
}

.site-footer {
    margin-top: 90px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e293b 58%, #111827);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 52px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 900;
}

.footer-brand p {
    max-width: 460px;
    margin-top: 18px;
    color: #94a3b8;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-links h2 {
    margin-bottom: 8px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 900;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--amber-300);
}

.footer-bottom {
    padding: 18px 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    text-align: center;
    color: #94a3b8;
    font-size: 0.92rem;
}

[hidden] {
    display: none !important;
}

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

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

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

    .ranking-panel {
        position: static;
    }
}

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

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

    .header-inner {
        height: 66px;
    }

    .hero,
    .content-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-slider {
        min-height: 720px;
        border-radius: 24px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 34px 24px 78px;
    }

    .hero-poster {
        max-height: 290px;
        width: min(72vw, 260px);
        margin: 0 auto;
        transform: rotate(0deg);
    }

    .hero-dots {
        left: 24px;
        bottom: 24px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-search {
        grid-template-columns: 1fr;
        border-radius: 24px;
        margin-top: 16px;
    }

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

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .category-large-grid,
    .detail-content {
        grid-template-columns: 1fr 1fr;
    }

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

    .page-hero,
    .detail-hero {
        margin: 18px 16px 0;
        padding: 34px 22px;
        border-radius: 24px;
    }

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

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

@media (max-width: 560px) {
    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-text strong {
        font-size: 1.05rem;
    }

    .brand-text small {
        display: none;
    }

    .hero-slider {
        min-height: 760px;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .category-grid,
    .category-large-grid,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .strip-card a,
    .ranking-list .strip-card a {
        grid-template-columns: 98px minmax(0, 1fr);
    }

    .strip-card img,
    .ranking-list .strip-card img {
        width: 98px;
        height: 68px;
    }

    .detail-info h1 {
        font-size: 2.15rem;
    }
}
