:root {
  color-scheme: dark;
  --bg: #050711;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.74);
  --panel-strong: rgba(17, 24, 39, 0.92);
  --text: #f8fafc;
  --muted: #a5b4fc;
  --subtle: #94a3b8;
  --line: rgba(168, 85, 247, 0.24);
  --purple: #a855f7;
  --purple-strong: #7c3aed;
  --pink: #ec4899;
  --red: #ef4444;
  --blue: #38bdf8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.24), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(236, 72, 153, 0.16), transparent 30rem),
    linear-gradient(180deg, #060814 0%, #0b1020 44%, #050711 100%);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 70%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(168, 85, 247, 0.22);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(88, 28, 135, 0.9), rgba(15, 23, 42, 0.94));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 16px 30px rgba(168, 85, 247, 0.28);
}

.brand-text {
  font-size: 1.28rem;
  background: linear-gradient(90deg, #f5d0fe, #f9a8d4, #bfdbfe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 9px 15px;
  border-radius: 12px;
  color: #d1d5db;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.header-search {
  position: relative;
  display: flex;
  width: min(360px, 30vw);
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.header-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px 10px 16px;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
}

.header-search input::placeholder {
  color: rgba(226, 232, 240, 0.72);
}

.header-search button {
  padding: 0 16px;
  border: 0;
  color: white;
  background: rgba(168, 85, 247, 0.34);
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-button span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: white;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-nav a {
  display: block;
  padding: 12px;
  border-radius: 12px;
  color: #e2e8f0;
}

.mobile-nav a:hover {
  background: rgba(168, 85, 247, 0.22);
}

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

.hero-shell {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border-bottom: 1px solid rgba(168, 85, 247, 0.18);
}

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

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

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

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 7, 17, 0.96) 0%, rgba(5, 7, 17, 0.76) 42%, rgba(5, 7, 17, 0.3) 100%),
    linear-gradient(0deg, rgba(5, 7, 17, 0.95), rgba(5, 7, 17, 0.1) 48%, rgba(5, 7, 17, 0.84)),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 72% 20%, rgba(236, 72, 153, 0.24), transparent 22rem),
    radial-gradient(circle at 20% 78%, rgba(168, 85, 247, 0.24), transparent 28rem);
}

.hero-backdrop {
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 56px;
  width: min(1280px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  padding: 72px 0 112px;
}

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

.hero-badges,
.hero-tags,
.tag-list,
.detail-genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badges span,
.hero-tags span,
.tag-list span,
.detail-genre-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-badges span:first-child,
.section-kicker {
  border-color: rgba(236, 72, 153, 0.34);
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #e2e8f0;
  font-size: clamp(1.06rem, 2vw, 1.38rem);
}

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

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

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--purple-strong), var(--pink));
  box-shadow: 0 18px 40px rgba(168, 85, 247, 0.34);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(168, 85, 247, 0.38);
}

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

.hero-poster::before {
  position: absolute;
  inset: -1px;
  z-index: 1;
  content: "";
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

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

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-arrow-prev {
  left: max(16px, calc((100% - 1280px) / 2));
}

.hero-arrow-next {
  right: max(16px, calc((100% - 1280px) / 2));
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

.hero-mini-strip {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  width: min(960px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-mini-card {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(18px);
}

.hero-mini-card img {
  width: 42px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
}

.hero-mini-card span {
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.compact-main {
  padding-top: 32px;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 54px;
}

.stats-panel div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.stats-panel strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.stats-panel span {
  color: var(--subtle);
}

.content-section {
  margin-top: 64px;
}

.glass-section {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(88, 28, 135, 0.2));
}

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

.section-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 10px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-panel h2 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-heading span,
.page-hero span {
  display: block;
  max-width: 780px;
  margin-top: 8px;
  color: var(--subtle);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d8b4fe;
  font-weight: 800;
}

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

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

.movie-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.92));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(168, 85, 247, 0.48);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
  transform: translateY(-5px);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(168, 85, 247, 0.18), transparent 60%),
    #0f172a;
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: white;
  font-size: 0.78rem;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #c4b5fd;
  font-size: 0.82rem;
}

.movie-meta-line span:not(:last-child)::after {
  content: "•";
  margin-left: 8px;
  color: rgba(196, 181, 253, 0.46);
}

.movie-info h3 {
  margin: 0 0 9px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: #d8b4fe;
}

.movie-info p {
  display: -webkit-box;
  flex: 1;
  min-height: 3.2em;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--subtle);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tag-list span {
  min-height: 26px;
  padding: 3px 9px;
  color: #e9d5ff;
  font-size: 0.78rem;
  background: rgba(168, 85, 247, 0.14);
}

.movie-card-compact {
  flex-direction: row;
  min-height: 185px;
}

.movie-card-compact .movie-poster {
  width: 128px;
  flex: 0 0 auto;
}

