:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(34, 211, 238, 0.28);
  --line-strong: rgba(34, 211, 238, 0.52);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --gold: #facc15;
  --danger: #fb7185;
  --shadow: 0 26px 80px rgba(8, 145, 178, 0.16);
}

* {
  box-sizing: border-box;
}

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 20% 0%, rgba(34, 211, 238, 0.16), transparent 32rem),
    radial-gradient(circle at 80% 8%, rgba(59, 130, 246, 0.13), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #07111f 48%, #020617 100%);
}

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

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

button,
input {
  font: inherit;
}

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

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

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #001018;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.38);
}

.logo-text,
.footer-logo {
  font-size: 1.34rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--cyan), #60a5fa, var(--cyan));
  -webkit-background-clip: text;
  color: transparent;
}

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

.desktop-nav a,
.mobile-nav a {
  color: #cbd5e1;
  padding: 10px 12px;
  border-radius: 10px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.header-search {
  width: 250px;
}

.header-search input,
.mobile-nav input,
.quick-search-card input,
.filter-bar input {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  padding: 12px 14px;
  transition: border 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.header-search input:focus,
.mobile-nav input:focus,
.quick-search-card input:focus,
.filter-bar input:focus {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}

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

.mobile-nav.is-open {
  display: grid;
}

.hero-carousel {
  position: relative;
  height: min(760px, calc(100vh - 72px));
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.08);
  transform: scale(1.08);
  opacity: 0.38;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 64px;
}

.hero-copy {
  max-width: 760px;
}

.hero-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 22px 0;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-copy h1 span {
  background: linear-gradient(90deg, var(--cyan), #60a5fa, var(--cyan));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 680px;
  color: #dbeafe;
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  line-height: 1.9;
}

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

.hero-tags {
  margin: 26px 0;
}

.hero-tags span,
.detail-meta-grid span,
.tag-row span {
  color: #cffafe;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.88rem;
}

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

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

.primary-button {
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 45px rgba(34, 211, 238, 0.28);
}

.ghost-button,
.section-link {
  color: var(--cyan);
  border: 1px solid var(--line-strong);
  background: rgba(34, 211, 238, 0.06);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(34, 211, 238, 0.23);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.36);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateY(-7deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), #93c5fd);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 900;
}

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

.hero-dot {
  width: 36px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.hero-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.6);
}

.hero-rank-link {
  position: absolute;
  z-index: 5;
  right: max(22px, calc((100% - 1200px) / 2));
  bottom: 22px;
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  padding: 10px 16px;
}

.quick-search-block,
.section-block {
  padding: 70px 0 0;
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.06));
  box-shadow: var(--shadow);
  padding: 28px;
}

.quick-search-card h2,
.section-head h2,
.page-hero h1,
.detail-info h1,
.detail-text-block h2 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.quick-search-card h2,
.section-head h2,
.page-hero h1,
.detail-info h1 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.quick-search-card p,
.section-head p,
.page-hero p,
.category-overview-card p,
.footer-grid p,
.detail-one-line,
.detail-text-block p {
  color: var(--muted);
  line-height: 1.85;
}

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

.section-head h2 {
  margin-top: 12px;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 28px 70px rgba(8, 145, 178, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.88);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.featured-card .poster-link img,
.compact-card .poster-link img {
  aspect-ratio: 16 / 9;
}

.movie-card:hover img {
  transform: scale(1.07);
  filter: saturate(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0) 30%, rgba(2, 6, 23, 0.9) 100%);
  opacity: 0.72;
}

.card-rating,
.card-quality {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.8rem;
  font-weight: 900;
}

.card-rating {
  left: 12px;
  color: #1c1917;
  background: var(--gold);
}

.card-quality {
  right: 12px;
  color: #cffafe;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
}

.poster-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.8);
  border-radius: 50%;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #67e8f9;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.card-body h3 {
  min-height: 2.9em;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.42;
  font-weight: 850;
}

.compact-card .card-body h3 {
  min-height: auto;
}

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

.tag-row span {
  padding: 5px 9px;
  font-size: 0.78rem;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  display: flex;
  align-items: end;
  border-radius: 22px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(15, 23, 42, 0.72);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.08);
  opacity: 0.58;
}

.category-card div {
  position: relative;
  z-index: 2;
  padding: 18px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.98), transparent);
}

.category-card span {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 900;
}

.category-card p {
  margin: 8px 0 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.site-footer {
  position: relative;
  margin-top: 90px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 42px;
  padding: 48px 0;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: var(--text);
}

.footer-grid p {
  margin: 14px 0 0;
}

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

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

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

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

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

.footer-bottom {
  border-top: 1px solid rgba(34, 211, 238, 0.16);
  color: var(--muted);
  text-align: center;
  padding: 18px;
}

.page-main {
  padding-top: 34px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.05)),
    rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
  padding: clamp(32px, 7vw, 74px);
}

