:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-soft: rgba(245, 158, 11, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 34rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 30rem),
    var(--bg);
  color: var(--text);
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand:hover,
.footer-brand:hover {
  color: var(--accent);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  box-shadow: 0 14px 36px rgba(245, 158, 11, 0.36);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #111827;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.nav-link,
.nav-button {
  border: 0;
  color: var(--soft);
  background: transparent;
  padding: 10px 14px;
  border-radius: 12px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-button:hover {
  color: #fff;
  background: rgba(30, 41, 59, 0.92);
}

.nav-link:hover,
.nav-button:hover {
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

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

.dropdown-menu a,
.mobile-panel a,
.mobile-panel button,
.mobile-category-list a {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--soft);
  background: transparent;
  text-align: left;
  transition: color 160ms ease, background 160ms ease;
}

.dropdown-menu a:hover,
.mobile-panel a:hover,
.mobile-panel button:hover,
.mobile-category-list a:hover {
  color: #fff;
  background: rgba(51, 65, 85, 0.86);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.86);
  padding: 9px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #fff;
}

.mobile-panel {
  display: none;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

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

.mobile-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 6px 0;
}

.hero-slider {
  position: relative;
  min-height: 560px;
  height: 72vh;
  max-height: 820px;
  overflow: hidden;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.68) 44%, rgba(2, 6, 23, 0.12)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.94), transparent 42%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: 42px;
}

.hero-copy {
  width: min(650px, 94%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title,
.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-title {
  margin: 0;
  color: #fff;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(42px, 7vw, 80px);
}

.hero-copy p {
  margin: 22px 0 0;
  color: var(--soft);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 0;
  color: var(--soft);
}

.hero-year {
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn.primary {
  background: var(--accent);
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.32);
}

.btn.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px) scale(1.02);
}

.btn.ghost {
  border-color: rgba(203, 213, 225, 0.26);
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(12px);
}

.btn.ghost:hover {
  border-color: rgba(245, 158, 11, 0.48);
  background: rgba(245, 158, 11, 0.12);
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 6, 23, 0.5);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease;
}

.hero-control:hover {
  background: rgba(2, 6, 23, 0.8);
  transform: translateY(-50%) scale(1.06);
}

.hero-control.prev {
  left: 22px;
}

.hero-control.next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 180ms ease, background 180ms ease;
}

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

.section {
  padding: 58px 0;
}

.section.compact {
  padding: 38px 0;
}

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

.section-head h2,
.detail-section h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  color: #fff;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-card);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card-link:hover {
  transform: translateY(-7px);
  border-color: rgba(245, 158, 11, 0.46);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease, filter 350ms ease;
}

.movie-card-link:hover .poster-wrap img,
.category-tile:hover img,
.wide-card a:hover img,
.rank-row a:hover img {
  transform: scale(1.06);
  filter: brightness(0.86) saturate(1.08);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(2, 6, 23, 0.92));
}

.year-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 220ms ease, transform 220ms ease;
}

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

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

.card-body h3,
.wide-card h3,
.rank-main h3,
.related-card h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  transition: color 160ms ease;
}

.card-body p,
.wide-card p,
.rank-main p,
.related-card p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta,
.wide-meta,
.rank-side {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: #64748b;
  font-size: 12px;
}

.movie-card-link:hover h3,
.wide-card a:hover h3,
.rank-row a:hover h3,
.related-card a:hover h3 {
  color: var(--accent);
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease, filter 320ms ease;
}

.category-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.94));
}

.category-tile-content {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 2;
}

.category-tile h3 {
  margin: 0;
  font-size: 22px;
}

.category-tile p {
  margin: 9px 0 0;
  color: var(--soft);
  line-height: 1.6;
}

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

.wide-card a,
.rank-row a {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-card);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.wide-card a:hover,
.rank-row a:hover {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(15, 23, 42, 0.92);
  transform: translateX(4px);
}

.wide-card img,
.rank-row img {
  width: 98px;
  height: 130px;
  border-radius: 16px;
  object-fit: cover;
  background: #111827;
  transition: transform 260ms ease, filter 260ms ease;
}

.rank-row a {
  grid-template-columns: 56px 74px 1fr minmax(96px, auto);
}

.rank-row img {
  width: 74px;
  height: 96px;
  border-radius: 14px;
}