.movie-card-compact .movie-poster img {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card-compact .movie-info {
  min-width: 0;
}

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

.category-card,
.category-overview-card,
.detail-panel,
.filter-panel,
.page-hero,
.video-player,
.prev-next-section {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 20px;
  border-radius: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  border-color: rgba(236, 72, 153, 0.45);
  transform: translateY(-4px);
}

.category-card h3 {
  margin: 14px 0 8px;
  font-size: 1.2rem;
}

.category-card p {
  margin: 0;
  color: var(--subtle);
  font-size: 0.94rem;
}

.category-count {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #f5d0fe;
  background: rgba(168, 85, 247, 0.18);
}

.category-covers {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  isolation: isolate;
}

.category-covers img {
  width: 52px;
  height: 72px;
  margin-left: -20px;
  border: 2px solid rgba(15, 23, 42, 0.92);
  border-radius: 12px;
  object-fit: cover;
  transform: rotate(var(--tilt, -4deg));
}

.category-covers img:nth-child(2) {
  --tilt: 4deg;
}

.category-covers img:nth-child(3) {
  --tilt: 0deg;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 22px;
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: #cbd5e1;
  font-size: 0.86rem;
}

.filter-panel input,
.filter-panel select,
.filter-panel button {
  min-height: 42px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 12px;
  color: white;
  background: rgba(15, 23, 42, 0.82);
  outline: 0;
}

.filter-panel input,
.filter-panel select {
  padding: 0 12px;
}

.filter-panel button {
  align-self: end;
  padding: 0 16px;
  background: rgba(168, 85, 247, 0.24);
  cursor: pointer;
}

.filter-result {
  min-height: 24px;
  margin: 0 0 18px;
  color: #c4b5fd;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 7vw, 72px);
  border-radius: 32px;
}

.page-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.28), transparent 22rem),
    radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.18), transparent 24rem);
}

.page-hero p {
  width: fit-content;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.page-hero h1 {
  font-size: clamp(2.1rem, 6vw, 4.6rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: #cbd5e1;
}

.breadcrumb a {
  color: #d8b4fe;
}

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

.category-overview-card {
  overflow: hidden;
  border-radius: 28px;
}

.category-overview-link {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 210px;
}

.category-overview-images {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(15, 23, 42, 0.5));
}

.category-overview-images img {
  width: 72px;
  height: 102px;
  margin-left: -22px;
  border: 3px solid rgba(15, 23, 42, 0.92);
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.category-overview-images img:first-child {
  margin-left: 0;
}

.category-overview-body {
  padding: 24px;
}

.category-overview-body span {
  color: #c4b5fd;
}

.category-overview-body h2 {
  margin: 8px 0;
  font-size: 1.6rem;
}

.category-overview-body p {
  color: var(--subtle);
}

.category-overview-body strong {
  color: #d8b4fe;
}

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 38px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(90deg, rgba(5, 7, 17, 0.96), rgba(15, 23, 42, 0.82)),
    var(--detail-image) center / cover no-repeat;
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
}

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

.detail-copy {
  align-self: center;
}

.detail-copy h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.3rem, 6vw, 5rem);
}

.detail-copy p {
  max-width: 780px;
  color: #e2e8f0;
  font-size: 1.16rem;
}

.detail-genre-list {
  margin-top: 18px;
}

.player-section {
  margin-top: 42px;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: black;
}

.video-element {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: white;
  background:
    radial-gradient(circle at center, rgba(168, 85, 247, 0.34), transparent 18rem),
    rgba(0, 0, 0, 0.38);
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 999px;
  color: white;
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 22px 54px rgba(168, 85, 247, 0.44);
}

.play-overlay strong {
  display: block;
  font-size: 1.08rem;
}

.video-player.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
}

.player-message {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #e9d5ff;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(12px);
}

.video-player.is-playing .player-message {
  display: none;
}

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

.detail-panel {
  padding: 24px;
  border-radius: 24px;
}

.detail-panel h2 {
  margin-bottom: 14px;
  font-size: 1.6rem;
}

.detail-panel p {
  color: #d1d5db;
}

.detail-facts {
  grid-column: 1 / -1;
}

.detail-facts dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.detail-facts div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.detail-facts dt {
  color: var(--subtle);
  font-size: 0.82rem;
}

.detail-facts dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.prev-next-section {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
}

.prev-next-section a {
  color: #d8b4fe;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid rgba(168, 85, 247, 0.18);
  background: rgba(5, 7, 17, 0.82);
}

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

.footer-brand p,
.footer-links a,
.footer-meta span {
  color: var(--subtle);
}

.footer-links h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

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

.footer-links a:hover {
  color: #d8b4fe;
}

.footer-meta {
  display: grid;
  align-content: center;
  min-width: 140px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  text-align: center;
}

.footer-meta strong {
  font-size: 2rem;
  line-height: 1;
}

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

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

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

@media (max-width: 960px) {
  .main-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: flex;
  }

  .hero-content,
  .detail-hero,
  .category-overview-link {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    width: min(320px, 72vw);
    justify-self: center;
  }

  .stats-panel,
  .footer-inner,
  .detail-facts dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .filter-panel button {
    grid-column: 1 / -1;
  }

  .detail-content-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 64px;
  }

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

  .hero-content {
    min-height: 660px;
    gap: 24px;
    padding-top: 38px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-mini-strip {
    display: none;
  }

  .hero-dots {
    bottom: 28px;
  }

  .movie-grid,
  .movie-grid-featured,
  .category-grid,
  .stats-panel,
  .filter-panel,
  .footer-inner,
  .detail-facts dl {
    grid-template-columns: 1fr;
  }

  .movie-card-compact {
    flex-direction: column;
  }

  .movie-card-compact .movie-poster {
    width: 100%;
  }

  .prev-next-section {
    flex-direction: column;
  }
}
