:root {
    --page-bg: #fff7ed;
    --page-bg-soft: #fffbeb;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-strong: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fde68a;
    --brand: #f59e0b;
    --brand-deep: #ea580c;
    --brand-soft: #fef3c7;
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.15);
    --shadow-soft: 0 10px 28px rgba(146, 64, 14, 0.10);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 28rem),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 24rem),
        linear-gradient(135deg, #fffbeb 0%, #fff7ed 48%, #fffbeb 100%);
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.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;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.96));
    border-bottom: 1px solid rgba(251, 191, 36, 0.35);
    box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
    backdrop-filter: blur(18px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 24px;
}

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

.brand-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 12px 20px rgba(249, 115, 22, 0.24);
    transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
    transform: rotate(10deg) scale(1.04);
}

.brand-icon span {
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #ffffff;
}

.brand-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #d97706, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

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

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

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

.header-search {
    position: relative;
    flex: 0 1 280px;
}

.header-search input,
.mobile-nav input,
.hero-search input,
.filter-input,
.filter-select {
    width: 100%;
    border: 1px solid #fcd34d;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    height: 42px;
    padding: 0 18px;
}

.header-search input:focus,
.mobile-nav input:focus,
.hero-search input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
    background: #ffffff;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(254, 243, 199, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #92400e;
}

.mobile-nav {
    display: none;
    padding: 14px 20px 20px;
    border-top: 1px solid rgba(251, 191, 36, 0.45);
    background: rgba(255, 255, 255, 0.98);
}

.mobile-nav form {
    margin-bottom: 16px;
}

.mobile-nav input {
    height: 44px;
    padding: 0 16px;
}

.mobile-nav-link {
    display: block;
    padding: 11px 4px;
}

.hero-carousel {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #111827;
    color: #ffffff;
}

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

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-slide.is-active .hero-image {
    animation: heroZoom 8s ease forwards;
}

@keyframes heroZoom {
    from {
        transform: scale(1.02);
    }

    to {
        transform: scale(1.08);
    }
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.54) 48%, rgba(0, 0, 0, 0.08) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 44%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 70vh;
    padding: 76px 0;
}

.hero-copy {
    max-width: 700px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #fbbf24;
    font-size: 18px;
    font-weight: 800;
}

.hero-kicker::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #fbbf24;
    box-shadow: 0 0 0 8px rgba(251, 191, 36, 0.2);
}

.hero-title {
    margin: 0 0 14px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-movie-title {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;
}

.hero-description {
    margin: 0 0 26px;
    max-width: 660px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    line-height: 1.75;
}

.hero-tags,
.detail-tags,
.tag-list,
.category-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.tag-list span,
.category-pill-list a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
}

.hero-tags span {
    padding: 9px 15px;
    background: rgba(245, 158, 11, 0.9);
    color: #ffffff;
}

.hero-actions,
.section-heading,
.detail-actions,
.filter-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.text-button,
.hero-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    border: 0;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.hero-search button {
    padding: 0 26px;
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.secondary-button {
    padding: 0 24px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.text-button {
    min-height: auto;
    color: var(--brand-deep);
}

.primary-button:hover,
.secondary-button:hover,
.text-button:hover,
.hero-search button:hover {
    transform: translateY(-2px) scale(1.02);
}

.primary-button:hover,
.hero-search button:hover {
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.34);
}

.hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    max-width: 620px;
    margin-top: 28px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.hero-search input {
    height: 48px;
    padding: 0 20px;
    border-color: transparent;
}

.hero-search button {
    min-width: 116px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(10px);
    font-size: 26px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.66);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: #fbbf24;
}

.main-content,
.page-content,
.detail-main {
    padding: 56px 0 78px;
}

.section-block {
    margin-top: 58px;
}

.section-block:first-child {
    margin-top: 0;
}

.section-heading {
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.22);
}

.section-heading h2,
.page-title,
.detail-info h1,
.story-section h2,
.player-section h2,
.related-section h2 {
    margin: 0;
    color: #1f2937;
}

.section-heading h2 {
    font-size: clamp(26px, 3vw, 36px);
}

.section-subtitle,
.page-intro,
.category-intro,
.filter-hint {
    color: var(--muted);
    line-height: 1.75;
}

.section-subtitle {
    margin: 6px 0 0;
}

.movie-rail {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 2px 20px;
    scroll-snap-type: x proximity;
}

.movie-rail .movie-card {
    width: 220px;
    flex: 0 0 220px;
    scroll-snap-align: start;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.38);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(245, 158, 11, 0.68);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 48%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-link::after {
    opacity: 1;
}

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

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

.score-badge,
.type-badge,
.rank-mark,
.year-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.score-badge {
    top: 10px;
    right: 10px;
    padding: 6px 9px;
    background: rgba(245, 158, 11, 0.92);
}

