* {
    box-sizing: border-box;
}

:root {
    --color-ink: #292524;
    --color-muted: #78716c;
    --color-soft: #fafaf9;
    --color-paper: #fffaf0;
    --color-line: #e7e5e4;
    --color-amber: #d97706;
    --color-amber-dark: #92400e;
    --color-amber-deep: #451a03;
    --color-black: #0c0a09;
    --shadow-soft: 0 18px 45px rgba(69, 26, 3, 0.12);
    --shadow-card: 0 14px 30px rgba(41, 37, 36, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-ink);
    background: linear-gradient(180deg, #fafaf9 0%, #fffbeb 42%, #f5f5f4 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(69, 26, 3, 0.96), rgba(146, 64, 14, 0.94), rgba(69, 26, 3, 0.96));
    box-shadow: 0 10px 30px rgba(69, 26, 3, 0.22);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fffbeb;
    flex-shrink: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #451a03;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.38);
}

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

.brand-text strong {
    font-size: 22px;
    letter-spacing: 0.02em;
}

.brand-text small {
    margin-top: 4px;
    color: #fde68a;
    font-size: 12px;
}

.header-search {
    flex: 1;
    max-width: 420px;
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.header-search input {
    width: 100%;
    height: 42px;
    border: 1px solid rgba(251, 191, 36, 0.32);
    border-radius: 999px;
    background: rgba(69, 26, 3, 0.45);
    color: #fff7ed;
    padding: 0 88px 0 18px;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input::placeholder {
    color: rgba(253, 230, 138, 0.72);
}

.header-search input:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18);
}

.header-search button {
    position: absolute;
    right: 4px;
    height: 34px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #d97706;
    color: #fff7ed;
    cursor: pointer;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fffbeb;
}

.nav-link,
.nav-dropdown > button {
    border: 0;
    background: transparent;
    color: #fffbeb;
    cursor: pointer;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown > button:hover {
    color: #fde68a;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    width: 180px;
    padding: 8px;
    display: grid;
    gap: 2px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--color-ink);
    font-weight: 700;
}

.nav-dropdown-menu a:hover {
    background: #fffbeb;
    color: var(--color-amber-dark);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 999px;
    background: rgba(69, 26, 3, 0.55);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fde68a;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    gap: 10px;
}

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

.mobile-nav a,
.mobile-nav button {
    color: #fffbeb;
    font-weight: 700;
}

.mobile-nav form {
    display: flex;
    gap: 8px;
}

.mobile-nav input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(251, 191, 36, 0.32);
    border-radius: 999px;
    background: rgba(69, 26, 3, 0.45);
    color: #fff7ed;
    padding: 10px 14px;
    outline: 0;
}

.mobile-nav button {
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    background: #d97706;
}

.hero {
    position: relative;
    height: min(72vh, 650px);
    min-height: 480px;
    overflow: hidden;
    background: #0c0a09;
}

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

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(90deg, rgba(69, 26, 3, 0.85), rgba(69, 26, 3, 0.2));
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    right: 24px;
    bottom: 82px;
    max-width: 720px;
    color: white;
}

.hero-kicker,
.detail-kicker,
.page-hero span,
.section-heading span,
.category-card-large span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    font-weight: 900;
}

.hero-content h1 {
    margin: 14px 0 16px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-content p {
    margin: 0;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.hero-meta span {
    padding: 7px 12px;
    border: 1px solid rgba(253, 230, 138, 0.28);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(69, 26, 3, 0.36);
    backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    background: #d97706;
    color: white;
    box-shadow: 0 14px 30px rgba(217, 119, 6, 0.28);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: #b45309;
    box-shadow: 0 18px 36px rgba(217, 119, 6, 0.38);
}

.ghost-button {
    border: 1px solid rgba(253, 230, 138, 0.42);
    color: #fffbeb;
    background: rgba(0, 0, 0, 0.28);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.48);
    color: white;
    font-size: 34px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 34px;
    background: #fbbf24;
    border-color: #fbbf24;
}

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

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

.section-heading h2 {
    margin: 8px 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

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

.section-link {
    min-width: max-content;
    border: 1px solid #fcd34d;
    color: var(--color-amber-dark);
    background: #fffbeb;
}

.section-link:hover {
    transform: translateY(-2px);
    background: #fef3c7;
}

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

.category-tile,
.category-card-large {
    position: relative;
    min-height: 150px;
    padding: 24px;
    border: 1px solid rgba(252, 211, 77, 0.42);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.94));
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile::after,
.category-card-large::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -58px;
    top: -54px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.24);
}

