/*
  Static movie site stylesheet.
  The visual direction follows the uploaded bundle's dark slate layout, amber gradient accents,
  rounded cards, layered hero area, hover lift effects, and responsive grids.
*/

:root {
    --bg: #07111f;
    --bg-soft: #0f1d31;
    --bg-card: #122238;
    --bg-card-light: #ffffff;
    --text: #f8fafc;
    --text-soft: #cbd5e1;
    --text-muted: #94a3b8;
    --ink: #111827;
    --ink-soft: #475569;
    --accent: #f59e0b;
    --accent-2: #fb923c;
    --accent-3: #fcd34d;
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 24px;
    --max: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #06111f 0%, #0b1628 42%, #f5f7fb 42%, #f5f7fb 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.page-shell {
    min-height: 100vh;
    overflow-x: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 17, 31, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px);
}

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

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

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--accent-3), var(--accent), var(--accent-2));
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

.brand-text {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #fde68a, #fdba74, #f59e0b);
    background-clip: text;
    color: transparent;
}

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

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

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fcd34d;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.quick-search {
    display: flex;
    align-items: center;
    width: 310px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.quick-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: white;
    background: transparent;
    padding: 0 12px;
}

.quick-search input::placeholder {
    color: #94a3b8;
}

.quick-search button,
.button {
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quick-search button {
    padding: 9px 16px;
    color: #111827;
    background: linear-gradient(135deg, #fde68a, var(--accent));
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: white;
}

.mobile-nav {
    display: none;
    padding: 12px 24px 20px;
    border-top: 1px solid var(--line);
    background: rgba(6, 17, 31, 0.96);
}

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

.mobile-link {
    padding: 12px 16px;
    border-radius: 14px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.04);
}

.mobile-link.is-active {
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.hero-slider {
    width: min(calc(100% - 32px), var(--max));
    margin: 32px auto 0;
    position: relative;
}

.hero-stage {
    position: relative;
    min-height: 620px;
    border-radius: 34px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    gap: 52px;
    align-items: center;
    padding: 64px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.36;
    filter: saturate(1.2) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 28%, rgba(245, 158, 11, 0.24), transparent 28%),
        linear-gradient(90deg, rgba(7, 17, 31, 0.96) 0%, rgba(7, 17, 31, 0.76) 48%, rgba(7, 17, 31, 0.45) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--accent-3);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1 {
    margin: 0;
    max-width: 800px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-summary {
    max-width: 680px;
    margin: 24px 0 0;
    color: #dbeafe;
    font-size: 20px;
    line-height: 1.8;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
}

.button.primary {
    color: #111827;
    background: linear-gradient(135deg, #fde68a, var(--accent), var(--accent-2));
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.3);
}

.button.ghost {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
}

.button.text,
.section-link {
    color: var(--accent);
    font-weight: 900;
}

.button:hover,
.quick-search button:hover,
.category-tile:hover,
.movie-card:hover,
.rank-row:hover {
    transform: translateY(-3px);
}

.hero-poster {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5);
}

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

.hero-dots {
    position: absolute;
    left: 64px;
    bottom: 34px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    width: 58px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.stats-bar {
    width: min(calc(100% - 32px), var(--max));
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stats-bar div {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.stats-bar strong {
    display: block;
    color: #fde68a;
    font-size: 30px;
}

.stats-bar span {
    color: var(--text-soft);
}

.content-section {
    width: min(calc(100% - 32px), var(--max));
    margin: 48px auto;
    padding: 36px;
    color: var(--ink);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 70px rgba(15, 23, 42, 0.08);
}

.content-section.dark-section,
.content-section.ranking-preview {
    color: white;
    border-color: rgba(255, 255, 255, 0.10);
    background: linear-gradient(135deg, #07111f, #172554 55%, #111827);
}

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

.section-heading h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(26px, 3vw, 42px);
    letter-spacing: -0.04em;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: white;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dark-section .movie-card,
.ranking-preview .movie-card {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.movie-card:hover {
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.poster-wrap,
.category-tile,
.category-cover-stack {
    position: relative;
    display: block;
    overflow: hidden;
    background:
        radial-gradient(circle at 32% 20%, rgba(245, 158, 11, 0.35), transparent 32%),
        linear-gradient(135deg, #0f172a, #1e293b);
}

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

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

.play-badge,
.score-badge,
.card-rank {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.play-badge {
    left: 12px;
    bottom: 12px;
    padding: 7px 10px;
    color: #111827;
    background: linear-gradient(135deg, #fde68a, var(--accent));
}

.score-badge {
    top: 12px;
    right: 12px;
    padding: 7px 10px;
    color: white;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(12px);
}

.card-rank {
    top: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #111827;
    background: linear-gradient(135deg, #fde68a, #fb923c);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}

.card-body {
    padding: 15px;
}

.card-title {
    display: block;
    overflow: hidden;
    color: inherit;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.card-meta {
    margin: 7px 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.dark-section .card-meta,
.ranking-preview .card-meta {
    color: var(--text-soft);
}

.card-desc {
    min-height: 42px;
    margin: 0 0 12px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark-section .card-desc,
.ranking-preview .card-desc {
    color: var(--text-soft);
}

.card-tags,
.tag-cloud,
.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.card-tags span,
.tag-cloud span,
.pill-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 800;
}

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

.category-tile {
    min-height: 240px;
    padding: 24px;
    border-radius: 24px;
    color: white;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transition: transform 0.4s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.92));
}

.category-tile span,
.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 2;
    display: block;
}

.category-tile span {
    margin-top: 80px;
    font-size: 26px;
    font-weight: 900;
}

.category-tile strong {
    margin-top: 8px;
    color: #fde68a;
}

.category-tile em {
    margin-top: 12px;
    color: var(--text-soft);
    font-size: 13px;
    font-style: normal;
    line-height: 1.6;
}

.library-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.library-tools input {
    width: min(100%, 520px);
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    outline: 0;
    padding: 14px 18px;
    background: white;
}

.library-tools span {
    color: var(--ink-soft);
    font-weight: 700;
}

.page-hero {
    width: min(calc(100% - 32px), var(--max));
    margin: 32px auto 0;
    min-height: 360px;
    display: flex;
    align-items: center;
    padding: 56px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 78% 22%, rgba(245, 158, 11, 0.28), transparent 30%),
        linear-gradient(135deg, #07111f, #172554 54%, #0f172a);
    box-shadow: var(--shadow);
}

.page-hero.slim {
    min-height: 270px;
}

.page-hero p:not(.eyebrow) {
    max-width: 780px;
    margin: 18px 0 0;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #f8fafc;
}

.category-cover-stack {
    min-height: 180px;
    border-radius: 20px;
}

.category-cover-stack img {
    position: absolute;
    width: 52%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 4px solid white;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

.category-cover-stack img:nth-child(1) {
    left: 12px;
    top: 18px;
    z-index: 4;
}

.category-cover-stack img:nth-child(2) {
    left: 54px;
    top: 8px;
    z-index: 3;
}

.category-cover-stack img:nth-child(3) {
    left: 86px;
    top: 28px;
    z-index: 2;
}

.category-cover-stack img:nth-child(4) {
    left: 116px;
    top: 18px;
    z-index: 1;
}

.category-overview-card h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.category-overview-card p {
    color: var(--ink-soft);
    line-height: 1.8;
}

.rank-table {
    display: grid;
    gap: 10px;
}

.rank-row {
    display: grid;
    grid-template-columns: 56px 64px minmax(0, 1fr) 140px 90px 60px;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row img {
    width: 64px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
    background: #0f172a;
}

.rank-row strong,
.rank-row em {
    color: var(--accent);
    font-size: 20px;
    font-style: normal;
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.search-panel {
    min-height: 620px;
}

.advanced-search {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto auto;
    align-items: end;
    gap: 16px;
    margin-bottom: 24px;
}

.advanced-search label {
    display: grid;
    gap: 8px;
    color: var(--ink-soft);
    font-weight: 800;
}

.advanced-search input,
.advanced-search select {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    outline: 0;
    padding: 13px 14px;
    background: white;
}

.search-status {
    margin-bottom: 20px;
    color: var(--ink-soft);
    font-weight: 800;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.pagination button {
    min-width: 42px;
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: white;
}

.pagination button.is-active {
    color: #111827;
    border-color: transparent;
    background: linear-gradient(135deg, #fde68a, var(--accent));
}

.detail-layout {
    width: min(calc(100% - 32px), var(--max));
    margin: 32px auto 56px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--text-soft);
    font-size: 14px;
}

.breadcrumbs a {
    color: #fde68a;
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
    gap: 28px;
}

.player-panel,
.detail-content,
.related-section {
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: var(--shadow);
}

.player-panel {
    overflow: hidden;
}

.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at center, rgba(245, 158, 11, 0.20), transparent 30%),
        #020617;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.84));
}

.player-overlay span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, #fde68a, var(--accent));
    box-shadow: 0 18px 46px rgba(245, 158, 11, 0.35);
}

.player-overlay.is-hidden {
    display: none;
}

.player-message {
    position: absolute;
    left: 18px;
    bottom: 16px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(2, 6, 23, 0.72);
    font-size: 13px;
    pointer-events: none;
}

.detail-content {
    padding: 30px;
}

.detail-content h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: -0.05em;
}

.detail-one-line {
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

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

.detail-meta-grid div {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.detail-meta-grid span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
}

.detail-meta-grid strong {
    display: block;
    margin-top: 5px;
    color: white;
}

.detail-content section {
    margin-top: 28px;
}

.detail-content h2 {
    margin: 0 0 12px;
    color: #fde68a;
    font-size: 24px;
}

.detail-content section p {
    margin: 0;
    color: var(--text-soft);
    line-height: 2;
}

.related-section {
    margin-top: 28px;
    padding: 30px;
    color: white;
}

.site-footer {
    margin-top: 64px;
    color: var(--text-soft);
    background: #06111f;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

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

.footer-brand {
    margin-bottom: 16px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: white;
}

.site-footer p {
    max-width: 420px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.footer-links a:hover {
    color: #fde68a;
}

.copyright {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
    padding: 20px 0 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text-muted);
    font-size: 14px;
}

[data-fallback-image].is-missing {
    opacity: 0;
}

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

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

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

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

@media (max-width: 900px) {
    .main-nav,
    .quick-search {
        display: none;
    }

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

    .hero-stage {
        min-height: 720px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 36px;
    }

    .hero-poster {
        width: min(100%, 280px);
    }

    .hero-dots {
        left: 36px;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-section {
        padding: 24px;
    }

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

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

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

    .rank-row {
        grid-template-columns: 44px 56px minmax(0, 1fr) 48px;
    }

    .rank-row span:nth-of-type(2),
    .rank-row span:nth-of-type(3) {
        display: none;
    }

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

@media (max-width: 620px) {
    .header-inner {
        height: 64px;
        padding: 0 16px;
    }

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

    .brand-icon {
        width: 36px;
        height: 36px;
    }

    .hero-slider,
    .page-hero,
    .content-section,
    .detail-layout,
    .stats-bar {
        width: min(calc(100% - 20px), var(--max));
    }

    .hero-stage {
        min-height: 650px;
        border-radius: 24px;
    }

    .hero-slide,
    .page-hero {
        padding: 26px;
    }

    .hero-content h1,
    .page-hero h1 {
        font-size: 40px;
    }

    .hero-summary {
        font-size: 16px;
    }

    .stats-bar,
    .movie-grid,
    .all-library-grid,
    .compact-grid,
    .category-grid,
    .advanced-search,
    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .library-tools,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .category-tile {
        min-height: 210px;
    }

    .detail-content,
    .related-section {
        padding: 22px;
    }
}
