:root {
    --night-950: #090d12;
    --night-900: #0d1117;
    --night-850: #121820;
    --night-800: #161b22;
    --night-700: #21262d;
    --night-600: #30363d;
    --night-300: #8b949e;
    --night-200: #c9d1d9;
    --night-100: #e6edf3;
    --swamp-900: #101c17;
    --swamp-800: #1a2620;
    --swamp-700: #243329;
    --moss-600: #4d7348;
    --moss-500: #628f5c;
    --moss-400: #7aaa73;
    --moss-300: #96c48f;
    --moss-200: #b5dcaf;
    --line: rgba(150, 196, 143, 0.14);
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
    --radius: 20px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--night-900);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--night-100);
    background:
        radial-gradient(circle at 12% 8%, rgba(77, 115, 72, 0.22), transparent 32rem),
        radial-gradient(circle at 92% 18%, rgba(36, 51, 41, 0.38), transparent 34rem),
        linear-gradient(180deg, var(--night-950), var(--night-900) 28rem, #0b0f14 100%);
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--moss-600), var(--swamp-700));
    box-shadow: 0 0 32px rgba(122, 170, 115, 0.22);
}

.brand-text strong,
.brand-text em {
    display: block;
    line-height: 1.1;
}

.brand-text strong {
    color: var(--moss-300);
    font-size: 19px;
    letter-spacing: 0.02em;
}

.brand-text em {
    margin-top: 4px;
    color: var(--night-300);
    font-size: 12px;
    font-style: normal;
}

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

.nav-link,
.mobile-link {
    color: var(--night-200);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 14px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--moss-200);
    background: rgba(150, 196, 143, 0.1);
}

.header-search {
    display: flex;
    align-items: center;
    min-width: 300px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(22, 27, 34, 0.9);
    overflow: hidden;
}

.header-search input,
.mobile-search input,
.home-search input,
.filter-controls input,
.filter-controls select {
    border: 0;
    color: var(--night-100);
    outline: none;
    background: transparent;
}

.header-search input {
    width: 100%;
    padding: 11px 14px;
}

.header-search button,
.mobile-search button,
.home-search button {
    border: 0;
    color: white;
    background: var(--moss-600);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button {
    align-self: stretch;
    padding: 0 16px;
}

.header-search button:hover,
.mobile-search button:hover,
.home-search button:hover,
.primary-button:hover {
    background: var(--moss-500);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(22, 27, 34, 0.9);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 99px;
    background: var(--night-100);
}

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

.mobile-link {
    display: block;
    padding: 12px;
    border-radius: 12px;
}

.mobile-search {
    display: flex;
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.mobile-search input {
    flex: 1;
    padding: 12px;
    background: rgba(22, 27, 34, 0.95);
}

.mobile-search button {
    padding: 0 18px;
}

.hero {
    position: relative;
    height: min(78vh, 820px);
    min-height: 620px;
    overflow: hidden;
    background: var(--night-900);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.04);
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 13, 18, 0.96) 0%, rgba(9, 13, 18, 0.78) 42%, rgba(9, 13, 18, 0.28) 100%),
        linear-gradient(0deg, var(--night-900) 0%, transparent 36%),
        radial-gradient(circle at 72% 26%, rgba(150, 196, 143, 0.14), transparent 24rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 48px;
    padding-top: 48px;
}

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

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border: 1px solid rgba(150, 196, 143, 0.24);
    border-radius: 999px;
    color: var(--moss-300);
    background: rgba(26, 38, 32, 0.75);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-hero h1 {
    margin: 0;
    color: white;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.hero h1,
.hero h2 {
    max-width: 900px;
    font-size: clamp(42px, 7vw, 84px);
}

.hero-slide h1 + h2 {
    margin-top: 12px;
    color: var(--moss-200);
    font-size: clamp(30px, 4.2vw, 56px);
}

.hero p,
.page-hero p,
.detail-hero p {
    max-width: 720px;
    margin: 22px 0 0;
    color: var(--night-200);
    font-size: 18px;
    line-height: 1.75;
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span {
    border: 1px solid rgba(150, 196, 143, 0.18);
    border-radius: 999px;
    color: var(--moss-200);
    background: rgba(13, 17, 23, 0.52);
}

.hero-tags span {
    padding: 7px 10px;
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.primary-button,
.ghost-button,
.inline-link,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button,
.ghost-button {
    min-height: 48px;
    padding: 0 22px;
}

.primary-button {
    color: white;
    background: var(--moss-600);
    box-shadow: 0 16px 38px rgba(77, 115, 72, 0.28);
}

.ghost-button {
    border: 1px solid rgba(150, 196, 143, 0.24);
    color: var(--moss-200);
    background: rgba(13, 17, 23, 0.54);
}

.primary-button:hover,
.ghost-button:hover,
.inline-link:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.ghost-button:hover {
    border-color: rgba(181, 220, 175, 0.55);
    background: rgba(150, 196, 143, 0.12);
}

.hero-poster {
    position: relative;
    display: block;
    border: 1px solid rgba(150, 196, 143, 0.18);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34));
}

.hero-poster img {
    aspect-ratio: 3 / 4.4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

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

.hero-dot {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 99px;
    background: rgba(201, 209, 217, 0.32);
    cursor: pointer;
}

.hero-dot.active {
    background: var(--moss-300);
}

.home-search-shell {
    position: relative;
    z-index: 5;
    width: min(980px, calc(100% - 32px));
    margin: -38px auto 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(22, 27, 34, 0.86);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.home-search {
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(150, 196, 143, 0.18);
    border-radius: 999px;
    background: rgba(13, 17, 23, 0.82);
}

.home-search input {
    flex: 1;
    min-width: 0;
    padding: 16px 20px;
}

.home-search button {
    padding: 0 28px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.quick-links a {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--night-200);
    background: rgba(150, 196, 143, 0.08);
}

.content-section,
.filter-panel,
.detail-layout {
    width: min(1280px, calc(100% - 32px));
    margin: 72px auto 0;
}

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

.section-heading h2,
.filter-panel h2,
.aside-title h2,
.detail-copy h2,
.info-card h2,
.footer-brand h2,
.footer-column h3 {
    margin: 0;
    color: white;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.03em;
}

.section-heading p,
.filter-panel p,
.footer-brand p,
.movie-card p,
.horizontal-info p,
.category-card-large p {
    color: var(--night-300);
    line-height: 1.7;
}

.section-heading p {
    margin: 10px 0 0;
    max-width: 760px;
}

.section-more,
.inline-link {
    min-width: max-content;
    color: var(--moss-200);
}

.section-more {
    padding: 9px 14px;
    border: 1px solid rgba(150, 196, 143, 0.2);
    background: rgba(150, 196, 143, 0.07);
}

.category-strip,
.movie-grid,
.category-large-grid {
    display: grid;
    gap: 18px;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--night-800);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

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

.category-tile:hover img,
.category-card-large:hover img,
.movie-card:hover img,
.horizontal-card:hover img {
    transform: scale(1.06);
}

.tile-shade,
.poster-shade,
.category-card-cover span {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.86) 100%);
}

.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 1;
}