.category-tile:hover,
.category-card-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 45px rgba(146, 64, 14, 0.18);
}

.category-tile strong,
.category-card-large h2 {
    display: block;
    position: relative;
    z-index: 1;
    color: var(--color-amber-deep);
    font-size: 24px;
    margin: 0 0 12px;
}

.category-tile span,
.category-card-large p {
    position: relative;
    z-index: 1;
    display: block;
    color: var(--color-muted);
    line-height: 1.7;
}

.category-card-large b {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-top: 18px;
    color: var(--color-amber-dark);
}

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

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(231, 229, 228, 0.9);
    box-shadow: 0 12px 28px rgba(41, 37, 36, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.72);
    box-shadow: var(--shadow-card);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #451a03, #92400e);
}

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

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.78) 100%);
}

.play-chip {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.92);
    color: white;
    font-size: 12px;
    font-weight: 900;
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fbbf24;
    color: #451a03;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 9px 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--color-amber-dark);
}

.movie-card p {
    display: -webkit-box;
    min-height: 45px;
    margin: 0 0 12px;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.65;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #fffbeb;
    color: var(--color-amber-dark);
    font-size: 12px;
    font-weight: 800;
}

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

.region-block {
    padding: 20px;
    border: 1px solid rgba(252, 211, 77, 0.36);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.region-block h3 {
    margin: 0 0 14px;
    color: var(--color-amber-deep);
}

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

.mini-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
}

.mini-card img {
    width: 54px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
    background: #451a03;
}

.mini-card strong,
.mini-card small {
    display: block;
}

.mini-card strong {
    line-height: 1.35;
}

.mini-card small {
    margin-top: 5px;
    color: var(--color-muted);
}

.page-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 25% 10%, rgba(251, 191, 36, 0.28), transparent 30%), linear-gradient(135deg, #451a03, #92400e 48%, #0c0a09);
    color: #fffbeb;
}

.compact-hero {
    min-height: 310px;
    display: flex;
    align-items: end;
    padding: 0 max(24px, calc((100vw - 1280px) / 2 + 24px)) 54px;
}

.compact-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.compact-hero p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 251, 235, 0.8);
    line-height: 1.8;
}

.filter-panel {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(252, 211, 77, 0.42);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 32px rgba(41, 37, 36, 0.06);
}

.filter-search {
    flex: 1;
    min-width: 220px;
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--color-amber-deep);
    font-size: 13px;
    font-weight: 900;
}

.filter-search input,
.filter-selects select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #e7e5e4;
    border-radius: 14px;
    background: #fffbeb;
    color: var(--color-ink);
    padding: 0 13px;
    outline: 0;
}

.filter-search input:focus,
.filter-selects select:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18);
}

.filter-selects {
    display: flex;
    align-items: center;
    gap: 12px;
}

.empty-state {
    display: none;
    margin-top: 22px;
    padding: 34px;
    border: 1px dashed #fbbf24;
    border-radius: var(--radius-lg);
    color: var(--color-muted);
    text-align: center;
    background: rgba(255, 251, 235, 0.78);
}

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

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #fffbeb;
    background: #0c0a09;
}

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

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px);
    transform: scale(1.08);
    opacity: 0.62;
}

