:root {
    --emerald: #10b981;
    --emerald-dark: #059669;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --ink: #111827;
    --text: #374151;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 45%, #eefdfa 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.32);
}

.brand-text {
    font-size: 25px;
    line-height: 1;
    color: transparent;
    background: linear-gradient(90deg, var(--emerald-dark), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    white-space: nowrap;
}

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

.desktop-nav a,
.mobile-nav a,
.footer-links a {
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
    color: var(--emerald-dark);
}

.header-search {
    width: 268px;
    display: flex;
    align-items: center;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.header-search input,
.mobile-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 9px 12px;
    color: var(--ink);
    background: transparent;
}

.header-search button,
.mobile-search button,
.primary-btn,
.secondary-btn,
.ghost-btn,
.filter-panel button,
.search-panel button,
.player-overlay button {
    border: 0;
    cursor: pointer;
}

.header-search button,
.mobile-search button {
    padding: 8px 14px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    font-weight: 800;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    color: var(--emerald-dark);
    background: transparent;
    border: 0;
    font-size: 30px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid var(--line);
}

.mobile-panel.open {
    display: block;
}

.mobile-search {
    display: flex;
    margin: 14px auto;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

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

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.26), transparent 34%), linear-gradient(135deg, var(--emerald) 0%, var(--cyan) 48%, var(--blue) 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(18px);
    mix-blend-mode: overlay;
    animation: pulseGlow 4s ease-in-out infinite;
}

.hero::before {
    top: -120px;
    left: -80px;
}

.hero::after {
    right: -100px;
    bottom: -160px;
    animation-delay: 1.2s;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.52;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.86;
    }
}

.hero-shell {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    align-items: center;
    padding: 62px 0;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 44px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero-kicker,
.section-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    padding: 8px 14px;
    color: #fff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    font-weight: 800;
}

