:root {
  --bg: #06111f;
  --bg-deep: #020816;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-solid: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.64);
  --line: rgba(34, 211, 238, 0.18);
  --line-blue: rgba(59, 130, 246, 0.24);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #3b82f6;
  --yellow: #facc15;
  --shadow: 0 24px 80px rgba(6, 182, 212, 0.18);
  --radius: 22px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 28rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 30rem),
    linear-gradient(135deg, #0f172a 0%, #082f49 48%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-blue);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 64, 175, 0.88), rgba(15, 23, 42, 0.94));
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.42);
}

.site-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: #06111f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.35);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.brand-text,
.footer-logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  color: #e2e8f0;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.35);
}

.header-search input {
  width: 210px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 8px 10px;
}

.header-search input::placeholder {
  color: #94a3b8;
}

.header-search button,
.big-search-form button,
.primary-button {
  border: 0;
  cursor: pointer;
  color: white;
  font-weight: 750;
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
  box-shadow: 0 16px 36px rgba(6, 182, 212, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.header-search button:hover,
.big-search-form button:hover,
.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 48px rgba(34, 211, 238, 0.36);
  filter: brightness(1.07);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line-blue);
  background: rgba(2, 6, 23, 0.72);
}

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

.mobile-menu-inner {
  padding-block: 18px;
  display: grid;
  gap: 12px;
}

.mobile-menu-inner .nav-link {
  display: block;
  padding: 10px 0;
}

.mobile-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mobile-sub-link {
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(15, 23, 42, 0.68);
}

main {
  min-height: 70vh;
}

.home-layout,
.page-layout {
  padding-block: 32px 76px;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line-blue);
  border-radius: 28px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

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

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.6) 52%, rgba(15, 23, 42, 0.16)),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.18) 64%);
}

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

.hero-fallback,
.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  color: #dffbff;
  font-weight: 800;
  letter-spacing: 0.03em;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.26), transparent 35%),
    linear-gradient(135deg, #0f172a, #0c4a6e 52%, #020617);
}

.hero-img + .hero-fallback,
.poster-img + .poster-fallback {
  z-index: -1;
}

.hero-img.is-hidden + .hero-fallback,
.poster-img.is-hidden + .poster-fallback {
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(760px, 92%);
  padding: 58px;
}

.hero-badges,
.detail-meta,
.movie-meta-row,
.hero-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-badges span,
.tag-cloud span,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.12);
  backdrop-filter: blur(10px);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-content h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-one-line {
  margin: 0 0 14px;
  color: #e2e8f0;
  font-size: clamp(1.08rem, 2.2vw, 1.45rem);
  font-weight: 650;
}

.hero-summary {
  max-width: 680px;
  margin: 0 0 20px;
  color: #cbd5e1;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 10px 18px;
  color: #dbeafe;
  font-weight: 750;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover,
.section-more:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.54);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

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

.search-hero-panel,
.page-hero,
.detail-hero,
.filter-panel,
.detail-text-grid article,
.category-overview-card,
.ranking-list-wrap,
.content-section {
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.78), rgba(30, 41, 59, 0.42));
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.24);
}

.search-hero-panel {
  margin-top: 28px;
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 24px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.search-hero-panel h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.player-section h2,
.detail-text-grid h2 {
  margin: 0;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.search-hero-panel h2,
.section-heading h2,
.player-section h2,
.detail-text-grid h2 {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.search-hero-panel p,
.section-heading p,
.page-hero p,
.category-overview-body p,
.detail-text-grid p,
.footer-grid p {
  color: var(--muted);
}

.big-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.42);
}

.big-search-form input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 12px 16px;
}

.content-section {
  margin-top: 40px;
  padding: 28px;
}

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

.compact-heading {
  margin-bottom: 18px;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.32);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.66);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(34, 211, 238, 0.56);
  box-shadow: 0 22px 48px rgba(34, 211, 238, 0.15);
}

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #0f172a;
}

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

.poster-img.is-hidden,
.hero-img.is-hidden {
  opacity: 0;
}

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9), transparent 54%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

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

.poster-score {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  border-radius: 999px;
  color: #422006;
  font-weight: 900;
  background: rgba(250, 204, 21, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.poster-play {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 4;
  opacity: 0;
  transform: translate(-50%, 10px);
  border-radius: 999px;
  padding: 8px 14px;
  color: white;
  font-weight: 800;
  background: rgba(6, 182, 212, 0.92);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

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

.movie-card h3,
.movie-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.25;
}

.movie-card h3 a,
.movie-card h2 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.movie-card h3 a:hover,
.movie-card h2 a:hover {
  color: var(--cyan);
}

.movie-card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta-row {
  justify-content: space-between;
  color: #64748b;
  font-size: 0.78rem;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 22px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.64);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.48);
}

.category-count {
  position: relative;
  z-index: 2;
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.12);
  font-weight: 800;
}

.category-posters,
.category-overview-posters {
  position: absolute;
  inset: auto 12px 78px auto;
  display: flex;
  transform: rotate(-8deg);
}

.category-posters img,
.category-overview-posters img {
  width: 62px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  margin-left: -18px;
  background: #0f172a;
}

.category-tile h3 {
  position: relative;
  z-index: 2;
  margin: 76px 0 8px;
  font-size: 1.35rem;
}

