/*
  Static movie website stylesheet.
  Visual direction follows the supplied dark gradient / purple-pink card style.
*/

:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --border: rgba(168, 85, 247, 0.22);
    --border-strong: rgba(168, 85, 247, 0.45);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --subtle: #94a3b8;
    --purple: #a855f7;
    --purple-strong: #7c3aed;
    --pink: #ec4899;
    --blue: #38bdf8;
    --yellow: #facc15;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius: 24px;
    --max: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 10%, rgba(168, 85, 247, 0.20), transparent 30%),
        radial-gradient(circle at 84% 0%, rgba(236, 72, 153, 0.16), transparent 28%),
        linear-gradient(135deg, #020617 0%, #111827 46%, #000000 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "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;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(88, 28, 135, 0.92), rgba(15, 23, 42, 0.94));
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.header-inner {
    width: min(100% - 32px, var(--max));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    box-shadow: 0 0 26px rgba(168, 85, 247, 0.45);
}

.brand-name,
.footer-brand span:last-child {
    font-size: 1.32rem;
    background: linear-gradient(90deg, #c084fc, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.desktop-nav a,
.mobile-nav a {
    color: #d1d5db;
    padding: 10px 12px;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input,
.search-box input,
.filter-panel input,
.filter-panel select {
    color: #ffffff;
    border: 1px solid rgba(168, 85, 247, 0.35);
    background: rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    width: 250px;
    padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.search-box button {
    border: 0;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--purple-strong), var(--pink));
}

.header-search input:focus,
.mobile-search input:focus,
.search-box input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(216, 180, 254, 0.88);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.18);
    background: rgba(15, 23, 42, 0.86);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    color: #ffffff;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px 12px;
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 16px 0 22px;
    border-top: 1px solid var(--border);
}

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

.mobile-nav nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

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

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

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.76) 32%, rgba(2, 6, 23, 0.08) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.36) 44%, rgba(0, 0, 0, 0.05) 100%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100% - var(--max)) / 2 + 24px));
    bottom: 82px;
    width: min(680px, calc(100% - 48px));
}

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

.hero-tags span,
.detail-tags span,
.tag-row span,
.card-meta span {
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 0.82rem;
}

.hero-tags span:first-child,
.detail-tags span:first-child {
    color: #ffffff;
    background: linear-gradient(90deg, var(--purple-strong), var(--pink));
}

.hero-tags span:not(:first-child),
.detail-tags span:not(:first-child),
.tag-row span,
.card-meta span {
    color: #dbeafe;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero h1 {
    max-width: 760px;
    margin: 18px 0 14px;
    font-size: clamp(2.7rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 16px 34px rgba(0, 0, 0, 0.58);
}

.hero p {
    max-width: 660px;
    margin: 0 0 26px;
    color: #e5e7eb;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
}

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

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, var(--purple-strong), var(--pink));
    box-shadow: 0 16px 40px rgba(168, 85, 247, 0.34);
}

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

.primary-btn:hover {
    box-shadow: 0 20px 54px rgba(236, 72, 153, 0.42);
}

.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(12px);
    font-size: 2.2rem;
    line-height: 1;
}

.hero-arrow--prev {
    left: 24px;
}

.hero-arrow--next {
    right: 24px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--purple);
}

.page-shell {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 56px 0;
}

.content-section {
    margin-bottom: 72px;
}

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

.section-heading.compact {
    margin-bottom: 16px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #c084fc;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 800;
}

.section-heading h2,
.sub-hero h1,
.feature-row h2,
.related-panel h2,
.article-block h2,
.detail-panel h1 {
    margin: 0;
    line-height: 1.12;
}

.section-heading h2,
.feature-row h2 {
    font-size: clamp(1.75rem, 3vw, 2.7rem);
}

.section-more {
    color: #c084fc;
    font-weight: 700;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.14);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.58), rgba(15, 23, 42, 0.82));
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.20);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.74), rgba(15, 23, 42, 0.92));
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
}

.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #020617;
}

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

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

.card-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 56%);
    opacity: 0.82;
}