.page-hero h1 {
  margin: 18px 0 14px;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
}

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

.category-overview-grid {
  display: grid;
  gap: 22px;
  margin-top: 30px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.72);
  padding: 18px;
}

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

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.category-overview-card h2 {
  margin: 12px 0 8px;
  font-size: 2rem;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  color: #cbd5e1;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  padding: 9px 14px;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  color: #001018;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

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

.rank-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.rank-hero-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.78);
}

.rank-hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.54;
}

.rank-hero-card div {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 22px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.98), transparent);
}

.rank-hero-card span {
  color: var(--gold);
  font-weight: 950;
}

.rank-hero-card h2 {
  margin: 8px 0;
  font-size: 1.55rem;
}

.rank-hero-card p {
  color: #cbd5e1;
  line-height: 1.7;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 84px minmax(0, 1fr) 72px;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  padding: 12px;
  transition: transform 0.25s ease, border 0.25s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: var(--line-strong);
}

.rank-no {
  color: var(--cyan);
  font-weight: 950;
  font-size: 1.2rem;
  text-align: center;
}

.rank-row img {
  width: 84px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-row h3 {
  margin: 0 0 5px;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
}

.rank-row strong {
  color: var(--gold);
  font-size: 1.15rem;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 54px;
  background: #020617;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--detail-cover);
  background-size: cover;
  background-position: center;
  filter: blur(16px) saturate(1.1);
  opacity: 0.28;
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.78)), linear-gradient(0deg, #020617, transparent 50%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
}

.detail-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  margin: 18px 0;
}

.detail-one-line {
  max-width: 820px;
  font-size: 1.18rem;
}

.detail-meta-grid {
  margin: 24px 0 18px;
}

.large-tags span {
  font-size: 0.88rem;
}

.detail-info .primary-button {
  margin-top: 26px;
}

.player-section {
  margin-top: -18px;
  position: relative;
  z-index: 3;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  color: var(--text);
  border: 0;
  background: radial-gradient(circle at center, rgba(2, 6, 23, 0.38), rgba(2, 6, 23, 0.88));
  cursor: pointer;
  z-index: 2;
}

.player-shell.is-playing .player-cover {
  display: none;
}

.play-ring {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #001018;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 50px rgba(34, 211, 238, 0.44);
}

.player-cover strong {
  font-size: clamp(1.2rem, 3vw, 2.4rem);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.detail-text-block {
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  padding: clamp(22px, 4vw, 34px);
}

.detail-text-block h2 {
  margin-bottom: 14px;
  font-size: 1.75rem;
}

.detail-text-block p {
  margin: 0;
  font-size: 1.03rem;
}

.search-panel {
  position: fixed;
  z-index: 100;
  top: 82px;
  right: max(16px, calc((100% - 1200px) / 2));
  width: min(520px, calc(100% - 32px));
  max-height: 70vh;
  overflow: auto;
  display: none;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
  padding: 12px;
}

.search-panel.is-open {
  display: grid;
  gap: 10px;
}

.search-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 10px;
  transition: background 0.2s ease;
}

.search-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-item img {
  width: 64px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
}

.search-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.search-item p,
.search-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .desktop-nav a:nth-last-child(-n + 3) {
    display: none;
  }

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

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

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

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

  .hero-carousel {
    min-height: 760px;
    height: auto;
  }

  .hero-content {
    min-height: 760px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 30px;
    padding: 34px 0 78px;
  }

  .hero-poster {
    width: min(280px, 72vw);
    transform: none;
  }

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

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

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

  .detail-poster {
    width: min(280px, 70vw);
  }
}

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

  .header-inner {
    height: 64px;
  }

  .logo-text {
    font-size: 1.06rem;
  }

  .hero-copy h1 {
    font-size: 3.2rem;
  }

  .hero-copy p {
    font-size: 1rem;
  }

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

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

  .card-body {
    padding: 12px;
  }

  .card-meta {
    font-size: 0.72rem;
  }

  .card-body h3 {
    font-size: 0.96rem;
  }

  .category-overview-card {
    padding: 14px;
  }

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

  .rank-row {
    grid-template-columns: 42px 68px minmax(0, 1fr);
  }

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

  .rank-row img {
    width: 68px;
    height: 50px;
  }

  .detail-hero {
    padding-top: 28px;
  }

  .play-ring {
    width: 68px;
    height: 68px;
    font-size: 1.5rem;
  }
}
