:root {
    color-scheme: light;
    --sand-50: #faf8f3;
    --sand-100: #f5f0e5;
    --sand-200: #e8ddc9;
    --stone-50: #f7f6f4;
    --stone-100: #eeebe6;
    --stone-200: #ddd8cf;
    --stone-500: #8d7a69;
    --stone-700: #60544b;
    --stone-800: #4f453e;
    --stone-900: #241f1c;
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --desert-500: #d4844b;
    --desert-600: #c66a3f;
    --shadow-soft: 0 16px 40px rgba(79, 69, 62, 0.12);
    --shadow-card: 0 12px 30px rgba(79, 69, 62, 0.1);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: var(--sand-50);
    color: var(--stone-800);
    line-height: 1.65;
}

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

img {
    display: block;
    width: 100%;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 248, 243, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(232, 221, 201, 0.8);
}

.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    min-height: 76px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rose-500), var(--purple-600));
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(244, 63, 94, 0.24);
}

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

.brand-text strong {
    font-size: 23px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--rose-600), var(--purple-600));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-text em {
    margin-top: 5px;
    color: var(--stone-500);
    font-size: 12px;
    font-style: normal;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    position: relative;
    padding: 8px 0;
    color: var(--stone-700);
    font-size: 15px;
    font-weight: 700;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--desert-500);
    transition: right 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--desert-600);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    right: 0;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--stone-100);
    color: var(--stone-800);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 10px 24px 20px;
    border-top: 1px solid var(--sand-200);
}

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

.mobile-nav-link {
    padding: 12px 16px;
    border-radius: 14px;
    color: var(--stone-700);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.55);
}

.mobile-nav-link.is-active {
    color: var(--desert-600);
    background: var(--sand-100);
}

.hero {
    position: relative;
    min-height: 670px;
    overflow: hidden;
    background: var(--stone-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 30%, rgba(244, 63, 94, 0.38), transparent 32%),
        radial-gradient(circle at 72% 24%, rgba(168, 85, 247, 0.38), transparent 34%),
        linear-gradient(90deg, rgba(20, 16, 18, 0.9), rgba(20, 16, 18, 0.62), rgba(20, 16, 18, 0.76));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max);
    min-height: 670px;
    margin: 0 auto;
    padding: 92px 24px 78px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    align-items: center;
    gap: 54px;
}

.hero-copy {
    color: #fff;
}

.hero-kicker,
.sub-hero span,
.section-heading span,
.toolbar span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffe4e6;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 740px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

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

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

.hero-tags span,
.card-tags span,
.detail-tags span,
.genre-panel span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

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

.hero-actions,
.sub-actions,
.center-action {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

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

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--rose-500), var(--purple-600));
    box-shadow: 0 16px 34px rgba(244, 63, 94, 0.28);
}

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn-ghost.light {
    color: var(--stone-800);
    border-color: var(--sand-200);
    background: rgba(255, 255, 255, 0.78);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.38);
    aspect-ratio: 3 / 4;
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--rose-600);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    font-size: 24px;
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #fff;
}

.search-band {
    margin-top: -38px;
    position: relative;
    z-index: 4;
    padding: 0 24px;
}

.search-band-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 24px;
    align-items: center;
}

.search-band span {
    color: var(--rose-600);
    font-weight: 900;
    font-size: 13px;
}

.search-band h2 {
    margin: 4px 0 0;
    font-size: 26px;
    line-height: 1.2;
}

.quick-search {
    display: flex;
    gap: 12px;
}

.quick-search input,
.toolbar-controls input,
.toolbar-controls select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--sand-200);
    border-radius: 999px;
    background: #fff;
    color: var(--stone-800);
    outline: none;
    padding: 0 18px;
    box-shadow: 0 8px 20px rgba(79, 69, 62, 0.05);
}

.quick-search input:focus,
.toolbar-controls input:focus,
.toolbar-controls select:focus {
    border-color: rgba(244, 63, 94, 0.5);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.quick-search button {
    min-width: 98px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose-500), var(--purple-600));
    font-weight: 900;
    cursor: pointer;
}

