:root {
    --pink: #ec4899;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --orange: #f97316;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fdf2f8;
    --line: rgba(148, 163, 184, 0.26);
    --radius: 24px;
    --shadow: 0 22px 60px rgba(99, 102, 241, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #fff1f8 0%, #f5efff 44%, #eef7ff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.96), rgba(139, 92, 246, 0.96), rgba(59, 130, 246, 0.96));
    box-shadow: 0 14px 34px rgba(75, 85, 99, 0.18);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand__mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand__text {
    font-size: 24px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav__link,
.mobile-nav a {
    color: rgba(255, 255, 255, 0.84);
    padding: 10px 16px;
    border-radius: 14px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.main-nav__link:hover,
.main-nav__link.is-active,
.mobile-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-nav.is-open {
    display: grid;
    gap: 6px;
}

.hero-slider {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #1f1144;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 48px;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 82px 0 94px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(26px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide__image {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 560px;
    object-fit: cover;
    z-index: 0;
    opacity: 0.9;
}

.hero-slide__shade {
    position: fixed;
    inset: 0;
    height: 560px;
    z-index: 1;
    background:
        radial-gradient(circle at 78% 25%, rgba(236, 72, 153, 0.36), transparent 30%),
        linear-gradient(90deg, rgba(75, 20, 86, 0.94), rgba(91, 33, 182, 0.80), rgba(30, 64, 175, 0.90));
}

.hero-slide__content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.eyebrow {
    color: #fde047;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-slide h1 {
    margin: 14px 0 18px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.02;
    color: #fff;
    letter-spacing: -0.045em;
    text-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.hero-summary {
    max-width: 700px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.9;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 13px;
}

.tag-row span {
    background: #f3f4f6;
    color: #6b7280;
}

.tag-row--large span {
    color: #7c3aed;
    background: #f5f3ff;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    min-height: 48px;
    padding: 0 24px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    box-shadow: 0 16px 38px rgba(236, 72, 153, 0.35);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.btn-small {
    min-height: 40px;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
}

.hero-poster {
    align-self: center;
    display: block;
    overflow: hidden;
    height: 445px;
    border-radius: 34px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6);
    box-shadow: 0 36px 80px rgba(15, 23, 42, 0.36);
}

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

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

.hero-poster span {
    position: absolute;
    right: 22px;
    bottom: 22px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(10px);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-size: 26px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

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

.search-band {
    position: relative;
    z-index: 8;
    width: min(1120px, calc(100% - 32px));
    margin: -36px auto 0;
    padding: 20px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-band__form,
.filter-panel__row {
    display: flex;
    gap: 12px;
}

.search-band input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 16px;
    outline: none;
    background: #fff;
}

.search-band input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(236, 72, 153, 0.54);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.10);
}

.search-band button {
    min-width: 120px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    font-weight: 800;
    cursor: pointer;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.quick-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #7c3aed;
    background: #f5f3ff;
    font-size: 14px;
}

.content-section {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.content-section--white {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1220px) / 2));
    padding-right: max(16px, calc((100% - 1220px) / 2));
    background: rgba(255, 255, 255, 0.80);
}

.content-section--soft {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1220px) / 2));
    padding-right: max(16px, calc((100% - 1220px) / 2));
    background: linear-gradient(90deg, rgba(243, 232, 255, 0.72), rgba(252, 231, 243, 0.72));
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.section-heading__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    font-size: 26px;
    box-shadow: 0 18px 34px rgba(236, 72, 153, 0.22);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    letter-spacing: -0.035em;
}

.section-heading p {
    margin: 4px 0 0;
    color: var(--muted);
}

.section-more {
    margin-left: auto;
    color: #db2777;
    font-weight: 800;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(99, 102, 241, 0.22);
}

.movie-card__cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 2.85;
    overflow: hidden;
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6);
}

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

.movie-card:hover .movie-card__cover img {
    transform: scale(1.06);
}

.movie-card__score {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    font-weight: 900;
    font-size: 13px;
}

.movie-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #db2777;
    background: rgba(255, 255, 255, 0.90);
    transform: translate(-50%, -50%) scale(0.86);
    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__body {
    padding: 18px;
}

.movie-card__title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card__title:hover {
    color: #db2777;
}

.movie-card__meta {
    margin: 9px 0;
    color: var(--muted);
    font-size: 13px;
}

.movie-card__desc {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card--horizontal {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    min-height: 200px;
}

.movie-card--horizontal .movie-card__cover {
    aspect-ratio: auto;
    height: 100%;
}

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

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 26px;
    padding: 24px;
    color: #fff;
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6);
    box-shadow: var(--shadow);
    isolation: isolate;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 70px rgba(99, 102, 241, 0.28);
}

.category-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
}

.category-card::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.86), rgba(91, 33, 182, 0.82), rgba(29, 78, 216, 0.88));
}

.category-card__icon {
    display: block;
    margin-bottom: 18px;
    font-size: 42px;
}

.category-card strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
}

.category-card small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.6;
}

.category-card em {
    position: absolute;
    left: 24px;
    bottom: 22px;
    font-style: normal;
    font-weight: 800;
}

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

.rank-preview__item {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.10);
    transition: transform 0.25s ease, color 0.25s ease;
}

.rank-preview__item:hover {
    color: #db2777;
    transform: translateX(4px);
}

.rank-preview__num {
    font-size: 26px;
    font-weight: 900;
    color: #ec4899;
}

.rank-preview__title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 900;
}

.rank-preview__meta {
    color: var(--muted);
    font-size: 13px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    width: min(1220px, calc(100% - 32px));
    margin: 34px auto 0;
    padding: 46px;
    border-radius: 34px;
    color: #fff;
    background: linear-gradient(120deg, rgba(236, 72, 153, 0.94), rgba(139, 92, 246, 0.92), rgba(59, 130, 246, 0.92));
    box-shadow: var(--shadow);
    isolation: isolate;
}

