@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;700;900&display=swap");

:root {
    --dawn-50: #fff9f0;
    --dawn-100: #fff1d8;
    --sunrise-400: #fb923c;
    --sunrise-500: #f97316;
    --sunrise-600: #ea580c;
    --morning-500: #f0601f;
    --ink-900: #111827;
    --ink-800: #1f2937;
    --ink-700: #374151;
    --ink-500: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --soft: #f9fafb;
    --shadow: 0 24px 60px rgba(17, 24, 39, 0.13);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink-900);
    font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(180deg, var(--dawn-50), #ffffff 32%, #f9fafb 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
}

.nav-shell {
    width: min(1280px, calc(100% - 32px));
    min-height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--sunrise-500), #facc15);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.brand-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: transparent;
    background: linear-gradient(90deg, var(--sunrise-600), var(--morning-500));
    -webkit-background-clip: text;
    background-clip: text;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 auto;
}

.nav-link {
    color: var(--ink-700);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.nav-search {
    display: flex;
    align-items: center;
    width: 280px;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
}

.nav-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 11px 14px;
    min-width: 0;
}

.nav-search button {
    border: 0;
    color: #ffffff;
    font-weight: 800;
    padding: 11px 16px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--sunrise-500), var(--morning-500));
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--dawn-100);
    cursor: pointer;
}

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

.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: #000000;
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 5s ease;
}

.hero-slide.active .hero-image {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 26%, rgba(249, 115, 22, 0.26), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.12)),
        linear-gradient(0deg, #000000 0%, transparent 52%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100% - 1280px) / 2));
    bottom: 84px;
    width: min(680px, calc(100% - 48px));
    color: #ffffff;
    animation: floatIn 0.7s ease both;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #fed7aa;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.08em;
    font-weight: 900;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    margin: 22px 0 0;
    width: min(620px, 100%);
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

.hero-tags,
.detail-tags,
.movie-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

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

.hero-tags span,
.hero-tags a,
.detail-tags span,
.movie-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 237, 213, 0.96);
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--sunrise-500), var(--morning-500));
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.34);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    transform: translateY(-50%);
}

.hero-prev {
    left: 28px;
}

.hero-next {
    right: 28px;
}

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

.hero-dot {
    width: 32px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.38);
}

.hero-dot.active {
    background: #ffffff;
}

.search-band {
    position: relative;
    z-index: 6;
    width: min(1180px, calc(100% - 32px));
    margin: -48px auto 0;
}

.search-band-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: center;
    gap: 24px;
    padding: 28px;
    border: 1px solid rgba(249, 115, 22, 0.16);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-band h2,
.section-heading h2,
.subpage-hero h1,
.detail-intro h1 {
    margin: 0;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.search-band h2 {
    font-size: 30px;
}

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

.hero-search,
.search-large {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
}

.hero-search input,
.search-large input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 16px 18px;
}

.hero-search button,
.search-large button {
    border: 0;
    padding: 16px 24px;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, var(--sunrise-500), var(--morning-500));
}

.page-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 78px 0;
}

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

.section-heading span {
    display: block;
    margin-bottom: 8px;
    color: var(--sunrise-600);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-heading a {
    color: var(--sunrise-600);
    font-weight: 900;
}

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

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

.movie-card {
    min-width: 0;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(249, 115, 22, 0.36);
    box-shadow: 0 22px 52px rgba(17, 24, 39, 0.14);
    transform: translateY(-6px);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 22;
    overflow: hidden;
    background: #111827;
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.74));
}

.movie-type {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(249, 115, 22, 0.9);
}

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

.movie-info {
    padding: 17px;
}

.movie-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 48px;
    overflow: hidden;
    color: var(--ink-900);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.movie-title:hover {
    color: var(--sunrise-600);
}

.movie-meta {
    margin: 8px 0 0;
    color: var(--ink-500);
    font-size: 13px;
    font-weight: 700;
}

.movie-one-line {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 44px;
    margin: 10px 0 14px;
    overflow: hidden;
    color: var(--ink-700);
    font-size: 14px;
    line-height: 1.58;
}

.movie-tags span {
    color: #9a3412;
    background: #ffedd5;
}

.movie-card-compact .movie-info {
    padding: 14px;
}

.movie-card-compact .movie-title {
    font-size: 16px;
    min-height: 42px;
}

.movie-card-compact .movie-one-line {
    font-size: 13px;
}

.ranking-band {
    padding: 78px max(16px, calc((100% - 1280px) / 2));
    background:
        radial-gradient(circle at 16% 14%, rgba(249, 115, 22, 0.22), transparent 26%),
        linear-gradient(135deg, #111827, #1f2937);
}

.dark-heading h2,
.dark-heading a {
    color: #ffffff;
}

.dark-heading span {
    color: #fdba74;
}

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

.ranking-list .movie-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.ranking-list .movie-title {
    color: #ffffff;
}

.ranking-list .movie-meta,
.ranking-list .movie-one-line {
    color: rgba(255, 255, 255, 0.68);
}

.category-strip {
    margin-top: 44px;
}

.inline-heading {
    margin-bottom: 18px;
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 205px;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scrollbar-width: thin;
}

.subpage-hero {
    min-height: 360px;
    display: grid;
    place-items: center;
    padding: 96px 20px 70px;
    text-align: center;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.42), transparent 28%),
        linear-gradient(135deg, #111827, #1f2937 58%, #7c2d12);
}