.page-section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 76px 24px;
}

.muted-section {
    max-width: none;
    background: linear-gradient(180deg, var(--stone-50), var(--sand-100));
}

.muted-section > .section-heading,
.muted-section > .movie-grid,
.muted-section > .toolbar,
.muted-section > .ranking-list {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading span,
.toolbar span {
    color: var(--rose-600);
    background: linear-gradient(135deg, var(--rose-100), var(--purple-100));
}

.section-heading h2,
.toolbar h2 {
    margin: 12px 0 0;
    color: var(--stone-800);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 740px;
    margin: 12px 0 0;
    color: var(--stone-500);
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 320px);
    gap: 22px;
    overflow-x: auto;
    padding: 6px 4px 22px;
    scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
    scroll-snap-align: start;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 46px rgba(79, 69, 62, 0.16);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--stone-200);
}

.card-cover img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.55));
    opacity: 0.88;
}

.card-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--rose-600);
    background: rgba(255, 255, 255, 0.92);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-type {
    position: absolute;
    z-index: 2;
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose-500), var(--purple-600));
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 18px;
}

.card-tags span {
    color: var(--rose-600);
    background: var(--rose-50);
}

.card-body h2 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.28;
}

.card-body h2 a:hover {
    color: var(--rose-600);
}

.card-body p {
    min-height: 50px;
    margin: 0;
    color: var(--stone-500);
    font-size: 14px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    color: var(--stone-500);
    font-size: 12px;
}

.card-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.category-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.category-card-main {
    display: block;
    min-height: 220px;
    padding: 28px;
    background:
        radial-gradient(circle at 90% 0%, rgba(168, 85, 247, 0.18), transparent 38%),
        linear-gradient(135deg, #fff, var(--rose-50));
}

.category-card-main span {
    color: var(--rose-600);
    font-size: 13px;
    font-weight: 900;
}

.category-card-main h2 {
    margin: 10px 0 10px;
    font-size: 30px;
    line-height: 1.1;
}

.category-card-main p {
    margin: 0 0 20px;
    color: var(--stone-500);
}

.category-card-main strong {
    color: var(--desert-600);
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px 22px;
    border-top: 1px solid var(--sand-200);
}

.category-samples a {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--stone-700);
    background: var(--stone-50);
    font-size: 13px;
    font-weight: 700;
}

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

.ranking-list-home {
    max-width: var(--max);
}

.ranking-item {
    display: grid;
    grid-template-columns: 64px 132px minmax(0, 1fr) 96px;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose-500), var(--purple-600));
    font-weight: 950;
    font-size: 18px;
}

.rank-cover {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 16 / 10;
    background: var(--stone-200);
}

.rank-cover img {
    height: 100%;
    object-fit: cover;
}

.rank-info h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.rank-info p {
    margin: 0;
    color: var(--stone-500);
    font-size: 14px;
}

.rank-meta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    color: var(--stone-500);
    font-size: 12px;
}

.rank-score {
    text-align: center;
    color: var(--rose-600);
}

.rank-score strong {
    display: block;
    font-size: 26px;
    line-height: 1;
}

.rank-score span {
    color: var(--stone-500);
    font-size: 12px;
}

.sub-hero {
    padding: 96px 24px 82px;
    background:
        radial-gradient(circle at 12% 20%, rgba(244, 63, 94, 0.20), transparent 32%),
        radial-gradient(circle at 88% 0%, rgba(168, 85, 247, 0.18), transparent 28%),
        linear-gradient(135deg, var(--stone-900), #3a252b 48%, #271d36);
    color: #fff;
}

.sub-hero-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.sub-hero h1 {
    max-width: 850px;
    margin: 18px 0 16px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.sub-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

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

.toolbar-controls {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(160px, 200px);
    gap: 12px;
}

.toolbar-controls.wide {
    grid-template-columns: minmax(280px, 420px) minmax(160px, 200px);
}

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

.movie-card-wide .card-cover {
    aspect-ratio: 16 / 12;
}

.detail-page {
    max-width: var(--max);
    margin: 0 auto;
    padding: 36px 24px 10px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--stone-500);
    font-size: 14px;
}

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

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

.detail-main {
    display: grid;
    gap: 22px;
}

.player-card,
.detail-info-card,
.text-card,
.poster-panel,
.genre-panel {
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.52));
    cursor: pointer;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    color: var(--rose-600);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
    font-size: 28px;
}

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

