:root {
    --peach-50: #fff7f4;
    --peach-100: #ffe9e2;
    --peach-200: #ffd4c8;
    --peach-400: #ffb5a7;
    --peach-500: #ffa07a;
    --pink-400: #ff9eb5;
    --pink-500: #ff8fa3;
    --text: #22242a;
    --muted: #6b7280;
    --line: rgba(255, 181, 167, 0.28);
    --card: rgba(255, 255, 255, 0.84);
    --shadow: 0 18px 42px rgba(255, 159, 122, 0.24);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 181, 167, 0.35), transparent 28rem),
        radial-gradient(circle at 86% 10%, rgba(255, 158, 181, 0.28), transparent 24rem),
        linear-gradient(180deg, #fff8f5 0%, #fff 38%, #fff7f4 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.gradient-text {
    background: linear-gradient(135deg, #ff8e72, #ff8fa3, #ffb6c1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn-peach,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.9rem;
    padding: 0.78rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.btn-peach {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--peach-500), var(--pink-500));
    box-shadow: 0 10px 24px rgba(255, 143, 163, 0.34);
}

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

.btn-peach:hover {
    box-shadow: 0 16px 30px rgba(255, 143, 163, 0.42);
}

.btn-ghost {
    color: #8a4a45;
    border: 1px solid rgba(255, 181, 167, 0.54);
    background: rgba(255, 255, 255, 0.68);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-width: 0 0 1px;
}

.nav-shell {
    width: min(1280px, calc(100% - 2rem));
    min-height: 4.7rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.3rem;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 900;
}

.brand-mark {
    width: 2.55rem;
    height: 2.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--peach-500), var(--pink-400));
    box-shadow: 0 10px 22px rgba(255, 143, 163, 0.28);
}

.brand-name {
    font-size: clamp(1.16rem, 2.2vw, 1.62rem);
    white-space: nowrap;
}

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

.main-nav a {
    padding: 0.58rem 0.9rem;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: color 0.25s ease, background 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ee6f7f;
    background: rgba(255, 181, 167, 0.16);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.24rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.top-search input,
.hero-search input,
.inline-filter input,
.filter-tools input,
.filter-tools select {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    border-radius: 999px;
    padding: 0.78rem 1rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.top-search input {
    width: min(18vw, 15rem);
    border: 0;
    background: transparent;
    padding: 0.58rem 0.72rem;
}

.top-search button {
    border: 0;
    color: #fff;
    border-radius: 999px;
    padding: 0.55rem 0.82rem;
    background: linear-gradient(135deg, var(--peach-500), var(--pink-500));
    font-weight: 700;
}

input:focus,
select:focus {
    border-color: rgba(255, 143, 163, 0.74);
    box-shadow: 0 0 0 4px rgba(255, 181, 167, 0.18);
    background: #fff;
}

.mobile-menu-button {
    display: none;
    width: 2.8rem;
    height: 2.8rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 181, 167, 0.18);
}

.mobile-menu-button span {
    display: block;
    width: 1.25rem;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #ee6f7f;
}

.hero-carousel {
    position: relative;
    width: min(1280px, calc(100% - 2rem));
    min-height: clamp(34rem, 72vh, 44rem);
    margin: 1.6rem auto 0;
    overflow: hidden;
    border-radius: 2.1rem;
    box-shadow: var(--shadow);
    background: #111;
}

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

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

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

.hero-slide img,
.detail-backdrop img {
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(22, 18, 21, 0.82) 0%, rgba(22, 18, 21, 0.58) 42%, rgba(22, 18, 21, 0.18) 100%),
        linear-gradient(180deg, transparent 55%, rgba(22, 18, 21, 0.72) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 2rem));
    min-height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 7vw, 5.2rem);
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #ff7f93;
    background: rgba(255, 181, 167, 0.16);
    border: 1px solid rgba(255, 181, 167, 0.25);
    border-radius: 999px;
    padding: 0.42rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-content .eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.26);
}

