:root {
  --bg: #0f172a;
  --bg-deep: #020617;
  --panel: rgba(30, 41, 59, 0.62);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --gold: #facc15;
  --gold-dark: #ca8a04;
  --blue: #2563eb;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(250, 204, 21, 0.12),
      transparent 28rem
    ),
    radial-gradient(
      circle at top right,
      rgba(37, 99, 235, 0.2),
      transparent 30rem
    ),
    linear-gradient(180deg, #0f172a 0%, #172554 45%, #0f172a 100%);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

button,
input,
select {
  font: inherit;
}

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 1rem;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  border-radius: 999px;
  box-shadow: 0 0 30px rgba(250, 204, 21, 0.32);
}

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

.nav-link {
  padding: 0.55rem 0.85rem;
  color: var(--muted-strong);
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #111827;
  background: var(--gold);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: min(340px, 28vw);
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
}

.header-search input,
.hero-search-panel input,
.page-filter input,
.search-tools input,
.search-tools select {
  width: 100%;
  min-width: 0;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search input {
  padding: 0.45rem 0.75rem;
}

.header-search button,
.hero-search-panel button {
  flex: 0 0 auto;
  padding: 0.45rem 0.8rem;
  border: 0;
  color: #111827;
  font-weight: 700;
  border-radius: 999px;
  background: var(--gold);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.82);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0.75rem 1rem 1rem;
  background: rgba(2, 6, 23, 0.95);
}

.mobile-nav .nav-link {
  display: block;
  margin: 0.25rem 0;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-stage {
  position: relative;
  height: 560px;
  overflow: hidden;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(2, 6, 23, 0.9),
      rgba(2, 6, 23, 0.48),
      rgba(2, 6, 23, 0.2)
    ),
    linear-gradient(0deg, rgba(2, 6, 23, 1), transparent 45%);
}

.hero-content {
  position: absolute;
  left: max(1rem, calc((100vw - 1280px) / 2 + 1rem));
  right: 1rem;
  bottom: 6.2rem;
  max-width: 780px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.3rem 0.78rem;
  color: #111827;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--gold);
}

.hero-content h1,
.hero-content h2 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(2.35rem, 7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.72);
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 1.6rem;
  color: #e2e8f0;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions,
.detail-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.25s ease;
}

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  box-shadow: 0 18px 35px rgba(250, 204, 21, 0.24);
}

.btn-primary:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.58);
}

.btn-ghost:hover {
  border-color: rgba(250, 204, 21, 0.55);
  color: var(--gold);
}

.btn-ghost.small {
  min-height: 2.25rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  cursor: pointer;
  transform: translateY(-50%);
  transition: 0.25s ease;
}

.hero-arrow:hover {
  color: #111827;
  background: var(--gold);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-dot.active {
  width: 2.2rem;
  background: var(--gold);
}

.hero-search-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 1rem;
  align-items: center;
  max-width: 1180px;
  margin: -3rem auto 0;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search-panel strong {
  display: block;
  font-size: 1.35rem;
}

.hero-search-panel span {
  color: var(--muted);
}

.hero-search-panel form,
.page-filter,
.search-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
}

.hero-search-panel input,
.page-filter input,
.search-tools input {
  padding: 0.7rem 0.85rem;
}

.section-wrap,
.page-main,
.detail-main {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-wrap {
  padding: 4rem 0;
}

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

.section-head.compact {
  align-items: center;
}

.section-head h2,
.page-hero h1,
.detail-card h1 {
  margin: 0;
  letter-spacing: -0.04em;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.section-head a {
  color: var(--gold);
  font-weight: 700;
}

.quick-cats {
  padding-top: 2.2rem;
  padding-bottom: 1rem;
}

.cat-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.cat-chip-row a,
.pill {
  display: inline-flex;
  padding: 0.55rem 0.9rem;
  color: #dbeafe;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
  transition: 0.25s ease;
}

.cat-chip-row a:hover {
  color: #111827;
  border-color: var(--gold);
  background: var(--gold);
}

.movie-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--panel);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.16);
  transition: 0.3s ease;
}

