:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(148, 163, 184, 0.18);
    --line-strong: rgba(148, 163, 184, 0.36);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #cbd5e1;
    --cyan: #22d3ee;
    --cyan-deep: #0891b2;
    --amber: #f59e0b;
    --rose: #fb7185;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    --radius: 22px;
}

* {
    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(34, 211, 238, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 54%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(245, 158, 11, 0.16));
}

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

button,
input {
    font: inherit;
}

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

.header-inner {
    width: min(1380px, calc(100% - 32px));
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #02111a;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--amber));
    box-shadow: 0 14px 34px rgba(34, 211, 238, 0.22);
}

.brand-text {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

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

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

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--text);
    background: rgba(34, 211, 238, 0.14);
}

.top-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    width: min(360px, 28vw);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.72);
}

.top-search input,
.inline-filter input,
.search-band input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.top-search input {
    padding: 10px 14px;
}

.top-search button,
.inline-filter button,
.search-band button {
    border: 0;
    color: #02111a;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, var(--cyan), var(--amber));
}

.top-search button {
    align-self: stretch;
    padding: 0 18px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.8);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--text);
}

.mobile-nav {
    display: none;
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto 18px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.94);
}

.mobile-link {
    display: block;
    padding: 12px 14px;
}

.mobile-link.sub {
    color: var(--muted);
    font-size: 14px;
}

.hero {
    position: relative;
    min-height: 680px;
    isolation: isolate;
    overflow: hidden;
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
}

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

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 34%, rgba(2, 6, 23, 0.34) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 54%, rgba(2, 6, 23, 0.75) 100%);
}

.hero-content {
    width: min(1380px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px 330px;
    gap: 40px;
    align-items: center;
    padding: 64px 0 92px;
}

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

.eyebrow {
    margin: 0 0 10px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero h1 {
    max-width: 880px;
    font-size: clamp(46px, 7vw, 86px);
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.36);
}

.hero-summary {
    max-width: 700px;
    margin: 24px 0 0;
    color: var(--muted-2);
    font-size: clamp(17px, 2vw, 22px);
}

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

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: var(--muted-2);
    font-size: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.64);
}

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

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

.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    color: #02111a;
    background: linear-gradient(135deg, var(--cyan), var(--amber));
    box-shadow: 0 18px 44px rgba(34, 211, 238, 0.22);
}

.ghost-button {
    color: var(--text);
    border: 1px solid rgba(248, 250, 252, 0.24);
    background: rgba(15, 23, 42, 0.62);
}

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

.hero-poster {
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(248, 250, 252, 0.14);
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.6);
    box-shadow: var(--shadow);
}

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

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

.hero-panel {
    position: absolute;
    top: 128px;
    right: max(20px, calc((100% - 1380px) / 2));
    width: 300px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 26px;
    background: rgba(2, 6, 23, 0.52);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.panel-title {
    margin: 0 0 14px;
    color: var(--muted-2);
    font-size: 13px;
    font-weight: 900;
}

.compact-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.compact-card:hover {
    transform: translateX(4px);
    background: rgba(34, 211, 238, 0.12);
}

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

.compact-card strong,
.compact-card em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card strong {
    font-size: 14px;
}

.compact-card em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 36px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    color: var(--text);
    font-size: 30px;
    line-height: 1;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.38);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: linear-gradient(135deg, var(--cyan), var(--amber));
}

.search-band,
.section-wrap,
.page-main,
.detail-main,
.category-overview-grid {
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto;
}

.search-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 24px;
    align-items: center;
    margin-top: -42px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.88);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 20;
}

.search-band h2,
.section-head h2,
.story-card h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.16;
}

.search-band p {
    margin: 8px 0 0;
    color: var(--muted);
}

.search-band form,
.inline-filter {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
}

.search-band input,
.inline-filter input {
    min-height: 52px;
    padding: 0 18px;
}

.search-band button,
.inline-filter button {
    align-self: stretch;
    padding: 0 22px;
    white-space: nowrap;
}

.section-wrap {
    padding: 64px 0 0;
}

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

.section-head > a,
.text-link {
    color: var(--cyan);
    font-weight: 900;
}

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

.category-tile {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 12rem),
        rgba(15, 23, 42, 0.72);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -32px;
    bottom: -32px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.42);
}

.category-tile span {
    display: block;
    font-size: 22px;
    font-weight: 900;
}

.category-tile p {
    margin: 14px 0 0;
    color: var(--muted);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.34);
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
}

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: rgba(2, 6, 23, 0.75);
}

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

.movie-card:hover .poster img {
    transform: scale(1.08);
    filter: brightness(0.72);
}

.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #02111a;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--amber));
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

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

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

.movie-card h3 {
    margin: 0;
    overflow: hidden;
    min-height: 46px;
    font-size: 16px;
    line-height: 1.45;
}

.movie-card h3 a:hover,
.rank-body h3 a:hover {
    color: var(--cyan);
}

