* {
  box-sizing: border-box;
}

:root {
  --bg: #050816;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-solid: #111827;
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --gold: #facc15;
  --gold-dark: #d97706;
  --blue: #2563eb;
  --blue-dark: #1e3a8a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.35), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(250, 204, 21, 0.16), transparent 24rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.site-nav {
  width: min(1240px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark,
.footer-brand span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), #fde68a);
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(250, 204, 21, 0.45);
}

.brand-text {
  font-size: 1.2rem;
  background: linear-gradient(90deg, #fef3c7, var(--gold));
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-links a,
.mobile-links a {
  padding: 10px 14px;
  color: #dbeafe;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-links a:hover,
.mobile-links a.active {
  color: #fff;
  background: rgba(37, 99, 235, 0.78);
  transform: translateY(-1px);
}

.nav-search,
.mobile-search,
.hero-search,
.search-page-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search {
  margin-left: auto;
}

.nav-search input,
.mobile-search input,
.hero-search input,
.search-page-form input,
.filter-controls input,
.filter-controls select {
  min-width: 220px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  outline: none;
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  padding: 11px 16px;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.search-page-form input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: rgba(250, 204, 21, 0.72);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.12);
  background: rgba(2, 6, 23, 0.92);
}

.nav-search button,
.mobile-search button,
.hero-search button,
.search-page-form button {
  border: none;
  cursor: pointer;
  color: #0f172a;
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.search-page-form button:hover,
.primary-button:hover,
.wide-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(250, 204, 21, 0.28);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  background: rgba(37, 99, 235, 0.4);
  border-radius: 12px;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-links {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  width: min(460px, 92vw);
  max-height: 420px;
  overflow: auto;
  display: none;
  padding: 10px;
  background: rgba(2, 6, 23, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-suggestions.open {
  display: grid;
  gap: 8px;
}

.suggestion-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  color: var(--soft);
}

.suggestion-item:hover {
  background: rgba(37, 99, 235, 0.24);
  color: #fff;
}

.suggestion-item img {
  width: 56px;
  height: 38px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a8a, #111827);
}

.suggestion-item strong {
  display: block;
  font-size: 0.94rem;
}

.suggestion-item small {
  color: var(--muted);
}

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

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img,
.detail-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #1e3a8a, #020617);
}

.hero-slide img.image-missing,
.detail-hero-bg.image-missing,
.poster-frame img.image-missing,
.category-card-images img.image-missing,
.ranking-item img.image-missing,
.suggestion-item img.image-missing {
  opacity: 0;
}

.hero-overlay,
.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.42) 44%, rgba(2, 6, 23, 0.8) 100%),
    linear-gradient(0deg, #020617 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 88px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), #fde68a);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  font-weight: 900;
}

.hero-content h1,
.detail-hero-content h1,
.compact-hero h1 {
  max-width: 880px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 5.3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.hero-content p,
.detail-hero-content p,
.compact-hero p {
  max-width: 760px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1.75;
}

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

.hero-tags {
  margin-bottom: 28px;
}

.hero-tags span,
.detail-tags span,
.movie-card-tags span {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.82rem;
}

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

.primary-button,
.ghost-button,
.wide-link,
.section-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 900;
}

.primary-button,
.wide-link {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  padding: 0 22px;
}

.ghost-button,
.section-action {
  color: #e0f2fe;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.56);
  padding: 0 18px;
}

.ghost-button:hover,
.section-action:hover {
  border-color: rgba(250, 204, 21, 0.74);
  color: #fff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(2, 6, 23, 0.55);
  border-radius: 50%;
  cursor: pointer;
  font-size: 2.1rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(2, 6, 23, 0.84);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 34px;
  background: var(--gold);
}

.quick-search-band {
  padding: 28px 0;
  background: rgba(15, 23, 42, 0.72);
  border-block: 1px solid rgba(148, 163, 184, 0.14);
}

.quick-search-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 26px;
  align-items: center;
}

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

.quick-search-layout p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-search input,
.search-page-form input {
  flex: 1;
  min-width: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 30px 0 4px;
}

.stats-grid article {
  padding: 22px;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 10px 38px rgba(0, 0, 0, 0.16);
}

.stats-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: clamp(1.7rem, 4vw, 2.55rem);
}

.stats-grid span {
  color: var(--muted);
}

.category-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 22px 0 8px;
}

.category-chips a,
.category-card,
.filter-panel,
.detail-panel,
.info-card,
.ranking-card {
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.category-chips a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  transition: transform 0.2s ease, border 0.2s ease;
}

.category-chips a:hover,
.category-card:hover {
  border-color: rgba(250, 204, 21, 0.55);
  transform: translateY(-4px);
}

.category-chips strong {
  color: #fff;
}

.category-chips span {
  color: var(--gold);
  font-weight: 800;
}

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

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  letter-spacing: -0.03em;
}

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

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

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

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

.all-movie-grid {
  padding: 24px 0 60px;
}

.movie-card {
  overflow: hidden;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(250, 204, 21, 0.48);
  box-shadow: 0 24px 58px rgba(250, 204, 21, 0.13);
  transform: translateY(-7px);
}

