:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: #1e293b;
    --bg-card-2: #334155;
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.22);
    --cyan: #22d3ee;
    --cyan-strong: #06b6d4;
    --blue: #3b82f6;
    --orange: #f97316;
    --red: #ef4444;
    --pink: #ec4899;
    --purple: #8b5cf6;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(51, 65, 85, 0.94), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.42);
    font-size: 16px;
    font-weight: 900;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.brand-text strong {
    font-size: 23px;
    letter-spacing: 0.05em;
}

.brand-text small {
    margin-top: 4px;
    color: var(--cyan);
    font-size: 12px;
}

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

.nav-link,
.mobile-link {
    color: #dbeafe;
    font-weight: 700;
    transition: color 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--cyan);
}

.header-search {
    position: relative;
    width: 238px;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.24);
    outline: none;
    color: var(--text);
    background: rgba(15, 23, 42, 0.72);
    border-radius: 999px;
    padding: 12px 46px 12px 18px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(34, 211, 238, 0.72);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
    background: rgba(15, 23, 42, 0.96);
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    color: var(--cyan);
    border: none;
    border-radius: 50%;
    background: transparent;
    font-size: 24px;
}

.menu-button {
    display: none;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.7);
}

.menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 16px;
}

.mobile-search input {
    padding-right: 18px;
}

.mobile-search button,
.search-page-form button {
    border: none;
    color: white;
    border-radius: 999px;
    padding: 0 20px;
    background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
    font-weight: 800;
}

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

.hero-carousel {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    background: #020617;
}

.hero-carousel > h1 {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 32px));
    margin: 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.72s ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.05);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 52%, rgba(34, 211, 238, 0.24), transparent 22rem),
        linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(2, 6, 23, 0.74) 42%, rgba(2, 6, 23, 0.2) 100%),
        linear-gradient(180deg, transparent 0%, #020617 96%);
}

.hero-content {
    position: absolute;
    inset: 0;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 64px;
    align-items: center;
    padding-top: 20px;
}

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

.hero-kicker,
.inner-hero span,
.section-heading span,
.category-card-body > span,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    color: #ecfeff;
    background: rgba(6, 182, 212, 0.9);
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-copy h2 {
    margin: 24px 0 20px;
    font-size: clamp(44px, 7vw, 76px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-shadow: 0 12px 48px rgba(0, 0, 0, 0.54);
}

.hero-copy p {
    max-width: 620px;
    margin: 0 0 22px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.inline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-tags span,
.detail-facts span,
.movie-meta span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    padding: 7px 12px;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.hero-actions,
.center-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

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

.primary-button {
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 44px rgba(34, 211, 238, 0.24);
}

.ghost-button,
.text-link {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #eff6ff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 24px 60px rgba(34, 211, 238, 0.22);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 32px;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

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

.hero-poster span,
.poster-link .play-mark,
.wide-image span,
.category-cover span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    color: #001018;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    font-weight: 900;
}

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    color: white;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(14px);
    font-size: 34px;
    transform: translateY(-50%);
    transition: background 0.22s ease, transform 0.22s ease;
}

.hero-arrow:hover {
    background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
    transform: translateY(-50%) scale(1.08);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 62px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    transition: width 0.22s ease, background 0.22s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

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

.dark-block {
    background: rgba(15, 23, 42, 0.72);
}

.mid-block {
    background: rgba(30, 41, 59, 0.86);
}

.glow-block {
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 24rem),
        linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(2, 6, 23, 0.96));
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-heading h2,
.inner-hero h1,
.detail-copy h1 {
    margin: 14px 0 12px;
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.section-heading p,
.inner-hero p {
    margin: 0 auto;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.section-heading i {
    display: block;
    width: 86px;
    height: 4px;
    margin: 22px auto 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.86);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
    transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(34, 211, 238, 0.66);
    box-shadow: 0 28px 74px rgba(0, 0, 0, 0.34);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #020617;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.82));
    opacity: 0.72;
}

.poster-link .play-mark {
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .poster-link .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    color: white;
    background: rgba(0, 0, 0, 0.66);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.rank-badge {
    right: auto;
    left: 12px;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.movie-card-body {
    padding: 16px;
}

.movie-card-body h2 {
    min-height: 46px;
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card-body h2 a:hover,
.wide-body h2 a:hover,
.category-card-body h2 a:hover {
    color: var(--cyan);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-meta span {
    padding: 5px 9px;
    font-size: 12px;
}

.wide-list {
    display: grid;
    gap: 18px;
}

.wide-card {
    display: grid;
    grid-template-columns: 315px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.66);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.wide-image {
    position: relative;
    overflow: hidden;
    min-height: 215px;
}

.wide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wide-card:hover .wide-image img {
    transform: scale(1.06);
}

.wide-body {
    padding: 28px;
}

.wide-body h2 {
    margin: 14px 0 10px;
    font-size: 28px;
    line-height: 1.22;
}

.wide-body p {
    margin: 0 0 18px;
    color: #cbd5e1;
    line-height: 1.72;
}

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

.category-tile {
    position: relative;
    display: flex;
    min-height: 260px;
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.category-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
}

.category-tile img,
.category-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-tile img {
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.category-shade {
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.88)),
        linear-gradient(135deg, rgba(6, 182, 212, 0.34), rgba(59, 130, 246, 0.18));
}

.category-tile strong,
.category-tile small {
    position: relative;
    z-index: 2;
}

.category-tile strong {
    font-size: 24px;
    font-weight: 900;
}

.category-tile small {
    display: block;
    margin-top: 10px;
    color: #dbeafe;
    line-height: 1.6;
}

.inner-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 78px;
    background:
        radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.22), transparent 26rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
}

.inner-hero .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 22px;
    color: #cbd5e1;
    font-size: 14px;
}

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

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

.category-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 26px;
    background: rgba(30, 41, 59, 0.74);
    box-shadow: var(--shadow);
}

.category-cover {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

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

.category-card-body {
    padding: 28px;
}

.category-card-body h2 {
    margin: 14px 0 12px;
    font-size: 30px;
}

.category-card-body p {
    margin: 0 0 18px;
    color: #cbd5e1;
    line-height: 1.72;
}

.category-samples {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.category-samples a {
    color: #dbeafe;
}

.category-samples a:hover {
    color: var(--cyan);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 30px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    padding: 18px;
    box-shadow: 0 18px 58px rgba(0, 0, 0, 0.2);
}

.filter-panel input,
.filter-panel select {
    padding: 13px 18px;
}

.empty-state {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.7);
    padding: 28px;
    text-align: center;
}

.search-page-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 12px;
    max-width: 720px;
    margin-top: 28px;
}

.search-page-form input {
    padding-right: 18px;
}

.detail-hero {
    position: relative;
    min-height: 660px;
    background-image: var(--detail-bg);
    background-position: center;
    background-size: cover;
}

.detail-hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 42%, rgba(34, 211, 238, 0.2), transparent 22rem),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.34)),
        linear-gradient(180deg, rgba(2, 6, 23, 0.22), #020617 100%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 64px 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

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

.detail-copy {
    max-width: 760px;
}

.detail-one-line {
    margin: 0 0 22px;
    color: #dbeafe;
    font-size: 20px;
    line-height: 1.72;
}

.detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: none;
    color: white;
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.22), rgba(0, 0, 0, 0.62));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 20px 60px rgba(34, 211, 238, 0.32);
    font-size: 30px;
    font-weight: 900;
}

