:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: rgba(15, 23, 42, 0.72);
  --panel: rgba(15, 23, 42, 0.86);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --border: rgba(14, 165, 233, 0.22);
  --border-strong: rgba(56, 189, 248, 0.48);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --dim: #64748b;
  --sky: #38bdf8;
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --shadow: 0 24px 80px rgba(8, 47, 73, 0.36);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 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(14, 165, 233, 0.18), transparent 36rem),
    radial-gradient(circle at 88% 12%, rgba(34, 211, 238, 0.1), 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;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.92));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(8, 47, 73, 0.28);
  backdrop-filter: blur(18px);
}

.nav-shell,
.footer-shell,
.page-main,
.search-hero-panel,
.content-section {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.nav-shell {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.4);
  font-size: 14px;
}

.logo-mark.small {
  width: 28px;
  height: 28px;
}

.logo-text,
.footer-logo span:last-child {
  font-size: 20px;
  background: linear-gradient(90deg, #38bdf8, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #cbd5e1;
}

.nav-links a,
.nav-dropdown > button {
  color: #cbd5e1;
  border: 0;
  background: transparent;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-dropdown:hover > button,
.dropdown-panel a:hover {
  color: var(--sky);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: -16px;
  min-width: 168px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: #cbd5e1;
}

.dropdown-panel a:hover {
  background: rgba(14, 165, 233, 0.12);
}

.nav-search,
.mobile-search,
.large-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.large-search input,
.filter-panel input,
.filter-panel select {
  color: var(--text);
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  width: 220px;
  padding: 10px 16px;
}

.nav-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
  background: rgba(15, 23, 42, 0.96);
}

.nav-search button,
.mobile-search button,
.large-search button,
.filter-panel button,
.btn-primary {
  border: 0;
  color: white;
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.large-search button:hover,
.filter-panel button:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.38);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(15, 23, 42, 0.82);
  border-radius: 12px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--border);
  padding: 14px 20px 18px;
  background: rgba(15, 23, 42, 0.98);
}

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

.mobile-panel a {
  color: #cbd5e1;
}

main {
  padding-top: 66px;
}

.hero {
  position: relative;
  min-height: 500px;
  height: 70vh;
  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-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.hero-bg.is-missing,
.poster-wrap img.is-missing,
.category-cover-stack img.is-missing,
.rank-item img.is-missing,
.side-related img.is-missing {
  opacity: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.9) 34%, rgba(2, 6, 23, 0.3) 72%, transparent 100%),
    linear-gradient(180deg, transparent 40%, #020617 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  max-width: 680px;
  left: max(16px, calc((100vw - 1180px) / 2));
}

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

.hero-badges span,
.hero-tags span,
.tag-row span,
.detail-meta span,
.type-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.hero-badges span {
  padding: 8px 12px;
  color: white;
  background: rgba(14, 165, 233, 0.72);
  backdrop-filter: blur(10px);
}

.hero-badges span + span {
  background: rgba(245, 158, 11, 0.82);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: white;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.hero p {
  max-width: 640px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.75;
}

.hero-tags span,
.tag-row span {
  padding: 7px 10px;
  color: #bfdbfe;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid var(--border);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding-inline: 24px;
}

.btn-ghost {
  color: #e0f2fe;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(14, 165, 233, 0.16);
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: white;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(10px);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-arrow:hover {
  scale: 1.08;
  background: rgba(15, 23, 42, 0.82);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 16px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: #475569;
  cursor: pointer;
  transition: 0.25s ease;
}

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

.search-hero-panel {
  position: relative;
  z-index: 3;
  margin-top: -46px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-hero-panel span,
.section-kicker {
  color: var(--sky);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.search-hero-panel h2 {
  margin: 8px 0 0;
  font-size: clamp(22px, 3vw, 34px);
}

.large-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
}

.large-search button {
  padding: 14px 24px;
}

.content-section {
  padding-block: 56px 0;
}

.content-section.no-top-space {
  padding-top: 0;
}

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

.section-head h2,
.category-panel h2,
.page-hero h1 {
  margin: 6px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
}

.section-head p,
.category-panel p,
.page-hero p {
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.7;
}

.section-link {
  color: var(--sky);
  font-weight: 700;
  white-space: nowrap;
}

.section-link:hover {
  color: #67e8f9;
}

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

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

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

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

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scrollbar-color: rgba(56, 189, 248, 0.4) transparent;
}

.movie-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 22px 50px rgba(8, 47, 73, 0.34);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.28), transparent 42%),
    linear-gradient(145deg, #0f172a, #020617);
}

