:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: #0f172a;
    --panel-soft: rgba(30, 41, 59, 0.72);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-light: #cbd5e1;
    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --blue: #3b82f6;
    --emerald: #10b981;
    --danger: #ef4444;
    --radius: 22px;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 10%, rgba(245, 158, 11, 0.14), transparent 32rem),
        radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.12), transparent 34rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    z-index: -1;
}

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

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

svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber), #f97316);
    color: white;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.brand-text {
    font-size: 1.2rem;
}

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

.desktop-nav a,
.mobile-nav a {
    color: var(--muted-light);
    font-size: 0.95rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--amber-light);
}

.header-search {
    display: flex;
    align-items: center;
    width: min(260px, 24vw);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.36);
    overflow: hidden;
}

.header-search input,
.home-search-form input,
.search-page-form input,
.listing-filter input,
.listing-filter select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
}

.header-search input {
    padding: 10px 12px 10px 16px;
}

.header-search button,
.mobile-toggle {
    border: 0;
    color: var(--text);
    background: transparent;
    cursor: pointer;
}

.header-search button {
    width: 42px;
    height: 42px;
    color: var(--amber-light);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.75);
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    gap: 12px;
    flex-direction: column;
}

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

.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    z-index: -1;
}

.hero-bg {
    position: absolute;
    width: 34rem;
    height: 34rem;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.24;
    z-index: -2;
    animation: pulseGlow 7s ease-in-out infinite;
}

.hero-bg-one {
    top: 12%;
    left: 8%;
    background: var(--amber);
}

.hero-bg-two {
    right: 5%;
    bottom: 8%;
    background: var(--blue);
    animation-delay: 1.5s;
}

.hero-inner,
.content-section,
.quick-search-inner,
.footer-grid,
.footer-bottom,
.breadcrumb,
.detail-hero {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 70px 0 90px;
}

.hero-slider {
    position: relative;
    min-height: 480px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.68fr);
    align-items: center;
    gap: 54px;
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    margin-bottom: 18px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 999px;
    color: var(--amber-light);
    background: rgba(245, 158, 11, 0.12);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.hero-copy h1 {
    max-width: 820px;
    font-size: clamp(3.1rem, 8vw, 6.8rem);
}

.hero-copy p {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--muted-light);
    font-size: clamp(1.08rem, 2vw, 1.45rem);
    line-height: 1.8;
}

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

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

.hero-tags span,
.movie-tags span {
    border: 1px solid rgba(251, 191, 36, 0.28);
    color: #fde68a;
    background: rgba(245, 158, 11, 0.13);
    border-radius: 999px;
    font-size: 0.78rem;
}

.hero-tags span {
    padding: 7px 12px;
}

.movie-tags span {
    padding: 4px 8px;
}

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

.btn,
.home-search-form button,
.search-page-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.home-search-form button:hover,
.search-page-form button:hover {
    transform: translateY(-2px);
}

.btn-primary,
.home-search-form button,
.search-page-form button {
    color: white;
    background: linear-gradient(135deg, var(--amber), #f97316);
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.26);
}

.btn-ghost {
    border-color: var(--line);
    color: var(--text);
    background: rgba(15, 23, 42, 0.64);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.05;
    border-radius: 32px;
    overflow: hidden;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: inherit;
    z-index: 2;
    pointer-events: none;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.72), transparent 50%);
}

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

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

.hero-controls {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.32);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--amber-light);
}

.quick-search {
    margin-top: -54px;
    position: relative;
    z-index: 3;
}

.quick-search-inner {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-search h2 {
    margin: 0 0 18px;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.home-search-form,
.search-page-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.home-search-form input,
.search-page-form input {
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.46);
}

.channel-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.channel-pills a {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted-light);
    background: rgba(30, 41, 59, 0.58);
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.channel-pills a:hover {
    color: var(--amber-light);
    border-color: rgba(251, 191, 36, 0.45);
    transform: translateY(-2px);
}

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

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

.section-heading h2,
.panel-heading h2,
.detail-text h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    letter-spacing: -0.04em;
}

.section-heading p,
.panel-heading a,
.section-more {
    color: var(--muted);
}

.section-heading p {
    margin: 8px 0 0;
}

.section-more,
.panel-heading a {
    font-weight: 800;
    color: var(--amber-light);
}

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

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

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

.movie-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.32);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

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

.movie-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    margin: 0;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.9);
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.86), transparent);
}

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: white;
    background: rgba(245, 158, 11, 0.88);
    font-size: 0.78rem;
    font-weight: 800;
}

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: white;
    background: rgba(245, 158, 11, 0.92);
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.24);
}

.poster-play svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: currentColor;
}

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

.movie-card-body h3 {
    margin: 14px 0 8px;
    font-size: 1.08rem;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--amber-light);
}

