:root {
    color-scheme: light;
    --rose: #f43f5e;
    --pink: #ec4899;
    --orange: #f97316;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #ffe4e6;
    --soft: #fff1f2;
    --panel: rgba(255, 255, 255, 0.86);
    --shadow: 0 20px 60px rgba(244, 63, 94, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #fff7f7 0%, #ffffff 48%, #fff7ed 100%);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    backdrop-filter: blur(18px);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.28);
}

.brand-text {
    font-size: 22px;
    background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-nav-link {
    font-weight: 700;
    color: #4b5563;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--rose);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-search input,
.filter-selects select {
    border: 1px solid rgba(244, 63, 94, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
}

.header-search input {
    width: 210px;
    padding: 9px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-search input:focus,
.filter-selects select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.header-search button,
.mobile-search button {
    border-radius: 999px;
    padding: 9px 16px;
    color: white;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    font-weight: 800;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff1f2;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--rose);
    border-radius: 999px;
}

.mobile-panel {
    border-top: 1px solid rgba(244, 63, 94, 0.12);
    padding: 12px 24px 18px;
    background: rgba(255, 255, 255, 0.94);
}

.mobile-panel[hidden] {
    display: none;
}

.mobile-search input {
    flex: 1;
    padding: 10px 14px;
}

.mobile-nav {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    background: #111827;
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

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

.hero-bg {
    background-size: cover;
    background-position: center;
    filter: blur(2px) saturate(1.08);
    transform: scale(1.04);
}

.hero-overlay {
    background:
        radial-gradient(circle at 75% 15%, rgba(236, 72, 153, 0.46), transparent 34%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.64) 48%, rgba(17, 24, 39, 0.86) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 1) 0%, rgba(17, 24, 39, 0.14) 44%, rgba(17, 24, 39, 0.92) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 54px;
    max-width: 1220px;
    min-height: 720px;
    margin: 0 auto;
    padding: 96px 24px 156px;
}

.hero-copy {
    color: white;
}

.hero-kicker,
.sub-hero span,
.section-heading span,
.story-card span,
.category-panel span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--rose);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 840px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.06em;
    margin-bottom: 24px;
}

.hero-copy p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.78;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    font-weight: 800;
}

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

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

.primary-btn {
    color: white;
    background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
    box-shadow: 0 18px 46px rgba(244, 63, 94, 0.32);
}

.secondary-btn {
    color: var(--rose);
    background: white;
    border: 1px solid rgba(244, 63, 94, 0.18);
}

.ghost-btn {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    border-radius: 999px;
    padding: 10px 16px;
    color: white;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    font-weight: 900;
}

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

.hero-prev,
.hero-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 34px;
    background: white;
}

.hero-category-bar {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(1180px, calc(100% - 32px));
    padding: 14px 18px;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.hero-category-bar span {
    font-weight: 900;
    white-space: nowrap;
}

.hero-category-bar div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-category-bar a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 14px;
    font-weight: 800;
}

.content-section,
.page-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px 0;
}

.soft-section {
    max-width: none;
    margin-top: 72px;
    padding: 72px max(24px, calc((100% - 1280px) / 2 + 24px));
    background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 100%);
}

.section-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 760px;
    margin-bottom: 30px;
}

.section-heading h2,
.sub-hero h1 {
    font-size: clamp(30px, 4.4vw, 52px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading p,
.sub-hero p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.72;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(244, 63, 94, 0.1);
    box-shadow: 0 20px 44px rgba(244, 63, 94, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

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

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: white;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.play-chip {
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #9f1239;
    font-size: 13px;
    font-weight: 800;
}

.movie-meta-row span {
    border-radius: 999px;
    padding: 5px 9px;
    background: #fff1f2;
}

.movie-meta-row.light {
    color: white;
}

.movie-meta-row.light span {
    background: rgba(255, 255, 255, 0.16);
}

.movie-card h2 {
    margin-top: 12px;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
}

.movie-card p {
    min-height: 50px;
    margin-top: 9px;
    color: #64748b;
    line-height: 1.62;
    font-size: 14px;
}

.movie-card .tag-row span {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(244, 63, 94, 0.1);
}

.score-row strong {
    color: var(--rose);
    font-size: 22px;
}

.score-row span {
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.movie-card.compact .poster-wrap img {
    height: 100%;
    aspect-ratio: 2 / 3;
}

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

.movie-card.compact h2 {
    font-size: 17px;
}

.movie-card.compact p {
    min-height: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-tile,
.category-panel {
    display: block;
    border-radius: 28px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(244, 63, 94, 0.12);
    box-shadow: 0 18px 42px rgba(244, 63, 94, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-tile span,
.category-panel h2 {
    font-size: 22px;
    font-weight: 950;
}

.category-tile p,
.category-panel p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.68;
}

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

.category-panel {
    overflow: hidden;
    padding: 0;
}

.category-panel > div:last-child {
    padding: 22px;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    background: #111827;
}

.category-covers img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 16px;
}

.sub-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 24px 72px;
    text-align: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.22), transparent 32%),
        radial-gradient(circle at 78% 18%, rgba(249, 115, 22, 0.2), transparent 34%),
        linear-gradient(135deg, #fff1f2, #fff7ed);
}

.sub-hero p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.sub-hero-actions {
    justify-content: center;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 2fr;
    gap: 18px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(244, 63, 94, 0.1);
    box-shadow: 0 16px 38px rgba(244, 63, 94, 0.08);
}

.filter-search input {
    width: 100%;
    height: 48px;
    padding: 0 18px;
}

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

.filter-selects label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.filter-selects select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
}

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

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

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

.top-rank-card {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: 34px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.22);
}

.top-rank-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.top-rank-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.18));
}

