:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(30, 41, 59, 0.92);
    --line: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --dim: #94a3b8;
    --orange: #f97316;
    --orange-light: #fb923c;
    --amber: #f59e0b;
    --teal: #14b8a6;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 30rem),
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 14px 34px rgba(249, 115, 22, 0.34);
}

.brand-name {
    font-size: 1.24rem;
    background: linear-gradient(90deg, #fdba74, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    padding: 9px 13px;
    color: #cbd5e1;
    border-radius: 12px;
    font-size: 0.94rem;
    transition: 180ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(249, 115, 22, 0.9);
}

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

.site-search {
    position: relative;
    min-width: 250px;
}

.site-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: white;
    background: rgba(30, 41, 59, 0.82);
    outline: none;
    border-radius: 14px;
    padding: 11px 14px;
    transition: 180ms ease;
}

.site-search input {
    padding-left: 38px;
}

.site-search span {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.site-search input:focus,
.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(249, 115, 22, 0.8);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.mobile-toggle {
    display: none;
    border: 0;
    color: white;
    background: rgba(51, 65, 85, 0.72);
    border-radius: 12px;
    padding: 9px 11px;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 22px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

.mobile-panel .nav-link {
    display: block;
    margin-top: 8px;
}

.container,
.page-main,
.detail-main {
    width: min(1280px, calc(100% - 44px));
    margin: 0 auto;
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 680ms ease, visibility 680ms ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: saturate(1.08);
}

.hero-slide.active .hero-bg {
    animation: slowZoom 8s linear forwards;
}

@keyframes slowZoom {
    from { transform: scale(1.04); }
    to { transform: scale(1.12); }
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.22) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 42%, rgba(2, 6, 23, 0.62) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
    gap: 44px;
    align-items: center;
    padding-top: 34px;
    padding-bottom: 48px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: 999px;
    padding: 8px 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1,
.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(2.5rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.07em;
    font-weight: 900;
}

.hero-title-gradient {
    background: linear-gradient(90deg, #fff7ed, #fdba74, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-summary {
    max-width: 690px;
    color: #cbd5e1;
    font-size: clamp(1rem, 2vw, 1.18rem);
    margin-bottom: 24px;
}

.hero-meta,
.card-meta,
.detail-meta,
.breadcrumb,
.tiny-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.meta-pill,
.tag-pill,
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.82rem;
    line-height: 1;
    white-space: nowrap;
}

.meta-pill {
    padding: 8px 12px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.tag-pill {
    padding: 8px 11px;
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.7);
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 15px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: 180ms ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 14px 36px rgba(249, 115, 22, 0.32);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(249, 115, 22, 0.42);
}

.btn-ghost {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.54);
    border-color: rgba(148, 163, 184, 0.22);
}

.btn-ghost:hover {
    color: white;
    border-color: rgba(251, 146, 60, 0.5);
    background: rgba(51, 65, 85, 0.86);
}

.hero-card {
    align-self: end;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    backdrop-filter: blur(22px);
    overflow: hidden;
}

.hero-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.hero-card-body {
    padding: 22px;
}

.hero-card-body h3 {
    margin: 0 0 8px;
    font-size: 1.28rem;
}

.hero-card-body p {
    margin: 0 0 16px;
    color: #cbd5e1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.45);
    transition: 180ms ease;
}

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

.hero-arrows {
    position: absolute;
    z-index: 4;
    right: max(22px, calc((100% - 1280px) / 2));
    bottom: 72px;
    display: flex;
    gap: 10px;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 15px;
    color: white;
    background: rgba(15, 23, 42, 0.62);
    transition: 180ms ease;
}

.hero-arrow:hover {
    border-color: rgba(251, 146, 60, 0.55);
    background: rgba(249, 115, 22, 0.92);
}

.hero-search {
    margin-top: 26px;
    max-width: 560px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.section {
    padding: 66px 0 0;
}

.section-panel {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.66), rgba(15, 23, 42, 0.72));
    box-shadow: var(--shadow);
}

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

.section-kicker {
    color: var(--orange-light);
    margin: 0 0 6px;
    font-weight: 800;
}

.section-title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    letter-spacing: -0.04em;
    line-height: 1.16;
}

.section-desc {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--muted);
}

.more-link {
    color: #fdba74;
    font-weight: 800;
    white-space: nowrap;
}

.more-link:hover {
    color: #fed7aa;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.34);
    background: rgba(51, 65, 85, 0.72);
    box-shadow: 0 22px 52px rgba(249, 115, 22, 0.12);
}

.card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.card-cover img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 300ms ease;
}

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

.cover-glow {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: white;
    background: rgba(0, 0, 0, 0.34);
    opacity: 0;
    transition: opacity 200ms ease;
}

.movie-card:hover .cover-glow {
    opacity: 1;
}

.play-circle {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 12px 34px rgba(249, 115, 22, 0.38);
}

.badge {
    position: absolute;
    z-index: 2;
    padding: 7px 9px;
    font-weight: 800;
}

.badge-region {
    top: 12px;
    left: 12px;
    color: white;
    background: rgba(249, 115, 22, 0.92);
}

.badge-year {
    right: 12px;
    bottom: 12px;
    color: white;
    background: rgba(2, 6, 23, 0.82);
}

