:root {
    --amber-950: #451a03;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --red-50: #fef2f2;
    --amber-50: #fffbeb;
    --orange-50: #fff7ed;
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-100: #f5f5f4;
    --white: #ffffff;
    --shadow-soft: 0 22px 55px rgba(120, 53, 15, 0.18);
    --shadow-card: 0 18px 35px rgba(120, 53, 15, 0.16);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--stone-900);
    background: linear-gradient(135deg, var(--amber-50), var(--orange-50) 48%, var(--red-50));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.88), rgba(154, 52, 18, 0.88));
    border-bottom: 1px solid rgba(252, 211, 77, 0.25);
    backdrop-filter: blur(14px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: linear-gradient(90deg, rgba(69, 26, 3, 0.96), rgba(124, 45, 18, 0.96));
    box-shadow: 0 18px 42px rgba(69, 26, 3, 0.25);
}

.nav-shell {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--amber-50);
    font-weight: 800;
    font-size: clamp(19px, 2vw, 25px);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: var(--amber-900);
    background: linear-gradient(135deg, #fde68a, #fb923c);
    box-shadow: 0 12px 28px rgba(251, 146, 60, 0.35);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
}

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

.nav-link {
    color: rgba(254, 243, 199, 0.88);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff7ed;
    transform: translateY(-1px);
}

.nav-search {
    width: 292px;
    display: flex;
    align-items: center;
    padding: 5px;
    border: 1px solid rgba(252, 211, 77, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.nav-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    color: #fff7ed;
    background: transparent;
    outline: none;
    padding: 8px 12px;
}

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

.nav-search button,
.home-search button,
.filter-search button {
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    font-weight: 800;
    padding: 8px 15px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.24);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--amber-50);
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    background: rgba(69, 26, 3, 0.97);
    border-top: 1px solid rgba(252, 211, 77, 0.22);
}

.mobile-panel.is-open {
    display: grid;
    gap: 12px;
}

.mobile-panel a {
    color: var(--amber-50);
    font-weight: 700;
}

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

.mobile-panel input {
    width: 100%;
    border: 1px solid rgba(252, 211, 77, 0.3);
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--amber-50);
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.mobile-panel button {
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    padding: 0 16px;
    font-weight: 700;
}

main {
    min-height: 70vh;
}

.hero {
    position: relative;
    height: 78vh;
    min-height: 560px;
    overflow: hidden;
    color: var(--white);
    background: var(--amber-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: opacity 0.8s ease, transform 5s ease;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(12, 10, 9, 0.92), rgba(12, 10, 9, 0.48) 52%, rgba(12, 10, 9, 0.16));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(82px, 13vh, 132px);
}

.hero-copy {
    width: min(760px, 100%);
    animation: fadeUp 0.6s ease both;
}

.hero-kickers,
.hero-meta,
.detail-meta,
.movie-meta-line,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-kickers span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.hero-kickers span:first-child {
    background: rgba(217, 119, 6, 0.92);
}

.hero h1 {
    margin: 20px 0 12px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.hero-line {
    max-width: 700px;
    margin: 0;
    color: #fde68a;
    font-size: clamp(18px, 2.4vw, 24px);
    font-weight: 800;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero-summary {
    max-width: 720px;
    margin: 14px 0 0;
    color: rgba(245, 245, 244, 0.9);
    font-size: 17px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    margin-top: 16px;
    color: rgba(245, 245, 244, 0.9);
    font-weight: 700;
}

.hero-meta span + span::before,
.detail-meta span + span::before {
    content: "·";
    margin-right: 10px;
    color: rgba(253, 230, 138, 0.8);
}

.hero-actions,
.detail-info .primary-btn {
    margin-top: 26px;
}

.primary-btn,
.ghost-btn,
.side-link,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
    min-height: 48px;
    padding: 12px 26px;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.35);
}

.primary-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 42px rgba(217, 119, 6, 0.42);
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.ghost-btn {
    min-height: 48px;
    margin-left: 12px;
    padding: 12px 22px;
    color: #fff7ed;
    border: 1px solid rgba(253, 230, 138, 0.4);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(8px);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.hero:hover .hero-arrow {
    opacity: 1;
}

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

.hero-prev {
    left: 24px;
    transform: translateY(-50%);
}

.hero-next {
    right: 24px;
    transform: translateY(-50%);
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--white);
}