.card-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--purple-strong), var(--pink));
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #111827;
    font-weight: 900;
    background: linear-gradient(135deg, #fde68a, #facc15);
}

.card-body {
    padding: 16px;
}

.card-meta {
    margin-bottom: 10px;
}

.card-meta span {
    color: #cbd5e1;
    font-size: 0.75rem;
    padding: 3px 8px;
}

.card-body h3 {
    margin: 0 0 9px;
    font-size: 1.08rem;
    line-height: 1.3;
}

.card-body h3 a:hover {
    color: #d8b4fe;
}

.card-body p {
    margin: 0 0 14px;
    color: var(--subtle);
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row span {
    color: #93c5fd;
    border-color: rgba(56, 189, 248, 0.24);
    background: rgba(14, 165, 233, 0.12);
    font-size: 0.74rem;
}

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

.movie-card--horizontal .card-poster {
    height: 100%;
    aspect-ratio: auto;
}

.movie-card--large {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(0, 1fr);
    min-height: 330px;
}

.movie-card--large .card-poster {
    height: 100%;
    aspect-ratio: auto;
}

.movie-card--large .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
}

.movie-card--large .card-body h3 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.movie-card--large .card-body p {
    -webkit-line-clamp: 4;
    font-size: 1rem;
}

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

.movie-card--compact .card-poster {
    height: 92px;
    aspect-ratio: auto;
}

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

.movie-card--compact .card-meta,
.movie-card--compact .tag-row,
.movie-card--compact .card-play {
    display: none;
}

.movie-card--compact .card-body h3 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.movie-card--compact .card-body p {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
}

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

.category-tile,
.category-card a {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 154px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: var(--shadow);
}

.category-tile img,
.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
    transition: transform 0.45s ease, opacity 0.3s ease;
}

.category-tile:hover img,
.category-card:hover img {
    transform: scale(1.08);
    opacity: 0.62;
}

.category-tile span,
.category-tile small,
.category-card div {
    position: relative;
    z-index: 2;
}

.category-tile {
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-tile::after,
.category-card a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.12));
}

.category-tile span {
    font-size: 1.2rem;
    font-weight: 800;
}

.category-tile small {
    color: #cbd5e1;
}

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

.category-card a {
    min-height: 230px;
}

.category-card div {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
}

.category-card span {
    color: #c084fc;
    font-weight: 800;
}

.category-card h2 {
    margin: 8px 0;
    font-size: 2rem;
}

.category-card p {
    margin: 0;
    color: #cbd5e1;
}

.feature-row,
.split-section,
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 72px;
}

.feature-row {
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.24), rgba(15, 23, 42, 0.76));
}

.feature-row p:not(.eyebrow) {
    color: var(--muted);
}

.split-section {
    grid-template-columns: 420px minmax(0, 1fr);
    align-items: stretch;
}

.ranking-panel,
.classic-panel > .content-section,
.filter-panel,
.search-panel,
.detail-panel,
.related-panel,
.poster-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.ranking-panel,
.filter-panel,
.search-panel,
.detail-panel,
.related-panel,
.poster-panel {
    padding: 24px;
}

.classic-panel .content-section {
    margin: 0;
    padding: 24px;
}

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

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

.rank-list a {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.66);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-list a:hover {
    background: rgba(124, 58, 237, 0.20);
    transform: translateX(4px);
}

.rank-list span {
    grid-row: span 2;
    color: var(--yellow);
    font-weight: 900;
}

.rank-list strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-list em {
    color: var(--subtle);
    font-style: normal;
    font-size: 0.84rem;
}

.sub-page {
    min-height: 60vh;
}

.sub-hero {
    padding: 72px 24px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    background: linear-gradient(90deg, rgba(88, 28, 135, 0.32), rgba(236, 72, 153, 0.15));
}

.sub-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.sub-hero p:last-child {
    max-width: 760px;
    margin: 16px auto 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.filter-panel {
    margin-bottom: 36px;
}

.filter-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
    margin-bottom: 20px;
}

