:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --rose-700: #be123c;
    --pink-500: #ec4899;
    --amber-50: #fffbeb;
    --orange-50: #fff7ed;
    --green-50: #f0fdf4;
    --teal-50: #f0fdfa;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --wrap: min(1180px, calc(100% - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--rose-50), var(--white) 420px, var(--gray-50));
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.wrap {
    width: var(--wrap);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.86);
    box-shadow: var(--shadow-sm);
}

.site-nav {
    width: var(--wrap);
    min-height: 66px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.site-logo__mark,
.footer-logo span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 10px 24px rgba(244, 63, 94, 0.28);
    font-size: 15px;
}

.site-logo__text {
    font-size: 21px;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--gray-700);
    font-weight: 650;
}

.site-nav__links a {
    transition: color 0.2s ease;
}

.site-nav__links a:hover {
    color: var(--rose-600);
}

.site-nav__toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
    padding: 10px;
    cursor: pointer;
}

.site-nav__toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 99px;
    background: var(--gray-800);
}

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: var(--gray-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.03);
    transition: opacity 0.7s ease, transform 0.9s ease;
}

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

.hero-slide__bg,
.hero-slide__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide__bg img {
    object-fit: cover;
    filter: saturate(1.1);
}

.hero-slide__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 40%, rgba(244, 63, 94, 0.35), transparent 34%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.58) 45%, rgba(17, 24, 39, 0.78)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.90), transparent 45%);
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    width: var(--wrap);
    min-height: 72vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 46px;
    align-items: center;
    color: var(--white);
    padding: 64px 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--rose-500);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-slide h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-slide__summary {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.tag-list,
.movie-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

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

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 13px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    backdrop-filter: blur(12px);
    font-weight: 700;
    font-size: 13px;
}

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

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

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

.button--primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 16px 34px rgba(244, 63, 94, 0.30);
}

.button--ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.hero-slide__poster {
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: linear-gradient(135deg, #222, #444);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
}

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

.hero-controls {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
}

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

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

.quick-search {
    position: relative;
    z-index: 4;
    margin-top: -42px;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 24px;
    align-items: center;
    padding: 26px;
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.quick-search h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.03em;
}

.filter-panel {
    display: grid;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: none;
    color: var(--gray-800);
    background: transparent;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--gray-700);
    background: var(--gray-100);
    cursor: pointer;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: var(--white);
    background: var(--rose-600);
    transform: translateY(-1px);
}

.filter-result {
    min-height: 24px;
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}

.section-block {
    padding: 72px 0;
}

.section-band {
    padding: 72px 0;
}

.section-band--warm {
    background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
}

.section-band--cool {
    background: linear-gradient(135deg, var(--green-50), var(--teal-50));
}

.section-title {
    text-align: center;
    margin-bottom: 36px;
}

.section-title span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--rose-600);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-title p {
    max-width: 760px;
    margin: 14px auto 0;
    color: var(--gray-600);
    font-size: 17px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.movie-card__media {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-800), var(--gray-600));
}

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

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

.movie-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76));
    transition: opacity 0.25s ease;
}

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

.movie-card__play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: var(--rose-500);
    box-shadow: 0 12px 28px rgba(244, 63, 94, 0.35);
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card__badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    max-width: 45%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.movie-card__badge--type {
    left: 12px;
    background: var(--rose-500);
}

.movie-card__badge--region {
    right: 12px;
    background: #3b82f6;
}

.movie-card__body {
    padding: 17px;
}

.movie-card__title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card__title a:hover {
    color: var(--rose-600);
}

.movie-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 8px;
    color: var(--gray-500);
    font-size: 13px;
}

.movie-card__summary {
    min-height: 44px;
    margin: 0 0 10px;
    color: var(--gray-700);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card__tags {
    min-height: 20px;
    color: var(--rose-600);
    font-size: 12px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.horizontal-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 280px;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 4px 24px;
    scroll-snap-type: x mandatory;
}

.horizontal-rail .movie-card {
    scroll-snap-align: start;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    color: var(--white);
    background: var(--gray-800);
    box-shadow: var(--shadow-md);
}

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

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

.category-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.86));
}

.category-card__name,
.category-card__count {
    position: absolute;
    left: 20px;
    z-index: 2;
}

.category-card__name {
    bottom: 52px;
    font-size: 24px;
    font-weight: 900;
}

.category-card__count {
    bottom: 24px;
    color: rgba(255, 255, 255, 0.82);
}

.ranking-layout {
    display: grid;
    gap: 28px;
}

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 74px 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.ranking-item__poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: var(--gray-800);
}

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

.ranking-item__rank {
    font-size: 25px;
    font-weight: 950;
    color: var(--rose-600);
}

.ranking-item h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.ranking-item p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-item__meta {
    font-weight: 700;
}

.ranking-item__button {
    padding: 9px 13px;
    border-radius: 12px;
    color: var(--rose-600);
    background: var(--rose-50);
    font-weight: 850;
}

.masonry-grid {
    columns: 3 260px;
    column-gap: 24px;
}

.masonry-grid .movie-card {
    break-inside: avoid;
    margin-bottom: 24px;
}

.center-actions {
    text-align: center;
}

.callout {
    margin-bottom: 76px;
    padding: 58px;
    border-radius: var(--radius-2xl);
    color: var(--white);
    text-align: center;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: var(--shadow-lg);
}