.hero-copy h1 {
    margin: 22px 0 18px;
    color: #fff;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.hero-copy h1 span,
.gradient-text {
    color: transparent;
    background: linear-gradient(90deg, #fef3c7, #fbcfe8);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 2.4vw, 24px);
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: var(--emerald-dark);
    background: #fff;
}

.secondary-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.ghost-btn {
    color: var(--emerald-dark);
    background: #ecfdf5;
    box-shadow: none;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-poster {
    position: relative;
    width: min(390px, 100%);
    justify-self: center;
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 20px -22px -20px 22px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.22);
    filter: blur(14px);
}

.hero-poster img {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 10px solid rgba(255, 255, 255, 0.24);
    border-radius: 32px;
    box-shadow: 0 32px 75px rgba(15, 23, 42, 0.38);
}

.hero-meta-card {
    position: absolute;
    right: -26px;
    bottom: 32px;
    max-width: 220px;
    padding: 18px;
    border-radius: 22px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.hero-meta-card strong {
    display: block;
    color: var(--emerald-dark);
    font-size: 22px;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    gap: 10px;
}

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

.hero-dot.active {
    width: 38px;
    background: #fff;
}

.quick-search {
    margin-top: 30px;
    display: flex;
    width: min(620px, 100%);
    padding: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(14px);
}

.quick-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 14px 18px;
    color: #fff;
    background: transparent;
}

.quick-search input::placeholder {
    color: rgba(255, 255, 255, 0.82);
}

.quick-search button {
    padding: 12px 22px;
    color: var(--emerald-dark);
    border: 0;
    border-radius: 999px;
    background: #fff;
    font-weight: 900;
    cursor: pointer;
}

.stat-band {
    padding: 38px 0;
    background: #fff;
}

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

.stat-card,
.category-tile,
.feature-panel,
.filter-panel,
.search-panel,
.detail-card,
.player-section,
.ranking-panel,
.breadcrumb {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

.stat-card {
    padding: 28px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover,
.category-tile:hover,
.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stat-icon,
.tile-icon {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    font-size: 28px;
    font-weight: 900;
}

.stat-card strong {
    display: block;
    color: var(--ink);
    font-size: 34px;
    line-height: 1;
}

.section {
    padding: 70px 0;
}

.section.soft {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

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

.section-head.center {
    display: block;
    text-align: center;
}

.section-kicker,
.detail-kicker {
    color: var(--emerald-dark);
    background: #ecfdf5;
    box-shadow: none;
}

.section-head h2,
.page-hero h1,
.detail-title h1,
.search-hero h1 {
    margin: 12px 0 8px;
    color: var(--ink);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.search-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.82));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-link::after {
    opacity: 1;
}

.card-badge,
.card-play,
.rank-num,
.detail-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.card-badge {
    top: 10px;
    right: 10px;
    min-width: 48px;
    padding: 4px 9px;
    color: #fff;
    border-radius: 999px;
    background: var(--emerald);
    font-size: 12px;
}

.card-play {
    left: 50%;
    bottom: 18px;
    transform: translate(-50%, 18px);
    opacity: 0;
    padding: 8px 15px;
    color: var(--emerald-dark);
    border-radius: 999px;
    background: #fff;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play {
    opacity: 1;
    transform: translate(-50%, 0);
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--emerald-dark);
}

.card-meta,
.card-desc {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.card-desc {
    margin-top: 7px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tag-row span {
    padding: 4px 8px;
    color: var(--emerald-dark);
    border-radius: 999px;
    background: #ecfdf5;
    font-size: 12px;
    font-weight: 800;
}

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

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

.category-tile h2,
.category-tile h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 22px;
}

.category-tile p {
    margin: 0;
    color: var(--muted);
}

.feature-panel {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
    padding: 30px;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 38%), #fff;
}

.feature-panel img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.feature-panel h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 36px;
    line-height: 1.15;
}

.feature-panel p {
    margin: 0 0 16px;
    color: var(--text);
    font-size: 17px;
}

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

.ranking-panel {
    padding: 24px;
}

.ranking-panel h2 {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: 26px;
}

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

.ranking-item a {
    display: grid;
    grid-template-columns: 42px 58px 1fr;
    gap: 13px;
    align-items: center;
    padding: 9px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item a:hover {
    background: #f0fdfa;
    transform: translateX(3px);
}

.ranking-item img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-num {
    position: static;
    width: 36px;
    height: 36px;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.rank-copy strong,
.rank-copy em {
    display: block;
}

.rank-copy strong {
    color: var(--ink);
    line-height: 1.35;
}

.rank-copy em {
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.page-hero,
.search-hero {
    padding: 64px 0;
    color: #fff;
    background: radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.24), transparent 34%), linear-gradient(135deg, var(--emerald), var(--cyan));
}

.page-hero h1,
.page-hero p,
.search-hero h1,
.search-hero p {
    color: #fff;
}

.breadcrumb {
    margin: 24px auto;
    padding: 14px 18px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--emerald-dark);
    font-weight: 800;
}

.filter-panel,
.search-panel {
    margin-bottom: 28px;
    padding: 20px;
}

.filter-row,
.search-row {
    display: grid;
    grid-template-columns: 1fr 190px 190px auto;
    gap: 12px;
    align-items: center;
}

.search-row {
    grid-template-columns: 1fr auto;
}

.filter-panel input,
.filter-panel select,
.search-panel input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
}

.filter-panel button,
.search-panel button {
    min-height: 48px;
    padding: 0 22px;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    font-weight: 900;
}

.empty-state {
    display: none;
    padding: 32px;
    color: var(--muted);
    text-align: center;
    border-radius: var(--radius);
    background: #fff;
}

.empty-state.show {
    display: block;
}

.detail-hero {
    padding: 36px 0 56px;
    background: radial-gradient(circle at 80% 0%, rgba(16, 185, 129, 0.22), transparent 28%), linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

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

.detail-cover {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

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

.detail-badge {
    left: 18px;
    top: 18px;
    padding: 7px 13px;
    color: #fff;
    border-radius: 999px;
    background: var(--emerald);
}

.detail-title h1 {
    margin-top: 16px;
}

.detail-title .lead {
    margin: 0 0 22px;
    color: var(--text);
    font-size: 20px;
}

.info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 22px;
}

.info-pills span {
    padding: 9px 13px;
    color: #047857;
    border-radius: 999px;
    background: #ecfdf5;
    font-weight: 800;
}

.player-section {
    margin-top: 24px;
    padding: 22px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #020617;
    box-shadow: 0 20px 56px rgba(2, 6, 23, 0.32);
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-overlay button {
    width: 86px;
    height: 86px;
    color: var(--emerald-dark);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow);
    font-size: 30px;
    font-weight: 900;
}

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

.detail-card {
    padding: 28px;
}

.detail-card h2 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 28px;
}

.detail-card p {
    margin: 0 0 16px;
}

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

.related-card a {
    display: block;
}

.related-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
    transition: transform 0.3s ease;
}

.related-card strong {
    display: block;
    margin-top: 10px;
    color: var(--ink);
    line-height: 1.35;
}

.related-card a > span {
    color: var(--muted);
    font-size: 13px;
}

.small-tags span {
    font-size: 11px;
}

.search-results {
    display: grid;
    gap: 14px;
}

.search-result {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-result:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.search-result img {
    width: 96px;
    height: 132px;
    object-fit: cover;
    border-radius: 14px;
}

.search-result h2 {
    margin: 0 0 8px;
    color: var(--ink);
}

.search-result p {
    margin: 0 0 10px;
    color: var(--muted);
}

.site-footer {
    margin-top: 70px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.8fr 0.95fr;
    gap: 32px;
    padding: 46px 0;
}

.site-footer p {
    color: var(--muted);
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 18px;
}

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

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

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

    .menu-toggle {
        display: block;
    }

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

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

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

@media (max-width: 820px) {
    .hero-shell {
        min-height: 760px;
    }

    .hero-slide,
    .feature-panel,
    .detail-layout,
    .ranking-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        width: min(310px, 92%);
    }

    .hero-meta-card {
        right: -8px;
        bottom: 18px;
    }

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

    .section-head {
        display: block;
    }

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

    .filter-row,
    .search-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .brand-text {
        font-size: 20px;
    }

    .hero-shell {
        min-height: 820px;
        padding: 38px 0 56px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

    .quick-search {
        border-radius: 24px;
        flex-direction: column;
    }

    .quick-search button {
        width: 100%;
    }

    .movie-grid,
    .movie-grid.large,
    .category-grid,
    .related-grid {
        gap: 14px;
    }

    .card-body {
        padding: 12px;
    }

    .ranking-item a {
        grid-template-columns: 36px 52px 1fr;
    }
}
