:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-light: #1e293b;
  --text: #ffffff;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --line: rgba(148, 163, 184, 0.18);
  --sky: #0284c7;
  --sky-light: #38bdf8;
  --blue: #2563eb;
  --orange: #f97316;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.18), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sky-light), var(--blue));
  color: white;
  box-shadow: 0 14px 36px rgba(14, 165, 233, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  color: var(--muted-strong);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sky-light);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.84);
  color: white;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
}

.menu-toggle span {
  width: 1.1rem;
  height: 2px;
  background: white;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 1.25rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.96);
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  color: var(--muted-strong);
  font-weight: 700;
}

.mobile-nav.open {
  display: block;
}

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

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

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s ease;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.hero-slide.active .hero-image {
  transform: scale(1);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.78));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(760px, 92vw);
  padding-top: 2rem;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--sky-light);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span:first-child,
.section-kicker {
  border: 1px solid rgba(56, 189, 248, 0.34);
  background: rgba(14, 165, 233, 0.16);
  color: #e0f2fe;
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.78rem;
}

.eyebrow span:last-child {
  color: var(--muted-strong);
  font-weight: 700;
}

.hero h1 {
  margin: 1.2rem 0 0.4rem;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #ffffff, #7dd3fc);
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 680px;
  margin: 1.2rem 0 0;
  color: #d1d5db;
  font-size: 1.1rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.primary-btn,
.ghost-btn,
.search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1.4rem;
  border-radius: 0.9rem;
  font-weight: 900;
  border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.search-button {
  background: linear-gradient(135deg, var(--sky), var(--blue));
  color: white;
  box-shadow: 0 16px 42px rgba(2, 132, 199, 0.28);
}

.primary-btn:hover,
.search-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 52px rgba(2, 132, 199, 0.34);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.64);
  color: white;
  backdrop-filter: blur(12px);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.65);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.48);
  color: white;
  font-size: 2.4rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.05);
}

.hero-arrow.prev {
  left: 1.3rem;
}

.hero-arrow.next {
  right: 1.3rem;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
}

.hero-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 2.2rem;
  background: var(--sky-light);
}

.search-band {
  max-width: 1180px;
  margin: -3.4rem auto 3rem;
  position: relative;
  z-index: 8;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.search-band h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
}

.search-band p {
  margin: 0;
  color: var(--muted);
}

.home-search {
  display: flex;
  gap: 0.75rem;
}

.home-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 3rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.72);
  color: white;
  padding: 0 1rem;
  outline: none;
}

.home-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(56, 189, 248, 0.76);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.home-search button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  color: white;
  font-weight: 900;
  padding: 0 1.4rem;
}

.page-wrap {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
}

.top-space {
  padding-top: 2rem;
}

.content-section {
  margin: 0 0 4rem;
}

.section-head {
  margin-bottom: 1.35rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.4rem;
}

.section-head h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.more-link {
  color: var(--sky-light);
  font-weight: 800;
}

.more-link:hover {
  color: white;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #1e293b);
}

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

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

.poster-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  max-width: calc(100% - 1.5rem);
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.88);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.28rem 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-play {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: white;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: scale(1);
}

.movie-body {
  padding: 1rem;
}

.movie-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-title a:hover {
  color: var(--sky-light);
}