.movie-card:hover {
  border-color: rgba(250, 204, 21, 0.38);
  box-shadow: 0 22px 55px rgba(250, 204, 21, 0.14);
}

.movie-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.movie-card:hover .movie-thumb img,
.related-card:hover img,
.mini-card:hover img {
  transform: scale(1.08);
}

.duration-badge,
.rank-badge,
.detail-rank {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  padding: 0.25rem 0.5rem;
  color: #fff;
  font-size: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(2, 6, 23, 0.72);
}

.rank-badge {
  left: 0.65rem;
  right: auto;
  color: #111827;
  font-weight: 900;
  background: var(--gold);
}

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.6rem;
  opacity: 0;
  background: rgba(2, 6, 23, 0.35);
  transition: 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
}

.movie-body {
  padding: 1rem;
}

.movie-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  line-height: 1.35;
  transition: 0.25s ease;
}

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

.movie-one-line {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  color: #64748b;
  font-size: 0.78rem;
}

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

.rank-panel,
.related-panel,
.poster-card,
.detail-card,
.category-overview-card,
.info-block {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.rank-panel {
  position: sticky;
  top: 5.5rem;
  padding: 1.25rem;
}

.rank-list {
  display: grid;
  gap: 0.75rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 2.1rem 4.5rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 0.9rem;
  transition: 0.25s ease;
}

.rank-row:hover {
  background: rgba(30, 41, 59, 0.85);
}

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

.rank-row img {
  width: 4.5rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 0.55rem;
}

.rank-row strong,
.rank-row em {
  display: block;
}

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

.category-grid,
.category-overview-list {
  display: grid;
  gap: 1.25rem;
}

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

.category-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.72),
    rgba(30, 64, 175, 0.24)
  );
  transition: 0.3s ease;
}

.category-card-head span,
.category-overview-text .section-kicker {
  margin-bottom: 0.7rem;
}

.category-card-head strong {
  display: block;
  font-size: 1.4rem;
}

.category-card p,
.category-overview-card p,
.info-block p {
  margin: 0;
  color: var(--muted-strong);
}

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

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

.mini-card {
  position: relative;
  overflow: hidden;
  min-height: 72px;
  border-radius: 0.75rem;
  background: #0f172a;
}

.mini-card img {
  width: 100%;
  height: 100%;
  min-height: 72px;
  object-fit: cover;
  transition: 0.35s ease;
}

.mini-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.2rem 0.45rem 0.4rem;
  color: #fff;
  font-size: 0.72rem;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent);
}

.page-main {
  padding: 2.3rem 0 3rem;
}

.page-hero {
  margin: 2rem 0 1.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.78), rgba(30, 64, 175, 0.28)),
    radial-gradient(
      circle at 90% 10%,
      rgba(250, 204, 21, 0.16),
      transparent 18rem
    );
  box-shadow: var(--shadow);
}

.small-hero h1 {
  margin: 0.8rem 0 0.7rem;
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.small-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.05rem;
}

.page-filter {
  max-width: 600px;
  margin-top: 1.3rem;
}

.page-filter span,
.search-tools span {
  min-width: max-content;
  padding-right: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-tools {
  flex-wrap: wrap;
  max-width: 900px;
  margin-top: 1.4rem;
  border-radius: 1.2rem;
}

.search-tools input {
  flex: 1 1 260px;
}

.search-tools select {
  flex: 0 0 150px;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
}

.category-overview-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) 1.15fr;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem;
  transition: 0.3s ease;
}

.category-overview-text h2 {
  margin: 0.5rem 0;
  font-size: 1.7rem;
}

.category-overview-text .btn-ghost {
  margin-top: 1rem;
}