.rank-num {
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-side {
  justify-content: flex-end;
  text-align: right;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 54px;
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  position: absolute;
  inset: -40% 0 auto auto;
  width: 520px;
  height: 520px;
  content: "";
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.10);
  filter: blur(30px);
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 70px);
}

.page-hero p {
  width: min(760px, 100%);
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.85;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.62);
}

.filter-bar input {
  flex: 1;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  outline: none;
  color: #fff;
  background: rgba(2, 6, 23, 0.5);
  padding: 0 14px;
}

.filter-bar input:focus {
  border-color: rgba(245, 158, 11, 0.62);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.filter-bar a {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.no-results {
  display: none;
  padding: 24px;
  border: 1px dashed rgba(148, 163, 184, 0.26);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.no-results.is-visible {
  display: block;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.34;
  filter: blur(5px) saturate(1.05);
  transform: scale(1.05);
}

.detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.76) 52%, rgba(2, 6, 23, 0.88)),
    linear-gradient(0deg, var(--bg), transparent 42%);
}

.detail-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 40px;
  align-items: center;
  padding: 58px 0;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

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

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

.detail-title {
  font-size: clamp(38px, 6vw, 72px);
}

.detail-summary {
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.85;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.10);
  font-size: 13px;
  font-weight: 700;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
}

.player-section {
  padding: 56px 0 28px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.04), rgba(2, 6, 23, 0.62));
  transition: opacity 220ms ease, visibility 220ms ease;
}

.player-overlay span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.95);
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.36);
}

.player-overlay span::before {
  width: 0;
  height: 0;
  margin-left: 6px;
  content: "";
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 26px solid #fff;
}

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

.detail-section {
  padding: 34px 0;
}

.content-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-card);
}

.content-card p {
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.9;
}

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

.related-card a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-card);
}

.related-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #111827;
}

.related-card div {
  padding: 12px;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 86px 18px 24px;
}

.search-modal.is-open {
  display: flex;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

.search-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(78vh, 760px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
}

.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.search-title {
  font-size: 20px;
  font-weight: 900;
}

.search-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(51, 65, 85, 0.8);
  font-size: 26px;
  line-height: 1;
}

.search-box {
  padding: 18px 20px 12px;
}

.search-box input,
.search-box select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  color: #fff;
  outline: none;
  background: rgba(2, 6, 23, 0.56);
  padding: 0 14px;
}

.search-box input:focus,
.search-box select:focus {
  border-color: rgba(245, 158, 11, 0.62);
}

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

.search-results {
  max-height: 430px;
  overflow-y: auto;
  padding: 0 20px 20px;
}

.search-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: border-color 160ms ease, background 160ms ease;
}

.search-item:hover {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(30, 41, 59, 0.72);
}

.search-item img {
  width: 64px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
  background: #111827;
}

.search-item h3 {
  margin: 0;
  font-size: 16px;
}

.search-item p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  padding: 38px 0;
}

.footer-inner p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(30, 41, 59, 0.64);
}

.footer-links a:hover {
  color: #fff;
  background: rgba(245, 158, 11, 0.22);
}

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

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

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

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-content {
    padding-top: 24px;
  }

  .hero-control {
    display: none;
  }

  .section-head,
  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .detail-poster {
    width: min(260px, 78vw);
  }

  .rank-row a {
    grid-template-columns: 44px 64px 1fr;
  }

  .rank-side {
    grid-column: 3;
    justify-content: flex-start;
    text-align: left;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 64px;
  }

  .brand {
    font-size: 19px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .container,
  .header-inner,
  .footer-inner,
  .mobile-panel {
    width: min(100% - 24px, var(--max));
  }

  .hero-copy h1,
  .hero-copy h2,
  .detail-title,
  .page-hero h1 {
    letter-spacing: -0.03em;
  }

  .hero-meta {
    gap: 10px;
  }

  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .movie-grid,
  .movie-grid.large-grid,
  .related-grid {
    gap: 12px;
  }

  .card-body {
    padding: 11px;
  }

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

  .wide-card a {
    grid-template-columns: 78px 1fr;
  }

  .wide-card img {
    width: 78px;
    height: 106px;
  }

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

  .search-selects {
    grid-template-columns: 1fr;
  }

  .player-overlay span {
    width: 70px;
    height: 70px;
  }
}
