:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --rose: #f43f5e;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fdf2f8;
    --line: #f3e8ff;
    --card: #ffffff;
    --shadow: 0 20px 45px rgba(31, 41, 55, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 45%, #eff6ff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(244, 114, 182, 0.16);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.08);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
}

.brand-text {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.nav-link {
    font-weight: 700;
    color: #4b5563;
    transition: color 0.25s ease;
}

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

.nav-search {
    position: relative;
    width: 260px;
}

.nav-search input,
.mobile-search input,
.search-page-form input,
.filter-row input {
    width: 100%;
    border: 1px solid #fbcfe8;
    border-radius: 999px;
    outline: none;
    padding: 11px 48px 11px 18px;
    color: var(--text);
    background: #ffffff;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-row input:focus {
    border-color: #f472b6;
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.16);
}

.nav-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    transform: translateY(-50%);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--pink-dark);
    background: #fce7f3;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #fce7f3;
    background: #ffffff;
}

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

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

.mobile-panel nav {
    display: grid;
    gap: 12px;
    padding: 18px 0 12px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 14px;
    color: #4b5563;
    background: #fdf2f8;
    font-weight: 700;
}

.mobile-search {
    display: flex;
    gap: 10px;
    padding-bottom: 18px;
}

.mobile-search button,
.search-page-form button {
    border: 0;
    color: #ffffff;
    border-radius: 999px;
    padding: 0 22px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.category-strip {
    border-top: 1px solid rgba(244, 114, 182, 0.12);
}

.category-strip-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 10px 0;
}

.category-strip a {
    flex: 0 0 auto;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.category-strip a:hover {
    color: var(--pink);
}

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

.hero {
    position: relative;
    width: 100%;
    margin: 28px auto 0;
    overflow: hidden;
    color: #ffffff;
    border-radius: 34px;
    background: linear-gradient(135deg, #f472b6 0%, #a855f7 45%, #3b82f6 100%);
    box-shadow: 0 28px 60px rgba(147, 51, 234, 0.25);
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 560px;
    padding: 56px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--pink-dark);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #fdf2f8;
    margin-bottom: 22px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
    align-items: center;
    gap: 42px;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeIn 0.45s ease both;
}

.hero-label {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero h1 {
    max-width: 680px;
    margin: 18px 0 18px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 620px;
    margin: 0 0 24px;
    color: #fff7fb;
    font-size: clamp(18px, 2vw, 24px);
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-tags span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 700;
}

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

.primary-button,
.ghost-button,
.text-link,
.filter-link,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.primary-button,
.ghost-button {
    min-height: 48px;
    padding: 0 28px;
    border-radius: 999px;
}

.primary-button {
    color: var(--pink-dark);
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(255, 255, 255, 0.28);
}

.ghost-button {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.72);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 70px rgba(31, 41, 55, 0.28);
}

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

.hero-dots {
    position: absolute;
    left: 56px;
    bottom: 36px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 38px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
    background: #ffffff;
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.35;
    background: #ffffff;
    animation: pulse 4s ease-in-out infinite;
}

.hero-glow-one {
    width: 220px;
    height: 220px;
    left: 40px;
    top: 20px;
}

.hero-glow-two {
    width: 260px;
    height: 260px;
    right: 120px;
    top: 120px;
    background: #fbcfe8;
    animation-delay: 1s;
}

.hero-glow-three {
    width: 240px;
    height: 240px;
    left: 44%;
    bottom: 28px;
    background: #c4b5fd;
    animation-delay: 2s;
}

.category-pills {
    margin: 28px 0 0;
}

.category-pills-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.category-pill,
.tag-filter-row button {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.18);
    font-weight: 900;
}

.content-section,
.ranking-list-section,
.search-results-section,
.filter-panel {
    margin: 54px 0;
}

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

.section-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
}

.section-more,
.text-link,
.filter-link {
    color: var(--pink-dark);
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 10px 30px rgba(31, 41, 55, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    box-shadow: var(--shadow);
}

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

.movie-card-large .poster {
    aspect-ratio: 16 / 10;
}

.movie-card-small .poster {
    aspect-ratio: 3 / 4;
}

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

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

.type-badge,
.duration-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(10px);
}

.type-badge {
    top: 10px;
    left: 10px;
    padding: 5px 9px;
}

.duration-badge {
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
}

.rank-badge {
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.movie-meta {
    padding: 16px;
}

.movie-title {
    display: -webkit-box;
    min-height: 3em;
    overflow: hidden;
    color: var(--text);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-title:hover {
    color: var(--pink-dark);
}

.movie-line {
    display: -webkit-box;
    min-height: 2.8em;
    margin: 8px 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9ca3af;
    font-size: 13px;
}

.movie-info span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f9fafb;
}

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: 28px;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(88, 28, 135, 0.82));
}

.category-card span,
.category-card em {
    position: relative;
    z-index: 1;
    display: block;
    padding: 0 22px;
}

.category-card span {
    margin-top: 130px;
    font-size: 24px;
    font-weight: 950;
}

.category-card em {
    margin-top: 8px;
    font-style: normal;
    color: #fdf2f8;
}

.page-hero {
    margin: 32px 0;
    padding: 46px;
    border-radius: 32px;
    background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 50%, #eff6ff 100%);
    box-shadow: 0 16px 45px rgba(147, 51, 234, 0.1);
}