.home-search {
    position: relative;
    z-index: 12;
    margin-top: -38px;
}

.home-search form {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.home-search input {
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: transparent;
    outline: none;
    padding: 13px 16px;
    font-size: 16px;
}

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

.warm-band {
    background: linear-gradient(180deg, rgba(254, 243, 199, 0.55), rgba(255, 247, 237, 0));
}

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

.section-head h2,
.page-hero h1,
.detail-info h1,
.article-block h2,
.player-section h2,
.detail-side h2 {
    margin: 0;
    color: var(--stone-900);
    font-weight: 900;
    letter-spacing: -0.035em;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-head p {
    margin: 8px 0 0;
    color: var(--stone-600);
}

.section-link,
.side-link {
    color: var(--amber-700);
    background: rgba(251, 191, 36, 0.14);
    padding: 10px 18px;
}

.section-link:hover,
.side-link:hover {
    background: rgba(251, 191, 36, 0.24);
    transform: translateY(-1px);
}

.movie-grid,
.feature-grid,
.category-grid,
.category-overview-grid {
    display: grid;
    gap: 24px;
}

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

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

.movie-card,
.category-tile,
.category-card,
.rank-item,
.detail-side,
.article-block,
.player-section,
.filter-panel {
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.movie-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 54px rgba(120, 53, 15, 0.22);
}

.movie-card-link {
    display: block;
    height: 100%;
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-800), var(--orange-600));
}

.poster-frame img,
.category-tile img,
.category-card img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(120, 53, 15, 0.84);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

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

.movie-meta-line {
    color: var(--amber-700);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 8px 0 8px;
    color: var(--stone-900);
    font-size: 19px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card p {
    margin: 0;
    color: var(--stone-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-large .movie-card-link {
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 265px;
}

.movie-card-large .poster-frame {
    aspect-ratio: auto;
}

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

.movie-card-large p {
    -webkit-line-clamp: 4;
    font-size: 15px;
}

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

.movie-card .tag-row span,
.detail-tags span {
    color: var(--amber-800);
    background: rgba(251, 191, 36, 0.17);
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    color: var(--white);
    isolation: isolate;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(69, 26, 3, 0.9), rgba(69, 26, 3, 0.15));
}

.category-tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile small {
    margin-top: 6px;
    color: rgba(254, 243, 199, 0.86);
}

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

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

.rank-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    box-shadow: 0 12px 26px rgba(120, 53, 15, 0.1);
}

.rank-item a {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.rank-item strong {
    color: var(--stone-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-item span:last-child {
    color: var(--stone-600);
    font-size: 14px;
}

.rank-num {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    font-weight: 900;
}

.page-hero {
    padding: 136px 0 62px;
}

.soft-hero {
    color: var(--white);
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.32), transparent 28%), linear-gradient(135deg, var(--amber-900), var(--orange-600));
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
    max-width: 780px;
    margin: 14px 0 0;
    color: rgba(255, 247, 237, 0.88);
    font-size: 18px;
}

.eyebrow {
    color: #fde68a !important;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    color: rgba(254, 243, 199, 0.86);
    font-size: 14px;
}

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

.filter-panel {
    margin-top: 28px;
    padding: 20px;
}

.filter-search input,
.filter-selects select {
    width: 100%;
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 999px;
    padding: 13px 16px;
    color: var(--stone-900);
    background: rgba(255, 251, 235, 0.82);
    outline: none;
}

.filter-selects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.category-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.category-pill {
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--amber-800);
    background: rgba(251, 191, 36, 0.15);
    font-weight: 800;
}

.category-pill:hover,
.category-pill.is-active {
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
}

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

.category-card a {
    display: grid;
    grid-template-columns: 210px 1fr;
    min-height: 220px;
}

.category-card img {
    min-height: 220px;
}

.category-card div {
    padding: 24px;
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.category-card p {
    margin: 0 0 16px;
    color: var(--stone-600);
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-links a {
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--amber-800);
    background: rgba(251, 191, 36, 0.15);
    font-size: 13px;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 128px 0 64px;
    color: var(--white);
    background: var(--amber-950);
}

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

.detail-backdrop {
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    filter: blur(2px);
    opacity: 0.62;
}

.detail-shade {
    background: linear-gradient(90deg, rgba(12, 10, 9, 0.92), rgba(12, 10, 9, 0.66) 48%, rgba(12, 10, 9, 0.22)), linear-gradient(0deg, rgba(12, 10, 9, 0.92), transparent 52%);
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--amber-800), var(--orange-600));
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.45);
    aspect-ratio: 2 / 3;
}

