
:root {
    --color-sunset-50: #fff7ed;
    --color-sunset-100: #ffedd5;
    --color-sunset-400: #fb923c;
    --color-sunset-500: #f97316;
    --color-sunset-600: #ea580c;
    --color-sunset-700: #c2410c;
    --color-twilight-500: #ef4444;
    --color-twilight-600: #dc2626;
    --color-golden-50: #fefce8;
    --color-golden-500: #eab308;
    --color-golden-600: #ca8a04;
    --color-ocean-500: #0ea5e9;
    --color-ocean-600: #0284c7;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-gray-900);
    background: linear-gradient(180deg, var(--color-sunset-50), #ffffff 28%, var(--color-sunset-50));
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.90);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-sunset-500), var(--color-twilight-500));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

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

.brand-text strong {
    font-size: 20px;
    color: var(--color-gray-900);
}

.brand-text small {
    color: var(--color-gray-500);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-link {
    color: var(--color-gray-700);
    font-size: 15px;
    font-weight: 650;
    transition: color 0.2s ease;
}

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

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    overflow: visible;
    border: 1px solid var(--color-gray-200);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(17, 24, 39, 0.04);
}

.header-search input {
    width: 220px;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    background: transparent;
}

.header-search button {
    border: 0;
    padding: 10px 16px;
    color: #ffffff;
    background: var(--color-sunset-600);
    border-radius: 999px;
}

.search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    display: none;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--color-gray-200);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.search-suggest.is-open {
    display: block;
}

.search-suggest a {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid var(--color-gray-100);
}

.search-suggest img {
    width: 42px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

.search-suggest strong {
    display: block;
    font-size: 14px;
}

.search-suggest span {
    display: block;
    color: var(--color-gray-500);
    font-size: 12px;
}

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

.mobile-toggle span {
    width: 20px;
    height: 2px;
    background: var(--color-gray-700);
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    padding: 70px 0 130px;
    color: #ffffff;
    background: linear-gradient(120deg, var(--color-sunset-500), var(--color-twilight-500), var(--color-sunset-700));
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.20;
    background-image: linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 42px 42px;
}

.hero-container {
    position: relative;
}

.hero-slides {
    position: relative;
    min-height: 440px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.62fr);
    gap: 56px;
    align-items: center;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 6px 12px;
    color: var(--color-sunset-700);
    background: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
}

.hero-copy h1 {
    max-width: 820px;
    margin: 0 0 16px;
    font-size: clamp(38px, 5.8vw, 66px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.hero-copy h2 {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.2;
}

.hero-copy p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.90);
    font-size: 19px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 750;
    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(--color-sunset-500), var(--color-twilight-500));
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.28);
}

.hero-actions .btn-primary {
    color: var(--color-sunset-700);
    background: #ffffff;
}

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

.btn-light {
    color: var(--color-sunset-700);
    background: var(--color-sunset-50);
}

.hero-art {
    position: relative;
    justify-self: center;
    width: min(360px, 100%);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.22);
    border-radius: 32px;
    box-shadow: 0 34px 70px rgba(0, 0, 0, 0.24);
    transform: rotate(2deg);
}

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

.hero-play {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-sunset-600);
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.hero-dots {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

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

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

.hero-search {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -96px;
    display: flex;
    overflow: hidden;
    max-width: 780px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: var(--shadow-xl);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 20px 28px;
    border: 0;
    outline: 0;
}

.hero-search button {
    border: 0;
    padding: 0 30px;
    color: #ffffff;
    background: var(--color-sunset-600);
    font-weight: 750;
}

.section-block {
    padding: 56px 0;
}

.featured-overlap {
    position: relative;
    z-index: 2;
    margin-top: -74px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-sunset-500), var(--color-twilight-500));
    border-radius: 14px;
    box-shadow: 0 14px 22px rgba(239, 68, 68, 0.20);
}

.section-heading h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.section-heading p {
    margin: 4px 0 0;
    color: var(--color-gray-600);
}