.poster-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #e0f2fe;
  font-weight: 800;
  line-height: 1.35;
}

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

.poster-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  margin: 0;
  color: white;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.82));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-overlay {
  opacity: 1;
}

.play-dot {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.86);
  box-shadow: 0 0 34px rgba(56, 189, 248, 0.55);
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--dim);
  font-size: 12px;
}

.card-body h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card:hover h3 {
  color: var(--sky);
}

.card-body p {
  margin: 0;
  min-height: 42px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.movie-card.compact .card-body p {
  display: none;
}

.movie-card.compact .card-body h3 {
  font-size: 16px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.rank-list,
.rank-table,
.category-panel,
.filter-panel,
.text-panel,
.detail-info-card,
.player-card,
.sticky-card,
.category-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.64);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.24);
  backdrop-filter: blur(14px);
}

.rank-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 15px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: rgba(14, 165, 233, 0.1);
}

.rank-num {
  color: var(--amber);
  font-weight: 900;
  font-size: 18px;
}

.rank-item img {
  width: 48px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  background: #0f172a;
}

.rank-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-info strong {
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-info em,
.side-related em {
  color: var(--dim);
  font-style: normal;
  font-size: 12px;
}

.rank-score {
  color: white;
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
}

.category-panel {
  padding: 24px;
}

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

.category-tile {
  padding: 18px;
  min-height: 148px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.92));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.category-tile strong {
  font-size: 20px;
}

.category-tile span {
  color: var(--sky);
  font-size: 13px;
  font-weight: 700;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.98));
}

.footer-shell {
  padding: 42px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #f8fafc;
}

.footer-grid p,
.footer-grid a,
.copyright {
  color: var(--muted);
  line-height: 1.65;
}

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

.footer-grid a:hover {
  color: var(--sky);
}

.copyright {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(14, 165, 233, 0.12);
  font-size: 13px;
}

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

.page-hero {
  padding: 44px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.2), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.92));
  box-shadow: var(--shadow);
}

.compact-hero {
  max-width: none;
}

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

.category-hero strong {
  display: inline-grid;
  place-items: center;
  min-width: 120px;
  min-height: 120px;
  padding: 20px;
  border-radius: 24px;
  color: white;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.32), rgba(34, 211, 238, 0.16));
  border: 1px solid var(--border);
  font-size: 24px;
  text-align: center;
}

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

.category-card {
  padding: 20px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  transition: 0.2s ease;
}

.category-card h2 {
  margin: 8px 0;
  font-size: 26px;
}

.category-card span {
  color: var(--sky);
  font-weight: 800;
  font-size: 13px;
}

