* {
  box-sizing: border-box;
}

:root {
  --bg-deep: #020617;
  --bg-main: #0f172a;
  --bg-blue: #172554;
  --panel: rgba(30, 41, 59, 0.55);
  --panel-strong: rgba(15, 23, 42, 0.82);
  --line: rgba(30, 64, 175, 0.38);
  --line-bright: rgba(34, 211, 238, 0.5);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-deep: #06b6d4;
  --blue: #60a5fa;
  --yellow: #facc15;
  --red: #f87171;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.24), transparent 34rem),
    linear-gradient(135deg, #0f172a 0%, #172554 44%, #0f172a 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.92), rgba(15, 23, 42, 0.95));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-name,
.footer-brand span:last-child {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.25);
}

.brand-mark.small {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.brand-mark span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-left: 11px solid var(--cyan);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.nav-link,
.mobile-link {
  color: #e2e8f0;
  font-weight: 600;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: var(--cyan);
}

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

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-button span {
  width: 24px;
  height: 2px;
  background: var(--soft);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-link {
  padding: 10px 0;
}

.page-main {
  min-height: 72vh;
  padding: 32px 0 0;
}

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

.container.narrow {
  width: min(1060px, calc(100% - 32px));
}

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

.hero-stage {
  position: relative;
  height: 600px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--bg-main);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.4);
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.52) 54%, rgba(15, 23, 42, 0.08)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.18));
}

.hero-content {
  position: absolute;
  left: clamp(24px, 5vw, 64px);
  right: clamp(24px, 5vw, 64px);
  bottom: 68px;
  max-width: 680px;
}

.hero-pills,
.hero-tags,
.meta-line,
.hero-actions,
.card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.16);
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-pills span:nth-child(2) {
  color: var(--yellow);
  border-color: rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.15);
}

.hero-content h2 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.7;
}

.hero-tags {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 26px;
}

.hero-tags span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: #64748b;
}

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

.primary-button {
  background: var(--cyan-deep);
  color: #fff;
  box-shadow: 0 14px 34px rgba(6, 182, 212, 0.26);
}

.primary-button:hover {
  background: var(--cyan);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 42px rgba(34, 211, 238, 0.36);
}

.ghost-button {
  color: var(--soft);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  color: #fff;
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.12);
}

.play-symbol {
  width: 0;
  height: 0;
  border-left: 11px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, transform 0.25s ease;
}

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

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

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

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

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

.hero-search-panel,
.page-hero,
.search-panel,
.detail-card,
.tag-block,
.ranking-box,
.category-panel,
.detail-side {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  box-shadow: 0 20px 55px rgba(2, 6, 23, 0.18);
}

.hero-search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 0.8fr);
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.hero-search-panel h1,
.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-search-panel p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-search {
  display: flex;
  gap: 10px;
}

.hero-search input,
.search-panel input,
.search-panel select {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  outline: 0;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  padding: 0 14px;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.hero-search input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--line-bright);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.hero-search button {
  min-width: 92px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--cyan-deep);
  font-weight: 800;
  cursor: pointer;
}

.hero-category-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-category-links a,
.category-samples a,
.tag-block span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.09);
  color: var(--cyan);
  font-size: 14px;
}

.content-section {
  margin-top: 64px;
}

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

.section-head h2,
.detail-side h2,
.ranking-head h2 {
  margin: 0;
  flex: 1;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
}

.section-head h2 span,
.detail-side h2 span {
  display: inline-block;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  color: transparent;
}

.section-head h2::after {
  content: "";
  display: inline-block;
  width: min(42vw, 340px);
  height: 1px;
  margin-left: 20px;
  vertical-align: middle;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.5), transparent);
}

.section-more,
.ranking-head a {
  color: var(--cyan);
  font-weight: 700;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.48);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 24px 50px rgba(34, 211, 238, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--bg-main);
}

.movie-card.compact .poster-wrap {
  aspect-ratio: 16 / 10;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.14), transparent);
  transition: opacity 0.3s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  top: 12px;
  right: 12px;
  color: #713f12;
  background: rgba(250, 204, 21, 0.92);
}

.rank-badge {
  top: 12px;
  left: 12px;
  color: #fff;
  background: rgba(6, 182, 212, 0.92);
}

.hover-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #e2e8f0;
  font-size: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.movie-card:hover .hover-meta {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  display: block;
  padding: 16px;
}

.card-body strong {
  display: block;
  margin-bottom: 8px;
  color: #f8fafc;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
}

.movie-card:hover strong {
  color: var(--cyan);
}