.category-tile p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--muted);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: #94a3b8;
  font-size: 0.95rem;
}

.breadcrumbs a {
  color: #bae6fd;
}

.breadcrumbs span::before,
.breadcrumbs a + span::before,
.breadcrumbs a + a::before {
  content: "/";
  margin-right: 10px;
  color: #475569;
}

.page-hero {
  padding: clamp(28px, 5vw, 52px);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.small-page-hero {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-overview-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.category-overview-card a {
  display: block;
  min-height: 260px;
  padding: 22px;
}

.category-overview-posters {
  inset: 20px 16px auto auto;
}

.category-overview-body {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
}

.category-overview-body span {
  color: var(--cyan);
  font-weight: 800;
}

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

.filter-panel {
  margin-top: 24px;
  padding: 18px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(140px, 1fr));
  gap: 14px;
}

.filter-row label {
  display: grid;
  gap: 7px;
  color: #bae6fd;
  font-weight: 750;
}

.filter-row input,
.filter-row select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-blue);
  border-radius: 12px;
  outline: 0;
  padding: 9px 12px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.52);
}

.filter-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
}

.filter-status button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  cursor: pointer;
}

.movie-card.is-hidden,
.ranking-row.is-hidden {
  display: none;
}

.ranking-list-wrap {
  margin-top: 30px;
  padding: 20px;
}

.ranking-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.ranking-row {
  display: grid;
  grid-template-columns: 62px 76px 1fr 64px;
  gap: 18px;
  align-items: center;
  padding: 12px;
}

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

.ranking-cover {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 2 / 3;
  background: #0f172a;
}

.ranking-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-info h2 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

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

.ranking-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 0.88rem;
}

.ranking-row strong {
  color: var(--yellow);
  font-size: 1.25rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  padding: 30px;
  align-items: center;
}

.detail-poster {
  border-radius: 22px;
  box-shadow: 0 22px 64px rgba(2, 6, 23, 0.46);
}

.detail-info h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
}

.detail-one-line {
  margin: 18px 0;
  color: #e2e8f0;
  font-size: 1.15rem;
  font-weight: 650;
}

.detail-meta span {
  color: #cbd5e1;
  border-right: 1px solid rgba(148, 163, 184, 0.28);
  padding-right: 10px;
}

.detail-meta span:last-child {
  border-right: 0;
}

.tag-cloud {
  margin: 22px 0;
}

.player-section {
  margin-top: 34px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.46);
}

.movie-player {
  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: 10px;
  border: 0;
  color: white;
  background:
    radial-gradient(circle at 50% 40%, rgba(34, 211, 238, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.72), rgba(15, 23, 42, 0.88));
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.play-circle {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #04131f;
  background: linear-gradient(135deg, #67e8f9, #60a5fa);
  font-size: 2.1rem;
  box-shadow: 0 0 46px rgba(34, 211, 238, 0.52);
}

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

.player-overlay small {
  color: #cbd5e1;
}

.player-status {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 3;
  margin: 0;
  color: #bae6fd;
  font-size: 0.9rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.detail-text-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  margin-top: 34px;
}

.detail-text-grid article {
  padding: 26px;
}

.detail-text-grid p {
  margin-bottom: 0;
  white-space: pre-line;
}

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

.site-footer {
  border-top: 1px solid var(--line-blue);
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(8, 47, 73, 0.9), rgba(2, 6, 23, 0.98));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-block: 42px;
}

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

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

.footer-links a {
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
}

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

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

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

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

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

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

@media (max-width: 840px) {
  .site-nav {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

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

  .hero-carousel {
    min-height: 520px;
    border-radius: 22px;
  }

  .hero-content {
    min-height: 520px;
    padding: 36px 24px 62px;
  }

  .hero-arrow {
    display: none;
  }

  .search-hero-panel,
  .detail-hero,
  .detail-text-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 260px;
  }

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

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

  .ranking-row {
    grid-template-columns: 46px 62px 1fr;
  }

  .ranking-row strong {
    grid-column: 3;
  }
}

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

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

  .home-layout,
  .page-layout {
    padding-block: 18px 54px;
  }

  .hero-carousel {
    min-height: 500px;
  }

  .hero-content {
    min-height: 500px;
    padding: 28px 18px 58px;
  }

  .hero-content h1 {
    font-size: 2.65rem;
  }

  .big-search-form {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .content-section,
  .search-hero-panel,
  .detail-hero,
  .filter-panel,
  .ranking-list-wrap {
    padding: 18px;
  }

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

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

  .category-grid,
  .category-overview-grid,
  .filter-row {
    grid-template-columns: 1fr;
  }

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

  .movie-card-body p {
    min-height: 40px;
    font-size: 0.84rem;
  }

  .ranking-row {
    grid-template-columns: 40px 56px 1fr;
    gap: 10px;
  }

  .ranking-info p,
  .ranking-info div {
    display: none;
  }

  .play-circle {
    width: 68px;
    height: 68px;
  }
}

.sitemap-columns ul {
  columns: 4 220px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-columns li {
  break-inside: avoid;
  margin: 0 0 10px;
}

.sitemap-columns a {
  color: #cbd5e1;
}

.sitemap-columns a:hover {
  color: var(--cyan);
}