.callout h2 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 48px);
}

.callout p {
    max-width: 820px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.stats-grid div {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.stats-grid strong,
.stats-grid span {
    display: block;
}

.stats-grid strong {
    font-size: 40px;
    line-height: 1;
}

.stats-grid span {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
}

.page-hero {
    padding: 86px 0;
    color: var(--white);
    background:
        radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.45), transparent 30%),
        linear-gradient(135deg, var(--gray-900), #3f1221 58%, var(--rose-700));
}

.page-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(38px, 6vw, 66px);
    letter-spacing: -0.05em;
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

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

.category-overview-list {
    display: grid;
    gap: 28px;
}

.category-overview-card {
    padding: 28px;
    border-radius: var(--radius-2xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.category-overview-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 30px;
}

.category-overview-card p {
    margin: 0;
    color: var(--gray-600);
}

.detail-hero {
    padding: 34px 0 20px;
    background: linear-gradient(180deg, var(--gray-900), #24111a 66%, var(--gray-50) 66%);
}

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

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

.player-card,
.detail-content,
.sidebar-card,
.content-card {
    border-radius: var(--radius-2xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.player-card {
    overflow: hidden;
}

.video-frame {
    position: relative;
    background: #000;
}

.video-frame video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.56));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--rose-500);
    box-shadow: 0 20px 44px rgba(244, 63, 94, 0.36);
    font-size: 28px;
}

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

.player-status {
    position: absolute;
    left: 16px;
    bottom: 16px;
    margin: 0;
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.62);
    font-size: 13px;
}

.detail-content {
    padding: 30px;
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.detail-title-row h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

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

.detail-meta-grid div {
    padding: 15px;
    border-radius: 16px;
    background: var(--gray-50);
}

.detail-meta-grid span,
.info-list span {
    display: block;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 800;
}

.detail-meta-grid strong,
.info-list strong {
    color: var(--gray-900);
}

.detail-content h2,
.sidebar-card h2,
.content-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.detail-content section + section {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.detail-content p,
.content-card p {
    color: var(--gray-700);
    font-size: 16px;
}

.lead-text {
    font-weight: 800;
    color: var(--gray-900) !important;
}

.review-box {
    border-left: 4px solid var(--rose-500) !important;
    padding: 22px !important;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--rose-50), #fff7fb);
}

.tag-list span {
    color: var(--rose-700);
    background: var(--rose-50);
}

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

.sidebar-card {
    padding: 22px;
}

.poster-detail {
    padding: 0;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: var(--gray-800);
}

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

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

.info-list li {
    display: grid;
    gap: 3px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

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

.mini-ranking a {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: var(--gray-700);
    font-weight: 750;
}

.mini-ranking span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    color: var(--white);
    background: var(--rose-500);
    font-size: 12px;
}

.content-card {
    padding: 34px;
}

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

.site-footer {
    color: var(--gray-300);
    background: var(--gray-900);
}

.footer-grid {
    width: var(--wrap);
    margin: 0 auto;
    padding: 56px 0;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 34px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--white);
    font-size: 21px;
    font-weight: 900;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 17px;
}

.site-footer p {
    margin: 0;
    color: var(--gray-300);
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

.site-footer a:hover {
    color: var(--rose-500);
}

.footer-bottom {
    width: var(--wrap);
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gray-500);
    text-align: center;
}

.image-shell {
    position: relative;
}

.image-shell--missing::before {
    content: "▶";
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.86);
    background:
        radial-gradient(circle at 30% 30%, rgba(244, 63, 94, 0.48), transparent 34%),
        linear-gradient(135deg, var(--gray-900), var(--gray-700));
    font-size: 34px;
    font-weight: 900;
}

.is-hidden-by-filter {
    display: none !important;
}

@media (max-width: 980px) {
    .site-nav__toggle {
        display: inline-block;
    }

    .site-nav__links {
        position: absolute;
        top: 66px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border-radius: 18px;
        background: var(--white);
        box-shadow: var(--shadow-lg);
    }

    .site-nav__links.is-open {
        display: flex;
    }

    .site-nav__links a {
        padding: 13px 14px;
        border-radius: 12px;
    }

    .site-nav__links a:hover {
        background: var(--rose-50);
    }

    .hero-slide__content,
    .quick-search,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-slide__poster {
        display: none;
    }

    .movie-grid--featured,
    .movie-grid--small,
    .movie-grid--catalog,
    .category-grid,
    .ranking-list--home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-sidebar {
        position: static;
    }

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

@media (max-width: 640px) {
    :root {
        --wrap: min(100% - 22px, 1180px);
    }

    .site-logo__text {
        font-size: 18px;
    }

    .hero,
    .hero-slide__content {
        min-height: 76vh;
    }

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

    .hero-actions,
    .category-overview-card__head,
    .detail-title-row {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .quick-search {
        margin-top: -28px;
        padding: 18px;
    }

    .movie-grid--featured,
    .movie-grid--small,
    .movie-grid--catalog,
    .category-grid,
    .ranking-list--home,
    .stats-grid,
    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        grid-template-columns: 58px 38px minmax(0, 1fr);
    }

    .ranking-item__button {
        grid-column: 1 / -1;
        text-align: center;
    }

    .callout {
        padding: 34px 20px;
    }

    .detail-content,
    .content-card,
    .category-overview-card {
        padding: 22px;
    }
}
