:root {
  color-scheme: dark;
  --bg-950: #020617;
  --bg-900: #0f172a;
  --bg-850: #111827;
  --card-a: rgba(30, 41, 59, 0.52);
  --card-b: rgba(15, 23, 42, 0.58);
  --line: rgba(168, 85, 247, 0.22);
  --line-strong: rgba(168, 85, 247, 0.42);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --purple: #a855f7;
  --purple-strong: #7c3aed;
  --pink: #ec4899;
  --blue: #38bdf8;
  --gold: #facc15;
  --radius: 18px;
  --shadow: 0 22px 70px rgba(2, 6, 23, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.28), transparent 28rem),
    radial-gradient(circle at 85% 20%, rgba(236, 72, 153, 0.16), transparent 24rem),
    linear-gradient(135deg, var(--bg-950), var(--bg-900) 46%, #000 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(88, 28, 135, 0.94), rgba(15, 23, 42, 0.96));
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(18px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 68px;
}

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

.logo-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-strong), var(--pink));
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.45);
}

.logo-mark::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid white;
  content: "";
}

.logo-text {
  background: linear-gradient(90deg, #c084fc, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  color: #d1d5db;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(260px, 24vw);
}

.header-search input,
.search-box input,
.filter-select {
  width: 100%;
  border: 1px solid rgba(168, 85, 247, 0.34);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  height: 42px;
  padding: 0 44px 0 16px;
}

.header-search input:focus,
.search-box input:focus,
.filter-select:focus {
  border-color: #c084fc;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.18);
  background: rgba(15, 23, 42, 0.88);
}

.header-search button {
  position: absolute;
  right: 6px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple-strong), var(--pink));
  color: white;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px 0 20px;
}

.mobile-panel .nav-link {
  width: 100%;
  justify-content: flex-start;
}

.mobile-panel .header-search {
  width: 100%;
  margin-top: 12px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.72) 22%, rgba(0, 0, 0, 0.18) 68%, rgba(0, 0, 0, 0.05) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08) 72%);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  align-items: flex-end;
  padding: 0 0 70px;
}

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

.hero h1 {
  margin: 16px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.48);
}

.hero p {
  max-width: 640px;
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.badge-primary {
  background: linear-gradient(135deg, var(--purple-strong), var(--pink));
}

.hero-actions,
.card-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple-strong), var(--pink));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(168, 85, 247, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(236, 72, 153, 0.34);
  filter: brightness(1.08);
}

.btn-muted {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: none;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: white;
  font-size: 28px;
  line-height: 1;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-prev {
  left: 20px;
  transform: translateY(-50%);
}

.hero-next {
  right: 20px;
  transform: translateY(-50%);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.3s ease, background 0.3s ease;
}

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

.section-stack {
  display: grid;
  gap: 64px;
  padding: 54px 0 72px;
}

.section-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.36), rgba(15, 23, 42, 0.42));
  box-shadow: var(--shadow);
}

.panel-pad {
  padding: clamp(22px, 4vw, 36px);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 26px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.2;
}

.section-title::before {
  width: 6px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c084fc, #f472b6);
  content: "";
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c084fc;
  font-weight: 700;
  transition: color 0.2s ease;
}

.section-link:hover {
  color: #f0abfc;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.14);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--card-a), var(--card-b));
  box-shadow: 0 10px 32px rgba(2, 6, 23, 0.26);
  transition: border 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.68));
  box-shadow: 0 20px 52px rgba(168, 85, 247, 0.14);
  transform: translateY(-5px);
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(15, 23, 42, 0.9);
}

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

.movie-card:hover .card-image img,
.large-card:hover img,
.horizontal-card:hover img,
.related-link:hover img {
  transform: scale(1.1);
}

.card-image::after,
.large-poster::after,
.horizontal-poster::after,
.related-poster::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 68%);
  content: "";
}

.year-pill,
.region-pill,
.rank-num {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.year-pill {
  top: 10px;
  right: 10px;
  min-height: 26px;
  padding: 0 10px;
}

.region-pill {
  bottom: 10px;
  left: 10px;
  min-height: 26px;
  padding: 0 10px;
  background: rgba(124, 58, 237, 0.82);
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 52px;
  margin: 0 0 8px;
  color: white;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.movie-card:hover .card-title,
.horizontal-card:hover h3,
.related-link:hover h4 {
  color: #c084fc;
}

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--soft);
  font-size: 12px;
}

.tag-mini {
  display: inline-flex;
  max-width: 128px;
  min-height: 24px;
  align-items: center;
  overflow: hidden;
  padding: 0 9px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.large-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 420px;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.large-poster {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

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

.large-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: clamp(24px, 4vw, 40px);
}

.large-copy h3 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
}

