* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg-deep: #020617;
  --bg-main: #0f172a;
  --bg-panel: #1e293b;
  --bg-soft: #111827;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --border: rgba(148, 163, 184, 0.18);
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --rose: #fb7185;
  --amber: #f59e0b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

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 18% 8%, rgba(34, 211, 238, 0.16), transparent 32rem),
    radial-gradient(circle at 82% 20%, rgba(168, 85, 247, 0.12), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text-main);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: min(1240px, calc(100% - 28px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.32);
  font-size: 15px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-size: 24px;
  letter-spacing: 0.04em;
}

.logo-text small {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 3px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: center;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 15px;
}

.desktop-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--cyan);
  transform: translateY(-1px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search,
.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 10px 15px;
}

.header-search input,
.filter-search input {
  width: 180px;
  border: 0;
  outline: 0;
  color: #e2e8f0;
  background: transparent;
}

.header-search input::placeholder,
.filter-search input::placeholder {
  color: #64748b;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0 0 18px;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.hero-slider {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: #020617;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s 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.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.76) 35%, rgba(2, 6, 23, 0.22) 70%, rgba(2, 6, 23, 0.68) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
  padding: 70px 0 150px;
}

.hero-content > * {
  max-width: 680px;
}

.hero-eyebrow,
.detail-eyebrow,
.page-hero span {
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 0;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-meta,
.detail-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-meta span,
.detail-meta-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 7px 13px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.20);
}

.hero-tags,
.detail-tags,
.movie-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span,
.detail-tags span,
.movie-tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.13);
  color: #67e8f9;
  font-size: 13px;
}

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

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

.primary-button {
  background: linear-gradient(135deg, var(--cyan-strong), #8b5cf6);
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(6, 182, 212, 0.28);
}

.ghost-button {
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.66);
}

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

.hero-arrow {
  position: absolute;
  z-index: 8;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

.hero-dots {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.hero-dot {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(14px);
  text-align: left;
}

.hero-dot img {
  width: 52px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
}

.hero-dot span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
}

.hero-dot.is-active {
  border-color: rgba(34, 211, 238, 0.62);
  background: rgba(8, 145, 178, 0.28);
}

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

.wide-band {
  background: rgba(15, 23, 42, 0.52);
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-heading span {
  flex: 1;
  min-width: 90px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 34px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.filter-search {
  border-radius: 16px;
}

.filter-search input {
  width: 100%;
}

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

.filter-chips button {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 9px 14px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.68);
}

.filter-chips button.is-active,
.filter-chips button:hover {
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.58);
  background: rgba(6, 182, 212, 0.24);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.34);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

.movie-poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.movie-card-small .movie-poster-link {
  aspect-ratio: 16 / 11;
}

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

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

.movie-poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 64%);
  opacity: 0.8;
}

.movie-play-mark {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%) scale(0.82);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.9);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 15px 35px rgba(6, 182, 212, 0.32);
}

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

.movie-year-mark {
  position: absolute;
  z-index: 3;
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.78);
  font-size: 12px;
}

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

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--text-muted);
  font-size: 12px;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.movie-card h3 a:hover {
  color: var(--cyan);
}

.movie-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.68;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile,
.category-overview-card,
.content-card,
.detail-card,
.side-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.78)),
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.16), transparent 20rem);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.26);
}

.category-tile {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

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

.category-tile span {
  font-size: 26px;
  font-weight: 900;
}

.category-tile strong {
  color: #cbd5e1;
  line-height: 1.7;
  font-weight: 500;
}

.category-tile em,
.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-style: normal;
}

.category-tile em a,
.category-samples a {
  padding: 6px 9px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.64);
  font-size: 12px;
}

.category-cyan {
  background-image: linear-gradient(145deg, rgba(8, 145, 178, 0.32), rgba(15, 23, 42, 0.86));
}

.category-emerald {
  background-image: linear-gradient(145deg, rgba(16, 185, 129, 0.28), rgba(15, 23, 42, 0.86));
}

.category-violet {
  background-image: linear-gradient(145deg, rgba(139, 92, 246, 0.32), rgba(15, 23, 42, 0.86));
}

.category-rose {
  background-image: linear-gradient(145deg, rgba(244, 63, 94, 0.28), rgba(15, 23, 42, 0.86));
}

.category-amber {
  background-image: linear-gradient(145deg, rgba(245, 158, 11, 0.28), rgba(15, 23, 42, 0.86));
}

.category-blue {
  background-image: linear-gradient(145deg, rgba(59, 130, 246, 0.28), rgba(15, 23, 42, 0.86));
}

.category-lime {
  background-image: linear-gradient(145deg, rgba(132, 204, 22, 0.24), rgba(15, 23, 42, 0.86));
}

.category-pink {
  background-image: linear-gradient(145deg, rgba(236, 72, 153, 0.28), rgba(15, 23, 42, 0.86));
}

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

