:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.95);
    --line: rgba(168, 85, 247, 0.26);
    --text: #f8fafc;
    --muted: #c4b5fd;
    --muted-2: #94a3b8;
    --purple: #a855f7;
    --pink: #ec4899;
    --blue: #38bdf8;
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow: 0 28px 80px rgba(2, 6, 23, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(168, 85, 247, 0.22), transparent 32rem),
        radial-gradient(circle at 85% 4%, rgba(236, 72, 153, 0.16), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.nav-open {
    overflow: hidden;
}

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

img.media-hidden {
    display: none;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(168, 85, 247, 0.22);
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(22px);
}

.site-header__inner {
    width: min(1240px, calc(100% - 28px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.site-logo__mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    box-shadow: 0 14px 34px rgba(168, 85, 247, 0.36);
}

.site-logo__text {
    white-space: nowrap;
    font-size: 1.06rem;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #ddd6fe;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff;
    background: rgba(168, 85, 247, 0.18);
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    width: min(340px, 30vw);
    display: flex;
    align-items: center;
    overflow: visible;
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
}

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

.header-search input {
    padding: 12px 110px 12px 18px;
}

.header-search button,
.home-search button,
.search-page-form button {
    border: 0;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    cursor: pointer;
}

.header-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    padding: 0 18px;
    border-radius: 999px;
}

.instant-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    max-height: 390px;
    overflow: auto;
    padding: 10px;
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.96);
    box-shadow: var(--shadow);
}

.instant-results.is-open {
    display: block;
}

.instant-result {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.instant-result:hover {
    background: rgba(168, 85, 247, 0.14);
}

.instant-result__poster {
    min-height: 62px;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(236, 72, 153, 0.28)),
        var(--poster-image) center / cover;
}

.instant-result h4 {
    margin: 0 0 4px;
    font-size: 0.94rem;
}

.instant-result p {
    margin: 0;
    color: var(--muted-2);
    font-size: 0.78rem;
    line-height: 1.5;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.8);
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: #fff;
}

.mobile-panel {
    display: none;
}

.hero-slider {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    min-height: 72vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.74) 48%, rgba(2, 6, 23, 0.1) 100%),
        var(--hero-image) center / cover;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide__media {
    position: absolute;
    top: 9%;
    right: max(4vw, 40px);
    width: min(38vw, 440px);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    box-shadow: 0 40px 110px rgba(0, 0, 0, 0.55);
    background:
        linear-gradient(135deg, rgba(168, 85, 247, 0.55), rgba(236, 72, 153, 0.34)),
        var(--hero-image) center / cover;
}

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

.hero-slide__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 30%, rgba(236, 72, 153, 0.2), transparent 25rem),
        linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.96) 100%);
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    padding: 88px 0 120px;
}

.hero-copy {
    max-width: 670px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #f0abfc;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 610px;
    margin: 24px 0 0;
    color: #e9d5ff;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.movie-card__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(168, 85, 247, 0.24);
    border-radius: 999px;
    color: #e9d5ff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 0.82rem;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    box-shadow: 0 18px 42px rgba(168, 85, 247, 0.36);
}

.button-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.hero-control-row {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateX(-50%);
}

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

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

.hero-dot.is-active {
    background: linear-gradient(135deg, var(--purple), var(--pink));
}

.hero-more {
    color: #f5d0fe;
    font-weight: 800;
}

.quick-panel {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(280px, 430px) 1fr;
    gap: 24px;
    margin-top: -42px;
    padding: 22px;
    border: 1px solid rgba(168, 85, 247, 0.26);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.home-search,
.search-page-form {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.58);
}

.home-search input,
.search-page-form input {
    padding: 15px 138px 15px 20px;
}

.home-search button,
.search-page-form button {
    position: absolute;
    top: 5px;
    right: 5px;
    bottom: 5px;
    padding: 0 24px;
    border-radius: 999px;
}

