:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 8px 24px rgba(17, 24, 39, 0.08);
    --shadow-md: 0 18px 45px rgba(17, 24, 39, 0.14);
    --shadow-lg: 0 28px 80px rgba(17, 24, 39, 0.22);
    --radius-lg: 18px;
    --radius-xl: 28px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--amber-50) 0%, var(--white) 38%, var(--white) 100%);
}

body.detail-body {
    background: linear-gradient(180deg, var(--gray-900) 0%, var(--gray-800) 50%, #0f172a 100%);
    color: var(--white);
}

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: 100;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.95), rgba(255, 247, 237, 0.95));
    box-shadow: 0 10px 30px rgba(120, 53, 15, 0.12);
    backdrop-filter: blur(18px);
}

.site-nav {
    max-width: var(--max-width);
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 12px 25px rgba(245, 158, 11, 0.32);
}

.brand-name {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link-active {
    color: var(--amber-600);
}

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

.mobile-menu-button {
    display: none;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--gray-700);
    border-radius: 999px;
}

.hero-carousel {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), #fff7ed 48%, var(--amber-200));
}

.hero-slides {
    position: relative;
    min-height: 600px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.01);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 15%, rgba(245, 158, 11, 0.38), transparent 35%),
        linear-gradient(90deg, rgba(255, 251, 235, 0.98) 0%, rgba(255, 251, 235, 0.83) 42%, rgba(255, 251, 235, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    min-height: 600px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 92px 22px 78px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1180px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber-800);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.hero-content h1,
.hero-content h2 {
    max-width: 760px;
    margin: 22px 0 18px;
    color: var(--gray-900);
    font-size: clamp(42px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero-content p {
    max-width: 670px;
    margin: 0 0 22px;
    color: var(--gray-700);
    font-size: 21px;
    line-height: 1.75;
}

.hero-tags,
.movie-tags,
.detail-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.movie-tags span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.13);
    color: var(--amber-800);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
}

.hero-search {
    width: min(620px, 100%);
    margin: 24px 0 24px;
    display: flex;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(245, 158, 11, 0.16);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 18px;
    color: var(--gray-800);
}

.hero-search button,
.primary-button {
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    color: var(--white);
    cursor: pointer;
    font-weight: 900;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.26);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hero-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.more-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 45px rgba(249, 115, 22, 0.34);
}

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

.ghost-button,
.more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 14px 24px;
    color: var(--amber-700);
    background: rgba(255, 255, 255, 0.88);
    border: 2px solid rgba(245, 158, 11, 0.38);
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 4;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 999px;
    padding: 8px 14px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.hero-arrow {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    color: var(--amber-700);
    background: var(--white);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.34);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 30px;
    background: var(--amber-600);
}

.feature-strip {
    max-width: var(--max-width);
    margin: -42px auto 0;
    position: relative;
    z-index: 5;
    padding: 0 22px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.feature-item {
    min-height: 112px;
    border-radius: var(--radius-lg);
    padding: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(245, 158, 11, 0.12);
}

.feature-item strong {
    display: block;
    color: var(--gray-900);
    font-size: 20px;
    margin-bottom: 8px;
}

.feature-item span {
    color: var(--gray-600);
    font-weight: 600;
}

.section-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 78px 22px;
}

.warm-section {
    max-width: none;
    padding-left: max(22px, calc((100vw - var(--max-width)) / 2 + 22px));
    padding-right: max(22px, calc((100vw - var(--max-width)) / 2 + 22px));
    background: linear-gradient(180deg, var(--amber-50), var(--white));
}

.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 42px;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--amber-700);
    background: rgba(245, 158, 11, 0.12);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 900;
}

.section-heading h2 {
    margin: 0 0 12px;
    color: var(--gray-900);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--gray-600);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-tile,
.category-overview-card a {
    position: relative;
    display: grid;
    min-height: 220px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-overview-card a:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    transform: scale(1.02);
    transition: transform 0.45s ease;
}

.category-tile:hover img {
    transform: scale(1.1);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.92), rgba(254, 243, 199, 0.78));
}

.category-tile div {
    position: relative;
    z-index: 1;
    align-self: end;
    padding: 28px;
}

.category-tile h3,
.category-overview-body h2 {
    margin: 0 0 10px;
    color: var(--gray-900);
    font-size: 26px;
}

.category-tile p,
.category-overview-body p {
    margin: 0 0 18px;
    color: var(--gray-700);
    line-height: 1.7;
}

.category-tile span,
.category-overview-body span {
    color: var(--amber-700);
    font-weight: 900;
}

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

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

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

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

.movie-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
}

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

.poster-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--amber-200));
}

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

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

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

.poster-badge,
.poster-rating {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    padding: 5px 10px;
}

.poster-badge {
    left: 12px;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.poster-rating {
    right: 12px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(10px);
}

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

.movie-card-body h3 {
    margin: 0 0 10px;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.18s ease;
}

.movie-card:hover h3,
.wide-card:hover h3 {
    color: var(--amber-600);
}

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

.movie-meta,
.wide-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 800;
}

.movie-tags {
    margin-top: 14px;
}

.two-column-section {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 44px;
    align-items: start;
}

.wide-list {
    display: grid;
    gap: 16px;
}

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

.wide-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.wide-card a {
    display: grid;
    grid-template-columns: 116px 1fr;
    min-height: 150px;
}

.wide-poster {
    position: relative;
    overflow: hidden;
    background: var(--amber-100);
}

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

