:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-panel: rgba(15, 23, 42, 0.72);
  --bg-panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(34, 211, 238, 0.3);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --orange: #f97316;
  --yellow: #facc15;
  --shadow: 0 24px 80px rgba(8, 145, 178, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::selection {
  background: rgba(34, 211, 238, 0.35);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), #67e8f9 45%, #38bdf8);
  border-radius: 999px;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.45);
  transform: rotate(0deg);
  transition: transform 0.45s ease;
}

.brand:hover .brand-mark {
  transform: rotate(180deg);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text em {
  color: var(--cyan);
  font-style: normal;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s ease;
}

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

.header-search {
  margin-left: auto;
  width: min(360px, 35vw);
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

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

.header-search input {
  flex: 1;
  padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.search-page-form button,
.home-search-panel button {
  border: 0;
  color: #001018;
  background: var(--cyan);
  cursor: pointer;
  font-weight: 700;
}

.header-search button {
  padding: 10px 16px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 11px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  color: var(--muted);
  padding: 8px 0;
}

.mobile-search {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.mobile-search input {
  flex: 1;
  padding: 10px 14px;
}

.mobile-search button {
  padding: 10px 16px;
}

.mobile-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-category-link {
  padding: 7px 10px !important;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
}

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: var(--bg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

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

.hero-slide.is-active .hero-bg {
  animation: heroZoom 5.6s ease both;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.45) 45%, rgba(2, 6, 23, 0.05) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1180px;
  padding-right: 45%;
}

.hero-kicker {
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 16px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.hero-desc {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.hero-meta,
.card-meta,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--subtle);
}

.hero-meta {
  margin-top: 22px;
}

.hero-meta span,
.card-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
}

.hero-meta span + span::before,
.card-meta span + span::before,
.detail-meta span + span::before {
  content: "•";
  margin-right: 9px;
  color: rgba(148, 163, 184, 0.55);
}

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

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

.hero-tags span,
.tag-row span {
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: #001018;
  background: var(--cyan);
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.32);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.btn-small {
  padding: 8px 15px;
  color: #001018;
  background: var(--cyan);
  font-size: 14px;
}

.hero-arrow {
  position: absolute;
  right: 32px;
  z-index: 4;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-prev {
  bottom: 92px;
}

.hero-next {
  bottom: 36px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

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

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

.home-search-panel {
  position: relative;
  z-index: 8;
  width: min(1080px, calc(100% - 32px));
  margin: -58px auto 0;
  padding: 22px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search-panel form {
  display: grid;
  gap: 12px;
}

.home-search-panel label,
.filter-bar label {
  color: var(--cyan);
  font-weight: 700;
}

.home-search-panel form > div {
  display: flex;
  min-height: 54px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.74);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.home-search-panel input {
  flex: 1;
  padding: 0 18px;
}

.home-search-panel button {
  padding: 0 28px;
}

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

.quick-links a {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.quick-links a:hover {
  color: var(--cyan);
  border-color: var(--line-strong);
}

.section {
  padding: 78px 0;
}

.section-muted {
  background: rgba(15, 23, 42, 0.38);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading p {
  margin: 0 0 8px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-heading h2,
.section-heading h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

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

.section-heading--inline > a {
  color: var(--cyan);
  font-weight: 700;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 20px 60px rgba(8, 145, 178, 0.22);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(15, 23, 42, 0.94)),
    var(--bg-soft);
}

.card-cover img,
.rank-thumb img,
.side-item img,
.review-card img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-cover img {
  transition: transform 0.35s ease, opacity 0.25s ease;
}

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

.play-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  color: #001018;
  background: var(--cyan);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #001018;
  background: linear-gradient(135deg, var(--yellow), #fb923c);
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(250, 204, 21, 0.28);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.rank-info h2 a:hover,
.side-item:hover strong {
  color: var(--cyan);
}

.card-body p {
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.55;
}

.card-meta {
  font-size: 12px;
  margin-bottom: 12px;
}

.tag-row {
  min-height: 28px;
}

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

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

.category-tile {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background:
    radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.18), transparent 14rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.32);
}

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

.category-tile span {
  color: var(--muted);
  line-height: 1.65;
}

.category-tile em {
  color: var(--cyan);
  font-style: normal;
  font-weight: 800;
}

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

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

.side-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.side-item:hover {
  background: rgba(30, 41, 59, 0.86);
  border-color: rgba(34, 211, 238, 0.28);
}

.side-item img {
  width: 86px;
  height: 110px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--bg-soft);
}

.side-item span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.side-item strong {
  line-height: 1.4;
}

.side-item em {
  color: var(--subtle);
  font-style: normal;
  font-size: 13px;
}

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

.review-card {
  display: flex;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.28);
}

.review-card img {
  width: 160px;
  min-height: 220px;
  background: var(--bg-soft);
}

.review-card span {
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: center;
}

.review-card strong {
  font-size: 22px;
}

.review-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.category-strip + .category-strip {
  margin-top: 42px;
}

.horizontal-row {
  display: flex;
  gap: 18px;
  padding-bottom: 12px;
  overflow-x: auto;
  scrollbar-color: rgba(34, 211, 238, 0.6) rgba(15, 23, 42, 0.9);
}

.horizontal-row .movie-card {
  width: 210px;
  flex: 0 0 auto;
}

.page-shell {
  min-height: 60vh;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 18px;
}

.compact-hero {
  position: relative;
}

.compact-hero::before {
  content: "";
  position: absolute;
  right: 0;
  top: 24px;
  width: 280px;
  height: 160px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  filter: blur(60px);
  pointer-events: none;
}

.page-hero > p:first-child {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
}

.page-intro {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  color: var(--subtle);
  font-size: 14px;
}

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

.breadcrumb span::before,
.breadcrumb a + a::before,
.breadcrumb a + span::before {
  content: "/";
  margin-right: 8px;
  color: rgba(148, 163, 184, 0.55);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.filter-bar input {
  flex: 1;
  min-height: 46px;
  padding: 0 14px;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 90px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.28);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #001018;
  background: var(--cyan);
  border-radius: 16px;
  font-weight: 900;
}

.rank-thumb {
  width: 90px;
  height: 120px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-soft);
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-info p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.search-page-form {
  display: flex;
  min-height: 56px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
}

.search-page-form input {
  flex: 1;
  padding: 0 20px;
}

.search-page-form button {
  padding: 0 30px;
}

.search-summary {
  margin: 18px 0 26px;
  color: var(--muted);
}

.detail-wrap {
  padding-top: 34px;
}

.detail-breadcrumb {
  margin-bottom: 24px;
}

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

.detail-main,
.detail-side {
  min-width: 0;
}

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

.movie-player {
  width: 100%;
  height: 100%;
  background: #000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.player-cover img {
  position: absolute;
  inset: 0;
  opacity: 0.62;
  filter: blur(1px) saturate(0.9);
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.22), transparent 18rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.15));
}

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

.player-play-icon {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  color: #001018;
  background: var(--cyan);
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 0 50px rgba(34, 211, 238, 0.44);
}

.player-loading,
.player-message {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--text);
  background: rgba(2, 6, 23, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
}

.detail-content h1 {
  margin: 26px 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
}

.detail-meta {
  margin-bottom: 16px;
}

.detail-tags {
  margin-bottom: 24px;
}

.content-block,
.side-panel {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
}

.content-block {
  padding: 26px;
  margin-top: 20px;
}

.content-block h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.content-block p {
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}

.content-block p + p {
  margin-top: 14px;
}

.one-line {
  color: #a5f3fc !important;
  font-style: italic;
}

.review-block {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.94));
}