.page-hero--compact {
    min-height: 250px;
}

.page-hero__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
}

.page-hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: radial-gradient(circle at 84% 10%, rgba(255, 255, 255, 0.22), transparent 28%);
}

.page-hero h1 {
    max-width: 860px;
    margin: 10px 0 12px;
    font-size: clamp(34px, 6vw, 58px);
    letter-spacing: -0.045em;
    line-height: 1.06;
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.9;
}

.filter-panel {
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 34px rgba(99, 102, 241, 0.10);
}

.filter-panel select {
    max-width: 190px;
}

.empty-state {
    display: none;
    padding: 46px;
    border-radius: 24px;
    background: #fff;
    color: var(--muted);
    text-align: center;
    box-shadow: 0 12px 34px rgba(99, 102, 241, 0.10);
}

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

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

.ranking-card {
    display: grid;
    grid-template-columns: 70px 120px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(99, 102, 241, 0.11);
}

.ranking-card__num {
    color: #ec4899;
    font-size: 30px;
    font-weight: 900;
}

.ranking-card__poster {
    overflow: hidden;
    aspect-ratio: 2 / 2.85;
    border-radius: 16px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6);
}

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

.ranking-card__title {
    color: #111827;
    font-size: 21px;
    font-weight: 900;
}

.ranking-card__title:hover {
    color: #db2777;
}

.ranking-card__body p {
    color: var(--muted);
    line-height: 1.7;
}

.ranking-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ranking-card__meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 13px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #170f36;
}

.detail-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.46;
}

.detail-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26, 11, 46, 0.96), rgba(79, 70, 229, 0.72), rgba(30, 64, 175, 0.88));
}

.detail-hero__inner {
    position: relative;
    z-index: 2;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.breadcrumb,
.breadcrumb__sep {
    color: rgba(255, 255, 255, 0.74);
}

.breadcrumb:hover {
    color: #fff;
}

.detail-hero h1 {
    max-width: 880px;
    margin: 18px 0 16px;
    font-size: clamp(36px, 6vw, 66px);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.detail-hero p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.detail-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.detail-hero__meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    width: min(1220px, calc(100% - 32px));
    margin: 36px auto 72px;
}

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

.player-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 32px 70px rgba(15, 23, 42, 0.30);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #db2777;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.62));
    cursor: pointer;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
    font-size: 34px;
    transition: transform 0.25s ease;
}

.player-overlay:hover .play-circle {
    transform: scale(1.08);
}

.player-message {
    position: absolute;
    inset: auto 20px 20px 20px;
    display: none;
    padding: 12px 16px;
    border-radius: 14px;
    color: #fff;
    background: rgba(220, 38, 38, 0.86);
    text-align: center;
}

.player-card.has-error .player-message {
    display: block;
}

.detail-card,
.side-card {
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 46px rgba(99, 102, 241, 0.13);
}

.detail-card {
    padding: 28px;
}

.detail-card h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.detail-card p {
    color: #374151;
    font-size: 16px;
    line-height: 1.95;
}

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

.detail-nav-links {
    display: grid;
    gap: 10px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.detail-nav-links a {
    color: #7c3aed;
    font-weight: 800;
}

.detail-side {
    display: grid;
    align-content: start;
    gap: 20px;
}

.side-card {
    padding: 22px;
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.side-list {
    display: grid;
    gap: 14px;
}

.side-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-item__cover {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6);
}

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

.side-item strong {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-size: 14px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.side-item:hover strong {
    color: #db2777;
}

.side-item small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.channel-link {
    display: block;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    color: #7c3aed;
    background: #f5f3ff;
    font-weight: 800;
}

.site-footer {
    color: #fff;
    background: linear-gradient(90deg, #831843, #4c1d95, #1e3a8a);
}

.site-footer__inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
}

.site-footer__brand {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 900;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 18px 0;
}

.site-footer__links a {
    color: rgba(255, 255, 255, 0.84);
}

.site-footer__links a:hover {
    color: #fff;
}

.copyright {
    margin: 0;
    font-size: 13px;
}

.poster-img.is-hidden {
    opacity: 0;
}

@media (max-width: 1180px) {
    .movie-grid,
    .movie-grid--catalog {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .nav-toggle {
        display: block;
    }

    .brand__text {
        font-size: 20px;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 56px;
    }

    .hero-slide__image,
    .hero-slide__shade {
        height: 660px;
    }

    .hero-poster {
        width: min(320px, 100%);
        height: 380px;
    }

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

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

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

    .ranking-card {
        grid-template-columns: 52px 96px minmax(0, 1fr);
    }
}

@media (max-width: 620px) {
    .site-header__inner,
    .content-section,
    .site-footer__inner,
    .detail-layout,
    .detail-hero__inner,
    .page-hero {
        width: min(100% - 22px, 1220px);
    }

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

    .hero-slide__image,
    .hero-slide__shade {
        height: 700px;
    }

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

    .hero-summary {
        font-size: 16px;
    }

    .hero-actions,
    .search-band__form,
    .filter-panel__row,
    .detail-title-row {
        flex-direction: column;
    }

    .search-band button,
    .filter-panel select {
        width: 100%;
        max-width: none;
        min-height: 48px;
    }

    .movie-grid,
    .movie-grid--three,
    .movie-grid--catalog,
    .category-grid,
    .category-grid--large {
        grid-template-columns: 1fr;
    }

    .movie-card--horizontal {
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .rank-preview__item {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .rank-preview__meta {
        grid-column: 2;
    }

    .page-hero {
        padding: 30px;
    }

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

    .ranking-card__poster {
        width: 160px;
    }
}