.filter-line label {
    display: grid;
    gap: 8px;
    color: #d8b4fe;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 12px 14px;
}

.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-filter button {
    color: #d1d5db;
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    padding: 8px 14px;
}

.tag-filter button.is-active,
.tag-filter button:hover {
    color: #ffffff;
    border-color: rgba(216, 180, 254, 0.75);
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.90), rgba(236, 72, 153, 0.82));
}

.search-panel {
    margin-bottom: 36px;
}

.search-box input {
    flex: 1;
    padding: 14px 16px;
}

.search-count {
    margin: 14px 0 0;
    color: var(--muted);
}

.movie-detail-page {
    min-height: 70vh;
}

.detail-shell {
    padding-top: 34px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    color: var(--subtle);
}

.breadcrumb a {
    color: #c084fc;
}

.detail-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
}

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

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.24);
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.40);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 8px;
    color: #ffffff;
    border: 0;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.26), rgba(0, 0, 0, 0.54));
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--purple-strong), var(--pink));
    box-shadow: 0 0 48px rgba(236, 72, 153, 0.50);
    font-size: 2.2rem;
    text-indent: 6px;
}

.play-overlay strong {
    font-size: 1.1rem;
}

.player-card.is-playing .play-overlay {
    display: none;
}

.detail-panel h1 {
    margin-top: 18px;
    font-size: clamp(2rem, 4.5vw, 4rem);
}

.detail-one-line {
    margin: 16px 0 24px;
    color: #e5e7eb;
    font-size: 1.12rem;
}

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

.detail-stats div {
    padding: 16px;
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.42);
}

.detail-stats strong {
    display: block;
    color: #ffffff;
    font-size: 1.08rem;
}

.detail-stats span {
    color: var(--subtle);
    font-size: 0.86rem;
}

.article-block {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.article-block + .article-block {
    margin-top: 24px;
}

.article-block h2 {
    margin-bottom: 12px;
    font-size: 1.45rem;
}

.article-block p {
    margin: 0;
    color: #d1d5db;
    text-align: justify;
}

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

.poster-panel img {
    width: 100%;
    border-radius: 18px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    margin-bottom: 16px;
}

.primary-btn.full {
    width: 100%;
}

.related-list {
    display: grid;
    gap: 12px;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), #000000);
}

.footer-grid {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.site-footer p,
.site-footer li {
    color: var(--subtle);
    font-size: 0.94rem;
}

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

.site-footer a:hover {
    color: #c084fc;
}

.footer-bottom {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(168, 85, 247, 0.18);
    color: var(--subtle);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

[hidden] {
    display: none !important;
}

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

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

    .header-search {
        margin-left: auto;
    }

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

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

    .detail-grid,
    .split-section,
    .feature-row {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }
}

@media (max-width: 820px) {
    .header-inner {
        height: auto;
        min-height: 68px;
        padding: 12px 0;
    }

    .header-search {
        display: none;
    }

    .hero {
        min-height: 540px;
    }

    .hero-content {
        bottom: 72px;
    }

    .hero-arrow {
        display: none;
    }

    .page-shell {
        padding: 38px 0;
    }

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

    .movie-grid,
    .classic-panel .movie-grid,
    .category-grid,
    .category-card-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .movie-card--horizontal,
    .movie-card--large {
        grid-template-columns: 1fr;
    }

    .movie-card--horizontal .card-poster,
    .movie-card--large .card-poster {
        aspect-ratio: 16 / 10;
    }

    .filter-line,
    .detail-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .brand-name {
        font-size: 1.05rem;
    }

    .mobile-nav nav,
    .movie-grid,
    .classic-panel .movie-grid,
    .category-grid,
    .category-card-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 500px;
    }

    .hero h1 {
        letter-spacing: -0.035em;
    }

    .hero-content {
        left: 18px;
        width: calc(100% - 36px);
    }

    .feature-row,
    .ranking-panel,
    .classic-panel .content-section,
    .filter-panel,
    .search-panel,
    .detail-panel,
    .related-panel,
    .poster-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .sub-hero {
        padding: 54px 18px;
    }
}