.rank-row {
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.13);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.34);
}

.rank-link {
  display: grid;
  grid-template-columns: 64px 96px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}

.rank-number {
  font-size: 24px;
  font-weight: 900;
  color: var(--cyan);
  text-align: center;
}

.rank-link img {
  width: 96px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-content {
  min-width: 0;
}

.rank-content strong,
.compact-card strong {
  display: block;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-content em {
  display: block;
  margin-top: 5px;
  color: #94a3b8;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-score {
  color: #fbbf24;
  font-weight: 900;
}

.rank-views {
  color: var(--text-muted);
}

.center-actions {
  justify-content: center;
}

.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.68)),
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.22), transparent 26rem);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

.page-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(38px, 6vw, 62px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
}

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

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

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.category-cover span {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 16px;
  font-weight: 900;
  font-size: 24px;
}

.category-overview-card > div {
  padding: 24px;
}

.category-overview-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.category-overview-card p {
  margin: 0 0 22px;
  color: #cbd5e1;
  line-height: 1.7;
}

.detail-wrap {
  padding: 34px 0 76px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--text-muted);
  margin: 0 0 22px;
}

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

.breadcrumb strong {
  color: #e2e8f0;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  background: #000000;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
}

.player-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  color: #ffffff;
  background: #000000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

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

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(6, 182, 212, 0.18), rgba(0, 0, 0, 0.82) 70%);
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan-strong), #8b5cf6);
  box-shadow: 0 18px 48px rgba(6, 182, 212, 0.36);
  font-size: 38px;
  padding-left: 5px;
}

.detail-card,
.side-card,
.content-card {
  padding: 26px;
}

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

.detail-title-row h1 {
  margin: 8px 0 0;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.03em;
}

.detail-meta-grid {
  margin-top: 22px;
}

.text-section {
  margin-top: 28px;
}

.text-section h2,
.side-card h2,
.content-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.text-section p,
.side-card p,
.content-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.9;
}

.detail-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 96px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
}

.poster-card h2 {
  margin: 0 0 10px;
}

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

.compact-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.70);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: rgba(8, 145, 178, 0.20);
  transform: translateY(-2px);
}

.compact-card img {
  width: 96px;
  height: 62px;
  object-fit: cover;
  border-radius: 10px;
}

.compact-card small {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
}

.compact-play {
  position: absolute;
  left: 45px;
  top: 31px;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.88);
  color: #ffffff;
  font-size: 11px;
}

.content-stack {
  display: grid;
  gap: 22px;
  padding: 70px 0;
}

.content-card {
  max-width: 900px;
}

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

.site-footer {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), #020617);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

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

.footer-grid h2 {
  margin: 0 0 14px;
  color: #f8fafc;
  font-size: 18px;
}

.footer-grid p {
  color: #94a3b8;
  line-height: 1.8;
}

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

.footer-grid a {
  color: #94a3b8;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #64748b;
  text-align: center;
}

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

@media (max-width: 1160px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }

  .header-search input {
    width: 128px;
  }

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

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

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

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

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

@media (max-width: 880px) {
  .site-header-inner {
    height: 66px;
  }

  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.menu-open .mobile-nav {
    display: grid;
  }

  .logo-text strong {
    font-size: 20px;
  }

  .hero-slider {
    height: 720px;
  }

  .hero-content {
    padding: 54px 0 220px;
    justify-content: flex-end;
  }

  .hero-dots {
    grid-template-columns: repeat(2, 1fr);
    bottom: 22px;
  }

  .hero-arrow {
    display: none;
  }

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

  .filter-chips {
    justify-content: flex-start;
  }

  .movie-grid,
  .featured-grid,
  .hot-grid,
  .recent-grid,
  .category-page-grid,
  .category-overview-grid,
  .detail-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .rank-link {
    grid-template-columns: 44px 76px 1fr;
  }

  .rank-score,
  .rank-views {
    display: none;
  }

  .rank-link img {
    width: 76px;
    height: 54px;
  }
}

@media (max-width: 560px) {
  .container,
  .page-hero > div,
  .hero-content,
  .site-header-inner,
  .mobile-nav,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .logo-icon {
    width: 34px;
    height: 34px;
  }

  .logo-text small {
    display: none;
  }

  .hero-slider {
    height: 680px;
  }

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

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

  .hero-dots {
    grid-template-columns: 1fr;
  }

  .hero-dot:nth-child(n + 4) {
    display: none;
  }

  .movie-grid,
  .featured-grid,
  .hot-grid,
  .recent-grid,
  .category-page-grid,
  .category-grid,
  .category-overview-grid,
  .detail-side,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading span {
    display: block;
    width: 100%;
    margin-top: 16px;
  }

  .detail-title-row {
    display: block;
  }

  .detail-title-row .primary-button {
    margin-top: 18px;
  }

  .player-button {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }
}