.card-body {
    padding: 16px;
}

.card-title {
    margin: 0 0 8px;
    min-height: 3.05em;
    font-size: 1.02rem;
    line-height: 1.5;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-summary {
    margin: 0 0 14px;
    min-height: 3.2em;
    color: var(--dim);
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    color: var(--dim);
    font-size: 0.82rem;
    justify-content: space-between;
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.card-tags span {
    max-width: 100%;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.54);
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 0.76rem;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(30, 41, 59, 0.54);
    transition: 180ms ease;
}

.horizontal-card:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, 0.34);
    background: rgba(51, 65, 85, 0.72);
}

.horizontal-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.horizontal-body {
    padding: 16px;
}

.horizontal-body h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.horizontal-body p {
    margin: 0 0 12px;
    color: var(--dim);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-card {
    min-height: 210px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(15, 23, 42, 0.72)),
        rgba(30, 41, 59, 0.62);
    transition: 180ms ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.42);
    box-shadow: 0 22px 52px rgba(249, 115, 22, 0.13);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 1.28rem;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.rank-list {
    counter-reset: rank;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.rank-card {
    display: grid;
    grid-template-columns: 58px 124px 1fr;
    gap: 15px;
    align-items: center;
    padding: 13px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: 180ms ease;
}

.rank-card:hover {
    transform: translateX(4px);
    border-color: rgba(249, 115, 22, 0.35);
    background: rgba(51, 65, 85, 0.72);
}

.rank-num {
    color: #fed7aa;
    font-size: 1.55rem;
    font-weight: 900;
    text-align: center;
}

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

.rank-body h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.rank-body p {
    margin: 0;
    color: var(--dim);
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-hero {
    margin: 32px 0 30px;
    padding: clamp(30px, 6vw, 56px);
    border-radius: 30px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background:
        radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.22), transparent 34rem),
        linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.86));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.filter-panel {
    margin: 0 0 24px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 14px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.58);
}

.empty-state {
    display: none;
    padding: 34px;
    border-radius: 20px;
    text-align: center;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.breadcrumb {
    margin: 28px 0 18px;
    color: var(--dim);
    font-size: 0.94rem;
}

.breadcrumb a {
    color: #fdba74;
}

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

.detail-primary,
.detail-side {
    display: grid;
    gap: 22px;
}

.player-shell,
.detail-card {
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.player-box {
    position: relative;
    background: #000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: white;
    text-align: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
    transition: opacity 180ms ease, visibility 180ms ease;
}

.player-box.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.overlay-play {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 18px 54px rgba(249, 115, 22, 0.42);
    font-size: 2rem;
}

.overlay-title {
    width: min(88%, 680px);
    font-size: clamp(1.1rem, 3vw, 1.7rem);
    font-weight: 900;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.48);
}

.detail-card {
    padding: 26px;
}

.detail-card h1 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.detail-meta {
    margin-bottom: 18px;
    color: var(--dim);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0 22px;
}

.detail-section {
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.detail-section + .detail-section {
    margin-top: 22px;
}

.detail-section h2 {
    margin: 0 0 10px;
    font-size: 1.24rem;
}

.detail-section p {
    margin: 0;
    color: var(--muted);
    text-align: justify;
}

.side-cover {
    overflow: hidden;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.side-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.side-cover-body {
    padding: 18px;
}

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

.related-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: 180ms ease;
}

.related-card:hover {
    border-color: rgba(249, 115, 22, 0.32);
    background: rgba(51, 65, 85, 0.72);
}

.related-card img {
    width: 96px;
    height: 66px;
    object-fit: cover;
    border-radius: 12px;
}

.related-card h3 {
    margin: 0 0 4px;
    font-size: 0.94rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card p {
    margin: 0;
    color: var(--dim);
    font-size: 0.78rem;
}

.site-footer {
    margin-top: 78px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), #020617);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-title {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 900;
}

.footer-text,
.footer-links a,
.footer-bottom {
    color: var(--dim);
    font-size: 0.92rem;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a:hover {
    color: #fdba74;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

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

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

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

    .hero-card {
        display: none;
    }

    .detail-side {
        grid-template-columns: minmax(260px, 360px) 1fr;
    }
}

@media (max-width: 860px) {
    .nav-links,
    .header-actions {
        display: none;
    }

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

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

    .hero-search,
    .filter-panel,
    .horizontal-list,
    .rank-list,
    .footer-grid,
    .detail-side {
        grid-template-columns: 1fr;
    }

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

    .horizontal-card {
        grid-template-columns: 130px 1fr;
    }

    .hero-arrows {
        display: none;
    }
}

@media (max-width: 560px) {
    .container,
    .page-main,
    .detail-main {
        width: min(100% - 28px, 1280px);
    }

    .header-inner {
        padding: 0 14px;
    }

    .mobile-panel {
        padding-left: 14px;
        padding-right: 14px;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        min-height: 620px;
        padding-top: 26px;
        padding-bottom: 70px;
    }

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

    .section-panel,
    .detail-card,
    .page-hero {
        padding: 22px;
    }

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

    .horizontal-card,
    .rank-card {
        grid-template-columns: 112px 1fr;
    }

    .rank-num {
        display: none;
    }
}