.detail-main {
  padding: 2rem 0 4rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin: 0.75rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

.detail-content {
  display: grid;
  gap: 1.2rem;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.75rem;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle, rgba(250, 204, 21, 0.18), transparent 11rem),
    rgba(2, 6, 23, 0.28);
  cursor: pointer;
  transition: 0.25s ease;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  padding-left: 0.25rem;
  color: #111827;
  font-size: 2rem;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 60px rgba(250, 204, 21, 0.35);
}

.player-overlay strong {
  font-size: 1.05rem;
}

.player-card.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-error {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: none;
  padding: 0.75rem 1rem;
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 0.75rem;
  background: rgba(127, 29, 29, 0.74);
}

.player-error.show {
  display: block;
}

.detail-card {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.detail-card h1 {
  margin-top: 0.7rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.detail-rank {
  position: static;
  height: fit-content;
  color: #111827;
  font-weight: 900;
  background: var(--gold);
}

.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.detail-meta span {
  padding: 0.4rem 0.7rem;
  color: #dbeafe;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
}

.detail-section {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.detail-section h2,
.related-panel h2,
.poster-card h2,
.info-block h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.detail-section p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.9;
}

.review-box {
  padding: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.35);
}

.detail-sidebar {
  position: sticky;
  top: 5.5rem;
  display: grid;
  gap: 1.2rem;
}

.poster-card {
  overflow: hidden;
}

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

.poster-card div,
.related-panel {
  padding: 1.1rem;
}

.poster-card p {
  color: var(--muted-strong);
}

.related-list {
  display: grid;
  gap: 0.85rem;
}

.related-card {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.85rem;
  transition: 0.25s ease;
}

.related-card:hover {
  background: rgba(30, 41, 59, 0.82);
}

.related-card img {
  width: 6rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 0.65rem;
  transition: 0.35s ease;
}

.related-card strong,
.related-card span {
  display: block;
}

.related-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-nav-row a {
  flex: 1 1 260px;
  padding: 0.9rem 1rem;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.62);
  transition: 0.25s ease;
}

.detail-nav-row a:hover {
  color: var(--gold);
  border-color: rgba(250, 204, 21, 0.38);
}

.info-page {
  display: grid;
  gap: 1rem;
  max-width: 900px;
}

.info-block {
  padding: 1.4rem;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 0.7fr);
  gap: 1.5rem;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0;
}

.footer-inner p {
  max-width: 380px;
  color: var(--muted);
}

.footer-inner h2 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--muted);
}

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

.footer-bottom {
  padding: 1rem;
  color: #64748b;
  text-align: center;
  border-top: 1px solid var(--line);
}

.hidden-card {
  display: none !important;
}

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

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

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

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

  .detail-sidebar {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

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

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

  body.menu-open .mobile-nav {
    display: block;
  }

  .hero-stage {
    height: 520px;
  }

  .hero-content {
    bottom: 7rem;
  }

  .hero-search-panel {
    grid-template-columns: 1fr;
    margin: -2.2rem 1rem 0;
  }

  .hero-search-panel form,
  .page-filter,
  .search-tools {
    border-radius: 1rem;
  }

  .movie-grid.four-col,
  .movie-grid.three-col,
  .category-grid,
  .category-overview-card,
  .footer-inner,
  .detail-sidebar {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .header-inner {
    padding: 0.75rem 0.9rem;
  }

  .hero-stage {
    height: 500px;
  }

  .hero-content {
    left: 1rem;
    bottom: 6.6rem;
  }

  .hero-arrow {
    display: none;
  }

  .hero-search-panel {
    padding: 1rem;
  }

  .section-wrap {
    padding: 2.5rem 0;
  }

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

  .movie-grid.four-col,
  .movie-grid.three-col {
    grid-template-columns: 1fr;
  }

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

  .search-tools select,
  .search-tools span {
    flex: 1 1 100%;
  }

  .related-card {
    grid-template-columns: 5rem minmax(0, 1fr);
  }

  .related-card img {
    width: 5rem;
    height: 3.4rem;
  }
}