.top-rank-card span {
    align-self: flex-start;
    border-radius: 999px;
    padding: 8px 12px;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    font-weight: 950;
}

.top-rank-card h2 {
    margin-top: 16px;
    font-size: 28px;
    font-weight: 950;
}

.top-rank-card p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.68;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: white;
    background: #111827;
}

.detail-backdrop,
.detail-layer {
    position: absolute;
    inset: 0;
}

.detail-backdrop {
    background-size: cover;
    background-position: center;
    filter: blur(4px) saturate(1.05);
    transform: scale(1.06);
}

.detail-layer {
    background:
        radial-gradient(circle at 75% 30%, rgba(244, 63, 94, 0.3), transparent 34%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72)),
        linear-gradient(0deg, rgba(17, 24, 39, 1), transparent 50%);
}

.detail-shell {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 24px 0 34px;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 800;
}

.breadcrumb a:hover {
    color: white;
}

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

.detail-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

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

.detail-poster span {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    color: white;
    font-weight: 950;
}

.detail-copy h1 {
    margin-top: 18px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.96;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.detail-copy .lead {
    max-width: 780px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 20px;
    line-height: 1.78;
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.14);
}

.player-section {
    max-width: 1180px;
    margin: -80px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 3;
}

.player-card {
    overflow: hidden;
    border-radius: 34px;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 36px 80px rgba(17, 24, 39, 0.34);
}

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

.movie-player-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.movie-player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    text-align: center;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.22));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.movie-play-button {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
    color: white;
    font-size: 32px;
    box-shadow: 0 24px 58px rgba(244, 63, 94, 0.38);
}

.movie-player-cover strong {
    font-size: 28px;
    font-weight: 950;
}

.movie-player-cover em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 800;
}

.detail-content {
    padding-top: 62px;
}

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

.story-card {
    border-radius: 30px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(244, 63, 94, 0.1);
    box-shadow: 0 18px 46px rgba(244, 63, 94, 0.08);
}

.story-card p {
    color: #475569;
    line-height: 1.9;
    font-size: 17px;
}

.story-card p + p {
    margin-top: 16px;
}

.story-card dl {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px 16px;
    margin: 0;
}

.story-card dt {
    color: var(--muted);
    font-weight: 800;
}

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

.review-card {
    margin-top: 24px;
}

.site-footer {
    margin-top: 96px;
    padding: 56px 24px 28px;
    background: #111827;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 34px;
    max-width: 1180px;
    margin: 0 auto;
}

.footer-brand {
    color: white;
    font-size: 22px;
}

.site-footer p {
    max-width: 460px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.8;
}

.site-footer h2 {
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 950;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin-top: 9px;
    color: rgba(255, 255, 255, 0.68);
}

.site-footer a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1180px;
    margin: 42px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.58);
}

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

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

@media (max-width: 980px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        min-height: 720px;
        padding-top: 84px;
    }

    .hero-poster {
        display: none;
    }

    .hero-category-bar {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

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

    .detail-grid {
        grid-template-columns: 180px minmax(0, 1fr);
    }

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

@media (max-width: 640px) {
    .site-header-inner {
        padding: 12px 16px;
    }

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

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

    .hero-content {
        padding: 78px 18px 170px;
    }

    .hero-copy h1,
    .detail-copy h1 {
        font-size: 40px;
    }

    .hero-copy p,
    .detail-copy .lead {
        font-size: 16px;
    }

    .hero-actions,
    .sub-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn,
    .ghost-btn {
        width: 100%;
    }

    .hero-category-bar {
        bottom: 18px;
        max-height: 112px;
        overflow: hidden;
    }

    .content-section,
    .page-shell {
        padding: 52px 16px 0;
    }

    .movie-grid,
    .compact-grid,
    .all-movie-grid,
    .category-grid,
    .category-panel-grid,
    .top-rank-grid {
        grid-template-columns: 1fr;
    }

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

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

    .detail-shell {
        padding: 24px 16px 70px;
    }

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

    .detail-poster {
        max-width: 220px;
    }

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

    .player-card {
        border-radius: 24px;
    }

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

    .movie-play-button {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }

    .story-card {
        padding: 22px;
    }
}
