:root {
  color-scheme: light;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --text: #111827;
  --muted: #6b7280;
  --soft: #f3f7fb;
  --line: #e5e7eb;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f6fbff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transition: background 0.28s ease, box-shadow 0.28s ease, color 0.28s ease;
}

.hero-nav {
  color: #ffffff;
  background: transparent;
}

.hero-nav.is-scrolled,
.solid-nav {
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.brand-text {
  font-size: 20px;
}

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

.nav-link {
  position: relative;
  font-weight: 700;
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  color: var(--blue);
}

.hero-nav:not(.is-scrolled) .nav-link:hover,
.hero-nav:not(.is-scrolled) .nav-link.active {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

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

.mobile-link {
  display: block;
  padding: 12px 14px;
  color: #374151;
  border-radius: 12px;
  font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--blue);
  background: #eff6ff;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 45%, rgba(6, 182, 212, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.78) 46%, rgba(15, 23, 42, 0.32) 100%),
    linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(20, 184, 166, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 70px;
  padding: 120px 0 160px;
}

.hero-copy {
  color: #ffffff;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(46px, 8vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.065em;
  text-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
}

.hero p {
  max-width: 760px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.7;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.hero-tags span,
.detail-tags span {
  padding: 8px 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

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

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.35);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(14px);
}

.ghost-btn.light {
  color: #ffffff;
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(2.5deg);
}

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

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

.hero-poster span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  font-size: 28px;
}

.hero-search {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 78px;
  width: min(920px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.hero-search form {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 0 20px;
  color: #111827;
  background: transparent;
  border: 0;
  outline: 0;
}

.hero-search button {
  padding: 0 26px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 800;
}

.hero-search > a {
  padding: 12px 18px;
  color: #ffffff;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  right: 42px;
  bottom: 92px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 28px;
  background: #ffffff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  transform: translateY(-50%);
  font-size: 30px;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  width: 24px;
  height: 40px;
  padding: 6px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-hint span {
  display: block;
  width: 7px;
  height: 7px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 50%;
  animation: scrollHint 1.8s ease-in-out infinite;
}

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

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.section-more {
  color: var(--blue);
  background: #eff6ff;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
  transform: translateY(-7px);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.44));
  opacity: 0.9;
}

.card-badge,
.card-year {
  position: absolute;
  top: 10px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.88);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  left: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-year {
  right: 10px;
  background: rgba(15, 23, 42, 0.72);
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 15px;
}

.card-info strong {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  line-height: 1.38;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.card-meta em {
  padding: 4px 7px;
  color: var(--blue);
  background: #eff6ff;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

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

.category-tile,
.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  color: #ffffff;
  border-radius: 28px;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-card:hover {
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
  transform: translateY(-6px);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-overlay,
.category-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.82), rgba(6, 182, 212, 0.6));
}

.category-copy,
.category-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.category-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 24px;
}

.category-copy strong,
.category-card strong {
  font-size: 24px;
  line-height: 1.1;
}

.category-copy em,
.category-card em {
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
  opacity: 0.92;
}

.category-card {
  min-height: 250px;
  padding: 24px;
}

.category-card-bg {
  z-index: 0;
}

.category-card > *:not(.category-card-bg) {
  position: relative;
  z-index: 2;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 12px;
}

.category-samples span {
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.category-card b {
  align-self: flex-start;
  padding: 10px 14px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
}

.gradient-blue-cyan .category-overlay,
.gradient-blue-cyan .category-card-bg,
.gradient-blue-cyan.compact-hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.88), rgba(6, 182, 212, 0.74));
}

.gradient-purple-pink .category-overlay,
.gradient-purple-pink .category-card-bg,
.gradient-purple-pink.compact-hero {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.88), rgba(236, 72, 153, 0.74));
}

.gradient-orange-red .category-overlay,
.gradient-orange-red .category-card-bg,
.gradient-orange-red.compact-hero {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.88), rgba(239, 68, 68, 0.74));
}

.gradient-green-teal .category-overlay,
.gradient-green-teal .category-card-bg,
.gradient-green-teal.compact-hero {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.88), rgba(20, 184, 166, 0.74));
}

.gradient-blue-indigo .category-overlay,
.gradient-blue-indigo .category-card-bg,
.gradient-blue-indigo.compact-hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.88), rgba(79, 70, 229, 0.74));
}

.gradient-cyan-sky .category-overlay,
.gradient-cyan-sky .category-card-bg,
.gradient-cyan-sky.compact-hero {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.88), rgba(14, 165, 233, 0.74));
}

.gradient-red-rose .category-overlay,
.gradient-red-rose .category-card-bg,
.gradient-red-rose.compact-hero {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.88), rgba(225, 29, 72, 0.74));
}

.gradient-pink-orange .category-overlay,
.gradient-pink-orange .category-card-bg,
.gradient-pink-orange.compact-hero {
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.88), rgba(249, 115, 22, 0.74));
}

.gradient-violet-blue .category-overlay,
.gradient-violet-blue .category-card-bg,
.gradient-violet-blue.compact-hero {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.88), rgba(37, 99, 235, 0.74));
}