.type-badge {
    left: 10px;
    bottom: 10px;
    padding: 6px 9px;
    background: rgba(17, 24, 39, 0.72);
}

.rank-mark {
    top: 10px;
    left: 10px;
    min-width: 34px;
    height: 34px;
    justify-content: center;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.24);
}

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

.movie-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 10px 0 8px;
    overflow: hidden;
    color: #111827;
    font-size: 17px;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card h3 a:hover {
    color: var(--brand-deep);
}

.movie-card p {
    display: -webkit-box;
    min-height: 66px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tag-list span {
    padding: 5px 9px;
    background: #fff7ed;
    color: #b45309;
    font-size: 12px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 172px;
    padding: 22px;
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.42), transparent 60%),
        rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile h2,
.category-tile h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-tile p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.category-arrow {
    position: absolute;
    right: 20px;
    bottom: 18px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.page-hero {
    padding: 54px 0 32px;
}

.page-title {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.page-intro {
    max-width: 780px;
    margin: 18px 0 0;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--brand-deep);
}

.filter-panel {
    margin: 28px 0 28px;
    padding: 18px;
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
}

.filter-row {
    align-items: stretch;
}

.filter-input,
.filter-select {
    min-height: 46px;
    padding: 0 16px;
}

.filter-input {
    flex: 1 1 260px;
}

.filter-select {
    flex: 0 1 178px;
}

.filter-hint {
    margin: 12px 0 0;
    font-size: 14px;
}

.category-pill-list {
    margin-top: 24px;
}

.category-pill-list a {
    padding: 10px 15px;
    color: #9a3412;
    background: #ffedd5;
    transition: transform 0.2s ease, background 0.2s ease;
}

.category-pill-list a:hover,
.category-pill-list a.active {
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    transform: translateY(-2px);
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;
    padding: 28px;
    border: 1px solid rgba(251, 191, 36, 0.46);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.36), transparent 36rem),
        rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    box-shadow: 0 24px 50px rgba(146, 64, 14, 0.18);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-info h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-one-line {
    margin: 18px 0 24px;
    color: #4b5563;
    font-size: 19px;
    line-height: 1.75;
}

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

.meta-box {
    padding: 13px;
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 16px;
    background: rgba(255, 251, 235, 0.84);
}

.meta-box span {
    display: block;
    margin-bottom: 4px;
    color: #b45309;
    font-size: 12px;
    font-weight: 800;
}

.meta-box strong {
    color: #111827;
    font-size: 15px;
}

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

.detail-tags span {
    padding: 8px 12px;
    color: #9a3412;
    background: #ffedd5;
}

.player-section,
.story-section,
.related-section {
    margin-top: 42px;
    padding: 28px;
    border: 1px solid rgba(251, 191, 36, 0.44);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

.player-section h2,
.story-section h2,
.related-section h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    padding-left: 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.12), 0 18px 44px rgba(249, 115, 22, 0.35);
    font-size: 44px;
}

.story-section p {
    margin: 0 0 18px;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

.story-section p:last-child {
    margin-bottom: 0;
}

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

.related-grid .movie-card h3 {
    font-size: 15px;
}

.related-grid .movie-card p {
    min-height: 0;
    -webkit-line-clamp: 2;
}

.site-footer {
    border-top: 1px solid rgba(251, 191, 36, 0.45);
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
    padding: 44px 0 28px;
}

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

.site-footer p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

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

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--brand-deep);
}

.footer-bottom {
    padding: 18px 0 24px;
    border-top: 1px solid rgba(251, 191, 36, 0.45);
    color: var(--muted);
    text-align: center;
}

.empty-result {
    display: none;
    padding: 36px;
    border: 1px dashed rgba(245, 158, 11, 0.6);
    border-radius: var(--radius-lg);
    color: #92400e;
    background: rgba(254, 243, 199, 0.7);
    text-align: center;
}

.empty-result.is-visible {
    display: block;
}

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

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

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

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

    .mobile-menu-button {
        display: inline-flex;
    }

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

    .hero-carousel,
    .hero-content {
        min-height: 76vh;
    }

    .hero-content {
        padding: 68px 0 88px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-search {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

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

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

    .detail-poster img {
        min-height: auto;
        aspect-ratio: 2 / 3;
    }

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

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

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

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

    .brand-icon {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-movie-title {
        font-size: 32px;
    }

    .hero-description,
    .detail-one-line,
    .page-intro {
        font-size: 16px;
    }

    .main-content,
    .page-content,
    .detail-main {
        padding-bottom: 56px;
    }

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

    .movie-rail .movie-card {
        width: 185px;
        flex-basis: 185px;
    }

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

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

    .detail-hero,
    .player-section,
    .story-section,
    .related-section {
        padding: 18px;
        border-radius: 22px;
    }

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

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