/*
  Static movie site theme rebuilt from the uploaded dark-gradient React/Tailwind bundle.
  The stylesheet is intentionally formatted for readability.
*/
:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: #111827;
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --green: #10b981;
  --orange: #f97316;
  --red: #dc2626;
  --radius: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.22), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(6, 182, 212, 0.16), transparent 24rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.38);
}

.brand strong,
.footer-brand strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.brand em {
  display: block;
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-dropdown {
  position: relative;
  padding: 24px 0;
}

.dropdown-panel {
  position: absolute;
  top: 66px;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 260px;
  padding: 12px;
  visibility: hidden;
  opacity: 0;
  background: #0f172a;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transform: translateY(8px);
  transition: all 0.2s ease;
}

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

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

.dropdown-panel a:hover {
  color: #fff;
  background: #1e293b;
}

.header-search {
  position: relative;
  display: flex;
  min-width: 320px;
  padding: 4px;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
}

.header-search input,
.mobile-panel input,
.search-main-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
}

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

.header-search button,
.mobile-panel button,
.search-main-form button,
.filter-bar button {
  color: #fff;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.header-search button {
  padding: 8px 16px;
}

.menu-toggle {
  display: none;
  color: #fff;
  padding: 10px 12px;
  cursor: pointer;
  background: #1e293b;
  border: 1px solid var(--line);
  border-radius: 12px;
}

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

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

.mobile-panel form {
  display: flex;
  gap: 10px;
  margin: 14px auto;
  max-width: 620px;
}

.mobile-panel input {
  padding: 12px 14px;
  background: #1e293b;
  border-radius: 999px;
}

.mobile-panel button {
  padding: 0 18px;
}

.mobile-panel a {
  display: block;
  max-width: 620px;
  margin: 4px auto;
  padding: 10px 14px;
  color: #cbd5e1;
  border-radius: 10px;
}

.mobile-panel a:hover {
  color: #fff;
  background: #1e293b;
}

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

.hero-stage,
.hero-slide,
.hero-slide > img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
  visibility: visible;
  opacity: 1;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.12);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.68) 42%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 38%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) 360px;
  align-items: center;
  gap: 54px;
  min-height: 650px;
  padding-top: 42px;
}

.hero-label,
.detail-label,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 999px;
}

.hero h1 {
  margin: 20px 0 18px;
  max-width: 820px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: 18px;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  padding: 6px 10px;
  color: #e2e8f0;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.hero-actions,
.detail-info .primary-btn {
  margin-top: 30px;
}

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

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

.ghost-btn {
  margin-left: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

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

.hero-poster span,
.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  color: #fff;
  background: rgba(37, 99, 235, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 18px;
  height: 5px;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.48);
  border: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 42px;
  background: #fff;
}

.hero-thumbs {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: -82px;
  padding-bottom: 38px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  color: #e2e8f0;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.hero-thumb.active {
  border-color: rgba(96, 165, 250, 0.9);
  background: rgba(30, 64, 175, 0.45);
}

.hero-thumb img {
  width: 46px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
}

.hero-thumb span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-search-card,
.section-block,
.page-main {
  margin-top: 46px;
}

.home-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 30px;
  align-items: center;
  padding: 28px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.8));
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.home-search-card span {
  color: #93c5fd;
  font-weight: 800;
}

.home-search-card h2,
.page-hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.home-search-card p,
.page-hero p,
.section-heading p,
.category-overview-card p,
.content-card p,
.rank-cta p,
.site-footer p,
.search-status {
  color: var(--muted);
}

.home-search-card form,
.search-main-form {
  display: flex;
  gap: 10px;
  padding: 6px;
  background: rgba(2, 6, 23, 0.68);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.home-search-card input,
.search-main-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
}

.home-search-card button,
.search-main-form button {
  padding: 0 24px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border: 0;
  border-radius: 999px;
}

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

.section-heading h2 {
  margin: 10px 0 4px;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
}

.section-heading-red .section-kicker {
  color: #fecaca;
  background: rgba(220, 38, 38, 0.18);
  border-color: rgba(248, 113, 113, 0.28);
}

.section-heading-green .section-kicker {
  color: #bbf7d0;
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.28);
}

.section-heading-orange .section-kicker {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(251, 146, 60, 0.28);
}

.movie-grid,
.wide-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
  transform: translateY(-6px);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #020617;
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:not(.movie-card-large) .poster-wrap img {
  aspect-ratio: 3 / 4.1;
}

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.72));
}

.poster-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.poster-play {
  width: 48px;
  height: 48px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: all 0.25s ease;
}

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

.card-body {
  padding: 16px;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.32;
}

.card-body h3 a:hover,
.compact-top a:hover,
.content-card a:hover {
  color: #60a5fa;
}

.card-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 14px;
  color: #cbd5e1;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-panel {
  padding: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.88));
  border: 1px solid var(--line);
  border-radius: 28px;
}

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