.category-tile strong {
    color: white;
    font-size: 20px;
}

.category-tile em {
    margin-top: 8px;
    color: var(--night-200);
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
}

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

.movie-card,
.horizontal-card,
.filter-panel,
.category-card-large,
.side-card,
.player-card,
.detail-copy {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.96), rgba(16, 24, 20, 0.9));
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover,
.horizontal-card:hover,
.category-card-large:hover {
    transform: translateY(-4px);
    border-color: rgba(150, 196, 143, 0.34);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--swamp-800);
}

.poster-link img {
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.rank-badge {
    top: 10px;
    left: 10px;
    padding: 6px 9px;
    color: #101c17;
    background: var(--moss-300);
}

.watch-pill {
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    color: white;
    background: rgba(13, 17, 23, 0.72);
    backdrop-filter: blur(8px);
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--night-300);
    font-size: 12px;
}

.card-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: rgba(201, 209, 217, 0.28);
}

.movie-card h3,
.horizontal-info h3 {
    margin: 9px 0 0;
    color: white;
    line-height: 1.35;
}

.movie-card h3 {
    min-height: 48px;
    font-size: 16px;
}

.movie-card h3 a:hover,
.horizontal-info h3 a:hover,
.info-card a:hover {
    color: var(--moss-300);
}

.movie-card p {
    min-height: 70px;
    margin: 10px 0 0;
    font-size: 13px;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    padding: 5px 8px;
    font-size: 11px;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: start;
    gap: 24px;
}

.hot-aside {
    position: sticky;
    top: 96px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(22, 27, 34, 0.78);
}

.aside-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.aside-title span,
.hot-number {
    color: var(--moss-300);
    font-weight: 900;
}