.movie-line {
    min-height: 44px;
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding: 8px 0 16px;
    scroll-snap-type: x mandatory;
}

.scroll-row .compact-card {
    scroll-snap-align: start;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.72);
}

.glow-section {
    position: relative;
}

.glow-section::before {
    content: "";
    position: absolute;
    inset: 36px -40px auto;
    height: 220px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    filter: blur(42px);
    pointer-events: none;
}

.rank-grid,
.rank-list-page {
    display: grid;
    gap: 14px;
}

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

.rank-list-page {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-bottom: 72px;
}

.rank-item {
    position: relative;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 128px;
    overflow: hidden;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

.rank-poster img {
    width: 82px;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    object-fit: cover;
}

.rank-number {
    position: absolute;
    top: 10px;
    right: 14px;
    color: rgba(248, 250, 252, 0.1);
    font-size: 46px;
    font-weight: 1000;
    line-height: 1;
}

.rank-body p,
.rank-body span {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.rank-body h3 {
    position: relative;
    margin: 7px 0 8px;
    font-size: 16px;
    line-height: 1.35;
}

.page-main {
    padding-bottom: 56px;
}

.page-hero {
    margin: 34px 0 34px;
    padding: clamp(30px, 6vw, 58px);
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 20rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.9));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 64px);
}

.page-hero p:not(.eyebrow) {
    max-width: 780px;
    margin: 16px 0 0;
    color: var(--muted-2);
    font-size: 18px;
}

.category-hero,
.search-hero {
    display: grid;
    gap: 18px;
}

.category-hero .inline-filter,
.search-hero .inline-filter {
    max-width: 760px;
}

.category-list {
    padding-bottom: 64px;
}

.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding-bottom: 70px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
}

.category-cover-stack {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.category-cover-stack img {
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-overview-card p:not(.eyebrow) {
    margin: 0 0 16px;
    color: var(--muted);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    padding: 24px 0 0;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-main {
    padding-bottom: 70px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    margin-top: 24px;
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 22rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.92));
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    border: 1px solid rgba(248, 250, 252, 0.14);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info h1 {
    font-size: clamp(38px, 6vw, 72px);
}

.detail-line {
    max-width: 880px;
    margin: 18px 0 0;
    color: var(--muted-2);
    font-size: 19px;
}

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

.watch-section {
    margin-top: 32px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line-strong);
    border-radius: 30px;
    background: #000;
    box-shadow: var(--shadow);
    cursor: pointer;
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    background:
        radial-gradient(circle at center, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.68)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent 64%);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    padding-left: 6px;
    color: #02111a;
    font-size: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--amber));
    box-shadow: 0 18px 52px rgba(34, 211, 238, 0.3);
}

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

.content-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.story-card {
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
}

.story-card p {
    margin: 16px 0 0;
    color: var(--muted-2);
    font-size: 17px;
}

.related-wrap {
    width: 100%;
}

.small-card .movie-line {
    display: none;
}

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

.site-footer {
    margin-top: 74px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.82);
}

.footer-inner {
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    color: var(--muted);
}

.footer-inner strong {
    color: var(--text);
    font-size: 20px;
}

.footer-inner p {
    margin: 8px 0;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
}

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

.copyright {
    font-size: 13px;
}

[data-search-item].is-hidden {
    display: none;
}

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .hero-panel {
        display: none;
    }

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

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

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

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

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .site-header.is-open .mobile-nav {
        display: block;
    }

    .header-inner {
        min-height: 66px;
    }

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

    .hero {
        min-height: 760px;
    }

    .hero-content {
        min-height: 760px;
        grid-template-columns: 1fr;
        gap: 28px;
        align-content: center;
        padding-top: 48px;
    }

    .hero-poster {
        width: min(260px, 70vw);
        margin: 0 auto;
    }

    .search-band {
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .search-band form,
    .inline-filter {
        border-radius: 22px;
        flex-direction: column;
        align-items: stretch;
    }

    .search-band button,
    .inline-filter button {
        min-height: 48px;
    }

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

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

    .category-overview-card,
    .detail-hero,
    .content-section {
        grid-template-columns: 1fr;
    }

    .category-cover-stack {
        max-width: 300px;
    }

    .detail-poster {
        width: min(300px, 78vw);
        margin: 0 auto;
    }
}

@media (max-width: 540px) {
    .search-band,
    .section-wrap,
    .page-main,
    .detail-main,
    .category-overview-grid,
    .header-inner,
    .mobile-nav,
    .footer-inner {
        width: min(100% - 22px, 1380px);
    }

    .hero-content {
        width: min(100% - 22px, 1380px);
    }

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

    .category-grid,
    .movie-grid,
    .rank-grid,
    .rank-list-page {
        grid-template-columns: 1fr;
    }

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

    .poster {
        height: 100%;
    }

    .movie-card h3 {
        min-height: 0;
    }

    .movie-line {
        min-height: 0;
    }

    .player-shell {
        border-radius: 20px;
    }
}