.category-tile {
  position: relative;
  display: grid;
  min-height: 146px;
  overflow: hidden;
  border-radius: 18px;
  isolation: isolate;
}

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

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.86));
  z-index: -1;
}

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

.category-tile strong,
.category-tile em {
  align-self: end;
  margin: 0 14px;
  font-style: normal;
}

.category-tile strong {
  margin-top: auto;
  font-size: 18px;
}

.category-tile em {
  margin-bottom: 14px;
  color: #cbd5e1;
  font-size: 13px;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.compact-poster {
  overflow: hidden;
  border-radius: 12px;
}

.compact-poster img {
  width: 82px;
  height: 110px;
  object-fit: cover;
}

.compact-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.rank-index {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 28px;
  color: #fff;
  font-size: 13px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 9px;
}

.compact-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0;
  color: #cbd5e1;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card span:not(.rank-index) {
  color: var(--muted);
  font-size: 12px;
}

.rank-cta,
.content-card,
.side-card,
.search-page-panel,
.filter-bar,
.category-overview-card {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.rank-cta {
  align-self: start;
  padding: 28px;
  position: sticky;
  top: 102px;
}

.rank-cta h3 {
  margin-top: 0;
  font-size: 30px;
}

.rank-cta .ghost-btn {
  margin-top: 12px;
  margin-left: 0;
}

.page-main {
  padding-bottom: 56px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 44px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(6, 182, 212, 0.1)),
    rgba(15, 23, 42, 0.86);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.page-hero > span {
  color: #93c5fd;
  font-weight: 900;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  color: #cbd5e1;
  font-size: 14px;
}

.crumbs a:hover {
  color: #fff;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.1fr 180px 220px auto;
  gap: 12px;
  margin: 24px 0;
  padding: 16px;
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  min-height: 42px;
  padding: 0 13px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.filter-bar button {
  align-self: end;
  min-height: 42px;
  padding: 0 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
}

.category-overview-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

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

.category-overview-cover span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 14px;
}

.category-overview-card h2 {
  margin: 10px 0 8px;
}

.category-overview-card em {
  color: #93c5fd;
  font-style: normal;
}

.search-page-panel {
  margin: 24px 0;
  padding: 22px;
}

.search-main-form {
  max-width: 780px;
}

.search-status {
  margin-bottom: 0;
}

.detail-page {
  padding-bottom: 56px;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background-image: var(--detail-bg);
  background-position: center;
  background-size: cover;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.88)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.05) 55%);
  backdrop-filter: blur(4px);
}

.detail-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  min-height: 560px;
  padding: 44px 0;
}

.detail-poster-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  margin: 18px 0 14px;
  max-width: 850px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 820px;
  color: #dbeafe;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  margin-top: 36px;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.video-player {
  position: relative;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 6px;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25), rgba(2, 6, 23, 0.66));
  border: 0;
  text-align: center;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.42);
}

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

.player-overlay em {
  color: #cbd5e1;
  font-style: normal;
}

.video-player.is-ready .player-overlay,
.video-player.is-loading .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.content-card,
.side-card {
  padding: 24px;
}

.content-card h2,
.side-card h2 {
  margin-top: 0;
}

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

.facts-grid div {
  padding: 14px;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.facts-grid dt {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
}

.facts-grid dd {
  margin: 4px 0 0;
  color: #e2e8f0;
}

.detail-side {
  position: sticky;
  top: 104px;
}

.site-footer {
  margin-top: 70px;
  padding: 42px 0;
  background: rgba(2, 6, 23, 0.92);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 34px;
}

.site-footer h3 {
  margin-top: 0;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #fff;
}

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

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

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

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

  .hero-poster {
    display: none;
  }

  .hero-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: -54px;
  }

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

  .wide-grid,
  .category-grid,
  .rank-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side,
  .rank-cta {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 22px, 1200px);
  }

  .nav-shell {
    min-height: 66px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand em {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    min-height: 520px;
    padding-top: 20px;
  }

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

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

  .hero-arrow {
    display: none;
  }

  .hero-thumbs {
    display: none;
  }

  .home-search-card,
  .filter-bar,
  .category-overview-card,
  .detail-hero-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-search-card,
  .page-hero,
  .category-panel {
    padding: 22px;
  }

  .home-search-card form,
  .search-main-form {
    border-radius: 20px;
    flex-direction: column;
  }

  .home-search-card button,
  .search-main-form button {
    min-height: 44px;
  }

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

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

  .compact-poster img {
    width: 68px;
    height: 92px;
  }

  .detail-hero-grid {
    gap: 22px;
  }

  .detail-poster-card {
    max-width: 220px;
  }

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

@media (max-width: 520px) {
  .movie-grid,
  .wide-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
  }

  .ghost-btn {
    margin-left: 0;
  }
}