.category-card p {
  color: var(--muted);
  line-height: 1.65;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(145deg, #0f172a, #020617);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  gap: 16px;
  align-items: end;
  padding: 18px;
  margin-bottom: 28px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
}

.filter-panel button {
  min-height: 44px;
  border-radius: 12px;
}

.empty-message {
  color: var(--muted);
  text-align: center;
  padding: 50px 0;
}

.rank-table {
  overflow: hidden;
}

.rank-table-row {
  display: grid;
  grid-template-columns: 70px 1fr 160px 100px 80px;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(14, 165, 233, 0.12);
  transition: background 0.2s ease;
}

.rank-table-row:last-child {
  border-bottom: 0;
}

.rank-table-row:hover {
  background: rgba(14, 165, 233, 0.09);
}

.rank-table-row span {
  color: var(--amber);
  font-weight: 900;
}

.rank-table-row em {
  color: var(--muted);
  font-style: normal;
}

.rank-table-row b {
  justify-self: end;
  color: #67e8f9;
}

.detail-main {
  width: min(1260px, calc(100% - 32px));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.detail-primary {
  display: grid;
  gap: 22px;
}

.player-card {
  padding: 12px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: white;
  background: radial-gradient(circle at 50% 44%, rgba(14, 165, 233, 0.3), rgba(2, 6, 23, 0.42) 42%, rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-overlay span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  box-shadow: 0 0 46px rgba(56, 189, 248, 0.52);
  font-size: 28px;
}

.player-overlay strong {
  font-size: 18px;
}

.detail-info-card,
.text-panel,
.sticky-card {
  padding: 24px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: start;
}

.detail-title-row h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
}

.type-pill {
  padding: 10px 14px;
  color: white;
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  font-weight: 800;
  white-space: nowrap;
}

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

.detail-meta span {
  padding: 8px 12px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

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

.one-line {
  margin: 22px 0 0;
  padding: 18px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 16px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.08);
  font-weight: 700;
  line-height: 1.7;
}

.text-panel h2,
.sticky-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.text-panel p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.9;
}

.review-panel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.56));
}

.detail-sidebar {
  min-width: 0;
}

.sticky-card {
  position: sticky;
  top: 90px;
}

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

.side-related {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
}

.side-related img {
  width: 68px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(145deg, #0f172a, #020617);
}

.side-related span {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.side-related strong {
  color: #e2e8f0;
  line-height: 1.35;
}

.side-related:hover strong {
  color: var(--sky);
}

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

.accent-sky,
.accent-cyan,
.accent-pink,
.accent-emerald,
.accent-amber,
.accent-rose,
.accent-violet,
.accent-orange {
  position: relative;
  overflow: hidden;
}

.accent-sky::before,
.accent-cyan::before,
.accent-pink::before,
.accent-emerald::before,
.accent-amber::before,
.accent-rose::before,
.accent-violet::before,
.accent-orange::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% 20%;
  height: 120px;
  opacity: 0.22;
  filter: blur(32px);
  pointer-events: none;
}

.accent-sky::before { background: #38bdf8; }
.accent-cyan::before { background: #22d3ee; }
.accent-pink::before { background: #ec4899; }
.accent-emerald::before { background: #10b981; }
.accent-amber::before { background: #f59e0b; }
.accent-rose::before { background: #fb7185; }
.accent-violet::before { background: #8b5cf6; }
.accent-orange::before { background: #f97316; }

@media (max-width: 1080px) {
  .nav-links,
  .nav-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

  .split-section,
  .detail-grid,
  .search-hero-panel,
  .footer-grid,
  .category-card-grid {
    grid-template-columns: 1fr;
  }

  .detail-sidebar .sticky-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-shell,
  .footer-shell,
  .page-main,
  .search-hero-panel,
  .content-section {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: 620px;
    height: auto;
  }

  .hero-content {
    left: 16px;
    right: 16px;
    width: auto;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .search-hero-panel {
    margin-top: -28px;
    padding: 18px;
  }

  .large-search {
    align-items: stretch;
    flex-direction: column;
  }

  .section-head,
  .detail-title-row,
  .category-hero {
    align-items: stretch;
    flex-direction: column;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-body p,
  .tag-row {
    display: none;
  }

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

  .footer-grid,
  .category-card,
  .filter-panel,
  .rank-table-row {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 28px;
  }

  .category-cover-stack {
    max-width: 260px;
  }

  .rank-table-row {
    gap: 6px;
    padding: 16px;
  }
}

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