.featured-card {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    padding: 28px;
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.featured-cover {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.featured-cover img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.featured-body h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
}

.featured-body p {
    color: var(--color-gray-700);
    font-size: 17px;
}

.soft-panel {
    width: min(1280px, calc(100% - 32px));
    margin-top: 56px;
    padding: 34px;
    border-radius: 30px;
    background: linear-gradient(90deg, var(--color-golden-50), var(--color-sunset-50));
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.76);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--color-sunset-100);
}

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

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

.poster-overlay {
    position: absolute;
    inset: auto 12px 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    border-radius: 999px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(8px);
}

.movie-card:hover .poster-overlay {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--color-twilight-600);
    border-radius: 999px;
    font-weight: 800;
}

.movie-info {
    padding: 14px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--color-gray-500);
    font-size: 12px;
}

.movie-meta-line span:not(:last-child)::after {
    content: "·";
    margin-left: 6px;
}

.movie-info h3 {
    margin: 7px 0;
    display: -webkit-box;
    overflow: hidden;
    color: var(--color-gray-900);
    font-size: 17px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-info h3 a:hover {
    color: var(--color-sunset-600);
}

.movie-info p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin: 0 0 10px;
    color: var(--color-gray-600);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-compact .movie-info h3 {
    font-size: 15px;
}

.movie-card-compact .movie-info p {
    min-height: 38px;
    font-size: 12px;
}

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

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    color: var(--color-sunset-700);
    background: var(--color-sunset-50);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
}

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

.category-tile,
.category-overview-card {
    display: block;
    min-height: 150px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--color-gray-200);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.category-tile strong,
.category-overview-card h2 {
    display: block;
    margin: 0 0 8px;
    font-size: 20px;
}

.category-tile span,
.category-count {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--color-sunset-600);
    font-weight: 750;
}

.category-tile p,
.category-overview-card p {
    margin: 0;
    color: var(--color-gray-600);
    font-size: 14px;
}

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

.strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.strip-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 22px;
}

.strip-header h3 span {
    width: 5px;
    height: 28px;
    background: var(--color-sunset-500);
    border-radius: 999px;
}

.strip-header a {
    color: var(--color-sunset-600);
    font-weight: 750;
}

.page-hero,
.detail-hero {
    color: #ffffff;
    background: linear-gradient(120deg, var(--color-sunset-500), var(--color-twilight-500), var(--color-sunset-700));
}

.compact-hero {
    padding: 70px 0 76px;
}

.compact-hero h1,
.detail-main h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
}

.compact-hero p {
    max-width: 840px;
    margin: 0;
    color: rgba(255, 255, 255, 0.90);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.filter-panel,
.search-page-panel {
    display: grid;
    grid-template-columns: 2fr repeat(3, minmax(140px, 1fr)) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--color-gray-200);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.search-page-panel {
    grid-template-columns: minmax(0, 1fr) auto;
}

.search-filter-row {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
}

.filter-panel label,
.search-page-panel label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--color-gray-600);
    font-size: 13px;
    font-weight: 650;
}