.hero-content h1,
.hero-content h2 {
    max-width: 780px;
    margin: 1.2rem 0 0;
    font-size: clamp(2.2rem, 6vw, 4.9rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-content h3 {
    margin: 1rem 0 0;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.hero-content p {
    max-width: 620px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.75;
}

.hero-tags,
.detail-meta,
.movie-meta,
.tag-row,
.hero-actions,
.hero-panel-actions,
.feature-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hero-tags {
    margin: 1.35rem 0 0;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    padding: 0.34rem 0.68rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.hero-actions {
    margin-top: 1.7rem;
}

.hero-panel {
    position: absolute;
    z-index: 3;
    right: clamp(1rem, 4vw, 3rem);
    bottom: clamp(4.6rem, 6vw, 5.6rem);
    width: min(360px, calc(100% - 2rem));
    border-radius: 1.6rem;
    padding: 1.25rem;
    color: #502d2b;
    box-shadow: 0 18px 40px rgba(80, 45, 43, 0.18);
}

.hero-panel span,
.hero-panel strong,
.hero-panel a {
    display: block;
}

.hero-panel span {
    color: #ef6f82;
    font-weight: 800;
    font-size: 0.84rem;
}

.hero-panel strong {
    margin-top: 0.4rem;
    font-size: 1.35rem;
}

.hero-panel p {
    color: #6b4b49;
    line-height: 1.65;
}

.hero-panel-actions {
    margin-top: 1rem;
}

.hero-panel-actions a {
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    color: #ee6f7f;
    background: rgba(255, 181, 167, 0.18);
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: clamp(1rem, 5vw, 5.1rem);
    right: clamp(1rem, 5vw, 5.1rem);
    bottom: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hero-controls > button,
.hero-dots button {
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-controls > button {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    font-size: 1.8rem;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 0.42rem;
}

.hero-dots button {
    width: 0.72rem;
    height: 0.72rem;
    padding: 0;
    border-radius: 999px;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 2.2rem;
    background: linear-gradient(135deg, var(--peach-500), var(--pink-500));
}

.content-section {
    width: min(1280px, calc(100% - 2rem));
    margin: clamp(2.5rem, 6vw, 5rem) auto 0;
}

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

.section-heading.compact {
    margin-bottom: 1rem;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.next-links h2,
.ranking-panel h2 {
    margin: 0.7rem 0 0;
    color: #20232a;
    line-height: 1.12;
}

.section-heading h2 {
    font-size: clamp(1.5rem, 3vw, 2.45rem);
}

.section-more {
    color: #ef6f82;
    font-weight: 800;
}

.category-grid,
.category-showcase-grid,
.movie-grid,
.top-rank-grid,
.split-section {
    display: grid;
    gap: 1.1rem;
}

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

.category-tile,
.category-showcase a {
    display: flex;
    flex-direction: column;
    min-height: 13rem;
    border-radius: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 233, 226, 0.72));
    border: 1px solid var(--line);
    box-shadow: 0 14px 32px rgba(255, 159, 122, 0.12);
}

.category-tile span,
.category-showcase span {
    color: #ef6f82;
    font-size: 0.84rem;
    font-weight: 900;
}

.category-tile strong,
.category-showcase h2 {
    margin-top: 0.5rem;
    color: #22242a;
    font-size: 1.35rem;
}

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

.category-tile em,
.category-showcase em {
    margin-top: auto;
    color: #8a4a45;
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

.ranking-panel {
    position: sticky;
    top: 6rem;
    border-radius: 1.6rem;
    padding: 1.25rem;
}

.rank-list {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}

.rank-item {
    display: grid;
    grid-template-columns: 2.1rem 3.5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    min-height: 4.2rem;
    padding: 0.5rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.62);
}

.rank-item span {
    color: #ef6f82;
    font-weight: 900;
}

.rank-item img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.8rem;
}

.rank-item strong,
.rank-item em {
    grid-column: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

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

.movie-card {
    min-width: 0;
}

.movie-card.is-hidden {
    display: none;
}

.movie-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 1.35rem;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(255, 159, 122, 0.12);
}

.card-hover {
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(255, 159, 122, 0.28);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #fff0ea;
}

.poster-frame img {
    width: 100%;
    height: 100%;
    transition: transform 0.42s ease;
}

.movie-link:hover .poster-frame img {
    transform: scale(1.06);
}

.poster-badge {
    position: absolute;
    right: 0.68rem;
    top: 0.68rem;
    min-width: 2.45rem;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--peach-500), var(--pink-500));
    border-radius: 999px;
    padding: 0.32rem 0.48rem;
    font-weight: 900;
    font-size: 0.78rem;
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.54rem;
    padding: 0.95rem;
}

.movie-meta {
    color: #ef6f82;
    font-size: 0.76rem;
    font-weight: 800;
}

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 0.55rem;
    color: #d2a29d;
}

.movie-title {
    color: #20232a;
    font-size: 1.02rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.movie-genre,
.movie-desc {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.movie-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.tag-row span {
    color: #ef6f82;
    background: rgba(255, 181, 167, 0.16);
}

.page-hero {
    width: min(1280px, calc(100% - 2rem));
    margin: 1.6rem auto 0;
    border-radius: 2rem;
    padding: clamp(2rem, 5vw, 4rem);
    background:
        radial-gradient(circle at 82% 20%, rgba(255, 143, 163, 0.24), transparent 18rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 233, 226, 0.74));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    max-width: 800px;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
    color: #87504b;
    font-size: 0.92rem;
}

.breadcrumb a {
    color: #ef6f82;
    font-weight: 800;
}

.feature-links a {
    color: #ef6f82;
    border-radius: 999px;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 181, 167, 0.16);
    font-weight: 800;
}

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

.category-showcase a {
    min-height: 100%;
}

.category-posters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.36rem;
    margin-bottom: 1rem;
}

.category-posters img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 0.75rem;
}

.filter-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: flex-end;
}

