:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --border: rgba(148, 163, 184, 0.18);
  --border-blue: rgba(59, 130, 246, 0.42);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --cyan: #22d3ee;
  --shadow-blue: 0 18px 45px rgba(59, 130, 246, 0.18);
  --radius: 18px;
  --radius-lg: 28px;
  --header-height: 78px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.26), transparent 34rem),
    radial-gradient(circle at 80% 12%, rgba(34, 211, 238, 0.16), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  border-bottom: 1px solid rgba(59, 130, 246, 0.14);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.88));
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.35);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 32px rgba(59, 130, 246, 0.36);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover .logo-mark {
  transform: rotate(10deg) scale(1.05);
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.4);
}

.logo-text {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  background: linear-gradient(90deg, #60a5fa, #67e8f9, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-nav-link {
  color: var(--muted-strong);
  border-radius: 12px;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-link {
  padding: 10px 13px;
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.16);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.12);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
}

.header-search input,
.mobile-search input,
.lead-search-form input,
.filter-controls input,
.filter-controls select,
.search-page-form input {
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.58);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 210px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
}

.header-search input:focus,
.mobile-search input:focus,
.lead-search-form input:focus,
.filter-controls input:focus,
.filter-controls select:focus,
.search-page-form input:focus {
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.header-search button,
.mobile-search button,
.lead-search-form button,
.filter-controls button,
.search-page-form button,
.btn {
  border: 0;
  cursor: pointer;
  border-radius: 13px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.header-search button,
.mobile-search button,
.lead-search-form button,
.search-page-form button,
.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.28);
}

.header-search button {
  padding: 9px 14px;
}

.header-search button:hover,
.mobile-search button:hover,
.lead-search-form button:hover,
.search-page-form button:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(59, 130, 246, 0.38);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(59, 130, 246, 0.12);
  background: rgba(2, 6, 23, 0.98);
  padding: 14px 18px 18px;
}

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

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  font-weight: 700;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  border-radius: 12px;
  padding: 11px 12px;
}

.mobile-search button {
  padding: 0 16px;
}

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

.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-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 7s ease;
}

.hero-slide.is-active img {
  transform: scale(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.78) 44%, rgba(2, 6, 23, 0.36) 100%),
    radial-gradient(circle at 22% 62%, rgba(37, 99, 235, 0.4), transparent 34rem);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(72px, 11vh, 132px);
}

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

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-kicker span,
.badge,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-kicker span:first-child {
  padding: 7px 16px;
  color: white;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
}

.hero-kicker span:last-child {
  padding: 7px 16px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.7rem, 6.5vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.5);
}

.hero p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.hero-meta,
.card-meta,
.detail-meta-row,
.category-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted-strong);
}

.hero-meta {
  margin-bottom: 28px;
  font-weight: 700;
}

.hero-meta span,
.detail-meta-row span,
.category-stats span {
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(14px);
}

.btn-ghost:hover {
  border-color: var(--border-blue);
  background: rgba(59, 130, 246, 0.12);
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 50%;
  color: white;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 2.4rem;
  line-height: 1;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-arrow:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(59, 130, 246, 0.8);
}

.hero-prev {
  left: max(18px, calc((100vw - 1180px) / 2 - 72px));
  transform: translateY(-50%);
}

.hero-next {
  right: max(18px, calc((100vw - 1180px) / 2 - 72px));
  transform: translateY(-50%);
}

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

.hero-dots button {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.32);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 54px;
  background: var(--blue);
}

.page-main {
  padding-top: calc(var(--header-height) + 34px);
  min-height: 70vh;
}

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

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

.section-heading h2,
.ranking-head h2,
.search-result-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
}

.section-heading p,
.search-card p,
.page-hero p,
.prose-card p,
.filter-title span,
.category-overview-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-more,
.ranking-head a {
  color: #93c5fd;
  font-weight: 800;
  white-space: nowrap;
}

.search-lead {
  margin-top: -42px;
  position: relative;
  z-index: 20;
}

.search-card,
.filter-panel,
.ranking-panel,
.detail-card,
.sidebar-card,
.prose-card,
.sitemap-card,
.category-overview-card {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.28);
}

.search-card {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px);
  gap: 26px;
  align-items: center;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.search-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.lead-search-form,
.search-page-form {
  display: flex;
  gap: 10px;
}

.lead-search-form input,
.search-page-form input {
  flex: 1;
  min-width: 0;
  border-radius: 14px;
  padding: 14px 16px;
}

.lead-search-form button,
.search-page-form button {
  padding: 0 22px;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.22);
}

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.35));
}

.category-tile:hover img {
  transform: scale(1.12);
  opacity: 0.52;
}

.category-glow {
  position: absolute;
  inset: auto 22px 22px auto;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.28);
  filter: blur(28px);
  z-index: 1;
}

.category-tile strong,
.category-tile em,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.category-tile em {
  color: #93c5fd;
  font-style: normal;
  margin-bottom: 12px;
  font-weight: 800;
}

.category-tile p {
  min-height: 48px;
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.6;
}

.poster-grid,
.large-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(12px);
  transition: transform 0.28s ease, border 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-blue);
  box-shadow: var(--shadow-blue);
  background: rgba(15, 23, 42, 0.82);
}

.poster-cover,
.large-cover,
.horizontal-cover,
.ranking-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.86);
}

.poster-cover {
  aspect-ratio: 2 / 3;
}

.large-cover {
  aspect-ratio: 16 / 9;
}

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

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

