
:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-deep: #020617;
  --card: rgba(255, 255, 255, 0.055);
  --card-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(34, 211, 238, 0.25);
  --line-strong: rgba(34, 211, 238, 0.45);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --green: #34d399;
  --yellow: #facc15;
  --radius: 20px;
  --shadow: 0 24px 80px rgba(8, 47, 73, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.2), transparent 34rem),
    linear-gradient(135deg, #020617 0%, #0b1734 52%, #020617 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-container {
  width: min(1180px, calc(100% - 32px));
  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.94), rgba(30, 58, 138, 0.92), rgba(15, 23, 42, 0.94));
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 42px rgba(2, 6, 23, 0.35);
}

.header-grid-bg,
.footer-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.55;
}

.header-inner {
  position: relative;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #02101a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.55);
  letter-spacing: -0.04em;
}

.brand-name {
  font-size: 1.45rem;
  background: linear-gradient(90deg, var(--cyan), #93c5fd, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  padding: 10px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  opacity: 1;
}

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

.header-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 13px;
  color: #94a3b8;
  pointer-events: none;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  outline: none;
  border-radius: 13px;
  transition: border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input {
  width: 250px;
  padding: 10px 13px 10px 38px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: currentColor;
}

.mobile-panel {
  display: none;
  position: relative;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(34, 211, 238, 0.16);
}

.mobile-links {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.hero {
  position: relative;
  height: min(720px, calc(100vh - 68px));
  min-height: 580px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg,
.detail-backdrop,
.category-hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img,
.detail-backdrop img,
.category-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

.hero-overlay,
.detail-mask,
.category-hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(to bottom, transparent 0%, rgba(2, 6, 23, 0.98) 100%);
}

.hero::before,
.sub-hero::before,
.category-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  top: 12%;
  left: 7%;
  background: rgba(34, 211, 238, 0.16);
  filter: blur(70px);
  animation: floatGlow 5s ease-in-out infinite alternate;
}

.hero::after,
.sub-hero::after,
.category-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  right: 4%;
  bottom: 6%;
  background: rgba(59, 130, 246, 0.17);
  filter: blur(78px);
  animation: floatGlow 6s ease-in-out infinite alternate-reverse;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(740px, 100%);
  padding-top: 24px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 20px;
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  backdrop-filter: blur(10px);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-copy h1,
.sub-hero h1,
.category-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy h1 span,
.sub-hero h1,
.category-hero h1,
.detail-copy h1 {
  background: linear-gradient(90deg, var(--cyan), #93c5fd, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p,
.sub-hero p,
.category-hero p,
.detail-one-line {
  max-width: 680px;
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: 1.1rem;
  line-height: 1.85;
}

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

.hero-tags span,
.detail-meta span,
.tag-row span,
.meta-line span,
.meta-line a,
.pill-link,
.category-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.18);
  font-size: 0.8rem;
}

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

.primary-btn,
.ghost-btn,
.section-action,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border 0.25s ease;
}

.primary-btn {
  min-height: 52px;
  padding: 0 28px;
  color: #06111e;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 48px rgba(34, 211, 238, 0.28);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 60px rgba(34, 211, 238, 0.42);
}

.ghost-btn {
  min-height: 52px;
  padding: 0 28px;
  color: var(--cyan);
  border: 2px solid rgba(34, 211, 238, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

.ghost-btn:hover,
.section-action:hover,
.text-link:hover {
  background: rgba(34, 211, 238, 0.11);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  width: min(460px, 100%);
  gap: 0;
  margin-top: 42px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.hero-stats div {
  padding: 18px;
  text-align: center;
}

.hero-stats div + div {
  border-left: 1px solid rgba(34, 211, 238, 0.16);
}

.hero-stats strong {
  display: block;
  color: var(--cyan);
  font-size: 1.75rem;
}

.hero-stats span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 82px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(14px);
}

.hero-controls button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.hero-controls button:hover,
.hero-dot.is-active {
  color: #06111e;
  background: var(--cyan);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px !important;
  height: 9px !important;
  padding: 0;
}

.hero-wave {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 96px;
  fill: #020617;
}

.page-section {
  padding: 64px 0;
}

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

.section-kicker {
  display: inline-block;
  width: 6px;
  height: 34px;
  margin-right: 12px;
  border-radius: 999px;
  vertical-align: middle;
  background: linear-gradient(to bottom, var(--cyan), var(--blue));
}

.section-heading h2 {
  display: inline;
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--cyan), #bfdbfe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading p {
  margin: 12px 0 0 18px;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
}

.section-action,
.text-link {
  padding: 10px 16px;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.36);
  background: rgba(255, 255, 255, 0.04);
}

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

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

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

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(59, 130, 246, 0.12)),
    #0f172a;
}