.player-overlay strong {
    font-size: 20px;
    letter-spacing: 0.08em;
}

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

.player-message {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    border-radius: 999px;
    color: white;
    background: rgba(239, 68, 68, 0.88);
    padding: 10px 16px;
    font-weight: 700;
}

.detail-article {
    max-width: 900px;
}

.detail-article h2 {
    margin: 0 0 14px;
    font-size: 30px;
}

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

.detail-article p {
    margin: 0;
    color: #dbeafe;
    font-size: 17px;
    line-height: 1.92;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, #020617, #000);
    padding: 54px 0 26px;
}

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

.footer-brand {
    margin-bottom: 16px;
}

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

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

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

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

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 36px auto 0;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    color: #64748b;
    font-size: 14px;
}

.from-blue-to-cyan .category-shade,
.category-inner.from-blue-to-cyan {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.58), rgba(6, 182, 212, 0.32));
}

.from-cyan-to-indigo .category-shade,
.category-inner.from-cyan-to-indigo {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.58), rgba(79, 70, 229, 0.32));
}

.from-orange-to-red .category-shade,
.category-inner.from-orange-to-red {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.58), rgba(239, 68, 68, 0.32));
}

.from-purple-to-pink .category-shade,
.category-inner.from-purple-to-pink {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.58), rgba(236, 72, 153, 0.32));
}

.from-red-to-orange .category-shade,
.category-inner.from-red-to-orange {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.58), rgba(249, 115, 22, 0.32));
}

.from-pink-to-rose .category-shade,
.category-inner.from-pink-to-rose {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.58), rgba(244, 63, 94, 0.32));
}

.from-violet-to-blue .category-shade,
.category-inner.from-violet-to-blue {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.58), rgba(59, 130, 246, 0.32));
}

.from-amber-to-yellow .category-shade,
.category-inner.from-amber-to-yellow {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.58), rgba(234, 179, 8, 0.32));
}

.from-emerald-to-cyan .category-shade,
.category-inner.from-emerald-to-cyan {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.58), rgba(6, 182, 212, 0.32));
}

.from-slate-to-cyan .category-shade,
.category-inner.from-slate-to-cyan {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.7), rgba(6, 182, 212, 0.34));
}

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

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

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

    .menu-button {
        display: block;
    }

    .hero-carousel {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        align-content: center;
        padding: 76px 0 92px;
    }

    .hero-poster {
        width: min(260px, 74vw);
        margin: 0 auto;
        transform: none;
    }

    .hero-copy h2 {
        font-size: clamp(36px, 12vw, 56px);
    }

    .hero-arrow {
        display: none;
    }

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

    .wide-card,
    .category-card,
    .detail-layout,
    .footer-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .wide-image,
    .category-cover {
        min-height: auto;
        aspect-ratio: 16 / 9;
    }

    .detail-poster {
        max-width: 280px;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .site-header-inner {
        min-height: 68px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .hero-carousel {
        min-height: 720px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-dots {
        bottom: 48px;
    }

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

    .movie-grid,
    .catalog-grid,
    .compact-grid,
    .ranking-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-card-body {
        padding: 13px;
    }

    .movie-card-body h2 {
        font-size: 15px;
    }

    .wide-body,
    .category-card-body {
        padding: 20px;
    }

    .detail-layout {
        gap: 28px;
    }

    .detail-copy h1 {
        font-size: 34px;
    }

    .search-page-form {
        grid-template-columns: 1fr;
    }

    .search-page-form button {
        min-height: 48px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