.large-copy p {
  max-width: 780px;
  margin: 0;
  color: #e2e8f0;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.14);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.54));
  transition: border 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.horizontal-card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.68));
  transform: translateX(3px);
}

.horizontal-poster {
  position: relative;
  overflow: hidden;
  min-height: 170px;
}

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

.horizontal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.horizontal-copy h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.horizontal-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 14px;
  color: var(--soft);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.category-tile {
  display: flex;
  min-height: 168px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.22), transparent 55%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.64), rgba(15, 23, 42, 0.68));
  transition: border 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  border-color: rgba(236, 72, 153, 0.48);
  box-shadow: 0 20px 50px rgba(168, 85, 247, 0.16);
  transform: translateY(-4px);
}

.category-tile h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
}

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

.ranking-row {
  position: relative;
  display: grid;
  grid-template-columns: 68px 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: 18px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.42), rgba(15, 23, 42, 0.5));
  transition: border 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.ranking-row:hover {
  border-color: var(--line-strong);
  background: rgba(30, 41, 59, 0.64);
  transform: translateY(-2px);
}

.rank-number {
  color: #f0abfc;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.ranking-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  background: rgba(15, 23, 42, 0.8);
}

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

.ranking-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
}

.ranking-desc {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.3), rgba(236, 72, 153, 0.16));
}

.page-hero .container {
  padding: clamp(44px, 7vw, 72px) 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  color: #c084fc;
  font-size: 14px;
}

.page-title {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-intro {
  max-width: 840px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.filter-bar {
  display: grid;
  gap: 18px;
  margin: 0 0 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.46);
}

.search-box input {
  height: 52px;
  padding: 0 18px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-button {
  min-height: 38px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 12px;
  padding: 0 14px;
  background: rgba(30, 41, 59, 0.52);
  color: #d1d5db;
  transition: background 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.tag-button:hover,
.tag-button.is-active {
  border-color: transparent;
  background: linear-gradient(90deg, var(--purple-strong), var(--pink));
  color: white;
}

.filter-select {
  width: auto;
  min-width: 160px;
  height: 42px;
  padding: 0 14px;
}

.result-line {
  min-height: 24px;
  color: var(--soft);
  font-size: 14px;
}

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 42px 0 70px;
}

.watch-panel,
.detail-card,
.related-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.42), rgba(15, 23, 42, 0.52));
  box-shadow: var(--shadow);
}

.watch-panel {
  overflow: hidden;
}

.player-box {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.28));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-bubble {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-strong), var(--pink));
  box-shadow: 0 20px 60px rgba(236, 72, 153, 0.44);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.play-bubble:hover {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.play-bubble::before {
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid white;
  content: "";
}

.watch-copy {
  padding: clamp(22px, 4vw, 34px);
}

.watch-copy h1 {
  margin: 12px 0 14px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.watch-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.detail-card {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 34px);
}

.detail-card h2,
.related-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 900;
}

.detail-card p {
  margin: 0 0 18px;
  color: var(--muted);
  text-align: justify;
}

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

.meta-box {
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: 16px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.42);
}

.meta-box strong {
  display: block;
  margin: 0 0 3px;
  color: #c084fc;
  font-size: 13px;
}

.meta-box span {
  color: white;
  font-weight: 800;
}

.related-panel {
  position: sticky;
  top: 90px;
  padding: 22px;
}

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

.related-link {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 15px;
  padding: 8px;
  transition: background 0.2s ease;
}

.related-link:hover {
  background: rgba(51, 65, 85, 0.38);
}

.related-poster {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
}

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

.related-link h4 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-link p {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding: 38px 0;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: white;
}

.footer-grid p,
.footer-grid a {
  color: var(--soft);
}

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

.footer-bottom {
  border-top: 1px solid rgba(168, 85, 247, 0.13);
  padding: 18px 0;
  color: var(--soft);
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 70px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.42);
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

@media (max-width: 1080px) {
  .grid-cards,
  .grid-cards.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .related-panel {
    position: static;
  }
}

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

  .menu-button {
    display: grid;
    place-items: center;
  }

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

  .hero {
    height: 560px;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .horizontal-poster {
    aspect-ratio: 16 / 9;
  }

  .ranking-row {
    grid-template-columns: 46px 92px minmax(0, 1fr);
  }

  .ranking-row .btn {
    display: none;
  }

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

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

  .logo-text {
    font-size: 18px;
  }

  .hero {
    height: 520px;
  }

  .hero-content {
    padding-bottom: 68px;
  }

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

  .section-stack {
    gap: 44px;
    padding-top: 38px;
  }

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

  .grid-cards,
  .grid-cards.compact,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .card-title {
    min-height: auto;
  }

  .ranking-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .ranking-thumb {
    display: none;
  }

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

  .related-link {
    grid-template-columns: 100px minmax(0, 1fr);
  }
}