.poster-cover::after,
.large-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.02) 58%);
}

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: rgba(59, 130, 246, 0.82);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-type {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  color: white;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.poster-body,
.large-body,
.horizontal-body,
.ranking-body {
  padding: 14px;
}

.card-title {
  display: block;
  color: white;
  font-weight: 800;
  line-height: 1.38;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.movie-card:hover .card-title {
  color: #93c5fd;
}

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

.card-meta {
  gap: 8px;
  font-size: 0.78rem;
}

.card-meta span {
  color: var(--muted-strong);
}

.badge {
  position: absolute;
  top: 14px;
  z-index: 3;
  padding: 7px 11px;
}

.badge-blue {
  left: 14px;
  color: white;
  background: rgba(59, 130, 246, 0.9);
}

.badge-dark {
  left: 74px;
  color: white;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 6px 9px;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.24);
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  padding: 22px;
  border-radius: var(--radius-lg);
}

.ranking-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.13);
}

.rank-no {
  color: #93c5fd;
  font-size: 1.15rem;
  font-weight: 900;
}

.rank-row img {
  width: 64px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}

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

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.page-hero {
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.24), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.74));
  padding: clamp(34px, 6vw, 72px);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.28);
}

.small-hero {
  margin-bottom: 34px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: #67e8f9;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.045em;
}

.filter-panel {
  padding: 20px;
  border-radius: var(--radius-lg);
}

.filter-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-title strong {
  font-size: 1.2rem;
}

.filter-title em {
  color: #93c5fd;
  font-style: normal;
  font-weight: 900;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 160px 160px 160px auto;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-controls input,
.filter-controls select {
  min-width: 0;
  padding: 12px 13px;
  border-radius: 12px;
}

.filter-controls button {
  padding: 0 18px;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.78);
}

.filter-empty {
  margin: 0 0 18px;
  padding: 14px 16px;
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.1);
}

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

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

.category-overview-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
  border-radius: var(--radius-lg);
}

.category-sample {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: #020617;
}

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

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

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

.category-overview-body .btn {
  margin-top: 20px;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
}

.ranking-cover {
  aspect-ratio: 2 / 3;
}

.ranking-number {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

.search-page-form {
  max-width: 780px;
  margin-top: 24px;
}

.search-result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 22px;
}

.search-result-head span {
  color: var(--muted);
  font-weight: 700;
}

.detail-main {
  padding-bottom: 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: #93c5fd;
  font-weight: 700;
}

.breadcrumb strong {
  color: var(--text);
  font-weight: 800;
}

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

.video-player-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.55);
  background: black;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: black;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: black;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: white;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(59, 130, 246, 0.22), transparent 22rem),
    linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.26));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 20px 46px rgba(59, 130, 246, 0.42);
  font-size: 2rem;
  padding-left: 4px;
}

.play-overlay strong {
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.detail-card,
.sidebar-card,
.prose-card,
.sitemap-card {
  border-radius: var(--radius-lg);
  padding: 26px;
}

.detail-card {
  margin-top: 24px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.045em;
}

.detail-card section {
  margin-top: 26px;
}

.detail-card h2,
.prose-card h2,
.sitemap-card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.detail-card p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.9;
  font-size: 1.02rem;
}

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

.detail-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.poster-info-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: 0 20px 46px rgba(2, 6, 23, 0.36);
}

.poster-info-card h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.poster-info-card dl {
  margin: 0;
}

.poster-info-card div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.13);
}

.poster-info-card dt {
  color: var(--muted);
}

.poster-info-card dd {
  margin: 0;
  text-align: right;
  color: var(--text);
  font-weight: 700;
}

.poster-info-card a {
  color: #93c5fd;
}

.detail-nav-links {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
}

.detail-nav-links a {
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #93c5fd;
  font-weight: 800;
}

.prose-card {
  margin-bottom: 60px;
}

.prose-card h2:not(:first-child) {
  margin-top: 28px;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}

.sitemap-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-card li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
}

.sitemap-card a {
  color: #bfdbfe;
  font-weight: 700;
}

.movie-sitemap {
  margin-bottom: 60px;
}

.movie-sitemap ul {
  columns: 2;
  column-gap: 36px;
}

.movie-sitemap li {
  break-inside: avoid;
}

.site-footer {
  border-top: 1px solid rgba(59, 130, 246, 0.13);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), #020617);
}

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

.footer-logo {
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.site-footer a:not(.logo) {
  display: block;
  margin: 9px 0;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-footer a:not(.logo):hover {
  color: #93c5fd;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #64748b;
  font-size: 0.9rem;
}

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

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

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

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

  .two-column-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .detail-sidebar {
    position: static;
  }

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

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
  }

  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: 620px;
    height: 78vh;
  }

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

  .hero-arrow {
    display: none;
  }

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

  .lead-search-form,
  .search-page-form,
  .footer-bottom {
    flex-direction: column;
  }

  .lead-search-form button,
  .search-page-form button {
    min-height: 48px;
  }

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

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

  .large-grid,
  .ranking-list {
    grid-template-columns: 1fr;
  }

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

  .filter-title,
  .section-heading,
  .search-result-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-nav-links {
    flex-direction: column;
  }

  .detail-nav-links a {
    max-width: 100%;
  }

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

  .movie-sitemap ul {
    columns: 1;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-meta span,
  .detail-meta-row span {
    font-size: 0.82rem;
  }

  .poster-body,
  .large-body,
  .horizontal-body,
  .ranking-body {
    padding: 12px;
  }

  .movie-card p {
    font-size: 0.84rem;
  }

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

  .play-circle {
    width: 68px;
    height: 68px;
  }
}