.filter-tools input {
    width: min(52vw, 20rem);
}

.filter-tools select {
    min-width: 10rem;
}

.inline-filter input {
    width: min(56vw, 22rem);
}

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

.top-rank-card {
    position: relative;
    min-height: 22rem;
    overflow: hidden;
    border-radius: 1.5rem;
    color: #fff;
    box-shadow: var(--shadow);
}

.top-rank-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78) 100%);
}

.top-rank-card img {
    width: 100%;
    height: 100%;
}

.top-rank-card span,
.top-rank-card strong,
.top-rank-card em {
    position: absolute;
    z-index: 2;
    left: 1rem;
    right: 1rem;
}

.top-rank-card span {
    top: 1rem;
    width: fit-content;
    color: #fff;
    background: linear-gradient(135deg, var(--peach-500), var(--pink-500));
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-weight: 900;
}

.top-rank-card strong {
    bottom: 2.8rem;
    font-size: 1.2rem;
}

.top-rank-card em {
    bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    min-height: 35rem;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background: #1c1719;
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(26, 18, 20, 0.92), rgba(26, 18, 20, 0.62), rgba(26, 18, 20, 0.8)),
        linear-gradient(180deg, transparent 60%, #fff7f4 100%);
}

.detail-backdrop img {
    opacity: 0.32;
    filter: blur(3px) saturate(1.08);
    transform: scale(1.03);
}

.detail-shell {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 4.5rem;
}

.detail-intro {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
}

.detail-copy h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 4.25rem);
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.13rem;
    line-height: 1.8;
}

.detail-meta {
    margin: 1.1rem 0;
}

.detail-meta span {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.detail-tags {
    margin-bottom: 1.5rem;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.65rem;
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #fff;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
}

.player-overlay[hidden] {
    display: none;
}

.play-circle {
    width: 5rem;
    height: 5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--peach-500), var(--pink-500));
    box-shadow: 0 16px 40px rgba(255, 143, 163, 0.38);
    font-size: 2rem;
    padding-left: 0.25rem;
}

.player-overlay strong {
    font-size: 1.35rem;
}

.detail-text-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.2rem;
    align-items: start;
}

.detail-article,
.next-links {
    border-radius: 1.5rem;
    padding: clamp(1.2rem, 3vw, 2rem);
}

.detail-article p {
    color: #4b5563;
    line-height: 1.95;
    font-size: 1.03rem;
}

.next-links {
    position: sticky;
    top: 6rem;
    display: grid;
    gap: 0.75rem;
}

.next-links a {
    color: #ef6f82;
    font-weight: 800;
    border-radius: 1rem;
    padding: 0.78rem 0.9rem;
    background: rgba(255, 181, 167, 0.13);
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    max-width: 760px;
    margin-top: 1.5rem;
}

.hero-search input {
    flex: 1;
    min-height: 3.2rem;
    border-radius: 1.1rem;
}

.site-footer {
    margin-top: clamp(3.5rem, 7vw, 6rem);
    padding: 3rem 0 1.5rem;
    background: linear-gradient(135deg, rgba(255, 233, 226, 0.86), rgba(255, 212, 200, 0.54));
    border-top: 1px solid var(--line);
}

.footer-shell {
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 0.5fr));
    gap: 2rem;
}

.site-footer p,
.site-footer a {
    color: #684d4a;
    line-height: 1.7;
}

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

.site-footer a {
    display: block;
    margin: 0.45rem 0;
}

.copyright {
    width: min(1280px, calc(100% - 2rem));
    margin: 2rem auto 0;
    color: #7e5b58;
    font-size: 0.9rem;
}

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

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

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

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

    .ranking-panel,
    .next-links {
        position: static;
    }
}

@media (max-width: 820px) {
    .nav-shell {
        flex-wrap: wrap;
        min-height: 4.2rem;
    }

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

    .main-nav {
        order: 5;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0 1rem;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        border-radius: 1rem;
    }

    .hero-carousel {
        min-height: 42rem;
        border-radius: 1.4rem;
    }

    .hero-content {
        justify-content: flex-start;
        padding-top: 3rem;
    }

    .hero-panel {
        left: 1rem;
        right: 1rem;
        bottom: 4.4rem;
    }

    .hero-controls {
        left: 1rem;
        right: 1rem;
    }

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

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

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

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

    .detail-poster {
        width: min(260px, 78vw);
    }

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

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

    .hero-carousel,
    .content-section,
    .page-hero,
    .detail-shell,
    .footer-shell,
    .copyright {
        width: min(100% - 1rem, 1280px);
    }

    .hero-content h1,
    .hero-content h2,
    .page-hero h1,
    .detail-copy h1 {
        letter-spacing: -0.035em;
    }

    .category-grid,
    .category-showcase-grid,
    .top-rank-grid {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .small-grid {
        gap: 0.72rem;
    }

    .movie-card-body {
        padding: 0.78rem;
    }

    .hero-search {
        flex-direction: column;
        align-items: stretch;
    }
}
