:root {
    --amber-50: #fff8ed;
    --amber-100: #ffefd1;
    --amber-200: #fed7aa;
    --amber-400: #f59e0b;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --rose-500: #f43f5e;
    --slate-950: #0f172a;
    --slate-900: #111827;
    --slate-800: #1f2937;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --white: #ffffff;
    --shadow-soft: 0 20px 60px rgba(249, 115, 22, 0.16);
    --shadow-card: 0 16px 35px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    color: var(--slate-800);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 34rem),
        linear-gradient(180deg, #fff8ed 0%, #ffffff 38%, #fff7ed 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 248, 237, 0.88);
    border-bottom: 1px solid rgba(251, 146, 60, 0.18);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-400), var(--orange-600));
    box-shadow: 0 10px 26px rgba(249, 115, 22, 0.28);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 22px;
    color: transparent;
    background: linear-gradient(90deg, var(--orange-700), var(--amber-400));
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-text small {
    color: var(--slate-500);
    font-size: 12px;
    margin-top: 3px;
}

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

.nav-link {
    position: relative;
    color: var(--slate-700);
    font-size: 15px;
    font-weight: 700;
    padding: 10px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--orange-500), var(--amber-400));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(249, 115, 22, 0.12);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: var(--orange-600);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.mobile-nav.open {
    display: grid;
    gap: 6px;
}

.mobile-nav .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
    background: var(--amber-50);
}

.hero-shell {
    padding: 34px 0 0;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 560px;
    border-radius: 36px;
    overflow: hidden;
    background: linear-gradient(135deg, #ff8a00 0%, #ff4d00 45%, #b91c1c 100%);
    box-shadow: 0 32px 90px rgba(194, 65, 12, 0.34);
}

.hero-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.32), transparent 20rem),
        radial-gradient(circle at 82% 12%, rgba(253, 186, 116, 0.42), transparent 24rem),
        linear-gradient(90deg, rgba(15, 23, 42, 0.54), rgba(15, 23, 42, 0.08));
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 390px;
    gap: 52px;
    align-items: center;
    padding: 76px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(34px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(28px) saturate(1.2);
    opacity: 0.22;
    transform: scale(1.08);
}

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

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 13px;
    border-radius: 999px;
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 16px;
    color: var(--white);
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.85;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--orange-700);
    font-size: 12px;
    font-weight: 800;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
    color: var(--white);
    background: linear-gradient(90deg, var(--orange-600), var(--amber-400));
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.32);
}

.btn.ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.btn.small {
    min-height: 38px;
    padding: 0 16px;
    color: var(--white);
    background: linear-gradient(90deg, var(--orange-600), var(--amber-400));
}

.btn.full {
    width: 100%;
}

.hero-poster {
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.42);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    left: 76px;
    bottom: 40px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    backdrop-filter: blur(10px);
}

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

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

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

.search-panel {
    margin-top: -38px;
    position: relative;
    z-index: 5;
    padding: 22px;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.quick-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.quick-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 52px;
    border: 2px solid rgba(251, 146, 60, 0.2);
    border-radius: 16px;
    outline: 0;
    padding: 0 18px;
    color: var(--slate-700);
    background: var(--white);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.quick-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.quick-search button {
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    padding: 0 26px;
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(90deg, var(--orange-600), var(--amber-400));
}

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

.quick-links a {
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--orange-700);
    background: var(--amber-50);
    font-size: 13px;
    font-weight: 800;
}

.page-section {
    padding: 64px 0;
}

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

.section-head h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--slate-500);
    line-height: 1.7;
}

.section-link {
    color: var(--orange-600);
    font-weight: 800;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(249, 115, 22, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fdba74, #fb923c);
}

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

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

.play-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--white);
    background: rgba(249, 115, 22, 0.88);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
    font-size: 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

.movie-info {
    padding: 16px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--orange-700);
    font-size: 12px;
    font-weight: 800;
}

.movie-info h3 {
    margin: 8px 0;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: var(--orange-600);
}

.movie-info p {
    min-height: 60px;
    margin: 0 0 12px;
    color: var(--slate-500);
    font-size: 13px;
    line-height: 1.65;
}

.tag-row span {
    background: var(--amber-50);
    color: var(--orange-700);
}

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

.category-tile,
.category-block {
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card);
}

.category-tile {
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 42px rgba(249, 115, 22, 0.2);
}

.category-tile strong {
    display: block;
    color: var(--slate-900);
    font-size: 22px;
}

.category-tile p {
    color: var(--slate-500);
    line-height: 1.7;
}

.category-tile div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.category-tile span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--orange-700);
    background: var(--amber-50);
    font-size: 12px;
    font-weight: 800;
}

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