.movie-card-body p {
    min-height: 3.2em;
    margin: 0;
    color: var(--muted-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.86rem;
}

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

.ranking-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

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

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

.rank-item a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.54);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item a:hover {
    background: rgba(245, 158, 11, 0.12);
    transform: translateX(4px);
}

.rank-number {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: #111827;
    background: linear-gradient(135deg, #fde68a, var(--amber));
    font-weight: 900;
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.rank-meta {
    color: var(--muted);
    font-size: 0.86rem;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 20% 28%, rgba(245, 158, 11, 0.22), transparent 26rem),
        radial-gradient(circle at 78% 12%, rgba(59, 130, 246, 0.18), transparent 30rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.94));
}

.page-hero-content {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0 82px;
}

.page-hero h1 {
    max-width: 820px;
    font-size: clamp(2.7rem, 7vw, 5.2rem);
}

.page-hero p {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted-light);
    font-size: 1.12rem;
    line-height: 1.85;
}

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

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

.category-card a {
    display: flex;
    min-height: 220px;
    height: 100%;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.12), transparent 46%),
        rgba(15, 23, 42, 0.78);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card a:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.34);
}

.category-card h2 {
    margin: 0 0 12px;
    font-size: 1.5rem;
}

.category-card p {
    margin: 0;
    color: var(--muted-light);
    line-height: 1.7;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
}

.category-samples a {
    display: inline-flex;
    min-height: auto;
    padding: 6px 9px;
    border-radius: 999px;
    box-shadow: none;
    background: rgba(30, 41, 59, 0.8);
    color: var(--muted-light);
    font-size: 0.82rem;
}

.listing-filter {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 200px;
    gap: 16px;
    padding: 18px;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
}

.listing-filter label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.86rem;
}

.listing-filter input,
.listing-filter select {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.48);
}

.empty-state {
    display: none;
    padding: 36px;
    margin-top: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--muted-light);
    text-align: center;
    background: rgba(15, 23, 42, 0.72);
}

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

.search-page-form {
    max-width: 760px;
    margin-top: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 28px;
    color: var(--muted);
    font-size: 0.92rem;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 44px 0 20px;
}

.detail-poster {
    border-radius: 30px;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.9);
    box-shadow: var(--shadow);
}

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

.detail-copy h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

.detail-one-line {
    margin: 20px 0 0;
    color: var(--muted-light);
    font-size: 1.2rem;
    line-height: 1.85;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.detail-info-grid div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
}

.detail-info-grid span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.82rem;
}

.detail-info-grid strong {
    font-size: 0.95rem;
}

.player-section {
    padding-top: 56px;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    background: #020617;
    box-shadow: var(--shadow);
}

.movie-player {
    display: block;
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    border: 0;
    color: white;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.big-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), #f97316);
    box-shadow: 0 18px 48px rgba(245, 158, 11, 0.34);
}

.big-play svg {
    width: 42px;
    height: 42px;
    fill: currentColor;
    stroke: currentColor;
}

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

.player-status {
    min-height: 24px;
    margin-top: 12px;
    color: var(--muted);
}

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

.detail-text article {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.75);
}

.detail-text p {
    margin: 18px 0 0;
    color: var(--muted-light);
    line-height: 1.9;
    font-size: 1.02rem;
}

.site-footer {
    margin-top: 90px;
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.76);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(200px, 0.8fr) minmax(200px, 0.8fr);
    gap: 34px;
    padding: 44px 0;
}

.footer-logo {
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 900;
}

.site-footer p {
    margin: 0;
    max-width: 620px;
    color: var(--muted-light);
    line-height: 1.75;
}

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

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a {
    color: var(--muted-light);
}

.footer-links a:hover {
    color: var(--amber-light);
}

.footer-bottom {
    padding: 18px 0 26px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.14);
        opacity: 0.32;
    }
}

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

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

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

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

    .fixed-panel {
        position: static;
    }
}

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding: 54px 0 80px;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-poster {
        max-width: 360px;
        margin: 0 auto;
        transform: none;
    }

    .quick-search {
        margin-top: -30px;
    }

    .home-search-form,
    .search-page-form {
        flex-direction: column;
        align-items: stretch;
    }

    .listing-filter {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        max-width: 360px;
    }

    .detail-info-grid,
    .detail-text,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .header-inner,
    .mobile-nav,
    .hero-inner,
    .content-section,
    .quick-search-inner,
    .footer-grid,
    .footer-bottom,
    .breadcrumb,
    .detail-hero,
    .page-hero-content {
        width: min(100% - 24px, 1240px);
    }

    .brand-text {
        font-size: 1rem;
    }

    .movie-grid,
    .compact-grid,
    .catalog-grid,
    .featured-grid,
    .category-grid,
    .type-grid {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        min-height: 650px;
    }

    .hero-copy h1 {
        font-size: clamp(2.4rem, 16vw, 4rem);
    }

    .content-section {
        padding-top: 54px;
    }

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

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

    .player-shell {
        border-radius: 18px;
    }
}