.gradient-amber-orange .category-overlay,
.gradient-amber-orange .category-card-bg,
.gradient-amber-orange.compact-hero {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.88), rgba(249, 115, 22, 0.74));
}

.gradient-teal-emerald .category-overlay,
.gradient-teal-emerald .category-card-bg,
.gradient-teal-emerald.compact-hero {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.88), rgba(16, 185, 129, 0.74));
}

.gradient-slate-blue .category-overlay,
.gradient-slate-blue .category-card-bg,
.gradient-slate-blue.compact-hero {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.88), rgba(37, 99, 235, 0.74));
}

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

.rank-row,
.rank-page-row {
  display: grid;
  grid-template-columns: 52px 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover,
.rank-page-row:hover {
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.13);
  transform: translateY(-3px);
}

.rank-number,
.rank-page-number {
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

.rank-row img,
.rank-page-row img {
  width: 68px;
  height: 94px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-copy,
.rank-page-copy {
  display: grid;
  gap: 6px;
}

.rank-copy strong,
.rank-page-copy strong {
  font-size: 18px;
}

.rank-copy em,
.rank-page-copy em,
.rank-page-copy b {
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
}

.rank-go,
.rank-page-action {
  padding: 9px 14px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 999px;
  font-weight: 800;
}

.page-main {
  padding-top: 76px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 76% 24%, rgba(6, 182, 212, 0.34), transparent 34%),
    linear-gradient(135deg, #1d4ed8, #0891b2 58%, #14b8a6);
}

.compact-hero {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 74px 16px;
  text-align: center;
}

.compact-hero > div {
  width: min(920px, 100%);
}

.compact-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.compact-hero p {
  margin: 0 auto;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.filter-panel,
.search-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, 180px) auto;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.search-panel {
  grid-template-columns: minmax(240px, 1fr) repeat(4, 160px);
}

.filter-panel input,
.filter-panel select,
.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: #111827;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-count,
.search-meta {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.search-meta {
  margin: 4px 0 24px;
}

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

.detail-main {
  background: linear-gradient(180deg, #020617 0, #f8fafc 720px);
}

.detail-hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: #ffffff;
  padding: 132px 0 86px;
}

.detail-bg-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 24%, rgba(6, 182, 212, 0.36), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.82) 48%, rgba(15, 23, 42, 0.46)),
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), #020617);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.46);
}

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

.detail-copy .breadcrumb {
  justify-content: flex-start;
  margin: 0 0 18px;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 9px 12px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  font-weight: 800;
}

.player-section {
  padding-top: 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.58));
}

.video-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.32);
  font-size: 32px;
}

.video-overlay strong {
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.36);
  border-radius: 999px;
  font-size: 18px;
}

.video-shell.is-playing .video-overlay {
  display: none;
}

.video-status {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 4;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.video-controls {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto auto 120px auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  backdrop-filter: blur(16px);
}

.video-controls button {
  min-height: 36px;
  padding: 0 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  font-weight: 800;
}

.video-progress,
.video-volume {
  accent-color: var(--blue);
}

.video-time {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 24px;
}

.text-panel {
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 28px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.text-panel p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
}

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

.site-footer {
  margin-top: 40px;
  padding: 48px 0;
  color: #dbeafe;
  background: #0f172a;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.footer-inner p {
  max-width: 620px;
  margin: 0;
  color: rgba(219, 234, 254, 0.78);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: rgba(219, 234, 254, 0.84);
  font-weight: 800;
}

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

@keyframes scrollHint {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(13px);
  }
}

@media (max-width: 1120px) {
  .movie-grid,
  .featured-grid,
  .category-movie-grid,
  .search-grid,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
  }

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

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

  .nav-toggle {
    display: block;
  }

  .nav-inner {
    height: 68px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 96px;
    padding-bottom: 190px;
  }

  .hero-poster {
    display: none;
  }

  .hero-search {
    flex-wrap: wrap;
    border-radius: 24px;
  }

  .hero-search form {
    flex-basis: 100%;
  }

  .hero-dots,
  .hero-arrow {
    display: none;
  }

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

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

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

  .detail-poster {
    width: min(300px, 76vw);
  }

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

  .video-controls {
    position: static;
    grid-template-columns: 1fr 1fr;
    border-radius: 0;
  }

  .video-progress,
  .video-time {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .brand-text {
    font-size: 18px;
  }

  .content-section {
    padding: 54px 0;
  }

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

  .card-info {
    padding: 12px;
  }

  .card-info strong {
    min-height: 40px;
    font-size: 14px;
  }

  .card-desc {
    display: none;
  }

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

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

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

  .rank-go,
  .rank-page-action {
    display: none;
  }

  .rank-row img,
  .rank-page-row img {
    width: 58px;
    height: 80px;
  }

  .detail-hero {
    min-height: auto;
    padding-top: 104px;
  }

  .detail-copy h1 {
    font-size: 36px;
  }

  .hero-search button {
    padding: 0 18px;
  }
}