.page-hero h1 {
    max-width: 880px;
    margin: 10px 0 14px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

.ranking-hero {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
}

.ranking-hero .eyebrow,
.ranking-hero p {
    color: #fff7fb;
}

.category-overview-grid {
    display: grid;
    gap: 24px;
    margin: 34px 0 60px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(31, 41, 55, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-cover {
    overflow: hidden;
    min-height: 260px;
    background: #fdf2f8;
}

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

.category-overview-content {
    padding: 28px;
}

.category-overview-content h2 {
    margin: 6px 0 10px;
    font-size: 28px;
}

.category-overview-content p {
    color: var(--muted);
}

.compact-list {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.compact-item {
    display: grid;
    grid-template-columns: auto 76px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: #f9fafb;
    transition: background 0.25s ease;
}

.compact-item:hover {
    background: #fdf2f8;
}

.compact-item img {
    width: 76px;
    height: 50px;
    object-fit: cover;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.25s ease;
}

.compact-item strong,
.compact-item em {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.compact-item strong {
    font-size: 15px;
}

.compact-item em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.list-rank {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    font-size: 13px;
    font-weight: 900;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 28px 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: var(--pink-dark);
}

.filter-panel {
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 32px rgba(31, 41, 55, 0.08);
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.filter-row input {
    max-width: 520px;
}

.tag-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.tag-filter-row button {
    color: var(--pink-dark);
    background: #fce7f3;
    box-shadow: none;
}

.tag-filter-row button.is-active,
.tag-filter-row button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.ranking-list {
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(31, 41, 55, 0.1);
}

.ranking-row {
    display: grid;
    grid-template-columns: 56px 86px minmax(0, 1fr) 190px 90px;
    align-items: center;
    gap: 16px;
    min-height: 92px;
    padding: 12px 18px;
    border-bottom: 1px solid #f3f4f6;
}

.ranking-row:hover {
    background: #fdf2f8;
}

.ranking-no {
    color: var(--pink-dark);
    font-size: 20px;
    font-weight: 950;
}

.ranking-row img {
    width: 86px;
    height: 58px;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-title strong,
.ranking-title em {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-title em,
.ranking-meta {
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
}

.ranking-heat {
    color: var(--pink-dark);
    font-weight: 900;
    text-align: right;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: #050505;
    box-shadow: 0 24px 55px rgba(31, 41, 55, 0.22);
}

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

.play-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.32), rgba(0, 0, 0, 0.68));
    cursor: pointer;
    z-index: 2;
}

.play-mask.is-hidden {
    display: none;
    pointer-events: none;
}

.play-button {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: var(--pink-dark);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    font-size: 34px;
}

.play-mask strong {
    max-width: 80%;
    overflow: hidden;
    font-size: 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-card,
.sidebar-card {
    margin-top: 24px;
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(31, 41, 55, 0.1);
}

.detail-card h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}

.lead-text {
    color: var(--muted);
    font-size: 18px;
}

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

.detail-facts span {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 18px;
    background: #f9fafb;
}

.detail-facts b {
    color: var(--muted);
    font-size: 13px;
}

.detail-tags span {
    color: var(--pink-dark);
    background: #fce7f3;
}

.text-block {
    margin-top: 28px;
}

.text-block h2,
.sidebar-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.text-block p {
    color: #4b5563;
    line-height: 1.9;
}

.review-block {
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fdf2f8, #faf5ff);
}

.detail-sidebar {
    position: sticky;
    top: 112px;
}

.search-page-form {
    display: flex;
    max-width: 660px;
    gap: 12px;
    margin-top: 24px;
}

.search-page-form input {
    flex: 1;
}

.site-footer {
    margin-top: 70px;
    background: linear-gradient(135deg, #fce7f3, #ede9fe, #dbeafe);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 46px 0;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: #6b7280;
    font-size: 14px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(236, 72, 153, 0.18);
    text-align: center;
}

.is-filtered-out {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.28;
    }

    50% {
        transform: scale(1.12);
        opacity: 0.42;
    }
}

@media (max-width: 1100px) {
    .nav-search {
        width: 210px;
    }

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

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

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

    .detail-sidebar {
        position: static;
    }

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

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

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

    .nav-shell {
        gap: 12px;
    }

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

    .category-strip {
        display: none;
    }

    .hero-inner {
        min-height: auto;
        padding: 34px 22px 70px;
    }

    .hero-slide,
    .hero-slide.is-active {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: clamp(36px, 12vw, 54px);
    }

    .hero-poster {
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-dots {
        left: 22px;
        bottom: 24px;
    }

    .page-hero {
        padding: 30px 22px;
    }

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

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

    .category-overview-card {
        grid-template-columns: 1fr;
    }

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

    .ranking-row {
        grid-template-columns: 42px 72px minmax(0, 1fr);
    }

    .ranking-meta,
    .ranking-heat {
        display: none;
    }

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

@media (max-width: 520px) {
    main,
    .page-main,
    .nav-shell,
    .category-strip-inner,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

    .hero {
        border-radius: 24px;
    }

    .standard-grid,
    .small-grid,
    .large-grid,
    .category-card-grid {
        grid-template-columns: 1fr;
    }

    .detail-card,
    .sidebar-card,
    .filter-panel {
        padding: 20px;
    }

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

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