.rank-number {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    font-weight: 950;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 8px 18px rgba(120, 53, 15, 0.24);
}

.wide-info {
    padding: 18px;
}

.wide-info h3 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 18px;
}

.wide-info p {
    margin: 0 0 12px;
    color: var(--gray-600);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.more-link {
    margin-top: 26px;
}

.cta-panel {
    max-width: var(--max-width);
    margin: 0 auto 80px;
    padding: 56px 28px;
    text-align: center;
    border-radius: 32px;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
    box-shadow: var(--shadow-lg);
}

.cta-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
}

.cta-panel p {
    max-width: 720px;
    margin: 0 auto 26px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.cta-panel .primary-button {
    background: var(--white);
    color: var(--amber-700);
}

.page-hero {
    min-height: 320px;
    padding: 74px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background:
        radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.24), transparent 30%),
        linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.page-hero div {
    max-width: 860px;
}

.page-hero span {
    display: inline-flex;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    padding: 8px 15px;
    font-weight: 900;
}

.page-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
}

.page-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
    line-height: 1.8;
}

.category-overview-card a {
    min-height: auto;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 160px;
    background: var(--amber-100);
    overflow: hidden;
}

.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overview-body {
    padding: 24px;
}

.filter-panel {
    margin-bottom: 30px;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(245, 158, 11, 0.12);
}

.filter-row {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 16px;
    align-items: end;
}

.search-filter-row {
    grid-template-columns: 1.5fr 0.9fr 0.8fr 0.8fr;
}

.filter-row label {
    display: grid;
    gap: 8px;
    color: var(--gray-700);
    font-weight: 900;
}

.filter-row input,
.filter-row select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 0 14px;
    outline: 0;
    color: var(--gray-800);
    background: var(--gray-50);
}

.filter-row input:focus,
.filter-row select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.filter-result {
    margin-top: 16px;
    color: var(--amber-700);
    font-weight: 900;
}

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

.detail-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 36px 22px 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

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

.player-section {
    margin-bottom: 30px;
}

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

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

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

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

.player-play-core {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    font-size: 38px;
    box-shadow: 0 18px 45px rgba(245, 158, 11, 0.36);
}

.detail-card {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 30px;
    margin-bottom: 10px;
    padding: 34px;
    border-radius: 28px;
    background: rgba(31, 41, 55, 0.68);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
}

.detail-main h1 {
    margin: 0 0 18px;
    color: var(--white);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
}

.detail-meta {
    color: rgba(255, 255, 255, 0.76);
    margin-bottom: 28px;
}

.detail-meta strong,
.stars {
    color: var(--amber-400);
}

.detail-block {
    margin: 0 0 26px;
}

.detail-block h2,
.side-panel h2 {
    margin: 0 0 12px;
    color: var(--amber-400);
    font-size: 20px;
}

.detail-block p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.9;
    font-size: 17px;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.side-panel {
    margin-top: 18px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(17, 24, 39, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.side-panel dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.side-panel dt {
    color: rgba(255, 255, 255, 0.52);
}

.side-panel a:hover,
.detail-tags a:hover {
    color: var(--amber-400);
}

.related-wrap {
    padding-left: 0;
    padding-right: 0;
}

.detail-body .section-heading h2,
.detail-body .section-heading p {
    color: var(--white);
}

.detail-body .section-kicker {
    color: var(--amber-300);
    background: rgba(245, 158, 11, 0.12);
}

.site-footer {
    color: var(--amber-50);
    background: linear-gradient(180deg, var(--amber-900), #451a03);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 54px 22px 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 30px;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 16px;
    color: var(--amber-100);
}

.footer-grid p,
.footer-grid li,
.footer-bottom {
    color: rgba(255, 251, 235, 0.78);
    line-height: 1.75;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

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

.footer-bottom {
    margin-top: 34px;
    padding-top: 24px;
    text-align: center;
    border-top: 1px solid rgba(253, 230, 138, 0.2);
}

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

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

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

    .detail-side {
        display: grid;
        grid-template-columns: 240px 1fr 1fr;
        gap: 18px;
        align-items: start;
    }

    .side-panel {
        margin-top: 0;
    }
}

@media (max-width: 760px) {
    .site-nav {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
    }

    .brand-name {
        font-size: 22px;
    }

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

    .nav-links {
        display: none;
        width: 100%;
        padding: 0 0 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

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

    .hero-carousel,
    .hero-slides,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        padding-top: 72px;
        padding-bottom: 92px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: clamp(36px, 13vw, 52px);
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero-search {
        border-radius: 24px;
        flex-direction: column;
        gap: 8px;
    }

    .hero-search input {
        min-height: 46px;
    }

    .feature-strip,
    .category-grid,
    .category-overview-grid,
    .movie-grid,
    .featured-grid,
    .compact-grid,
    .search-grid,
    .wide-list-grid,
    .footer-grid,
    .filter-row,
    .search-filter-row,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .feature-strip {
        margin-top: 24px;
    }

    .section-wrap {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .wide-card a {
        grid-template-columns: 104px 1fr;
    }

    .page-hero {
        min-height: 260px;
    }

    .filter-panel {
        padding: 18px;
    }

    .detail-card {
        padding: 22px;
    }

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

    .player-play-core {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .search-grid,
    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

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

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

    .wide-card a {
        grid-template-columns: 92px 1fr;
        min-height: 128px;
    }

    .wide-info {
        padding: 14px;
    }

    .wide-info p,
    .movie-tags {
        display: none;
    }
}