.detail-info h1 {
    color: var(--white);
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1.05;
    margin-top: 18px;
}

.detail-line {
    max-width: 850px;
    margin: 16px 0;
    color: #fde68a;
    font-size: clamp(18px, 2vw, 23px);
    font-weight: 800;
}

.detail-meta {
    color: rgba(245, 245, 244, 0.92);
    font-weight: 800;
}

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

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

.detail-main {
    display: grid;
    gap: 24px;
}

.player-section,
.article-block,
.detail-side {
    padding: 24px;
}

.player-section h2,
.article-block h2,
.detail-side h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000;
    aspect-ratio: 16 / 9;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.player-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(217, 119, 6, 0.28), rgba(0, 0, 0, 0.58));
    cursor: pointer;
}

.player-box.is-ready .player-start {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 74px;
    height: 74px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--amber-900);
    background: linear-gradient(135deg, #fde68a, #fb923c);
    box-shadow: 0 18px 42px rgba(251, 146, 60, 0.38);
    font-size: 30px;
}

.player-start span:last-child {
    font-size: 18px;
    font-weight: 900;
}

.player-state {
    min-height: 22px;
    margin: 10px 0 0;
    color: var(--amber-800);
    font-weight: 700;
}

.article-block p {
    margin: 0 0 14px;
    color: var(--stone-700);
    font-size: 17px;
}

.info-list {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 10px 14px;
    margin: 0 0 22px;
}

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

.info-list dd {
    margin: 0;
    color: var(--stone-900);
    font-weight: 700;
}

.empty-state {
    display: none;
    margin: 24px 0 0;
    padding: 24px;
    border-radius: var(--radius-lg);
    color: var(--amber-900);
    background: rgba(251, 191, 36, 0.14);
    font-weight: 800;
    text-align: center;
}

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

.image-hidden {
    opacity: 0;
}

.site-footer {
    color: rgba(254, 243, 199, 0.82);
    background: linear-gradient(135deg, var(--amber-950), var(--amber-900));
    margin-top: 40px;
}

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

.footer-brand {
    color: var(--amber-50);
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 10px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--amber-50);
    font-size: 18px;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(252, 211, 77, 0.17);
    padding: 18px 16px;
    text-align: center;
    color: rgba(254, 243, 199, 0.66);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

    .feature-grid,
    .category-overview-grid,
    .rank-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-side {
        order: -1;
    }
}

@media (max-width: 760px) {
    .shell {
        width: min(100% - 24px, 1180px);
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-shell {
        min-height: 66px;
    }

    .hero {
        height: 74vh;
        min-height: 520px;
    }

    .hero-content {
        padding-bottom: 82px;
    }

    .hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .ghost-btn {
        margin-left: 0;
    }

    .hero-arrow {
        display: none;
    }

    .home-search form {
        border-radius: var(--radius-lg);
        flex-direction: column;
    }

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

    .section-head {
        display: block;
    }

    .section-link {
        margin-top: 14px;
    }

    .movie-grid,
    .feature-grid,
    .category-grid,
    .category-overview-grid,
    .rank-grid,
    .filter-selects {
        grid-template-columns: 1fr;
    }

    .movie-card-large .movie-card-link,
    .category-card a,
    .detail-hero-content {
        grid-template-columns: 1fr;
    }

    .movie-card-large .poster-frame {
        aspect-ratio: 2 / 3;
    }

    .detail-hero {
        padding-top: 98px;
    }

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

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