.poster-frame.is-missing img {
  display: none;
}

.poster-frame.is-missing::after {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #e0f2fe;
  text-align: center;
  font-weight: 800;
  line-height: 1.35;
}

.movie-card > .poster-frame,
.compact-poster,
.ranking-thumb,
.detail-poster,
.tile-poster {
  border: 1px solid rgba(34, 211, 238, 0.14);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.24);
}

.movie-card > .poster-frame {
  aspect-ratio: 2 / 3;
  border-radius: 18px;
}

.movie-card > .poster-frame img,
.compact-poster img,
.ranking-thumb img,
.detail-poster img,
.tile-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.movie-card:hover .poster-frame img,
.ranking-row:hover .ranking-thumb img,
.category-cover-stack:hover img {
  transform: scale(1.08);
  filter: saturate(1.12);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.74), transparent 52%);
  opacity: 0.78;
  transition: opacity 0.25s ease;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.85);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.85);
  color: #06111e;
  opacity: 0;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.5);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: #dbeafe;
  font-size: 0.78rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.movie-card-body {
  padding: 13px 2px 0;
}

.movie-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pill-link {
  color: var(--cyan);
  padding: 5px 8px;
}

.score {
  color: var(--yellow);
  font-size: 0.84rem;
  font-weight: 700;
}

.movie-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.movie-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.25s ease;
}

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

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 43px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.tag-row span {
  color: #c4f1ff;
  padding: 4px 8px;
  font-size: 0.74rem;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.detail-content-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(255, 255, 255, 0.04));
}

.tile-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  right: -40px;
  bottom: -40px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.16);
  filter: blur(24px);
}

.category-tile strong,
.category-tile small,
.category-tile em {
  position: relative;
  display: block;
}

.category-tile strong {
  font-size: 1.45rem;
}

.category-tile small {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.75;
}

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

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 30px;
}

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

.movie-card-compact {
  display: flex;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  transition: background 0.25s ease, border 0.25s ease, transform 0.25s ease;
}

.movie-card-compact:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.compact-poster {
  width: 172px;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  border-radius: 14px;
}

.compact-body {
  min-width: 0;
  flex: 1;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}

.movie-card-compact h3 {
  margin: 10px 0 0;
  font-size: 1.08rem;
}

.mini-stats {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 0.84rem;
}

.ranking-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
  align-self: start;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 110px minmax(0, 1fr) 105px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  border-color: var(--line-strong);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.11), rgba(255, 255, 255, 0.03));
}

.rank-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #06111e;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 1.1rem;
  font-weight: 900;
}

.ranking-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.ranking-info h3 {
  margin: 0;
  font-size: 1.06rem;
}

.ranking-info p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.55;
}

.ranking-score {
  text-align: right;
}

.ranking-score strong {
  display: block;
  color: var(--yellow);
  font-size: 1.5rem;
}

.ranking-score span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.filter-bar input {
  flex: 1 1 320px;
  min-height: 46px;
  padding: 0 16px;
}

.filter-bar select {
  min-height: 46px;
  padding: 0 16px;
}

.filter-bar option {
  color: #0f172a;
}

.result-count {
  color: var(--cyan);
  font-weight: 800;
}

.sub-hero,
.category-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(59, 130, 246, 0.08)),
    var(--bg-deep);
}