.detail-backdrop div {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #0c0a09 0%, rgba(12, 10, 9, 0.72) 42%, rgba(69, 26, 3, 0.45) 100%);
}

.detail-inner {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(255, 251, 235, 0.72);
    font-size: 14px;
}

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

.breadcrumb em {
    font-style: normal;
    color: #fde68a;
}

.detail-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 42px;
    align-items: end;
    margin-top: 60px;
}

.detail-poster {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.42);
    background: linear-gradient(135deg, #451a03, #92400e);
}

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

.detail-copy h1 {
    max-width: 820px;
    margin: 16px 0 18px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 760px;
    margin: 0 0 20px;
    color: rgba(255, 251, 235, 0.84);
    font-size: 18px;
    line-height: 1.85;
}

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

.detail-tags span {
    background: rgba(255, 251, 235, 0.12);
    color: #fde68a;
    border: 1px solid rgba(253, 230, 138, 0.24);
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 30px;
    align-items: start;
}

.player-card,
.detail-text {
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(231, 229, 228, 0.9);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0c0a09;
}

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #0c0a09;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.5));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-overlay span {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #d97706;
    color: white;
    font-size: 32px;
    box-shadow: 0 22px 48px rgba(217, 119, 6, 0.38);
    transition: transform 0.2s ease;
}

.player-overlay:hover span {
    transform: scale(1.08);
}

.detail-text {
    padding: 28px;
}

.detail-text h2 {
    margin: 0 0 12px;
    color: var(--color-amber-deep);
    font-size: 24px;
}

.detail-text p {
    margin: 0 0 24px;
    color: var(--color-muted);
    line-height: 1.9;
}

.movie-info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.movie-info-list div {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #e7e5e4;
}

.movie-info-list dt {
    color: var(--color-muted);
    font-weight: 800;
}

.movie-info-list dd {
    margin: 0;
    color: var(--color-ink);
    font-weight: 800;
}

.site-footer {
    margin-top: 40px;
    color: rgba(255, 251, 235, 0.82);
    background: linear-gradient(135deg, #451a03, #0c0a09);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 30px;
}

.footer-inner strong {
    color: #fffbeb;
    font-size: 22px;
}

.footer-inner p {
    max-width: 620px;
    margin: 10px 0 0;
    color: rgba(255, 251, 235, 0.68);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 251, 235, 0.1);
    color: #fde68a;
}

.footer-links a:hover {
    background: rgba(255, 251, 235, 0.18);
}

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

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

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

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

    .hero {
        min-height: 560px;
    }

    .hero-content {
        left: 22px;
        bottom: 76px;
    }

    .hero-arrow {
        top: auto;
        bottom: 22px;
        transform: none;
    }

    .hero-arrow:hover {
        transform: scale(1.05);
    }

    .hero-prev {
        left: 22px;
    }

    .hero-next {
        left: 76px;
        right: auto;
    }

    .hero-dots {
        left: auto;
        right: 22px;
        transform: none;
    }

    .section-heading,
    .footer-inner,
    .filter-panel,
    .filter-selects {
        flex-direction: column;
        align-items: stretch;
    }

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

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

@media (max-width: 640px) {
    .header-inner {
        min-height: 66px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

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

    .brand-text small {
        display: none;
    }

    .hero {
        min-height: 520px;
    }

    .hero-content h1,
    .compact-hero h1,
    .detail-copy h1 {
        letter-spacing: -0.04em;
    }

    .content-section {
        padding: 42px 0;
    }

    .movie-grid,
    .featured-grid,
    .ranking-grid,
    .related-grid,
    .category-tile-grid,
    .category-large-grid,
    .region-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

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

    .movie-card p {
        font-size: 12px;
    }

    .compact-hero {
        min-height: 280px;
        padding-bottom: 40px;
    }

    .detail-inner {
        padding-top: 28px;
    }

    .detail-layout {
        gap: 24px;
        margin-top: 34px;
    }

    .detail-text {
        padding: 20px;
    }
}