.filter-panel input,
.filter-panel select,
.search-page-panel input {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    outline: 0;
    background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-page-panel input:focus {
    border-color: var(--color-sunset-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-panel button,
.search-page-panel button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    color: #ffffff;
    background: var(--color-sunset-600);
    border-radius: 12px;
    font-weight: 750;
}

.filter-count {
    margin: 0 0 18px;
    color: var(--color-gray-600);
    font-weight: 650;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 88px 62px minmax(0, 1fr) 82px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--color-gray-200);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.rank-cover {
    overflow: hidden;
    width: 88px;
    height: 118px;
    border-radius: 14px;
}

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

.rank-number {
    color: var(--color-sunset-600);
    font-size: 30px;
    font-weight: 900;
    text-align: center;
}

.rank-content h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.rank-content h3 a:hover {
    color: var(--color-sunset-600);
}

.rank-content p {
    margin: 0;
    color: var(--color-gray-600);
}

.rank-meta {
    margin-bottom: 6px !important;
    color: var(--color-gray-500) !important;
    font-size: 13px;
}

.rank-score {
    text-align: center;
}

.rank-score strong {
    display: block;
    color: var(--color-twilight-600);
    font-size: 28px;
}

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

.detail-hero {
    padding: 52px 0 76px;
}

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

.detail-poster {
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    box-shadow: var(--shadow-xl);
}

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

.detail-main .one-line {
    max-width: 880px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

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

.meta-list div {
    padding: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
}

.meta-list dt {
    color: rgba(255, 255, 255, 0.70);
    font-size: 13px;
}

.meta-list dd {
    margin: 4px 0 0;
    font-weight: 750;
}

.player-section {
    padding-top: 48px;
}

.player-box {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: 28px;
    box-shadow: var(--shadow-xl);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.54));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-sunset-600);
    background: #ffffff;
    border-radius: 999px;
    font-size: 30px;
    box-shadow: var(--shadow-xl);
}

.player-overlay strong {
    font-size: 20px;
}

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

.player-status {
    margin: 0;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(17, 24, 39, 0.88);
    font-size: 13px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 24px;
    padding-bottom: 20px;
}

.content-card {
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--color-gray-200);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.content-card p {
    margin: 0 0 12px;
    color: var(--color-gray-700);
    font-size: 16px;
    line-height: 1.85;
}

.review-card {
    background: linear-gradient(180deg, #ffffff, var(--color-sunset-50));
}

.prose-card {
    max-width: 900px;
    margin: 0 auto;
}

.site-footer {
    margin-top: 60px;
    color: var(--color-gray-300);
    background: var(--color-gray-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
    padding: 48px 0;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 14px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 17px;
}

.site-footer p {
    margin: 0;
    color: var(--color-gray-300);
}

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

.site-footer li {
    margin-bottom: 8px;
}

.site-footer a:hover {
    color: var(--color-sunset-400);
}

.footer-bottom {
    padding: 18px 0;
    color: var(--color-gray-500);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.is-hidden {
    display: none !important;
}

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

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

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

@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .mobile-toggle {
        display: flex;
        margin-left: auto;
    }

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

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

    .nav-link {
        padding: 10px 14px;
        background: var(--color-gray-50);
        border-radius: 12px;
    }

    .hero-section {
        min-height: auto;
        padding-bottom: 140px;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .hero-copy p,
    .hero-copy h1,
    .hero-copy h2 {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .featured-actions,
    .hero-dots {
        justify-content: center;
    }

    .hero-art {
        width: min(320px, 78vw);
    }

    .featured-card,
    .detail-layout,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .featured-cover img {
        min-height: auto;
    }

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

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

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

    .rank-row {
        grid-template-columns: 72px 46px minmax(0, 1fr);
    }

    .rank-cover {
        width: 72px;
        height: 96px;
    }

    .rank-score {
        grid-column: 2 / 4;
        text-align: left;
    }

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

@media (max-width: 640px) {
    .container,
    .soft-panel {
        width: min(100% - 24px, 1280px);
    }

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

    .hero-copy h1 {
        font-size: 36px;
    }

    .hero-slides {
        min-height: 700px;
    }

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

    .hero-search button {
        min-height: 48px;
    }

    .section-block {
        padding: 38px 0;
    }

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

    .movie-grid-four,
    .movie-grid-five,
    .movie-grid-six,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .soft-panel {
        padding: 22px;
    }

    .featured-card,
    .content-card {
        padding: 18px;
    }

    .detail-layout {
        gap: 20px;
    }

    .detail-poster {
        max-width: 260px;
        margin: 0 auto;
    }

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

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

    .rank-cover,
    .rank-number {
        display: none;
    }

    .rank-score {
        grid-column: auto;
    }
}