.sub-hero .site-container,
.category-hero-inner,
.detail-hero-inner {
  position: relative;
  z-index: 2;
}

.category-hero {
  min-height: 430px;
}

.category-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease;
}

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

.tile-poster {
  position: absolute;
  width: 46%;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
}

.tile-poster:nth-child(1) {
  left: 0;
  top: 0;
  z-index: 4;
}

.tile-poster:nth-child(2) {
  left: 28%;
  top: 18px;
  z-index: 3;
}

.tile-poster:nth-child(3) {
  left: 54%;
  top: 36px;
  z-index: 2;
}

.tile-poster:nth-child(4) {
  left: 18%;
  top: 76px;
  z-index: 1;
  opacity: 0.78;
}

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

.category-overview-body p {
  color: var(--muted);
  line-height: 1.75;
}

.detail-hero {
  min-height: 700px;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 24px;
}

.detail-copy h1 {
  font-size: clamp(2.3rem, 6vw, 4.5rem);
}

.detail-tags {
  margin-top: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #000;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 0;
  color: var(--text);
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.2), transparent 28%),
    rgba(2, 6, 23, 0.45);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #06111e;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 44px rgba(34, 211, 238, 0.48);
}

.player-overlay strong {
  font-size: 1.25rem;
}

.player-overlay small,
.player-status {
  color: #cbd5e1;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  font-size: 0.88rem;
}

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

.detail-content-card {
  padding: 26px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.detail-content-card h2 {
  margin: 0 0 14px;
  color: var(--cyan);
}

.detail-content-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.9;
}

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

.detail-info-grid dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.detail-info-grid div {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.detail-info-grid dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.detail-info-grid dd {
  margin: 8px 0 0;
  color: var(--text);
  font-weight: 700;
}

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

.site-footer {
  position: relative;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.98));
  overflow: hidden;
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  padding: 54px 0;
}

.footer-column h2 {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.footer-column p,
.footer-column a,
.footer-column li {
  color: var(--muted);
  line-height: 1.75;
}

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

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

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-row span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--cyan);
  border: 1px solid var(--line);
  background: rgba(34, 211, 238, 0.08);
}

.footer-bottom {
  border-top: 1px solid rgba(34, 211, 238, 0.16);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  color: var(--muted-2);
}

.sitemap-list {
  columns: 4 240px;
  padding-left: 20px;
  line-height: 1.85;
}

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

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

@keyframes floatGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(30px, -18px, 0) scale(1.08);
  }
}

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

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

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

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

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

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

  .hero {
    min-height: 620px;
  }

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

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

  .ranking-panel {
    padding: 18px;
  }

  .detail-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

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

@media (max-width: 720px) {
  .site-container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    height: 62px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .hero,
  .detail-hero {
    min-height: 680px;
    height: auto;
  }

  .hero-content,
  .detail-hero-inner {
    padding: 78px 0 128px;
  }

  .hero-copy h1,
  .sub-hero h1,
  .category-hero h1,
  .detail-copy h1 {
    font-size: 2.55rem;
  }

  .hero-copy p,
  .sub-hero p,
  .category-hero p,
  .detail-one-line {
    font-size: 1rem;
  }

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

  .hero-stats div + div {
    border-left: 0;
    border-top: 1px solid rgba(34, 211, 238, 0.16);
  }

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

  .movie-grid,
  .featured-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-card-compact,
  .ranking-row,
  .category-overview-card,
  .detail-layout,
  .category-hero-inner {
    grid-template-columns: 1fr;
  }

  .movie-card-compact {
    display: grid;
  }

  .compact-poster {
    width: 100%;
  }

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

  .ranking-thumb,
  .ranking-score {
    display: none;
  }

  .rank-num {
    width: 38px;
    height: 38px;
  }

  .category-cover-stack {
    min-height: 240px;
  }

  .detail-poster {
    width: min(240px, 100%);
  }

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

  .footer-inner,
  .footer-bottom-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .featured-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .detail-actions,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn,
  .filter-bar input,
  .filter-bar select {
    width: 100%;
  }
}