.side-panel {
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.sticky-panel {
    position: sticky;
    top: 98px;
}

.side-panel h2 {
    margin: 0 0 12px;
    color: var(--slate-900);
}

.side-panel p {
    color: var(--slate-500);
    line-height: 1.7;
}

.side-list,
.compact-list {
    display: grid;
    gap: 12px;
}

.small-card {
    display: grid;
    grid-template-columns: 30px 54px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    background: var(--amber-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.small-card:hover {
    background: var(--amber-100);
    transform: translateX(4px);
}

.small-card img {
    width: 54px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
}

.small-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-600), var(--amber-400));
    font-size: 12px;
    font-weight: 900;
}

.small-card strong {
    display: block;
    color: var(--slate-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.small-card em {
    display: block;
    margin-top: 4px;
    color: var(--slate-500);
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-hero {
    margin: 34px auto 0;
    width: min(1180px, calc(100% - 32px));
    border-radius: 34px;
    padding: 78px 0;
    overflow: hidden;
}

.page-hero .container {
    width: min(1040px, calc(100% - 48px));
}

.amber-hero,
.ranking-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 24rem),
        linear-gradient(135deg, #ff8a00, #f97316 48%, #c2410c);
    box-shadow: 0 28px 70px rgba(249, 115, 22, 0.28);
}

.ranking-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 22rem),
        linear-gradient(135deg, #be123c, #f97316 54%, #f59e0b);
}

.crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 700;
}

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

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

.category-block {
    padding: 24px;
}

.category-block-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.category-block h2 {
    margin: 0;
    color: var(--slate-900);
}

.category-block p {
    margin: 8px 0 0;
    color: var(--slate-500);
    line-height: 1.7;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 12px;
    margin-bottom: 16px;
}

.wide-filter {
    grid-template-columns: minmax(0, 1fr) 180px;
}

.result-line {
    margin-bottom: 22px;
    color: var(--slate-500);
    font-weight: 700;
}

.result-line span {
    color: var(--orange-600);
}

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

.detail-hero {
    position: relative;
    margin: 34px auto 0;
    width: min(1180px, calc(100% - 32px));
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #c2410c);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--detail-image);
    background-size: cover;
    background-position: center;
    opacity: 0.24;
    filter: blur(20px) saturate(1.15);
    transform: scale(1.06);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.18));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    min-height: 520px;
    padding: 56px 0;
}

.detail-hero-inner .crumb {
    grid-column: 1 / -1;
    margin-bottom: -8px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

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

.detail-copy h1 {
    font-size: clamp(34px, 5vw, 60px);
}

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

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

.player-card,
.content-card {
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
}

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

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: rgba(15, 23, 42, 0.26);
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-600), var(--amber-400));
    box-shadow: 0 18px 44px rgba(249, 115, 22, 0.36);
    font-size: 34px;
    padding-left: 4px;
}

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

.content-card {
    padding: 28px;
}

.content-card h2 {
    margin: 0 0 12px;
    color: var(--slate-900);
    font-size: 28px;
}

.content-card p {
    margin: 0;
    color: var(--slate-600);
    line-height: 1.95;
    font-size: 16px;
}

.info-list {
    display: grid;
    gap: 14px;
    margin: 18px 0 22px;
}

.info-list div {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(251, 146, 60, 0.14);
}

.info-list dt {
    color: var(--slate-500);
    font-weight: 700;
}

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

.site-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(251, 146, 60, 0.16);
    background: linear-gradient(180deg, rgba(255, 248, 237, 0.6), #fff4e6);
}

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

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--slate-900);
}

.site-footer p {
    color: var(--slate-500);
    line-height: 1.8;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 10px 0;
    color: var(--slate-600);
    font-weight: 700;
}

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

.footer-bottom {
    padding: 18px;
    text-align: center;
    color: var(--slate-500);
    border-top: 1px solid rgba(251, 146, 60, 0.12);
}

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

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

    .hero-slide {
        grid-template-columns: 1fr 300px;
        padding: 58px;
    }

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

    .sticky-panel {
        position: static;
    }

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

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

    .mobile-toggle {
        display: block;
    }

    .hero-slider {
        min-height: 720px;
        border-radius: 26px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 34px 24px 90px;
        align-content: center;
    }

    .hero-poster {
        width: min(240px, 72%);
        margin: 0 auto;
        transform: none;
    }

    .hero-controls {
        left: 24px;
        bottom: 28px;
    }

    .quick-search,
    .filter-bar,
    .wide-filter {
        grid-template-columns: 1fr;
    }

    .section-head,
    .category-block-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .detail-hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 34px 0;
    }

    .detail-poster {
        width: min(230px, 70%);
    }

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

@media (max-width: 520px) {
    .container,
    .hero-slider,
    .page-hero,
    .detail-hero {
        width: min(100% - 20px, 1180px);
    }

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

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 32px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-copy p {
        font-size: 15px;
    }

    .movie-grid,
    .all-grid,
    .featured-grid,
    .related-grid,
    .category-grid,
    .category-overview {
        grid-template-columns: 1fr;
    }

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

    .page-section {
        padding: 44px 0;
    }
}