.quick-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-categories a,
.page-hero__links a,
.year-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(168, 85, 247, 0.24);
    border-radius: 999px;
    color: #e9d5ff;
    background: rgba(168, 85, 247, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.quick-categories a:hover,
.page-hero__links a:hover,
.year-pill:hover {
    background: rgba(236, 72, 153, 0.18);
    transform: translateY(-2px);
}

.page-main {
    padding: 56px 0 80px;
}

.page-stack {
    padding: 64px 0 88px;
}

.content-section {
    margin-top: 70px;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-text h2,
.detail-side h2 {
    margin: 0;
    letter-spacing: -0.03em;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 20px 55px rgba(2, 6, 23, 0.24);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(236, 72, 153, 0.55);
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.36);
}

.movie-card__poster,
.rank-cover,
.detail-poster {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(236, 72, 153, 0.3)),
        var(--poster-image) center / cover;
}

.movie-card__poster {
    display: block;
    aspect-ratio: 3 / 4;
}

.movie-card__poster img,
.rank-cover img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-card__poster::after,
.rank-cover::after,
.detail-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.78));
}

.movie-card__year,
.movie-card__play {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.movie-card__year {
    top: 12px;
    left: 12px;
    min-height: 28px;
    padding: 0 10px;
    background: rgba(2, 6, 23, 0.72);
}

.movie-card__play {
    right: 12px;
    bottom: 12px;
    min-height: 34px;
    padding: 0 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
}

.movie-card__body {
    padding: 16px;
}

.movie-card__meta {
    margin-bottom: 10px;
}

.movie-card__meta span {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.74rem;
}

.movie-card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    line-height: 1.35;
}

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

.tag-row span {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.76rem;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 54px;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 15% 20%, rgba(236, 72, 153, 0.18), transparent 22rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.68));
    box-shadow: var(--shadow);
}

.page-hero--compact h1 {
    max-width: 820px;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1.02;
}

.page-hero--compact p {
    max-width: 780px;
    margin: 18px 0 0;
    color: #ddd6fe;
    font-size: 1.08rem;
    line-height: 1.8;
}

.page-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 36px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 999px;
    color: #e9d5ff;
    background: rgba(15, 23, 42, 0.72);
}

.pagination .is-current {
    color: #fff;
    border-color: rgba(236, 72, 153, 0.55);
    background: linear-gradient(135deg, var(--purple), var(--pink));
}

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

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

.category-card {
    min-height: 128px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 10%, rgba(236, 72, 153, 0.18), transparent 10rem),
        rgba(15, 23, 42, 0.72);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
    border-color: rgba(236, 72, 153, 0.52);
    transform: translateY(-5px);
}

.category-card span {
    font-size: 1.25rem;
    font-weight: 900;
}

.category-card small {
    color: var(--muted);
}

.category-card--small {
    min-height: 92px;
}

.category-card--small span {
    font-size: 1rem;
}

.year-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 64px 92px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(168, 85, 247, 0.23);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
}

.rank-number {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 1.25rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--purple), var(--pink));
}

.rank-cover {
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
}

.rank-content h2 {
    margin: 0 0 8px;
    font-size: 1.3rem;
}

.rank-content p {
    margin: 0 0 12px;
    color: var(--muted-2);
    line-height: 1.7;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    display: grid;
    align-items: end;
    overflow: hidden;
    margin-top: -56px;
    padding: 92px 0 56px;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.34)),
        var(--hero-image) center / cover;
}

.detail-hero__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 12%, rgba(236, 72, 153, 0.2), transparent 26rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.1), #020617 100%);
}

.detail-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 38px;
    align-items: end;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.5);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

.detail-info h1 {
    font-size: clamp(2.3rem, 6vw, 5rem);
    line-height: 1.02;
}

.detail-one-line {
    max-width: 820px;
    margin: 20px 0 0;
    color: #e9d5ff;
    font-size: 1.12rem;
    line-height: 1.8;
}

.detail-meta {
    margin-top: 20px;
}

.tag-row--detail {
    margin-top: 14px;
}