.subpage-hero div {
    width: min(820px, 100%);
}

.subpage-hero p {
    margin: 0 0 12px;
    color: #fed7aa;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.subpage-hero h1 {
    font-size: clamp(40px, 7vw, 72px);
}

.subpage-hero span {
    display: block;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.7;
}

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

.category-card {
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

.category-card-main {
    display: block;
    padding: 28px;
    color: #ffffff;
    background:
        radial-gradient(circle at 86% 18%, rgba(250, 204, 21, 0.26), transparent 28%),
        linear-gradient(135deg, var(--sunrise-500), #7c2d12);
}

.category-card-main span {
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-card-main h2 {
    margin: 14px 0 8px;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.category-card-main p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.category-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 22px 28px 28px;
    list-style: none;
}

.category-card li a {
    color: var(--ink-700);
    font-weight: 700;
}

.category-card li a:hover {
    color: var(--sunrise-600);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 190px));
    gap: 12px;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.07);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    padding: 13px 14px;
    background: var(--soft);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 74px 96px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--sunrise-500), #ef4444);
}

.rank-thumb {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 16 / 22;
}

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

.rank-info a {
    color: var(--ink-900);
    font-size: 20px;
    font-weight: 900;
}

.rank-info p {
    margin: 6px 0;
    color: var(--ink-500);
    font-weight: 700;
}

.rank-info span {
    color: var(--ink-700);
    line-height: 1.6;
}

.search-large {
    width: min(780px, 100%);
    margin: 0 auto 28px;
    box-shadow: 0 16px 44px rgba(17, 24, 39, 0.08);
}

.search-result-title {
    margin-bottom: 20px;
    color: var(--ink-800);
    font-size: 22px;
    font-weight: 900;
}

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

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.42;
    filter: blur(8px);
    transform: scale(1.04);
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 18%, rgba(249, 115, 22, 0.34), transparent 30%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.62)),
        linear-gradient(0deg, #111827 0%, transparent 58%);
}

.detail-shell {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 44px;
    align-items: end;
    min-height: 620px;
    padding: 110px 0 70px;
}

.detail-poster {
    border: 6px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 26px 76px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 16 / 22;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #fed7aa;
    font-weight: 800;
}

.detail-intro h1 {
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.04;
}

.detail-one-line {
    max-width: 820px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
    line-height: 1.8;
}

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

.detail-meta span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
}

.detail-tags {
    margin-bottom: 28px;
}

.player-section {
    width: min(1180px, calc(100% - 32px));
    margin: -28px auto 0;
    position: relative;
    z-index: 4;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
}

.big-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    background:
        radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.54)),
        transparent;
}

.big-play span {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sunrise-500), var(--morning-500));
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.38);
    position: relative;
}

.big-play span::after {
    content: "";
    position: absolute;
    left: 36px;
    top: 27px;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    border-left: 25px solid #ffffff;
}

.big-play.is-hidden {
    opacity: 0;
    pointer-events: none;
}

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

.detail-text,
.detail-side {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(17, 24, 39, 0.06);
}

.detail-text {
    padding: 34px;
}

.detail-text h2,
.detail-side h2 {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-text p {
    margin: 0 0 28px;
    color: var(--ink-700);
    font-size: 17px;
    line-height: 1.9;
}

.detail-side {
    padding: 28px;
    align-self: start;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    row-gap: 14px;
    margin: 0;
}

.detail-side dt {
    color: var(--ink-500);
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
    color: var(--ink-800);
    font-weight: 800;
}

.detail-side a {
    color: var(--sunrise-600);
}

.site-footer {
    margin-top: 36px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 28px;
    padding: 54px 0;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 900;
}

.footer-grid p {
    margin: 0;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid li + li {
    margin-top: 8px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 16px;
    text-align: center;
    color: #9ca3af;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {
    .site-nav {
        gap: 12px;
    }

    .nav-search {
        width: 220px;
    }

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

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

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

@media (max-width: 880px) {
    .nav-shell {
        flex-wrap: wrap;
        padding: 12px 0;
    }

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

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        order: 5;
        padding: 8px 0;
    }

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

    .nav-link {
        padding: 12px 6px;
        border-bottom: 1px solid var(--line);
    }

    .nav-search {
        width: 100%;
        order: 4;
    }

    .hero-slider {
        min-height: 590px;
        height: 76vh;
    }

    .hero-arrow {
        display: none;
    }

    .hero-content {
        bottom: 72px;
    }

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

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

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

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

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

    .detail-shell {
        grid-template-columns: 1fr;
        align-items: center;
        padding-top: 96px;
    }

    .detail-poster {
        width: min(280px, 76vw);
    }

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

    .rank-row {
        grid-template-columns: 54px 74px minmax(0, 1fr);
        gap: 12px;
    }
}

@media (max-width: 560px) {
    .brand-text {
        font-size: 20px;
    }

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

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

    .hero-content p {
        font-size: 16px;
    }

    .hero-search,
    .search-large {
        border-radius: 22px;
        flex-direction: column;
    }

    .hero-search input,
    .search-large input,
    .hero-search button,
    .search-large button {
        width: 100%;
    }

    .page-section {
        padding: 52px 0;
    }

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

    .movie-grid,
    .ranking-list {
        grid-template-columns: 1fr;
    }

    .scroll-row {
        grid-auto-columns: 78%;
    }

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

    .detail-text,
    .detail-side {
        padding: 24px;
    }

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