.detail-info-card,
.text-card,
.genre-panel {
    padding: 26px;
}

.detail-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.detail-kicker {
    color: var(--rose-600);
    font-weight: 900;
    font-size: 13px;
}

.detail-title-row h1 {
    margin: 8px 0 0;
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-heat {
    flex: 0 0 auto;
    min-width: 84px;
    padding: 12px;
    border-radius: 18px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--rose-500), var(--purple-600));
}

.detail-heat strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.detail-heat span {
    font-size: 12px;
    font-weight: 800;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--stone-700);
    background: var(--stone-50);
    font-size: 13px;
    font-weight: 800;
}

.detail-tags span {
    color: var(--rose-600);
    background: var(--rose-50);
}

.detail-lead {
    margin: 22px 0 0;
    color: var(--stone-700);
    font-size: 18px;
}

.text-card h2,
.genre-panel h2,
.poster-panel h2 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.2;
}

.text-card p,
.poster-panel p {
    margin: 0;
    color: var(--stone-700);
    font-size: 16px;
}

.gradient-card {
    border-left: 5px solid var(--rose-500);
    background: linear-gradient(135deg, #fff, var(--rose-50), var(--purple-50));
}

.detail-side {
    display: grid;
    gap: 22px;
    position: sticky;
    top: 100px;
}

.poster-panel img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.poster-panel div {
    padding: 18px;
}

.genre-panel div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.genre-panel span {
    color: var(--stone-700);
    background: var(--stone-50);
}

.related-section {
    padding-top: 46px;
}

.site-footer {
    margin-top: 70px;
    color: rgba(255, 255, 255, 0.78);
    background: var(--stone-900);
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 54px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 0.8fr 0.8fr;
    gap: 42px;
}

.footer-logo .brand-text strong {
    color: #fff;
    background: none;
    -webkit-background-clip: border-box;
}

.footer-brand p {
    max-width: 520px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.62);
}

.footer-column h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 17px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.65);
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.48);
    font-size: 13px;
}

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

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

    .hero-poster {
        max-width: 360px;
        transform: none;
    }

    .detail-side {
        position: static;
        grid-template-columns: 260px 1fr;
    }
}

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

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

    .header-inner {
        min-height: 68px;
        padding: 0 18px;
    }

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

    .brand-text em {
        display: none;
    }

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

    .hero-content {
        padding: 74px 18px 70px;
        gap: 28px;
    }

    .hero-poster {
        display: none;
    }

    .search-band-inner,
    .toolbar,
    .footer-inner {
        grid-template-columns: 1fr;
        display: grid;
    }

    .quick-search,
    .toolbar-controls,
    .toolbar-controls.wide {
        grid-template-columns: 1fr;
        display: grid;
    }

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

    .ranking-item {
        grid-template-columns: 46px 96px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 2 / 4;
        display: flex;
        align-items: baseline;
        gap: 8px;
        text-align: left;
    }

    .detail-side {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .page-section,
    .detail-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .sub-hero {
        padding: 70px 16px 62px;
    }

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

    .scroll-row {
        grid-auto-columns: minmax(260px, 86vw);
    }

    .ranking-item {
        grid-template-columns: 40px 84px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .rank-info p {
        display: none;
    }

    .detail-title-row {
        display: grid;
    }

    .detail-heat {
        width: fit-content;
    }

    .player-overlay span {
        width: 68px;
        height: 68px;
    }
}