.detail-side {
  position: sticky;
  top: 92px;
}

.side-panel {
  padding: 22px;
  margin-bottom: 20px;
}

.side-panel dl {
  margin: 0;
  display: grid;
  gap: 13px;
}

.side-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  padding-bottom: 12px;
}

.side-panel dt {
  color: var(--subtle);
}

.side-panel dd {
  margin: 0;
  text-align: right;
}

.side-panel dd a {
  color: var(--cyan);
}

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

.site-footer {
  margin-top: 60px;
  background: rgba(2, 6, 23, 0.94);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: 28px;
  color: var(--subtle);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
}

.footer-inner p {
  margin: 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 12px 18px;
}

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

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1.02);
  }
}

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

  .movie-grid--home,
  .category-overview-grid,
  .rank-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

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

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

  .header-inner {
    height: 64px;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    padding-right: 0;
  }

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

  .hero-arrow {
    display: none;
  }

  .home-search-panel form > div,
  .search-page-form {
    border-radius: 18px;
    flex-direction: column;
  }

  .home-search-panel input,
  .search-page-form input {
    min-height: 52px;
  }

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

  .section {
    padding: 56px 0;
  }

  .section-heading--inline {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid--home,
  .movie-grid--catalog,
  .category-overview-grid,
  .category-overview-grid--large,
  .rank-preview,
  .latest-list,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-row {
    grid-template-columns: 48px 78px 1fr;
  }

  .rank-row .btn {
    grid-column: 2 / -1;
    width: max-content;
  }

  .rank-info p {
    display: none;
  }

  .review-card {
    flex-direction: column;
  }

  .review-card img {
    width: 100%;
    height: 260px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .brand-text strong {
    font-size: 17px;
  }

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

  .hero {
    height: 540px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .home-search-panel {
    margin-top: -36px;
    padding: 16px;
    border-radius: 18px;
  }

  .movie-grid--home,
  .movie-grid--catalog,
  .category-overview-grid,
  .category-overview-grid--large,
  .rank-preview {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .movie-card {
    border-radius: 18px;
  }

  .card-body {
    padding: 12px;
  }

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

  .card-body p,
  .tag-row {
    display: none;
  }

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .rank-row {
    grid-template-columns: 42px 68px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .rank-number {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .rank-thumb {
    width: 68px;
    height: 92px;
  }

  .rank-info h2 {
    font-size: 16px;
  }

  .detail-wrap {
    width: min(100%, calc(100% - 20px));
  }

  .player-shell {
    border-radius: 18px;
  }

  .content-block,
  .side-panel {
    border-radius: 18px;
    padding: 18px;
  }

  .latest-list,
  .review-grid {
    grid-template-columns: 1fr;
  }
}