.movie-poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 10%, rgba(250, 204, 21, 0.22), transparent 36%),
    linear-gradient(135deg, #1e3a8a, #020617);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.75), transparent 55%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #111827;
  background: rgba(250, 204, 21, 0.92);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.65);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
}

.movie-card-body {
  padding: 16px;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.04rem;
  line-height: 1.35;
}

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

.movie-card-meta,
.movie-card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.movie-card-desc {
  height: 3.1em;
  margin-top: 10px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-tags {
  margin-top: 12px;
}

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

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

.ranking-card h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.ranking-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

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

.ranking-list.full {
  padding: 24px 0 70px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 52px 96px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  transition: border 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.ranking-list.mini .ranking-item {
  grid-template-columns: 38px 64px 1fr auto;
  gap: 10px;
}

.ranking-item:hover {
  border-color: rgba(250, 204, 21, 0.55);
  background: rgba(30, 41, 59, 0.86);
  transform: translateX(4px);
}

.ranking-number {
  color: var(--gold);
  font-size: 1.22rem;
  font-weight: 900;
}

.ranking-item img {
  width: 96px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a8a, #020617);
}

.ranking-list.mini .ranking-item img {
  width: 64px;
  height: 42px;
}

.ranking-copy strong {
  display: block;
  color: #fff;
  line-height: 1.35;
}

.ranking-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.ranking-score {
  color: #111827;
  background: var(--gold);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.84rem;
  font-weight: 900;
}

.wide-link {
  width: 100%;
  margin-top: 18px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.92), rgba(2, 6, 23, 0.96));
}

.compact-hero {
  padding: 74px 0 64px;
}

.compact-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
}

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

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

.category-card {
  display: grid;
  min-height: 180px;
  padding: 22px;
  transition: transform 0.24s ease, border 0.24s ease;
}

.category-card.large {
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}

.category-card-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.category-card-images img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a8a, #020617);
}

.category-card strong {
  display: block;
  color: #fff;
  font-size: 1.35rem;
}

.category-card em {
  display: block;
  margin: 8px 0;
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
}

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

.genre-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-cloud a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 9px 13px;
}

.genre-cloud a:hover {
  color: #111827;
  background: var(--gold);
}

.genre-cloud span {
  color: inherit;
  opacity: 0.72;
}

.filter-panel {
  margin-top: 28px;
  padding: 20px;
}

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

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

.filter-topline span {
  color: var(--gold);
  font-weight: 900;
}

.filter-controls {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 12px;
}

.filter-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-width: 0;
  border-radius: 14px;
}

.empty-state {
  margin: 28px 0 80px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
}

.detail-hero {
  height: 520px;
}

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

.detail-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 72px;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  margin-top: -60px;
  position: relative;
  z-index: 5;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: center;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-play {
  border: none;
  cursor: pointer;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  border-radius: 999px;
  padding: 16px 28px;
  font-size: 1.12rem;
  font-weight: 900;
  box-shadow: 0 18px 46px rgba(250, 204, 21, 0.26);
}

.player-cover span,
.player-message {
  color: var(--soft);
}

.player-message {
  min-height: 0;
  margin: 0;
  padding: 0 18px 14px;
  font-size: 0.9rem;
}

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

.detail-panel h2,
.info-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.detail-panel p {
  margin: 0;
  color: var(--soft);
  line-height: 1.88;
}

.info-card dl {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 10px 12px;
  margin: 0 0 18px;
}

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

.info-card dd {
  margin: 0;
  color: #fff;
}

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

.search-page-form {
  width: min(720px, 100%);
  margin-top: 28px;
}

.site-footer {
  margin-top: 70px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), #020617);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 44px 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #fff;
  font-weight: 900;
}

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

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.site-footer a {
  display: block;
  width: max-content;
  margin: 8px 0;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding: 18px 0 26px;
  color: #64748b;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

[hidden] {
  display: none !important;
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

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

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

  .ranking-card {
    position: static;
  }

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

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

@media (max-width: 780px) {
  .site-nav {
    height: 62px;
  }

  .nav-links {
    display: none;
  }

  .brand-text {
    font-size: 1rem;
  }

  .hero-carousel {
    height: 560px;
  }

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

  .hero-arrow {
    display: none;
  }

  .quick-search-layout,
  .stats-grid,
  .category-chips,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .ranking-item,
  .ranking-list.mini .ranking-item {
    grid-template-columns: 40px 72px 1fr;
  }

  .ranking-score {
    grid-column: 2 / 4;
    width: max-content;
  }

  .detail-hero {
    height: 470px;
  }

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

@media (max-width: 520px) {
  .container,
  .site-nav,
  .mobile-panel {
    width: min(100% - 22px, 1240px);
  }

  .hero-content h1,
  .detail-hero-content h1,
  .compact-hero h1 {
    font-size: 2.15rem;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .related-grid,
  .category-card-grid,
  .region-category-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-search,
  .search-page-form,
  .mobile-search {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search input,
  .hero-search button,
  .search-page-form input,
  .search-page-form button,
  .mobile-search input,
  .mobile-search button {
    width: 100%;
  }

  .detail-layout {
    margin-top: -34px;
  }

  .detail-panel,
  .info-card,
  .filter-panel {
    padding: 18px;
  }
}