.movie-desc {
  min-height: 3.1rem;
  margin: 0.55rem 0 0;
  color: var(--muted-strong);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.movie-meta span,
.detail-meta span {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  padding: 0.22rem 0.55rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.tag-row span {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #bae6fd;
  font-size: 0.76rem;
  padding: 0.18rem 0.5rem;
}

.tag-row.large span {
  font-size: 0.86rem;
  padding: 0.28rem 0.66rem;
}

.feature-card {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  overflow: hidden;
  margin: 0 0 4rem;
  border-radius: 1.6rem;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow);
}

.feature-poster {
  min-height: 360px;
  background: linear-gradient(135deg, #111827, #1e293b);
}

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

.feature-copy {
  padding: clamp(1.4rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-copy > span {
  width: fit-content;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  padding: 0.35rem 0.85rem;
  font-weight: 900;
  font-size: 0.8rem;
}

.feature-copy h2 {
  margin: 1rem 0 0.7rem;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.1;
}

.feature-copy p {
  color: var(--muted-strong);
}

.horizontal-strip {
  overflow-x: auto;
  display: flex;
  gap: 1rem;
  padding: 0.35rem 0 1rem;
  scrollbar-width: thin;
}

.strip-item {
  flex: 0 0 310px;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
}

.rank-list {
  display: grid;
  gap: 0.9rem;
}

.rank-item {
  display: grid;
  grid-template-columns: 56px 112px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: rgba(15, 23, 42, 0.78);
  padding: 0.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(56, 189, 248, 0.46);
}

.rank-number {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(37, 99, 235, 0.3));
  color: #e0f2fe;
  font-weight: 900;
}

.rank-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #111827, #1e293b);
}

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

.rank-content h3 {
  margin: 0;
  font-size: 1.04rem;
}

.rank-content h3 a:hover {
  color: var(--sky-light);
}

.rank-content p {
  margin: 0.35rem 0 0;
  color: var(--muted-strong);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-panel {
  position: sticky;
  top: 6.5rem;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: rgba(15, 23, 42, 0.78);
  padding: 1.25rem;
}

.side-panel h2 {
  margin: 0 0 1rem;
}

.side-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.side-category-list a,
.hero-mini-links a,
.category-mini-links a {
  color: #bae6fd;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.11);
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.side-category-list a:hover,
.hero-mini-links a:hover,
.category-mini-links a:hover {
  background: rgba(14, 165, 233, 0.22);
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.48);
}

.category-glow {
  position: absolute;
  width: 170px;
  height: 170px;
  right: -60px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 70%);
}

.category-card h3 {
  position: relative;
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
}

.category-card p {
  position: relative;
  margin: 0;
  color: var(--muted-strong);
}

.category-mini-links,
.hero-mini-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.page-hero {
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at 15% 10%, rgba(14, 165, 233, 0.2), transparent 26rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.94));
  box-shadow: var(--shadow);
}

.compact-hero {
  padding: clamp(1.6rem, 4vw, 3rem);
}

.compact-hero h1 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
}

.compact-hero p {
  max-width: 840px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.05rem;
}

.breadcrumb {
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.filter-panel {
  margin: 0 0 2rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.1rem;
  background: rgba(15, 23, 42, 0.72);
}

.filter-panel h2 {
  margin: 0 0 1rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1rem;
  align-items: end;
}

.filter-grid label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted-strong);
  font-weight: 700;
}

.filter-grid label span {
  font-size: 0.86rem;
}

.search-page-panel .filter-grid {
  grid-template-columns: 1.4fr 1fr 1fr auto;
}

.detail-head {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.94));
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #111827, #1e293b);
}

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

.detail-copy h1 {
  margin: 1rem 0 0.7rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
}

.detail-lead {
  max-width: 780px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.1rem;
}

.detail-copy .primary-btn {
  margin-top: 1.4rem;
}

.player-card {
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.88);
  box-shadow: var(--shadow);
}

.player-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.player-title-row h2 {
  margin: 0;
  font-size: 1.25rem;
}

.player-title-row span {
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.16);
  color: #bae6fd;
  padding: 0.28rem 0.75rem;
  font-weight: 800;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.52));
  color: white;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-ring {
  width: 6rem;
  height: 6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(2, 132, 199, 0.84);
  box-shadow: 0 18px 60px rgba(2, 132, 199, 0.38);
  font-size: 2.5rem;
  padding-left: 0.3rem;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.detail-content article {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.74);
  padding: 1.35rem;
}

.detail-content h2 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
}

.detail-content p {
  margin: 0;
  color: var(--muted-strong);
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.86);
}

.footer-inner {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.footer-brand {
  color: white;
  font-weight: 900;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

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

.footer-inner p {
  margin: 0;
}

.filter-card.hidden-card {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(15, 23, 42, 0.76);
  padding: 2rem;
  color: var(--muted-strong);
  text-align: center;
}

@media (max-width: 1080px) {
  .movie-grid,
  .home-grid,
  .small-grid,
  .catalog-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column-section,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .detail-head,
  .feature-card {
    grid-template-columns: 1fr;
  }

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 620px;
    height: 78vh;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 5rem;
  }

  .hero-arrow {
    width: 2.7rem;
    height: 2.7rem;
    font-size: 2rem;
  }

  .search-band,
  .filter-grid,
  .search-page-panel .filter-grid {
    grid-template-columns: 1fr;
  }

  .search-band {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .home-search {
    flex-direction: column;
  }

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

  .strip-item {
    flex-basis: 280px;
  }

  .rank-item {
    grid-template-columns: 46px 86px minmax(0, 1fr);
    gap: 0.7rem;
  }

  .rank-content p {
    -webkit-line-clamp: 1;
  }

  .detail-head {
    gap: 1rem;
  }

  .player-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .play-ring {
    width: 4.6rem;
    height: 4.6rem;
    font-size: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