.aside-title a {
    color: var(--moss-200);
    font-size: 13px;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.horizontal-cover {
    border-radius: 14px;
    overflow: hidden;
    background: var(--swamp-800);
}

.horizontal-cover img {
    height: 126px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.horizontal-info h3 {
    font-size: 15px;
}

.horizontal-info p {
    margin: 8px 0 8px;
    font-size: 12px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--night-800);
    background-size: cover;
    background-position: center;
}

.page-hero {
    width: min(1280px, calc(100% - 32px));
    margin: 32px auto 0;
    padding: 70px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        radial-gradient(circle at 88% 16%, rgba(150, 196, 143, 0.17), transparent 24rem),
        linear-gradient(135deg, rgba(26, 38, 32, 0.95), rgba(13, 17, 23, 0.95));
}

.page-hero h1 {
    font-size: clamp(38px, 6vw, 70px);
}

.filter-panel {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
}

.filter-panel p {
    margin: 8px 0 0;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.filter-controls input,
.filter-controls select {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(13, 17, 23, 0.78);
}

.filter-controls select option {
    color: var(--night-100);
    background: var(--night-800);
}

.empty-state {
    display: none;
    width: 100%;
    margin: 18px 0 0;
    padding: 18px;
    border-radius: 16px;
    color: var(--night-200);
    background: rgba(150, 196, 143, 0.07);
}

.empty-state.show {
    display: block;
}

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

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

.category-card-large {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card-cover {
    position: relative;
    min-height: 220px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 18px;
    overflow: hidden;
    background: var(--swamp-800);
}

.category-card-cover img {
    position: relative;
}

.category-card-large h2 {
    margin: 0;
    color: white;
    font-size: 26px;
}

.category-card-large p {
    margin: 12px 0 18px;
}

.detail-hero {
    min-height: 520px;
    display: flex;
    align-items: flex-end;
}

.detail-hero-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 13, 18, 0.98), rgba(9, 13, 18, 0.68), rgba(9, 13, 18, 0.18)),
        linear-gradient(0deg, var(--night-900), transparent 44%);
}

.detail-hero-content {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 90px 0 64px;
}

.detail-hero h1 {
    max-width: 900px;
    font-size: clamp(40px, 7vw, 82px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--night-300);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--moss-300);
}

.breadcrumb em {
    color: var(--night-200);
    font-style: normal;
}

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

.player-card {
    position: relative;
    overflow: hidden;
    background: #000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: white;
    background: radial-gradient(circle at center, rgba(13, 17, 23, 0.24), rgba(0, 0, 0, 0.68));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--moss-600);
    box-shadow: 0 0 38px rgba(150, 196, 143, 0.32);
}

.play-icon::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid white;
}

.player-overlay strong {
    font-size: 18px;
}

.detail-copy {
    margin-top: 20px;
    padding: 28px;
}

.detail-copy h2 {
    margin-top: 0;
    font-size: 28px;
}

.detail-copy h2:not(:first-child) {
    margin-top: 30px;
}

.detail-copy p {
    color: var(--night-200);
    font-size: 17px;
    line-height: 1.9;
}

.detail-side {
    display: grid;
    gap: 18px;
    align-content: start;
}

.side-card {
    padding: 18px;
}

.poster-card img {
    border-radius: 16px;
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
    margin-bottom: 16px;
}

.poster-card .primary-button {
    width: 100%;
}

.info-card dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.info-card dt {
    color: var(--night-300);
    font-size: 12px;
}

.info-card dd {
    margin: 4px 0 0;
    color: var(--night-100);
    line-height: 1.5;
}

.site-footer {
    margin-top: 90px;
    border-top: 1px solid var(--line);
    background: rgba(13, 17, 23, 0.9);
}

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

.footer-brand p {
    max-width: 560px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    columns: 2;
}

.footer-column li {
    margin-bottom: 9px;
}

.footer-column a {
    color: var(--night-300);
}

.footer-column a:hover {
    color: var(--moss-300);
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 30px;
    color: var(--night-300);
    border-top: 1px solid rgba(150, 196, 143, 0.1);
    font-size: 14px;
}

@media (max-width: 1180px) {
    .header-search {
        display: none;
    }

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

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

    .two-column-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hot-aside {
        position: static;
    }

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

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

    .header-inner {
        height: 66px;
    }

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

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

    .hero {
        height: auto;
        min-height: 680px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 70px 0 90px;
    }

    .hero-poster {
        width: min(320px, 72vw);
        justify-self: center;
        transform: none;
    }

    .page-hero {
        padding: 42px 24px;
    }

    .filter-panel {
        display: block;
    }

    .filter-controls {
        justify-content: stretch;
        margin-top: 16px;
    }

    .filter-controls input,
    .filter-controls select {
        width: 100%;
    }

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

@media (max-width: 640px) {
    .brand-text strong {
        font-size: 16px;
    }

    .brand-text em {
        display: none;
    }

    .hero h1,
    .hero h2 {
        font-size: 38px;
    }

    .hero-slide h1 + h2 {
        font-size: 28px;
    }

    .home-search {
        border-radius: 18px;
        flex-direction: column;
    }

    .home-search button {
        min-height: 46px;
    }

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

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

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

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

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

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

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

    .movie-card p {
        min-height: auto;
    }

    .detail-hero {
        min-height: 460px;
    }

    .detail-copy {
        padding: 20px;
    }

    .footer-column ul {
        columns: 1;
    }
}