.card-body em {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-foot {
  justify-content: space-between;
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
}

.spotlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.ranking-box {
  position: sticky;
  top: 96px;
  padding: 20px;
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 32px 54px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(30, 64, 175, 0.22);
  transition: border 0.25s ease, background 0.25s ease;
}

.rank-row:hover {
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(34, 211, 238, 0.08);
}

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

.rank-row img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-row strong,
.rank-row em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.page-hero {
  padding: clamp(28px, 5vw, 48px);
  margin-bottom: 36px;
}

.small-hero {
  background:
    radial-gradient(circle at 12% 12%, rgba(34, 211, 238, 0.16), transparent 18rem),
    rgba(30, 41, 59, 0.5);
}

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

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

.category-grid {
  display: grid;
  gap: 24px;
}

.category-panel {
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
}

.category-cover {
  position: relative;
  min-height: 190px;
  overflow: hidden;
}

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

.category-cover span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.72));
}

.category-info {
  padding: 24px;
}

.category-info h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.category-info h2 a {
  color: var(--text);
}

.category-info h2 a:hover {
  color: var(--cyan);
}

.category-info p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

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

.search-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) repeat(4, minmax(140px, 1fr));
  gap: 12px;
  padding: 18px;
  margin-bottom: 18px;
}

.search-result-line {
  margin: 0 0 18px;
  color: var(--muted);
}

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

.ranking-page-list {
  display: grid;
  gap: 16px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 64px 92px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(30, 41, 59, 0.48);
  transition: border 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.ranking-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.46);
  background: rgba(34, 211, 238, 0.08);
}

.ranking-number {
  color: var(--cyan);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.ranking-card img {
  width: 92px;
  height: 124px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-copy strong,
.ranking-copy em,
.ranking-copy span {
  display: block;
}

.ranking-copy strong {
  margin-bottom: 8px;
  font-size: 20px;
}

.ranking-copy em {
  margin-bottom: 8px;
  color: var(--cyan);
  font-style: normal;
}

.ranking-copy span {
  color: var(--muted);
  line-height: 1.6;
}

.detail-container {
  padding-top: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.42);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

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

.player-dark {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.12), transparent 18rem),
    rgba(0, 0, 0, 0.45);
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(6, 182, 212, 0.9);
  box-shadow: 0 0 0 16px rgba(34, 211, 238, 0.15), 0 22px 42px rgba(6, 182, 212, 0.28);
  transition: transform 0.25s ease, background 0.25s ease;
}

.player-cover:hover .player-button {
  transform: translate(-50%, -50%) scale(1.06);
  background: var(--cyan);
}

.player-button span {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 24px solid #fff;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}

.player-message {
  position: absolute;
  left: 50%;
  bottom: 24px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.72);
  transform: translateX(-50%);
}

.detail-card,
.tag-block,
.detail-side {
  padding: 24px;
}

.title-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.meta-line {
  margin-bottom: 18px;
  color: var(--muted);
}

.meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: #475569;
}

.lead-text {
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.75;
}

.detail-card h2,
.tag-block h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.85;
}

.tag-block div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-side {
  position: sticky;
  top: 96px;
}

.side-grid {
  display: grid;
  gap: 16px;
}

.side-grid .movie-card {
  display: grid;
  grid-template-columns: 130px 1fr;
}

.side-grid .card-body {
  min-width: 0;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, #020617, #0f1f4d, #020617);
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 34px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--muted);
  line-height: 1.7;
}

.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 16px;
    font-size: 14px;
  }

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

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

  .ranking-box,
  .detail-side {
    position: static;
  }

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

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

  .menu-button {
    display: flex;
  }

  .hero-stage {
    height: 520px;
    border-radius: 20px;
  }

  .hero-content {
    bottom: 56px;
  }

  .hero-content p {
    font-size: 16px;
  }

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

  .hero-search {
    flex-direction: column;
  }

  .hero-search button {
    height: 46px;
  }

  .category-cover {
    min-height: 240px;
  }

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

  .section-head h2::after {
    display: none;
  }

  .ranking-card {
    grid-template-columns: 48px 80px 1fr;
    gap: 12px;
  }

  .ranking-card img {
    width: 80px;
    height: 108px;
  }
}

@media (max-width: 620px) {
  .nav-wrap,
  .container,
  .container.narrow,
  .footer-grid,
  .footer-bottom,
  .mobile-nav {
    width: min(100% - 24px, 1280px);
  }

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

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

  .hero-stage {
    height: 480px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .hero-arrow.prev {
    left: 10px;
  }

  .hero-arrow.next {
    right: 10px;
  }

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

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

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

  .card-body {
    padding: 12px;
  }

  .card-body em {
    font-size: 13px;
  }

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

  .side-grid .movie-card {
    grid-template-columns: 110px 1fr;
  }

  .ranking-card {
    grid-template-columns: 1fr;
  }

  .ranking-number {
    text-align: left;
  }

  .ranking-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .player-button {
    width: 66px;
    height: 66px;
  }
}