.player-section {
    margin-top: 38px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 20%, rgba(168, 85, 247, 0.22), transparent 22rem),
        #020617;
    box-shadow: var(--shadow);
}

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

.video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background:
        radial-gradient(circle at 50% 40%, rgba(168, 85, 247, 0.28), transparent 18rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.36), rgba(2, 6, 23, 0.86));
    cursor: pointer;
}

.video-overlay.is-hidden {
    display: none;
}

.play-icon {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    box-shadow: 0 24px 70px rgba(168, 85, 247, 0.46);
}

.play-icon::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 7px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 24px solid #fff;
}

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

.detail-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    margin-top: 40px;
}

.detail-text,
.detail-side {
    padding: 30px;
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
}

.detail-text h2,
.detail-side h2 {
    margin-bottom: 16px;
    font-size: 1.55rem;
}

.detail-text h2:not(:first-child) {
    margin-top: 30px;
}

.detail-text p {
    margin: 0;
    color: #d8b4fe;
    font-size: 1.02rem;
    line-height: 1.9;
}

.detail-side dl {
    margin: 0;
}

.detail-side dt {
    margin-top: 16px;
    color: var(--muted-2);
    font-size: 0.86rem;
}

.detail-side dd {
    margin: 5px 0 0;
    color: #fff;
    font-weight: 800;
}

.search-page-form {
    max-width: 720px;
    margin-top: 24px;
}

#search-sort {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.95);
}

.site-footer {
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    background: rgba(2, 6, 23, 0.82);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    padding: 38px 0;
}

.footer-logo {
    margin-bottom: 12px;
    font-size: 1.12rem;
}

.site-footer p {
    max-width: 720px;
    margin: 0;
    color: var(--muted-2);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 10px;
    min-width: 160px;
}

.footer-links a {
    color: #e9d5ff;
}

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

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

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

    .hero-slide__media {
        opacity: 0.38;
        right: 20px;
        width: min(46vw, 360px);
    }
}

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

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .mobile-panel {
        position: fixed;
        inset: 76px 14px auto;
        z-index: 200;
        display: none;
        padding: 18px;
        border: 1px solid rgba(168, 85, 247, 0.28);
        border-radius: 22px;
        background: rgba(2, 6, 23, 0.98);
        box-shadow: var(--shadow);
    }

    body.nav-open .mobile-panel {
        display: grid;
        gap: 10px;
    }

    .mobile-panel a {
        padding: 14px;
        border-radius: 16px;
        background: rgba(168, 85, 247, 0.12);
    }

    .hero-slider,
    .hero-slide {
        min-height: 660px;
    }

    .hero-slide__media {
        top: auto;
        right: 16px;
        bottom: 72px;
        width: 42vw;
        min-width: 180px;
    }

    .quick-panel {
        grid-template-columns: 1fr;
        margin-top: -24px;
    }

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

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

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

    .detail-poster {
        width: min(260px, 70vw);
    }

    .rank-card {
        grid-template-columns: 48px 72px 1fr;
        gap: 12px;
    }

    .rank-number {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }
}

@media (max-width: 560px) {
    .site-header__inner {
        min-height: 66px;
    }

    .site-logo__text {
        font-size: 0.95rem;
    }

    .hero-copy h1,
    .page-hero--compact h1,
    .detail-info h1 {
        font-size: 2.45rem;
    }

    .hero-slide__content {
        padding-top: 72px;
    }

    .hero-control-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .home-search,
    .search-page-form {
        border-radius: 18px;
    }

    .home-search input,
    .search-page-form input {
        padding: 14px 18px 62px;
    }

    .home-search button,
    .search-page-form button {
        left: 5px;
        top: auto;
        height: 44px;
    }

    .page-hero {
        padding: 30px;
    }

    .movie-grid,
    .movie-grid--listing,
    .category-grid,
    .category-grid--small {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 42px 1fr;
    }

    .rank-cover {
        display: none;
    }
}
