:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --teal: #0d9488;
  --sky: #0284c7;
  --amber: #f59e0b;
  --rose: #e11d48;
  --purple: #7c3aed;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 46%, #ecfdf5 100%);
  min-height: 100vh;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

main {
  min-height: 65vh;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.75);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 12px 25px rgba(5, 150, 105, 0.24);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text {
  display: grid;
  line-height: 1.12;
}

.brand-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--emerald), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-subtitle {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--emerald-dark);
  background: #ecfdf5;
}

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

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px;
  transition: background 0.2s ease, border 0.2s ease;
}

.nav-search:focus-within,
.mobile-search:focus-within {
  background: #fff;
  border-color: rgba(5, 150, 105, 0.45);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

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

.nav-search button,
.mobile-search button,
.primary-button,
.secondary-button,
.ghost-button,
.filter-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-search button,
.primary-button {
  padding: 9px 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 12px 24px rgba(5, 150, 105, 0.2);
}

.nav-search button:hover,
.mobile-search button:hover,
.primary-button:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 30px rgba(5, 150, 105, 0.26);
}

.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.28);
}

.ghost-button {
  color: var(--emerald-dark);
  background: #ecfdf5;
}

.ghost-button:hover {
  background: #d1fae5;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 9px;
  background: #374151;
}

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

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

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

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #fff;
  margin-top: 68px;
}

.hero-media {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.12));
}

.hero-glow {
  position: absolute;
  right: 8%;
  bottom: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.38), transparent 66%);
  filter: blur(10px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  padding: 48px 0;
}

.hero-kicker,
.detail-kicker,
.section-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-kicker span,
.detail-kicker span,
.section-kicker span,
.card-meta span,
.tag-row span,
.filter-pill,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.hero-kicker span:first-child {
  background: var(--emerald);
  color: #fff;
  padding: 8px 13px;
  font-weight: 900;
}

.hero-kicker span:not(:first-child) {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 8px 13px;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.75;
}

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
}

.hero-stat {
  min-width: 112px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-stat strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.hero-stat small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: 56px 0;
}

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

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(25px, 3.2vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-title .icon-box {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 14px 26px rgba(5, 150, 105, 0.18);
}

.section-header p,
.page-lead,
.category-card p,
.detail-lead,
.prose p,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.section-header p {
  margin: 8px 0 0;
  max-width: 660px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.75);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(16, 185, 129, 0.28);
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #d1fae5, #e0f2fe);
}

.movie-card.default .card-poster,
.movie-card.search-size .card-poster {
  aspect-ratio: 2 / 2.7;
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

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

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.72));
  opacity: 0.84;
}

.play-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 14px 28px rgba(5, 150, 105, 0.28);
  transform: scale(0.94);
  transition: transform 0.25s ease;
}

.movie-card:hover .play-chip {
  transform: scale(1.08);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), #fb7185);
  box-shadow: 0 10px 20px rgba(225, 29, 72, 0.2);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 48px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 900;
  transition: color 0.2s ease;
}

.card-title:hover {
  color: var(--emerald-dark);
}

.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 44px;
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.card-meta span {
  padding: 7px 9px;
  background: #f3f4f6;
  color: #4b5563;
  font-weight: 750;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  padding: 6px 8px;
  color: #047857;
  background: #ecfdf5;
}

.feature-band {
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  border: 1px solid rgba(251, 191, 36, 0.22);
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
  transform: translateZ(0);
}

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

.category-card:hover img {
  transform: scale(1.1);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.72));
}

.category-card .category-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 22px;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-count {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.page-hero {
  margin-top: 68px;
  padding: 72px 0 44px;
  background: radial-gradient(circle at 18% 20%, rgba(16, 185, 129, 0.18), transparent 30%), linear-gradient(135deg, #f9fafb, #ffffff 46%, #ecfdf5);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.page-lead {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.breadcrumb a,
.breadcrumb span {
  padding: 8px 11px;
  background: #fff;
  color: #4b5563;
  border: 1px solid var(--line);
}

.breadcrumb a:hover {
  color: var(--emerald-dark);
  border-color: rgba(5, 150, 105, 0.34);
}

.filter-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  padding: 0 15px;
  background: #fff;
  color: #111827;
}

.filter-panel input {
  flex: 1 1 260px;
}

.filter-panel select {
  flex: 0 1 170px;
}

.filter-button {
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.result-note {
  color: var(--muted);
  font-weight: 700;
}

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

.side-card,
.detail-panel,
.prose,
.player-wrap {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.75);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.side-card {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.side-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

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

.mini-item {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 16px;
  background: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-item:hover {
  background: #ecfdf5;
  transform: translateX(3px);
}

.mini-item img {
  width: 58px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.mini-item strong {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
}

.mini-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.mini-rank {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--rose), #fb7185);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

.detail-hero {
  margin-top: 68px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #020617;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.34;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.08);
  transform: scale(1.04);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.35));
}

.detail-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 30px;
  padding: 58px 0;
}

.detail-poster {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  aspect-ratio: 2 / 2.8;
  background: linear-gradient(135deg, #d1fae5, #e0f2fe);
}

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

.detail-kicker span {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.detail-lead {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.detail-main {
  padding: 44px 0 64px;
}

.player-wrap {
  overflow: hidden;
  background: #020617;
  border-color: rgba(15, 23, 42, 0.8);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.56));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 24px 50px rgba(5, 150, 105, 0.35);
  cursor: pointer;
  font-size: 28px;
  padding-left: 5px;
}

.player-caption {
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(6, 78, 59, 0.8));
}

.player-caption h2 {
  margin: 0;
  font-size: 22px;
}

.player-caption p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.prose {
  padding: 24px;
  margin-top: 24px;
}

.prose h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.prose p {
  margin: 0 0 16px;
  font-size: 16px;
}

.detail-panel {
  padding: 18px;
}

.detail-panel h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

.info-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

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

.no-results {
  display: none;
  padding: 26px;
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
}

.no-results.show {
  display: block;
}

.pagination-note {
  margin-top: 24px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.site-footer {
  margin-top: 40px;
  padding: 42px 0 0;
  color: #d1d5db;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  margin: 14px 0 0;
  color: #9ca3af;
}

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

.footer-links a {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
}

.footer-links a:hover {
  background: rgba(16, 185, 129, 0.18);
  color: #fff;
}

.footer-bottom {
  margin-top: 32px;
  padding: 18px;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1100px) {
  .movie-grid,
  .movie-grid.six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .side-card {
    position: static;
  }
}

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

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

  .hero,
  .hero-inner {
    min-height: 540px;
  }

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

  .category-grid,
  .footer-grid,
  .detail-head {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(240px, 72vw);
  }
}

@media (max-width: 620px) {
  .container,
  .nav-shell,
  .mobile-panel {
    width: min(100% - 22px, 1180px);
  }

  .brand-subtitle {
    display: none;
  }

  .brand-name {
    font-size: 17px;
  }

  .hero,
  .hero-inner {
    min-height: 520px;
  }

  .hero-copy {
    padding: 36px 0;
  }

  .hero p,
  .detail-lead,
  .page-lead {
    font-size: 15px;
  }

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

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .section {
    padding: 38px 0;
  }

  .section-header {
    display: block;
  }

  .movie-grid,
  .movie-grid.three,
  .movie-grid.six,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .filter-row {
    display: grid;
  }

  .filter-panel select,
  .filter-panel input,
  .filter-button {
    width: 100%;
  }

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

  .big-play {
    width: 64px;
    height: 64px;
  }
}
