:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --deep: #020617;
  --panel: #ffffff;
  --line: #e2e8f0;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --orange: #f97316;
  --pink: #ec4899;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f1f5f9 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, #020617 0%, #1e293b 55%, #020617 100%);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.28);
}

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.25);
  transition: transform 0.25s ease;
}

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

.brand-text strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 12px;
}

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

.main-nav > a,
.nav-dropdown > a {
  color: #e2e8f0;
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav > a:hover,
.nav-dropdown:hover > a {
  color: #22d3ee;
}

.nav-dropdown {
  position: relative;
  padding: 24px 0;
}

.dropdown-panel {
  position: absolute;
  top: 64px;
  left: 50%;
  width: 220px;
  transform: translateX(-50%) translateY(8px);
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-panel a {
  padding: 9px 12px;
  border-radius: 10px;
  color: #cbd5e1;
}

.dropdown-panel a:hover {
  color: #ffffff;
  background: rgba(6, 182, 212, 0.16);
}

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.site-search input,
.local-search input {
  width: 250px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(51, 65, 85, 0.82);
  padding: 11px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-search input:focus,
.local-search input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.site-search button,
.primary-btn {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  padding: 11px 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.site-search button:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.12);
  box-shadow: 0 16px 32px rgba(6, 182, 212, 0.28);
}

.primary-btn.small {
  display: inline-flex;
  padding: 9px 16px;
  font-size: 14px;
}

.primary-btn.full {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  padding: 0 22px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.26);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(148, 163, 184, 0.18);
  padding: 10px 12px;
}

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

.mobile-panel a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

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

.hero-carousel {
  position: relative;
  height: clamp(520px, 78vh, 720px);
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.35), transparent 28%), #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.75s ease, transform 1.2s ease;
}

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

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(15, 23, 42, 0.62) 50%, rgba(2, 6, 23, 0.18) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 760px;
  padding-top: 30px;
}

.hero-kicker,
.inner-hero span,
.category-overview-copy span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  color: #facc15;
  background: rgba(250, 204, 21, 0.13);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 820px;
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-tags,
.detail-badges,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.detail-badges span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid rgba(125, 211, 252, 0.18);
}

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

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: #ffffff;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 28px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

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

.hero-dot.is-active {
  width: 34px;
  background: #22d3ee;
}

.home-search-band,
.page-section,
.detail-top {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.home-search-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: -38px;
  position: relative;
  z-index: 12;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.home-search-band strong {
  display: block;
  font-size: 22px;
  color: #0f172a;
}

.home-search-band p {
  margin: 6px 0 0;
  color: var(--muted);
}

.big-search input {
  width: min(420px, 48vw);
  color: #0f172a;
  background: #f8fafc;
}

.page-section {
  padding: 56px 0;
}

.page-section.soft-panel {
  width: min(1280px, calc(100% - 32px));
  margin-top: 22px;
  padding: 42px;
  border-radius: 34px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-head h2,
.related-panel h2,
.ranking-card h2,
.detail-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head p,
.related-panel p,
.ranking-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.36);
  box-shadow: var(--shadow);
}

.movie-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 45%, #0891b2);
}

.movie-card figure::after,
.category-tile::after,
.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.7), transparent 55%);
  pointer-events: none;
}

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

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

.movie-card figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.74);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 11px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.card-meta span {
  border-radius: 999px;
  background: #eff6ff;
  padding: 4px 9px;
}

.movie-card h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  margin-top: auto;
}

.tag-row span {
  color: #334155;
  background: #f1f5f9;
}

.tag-row.wide {
  margin-top: 18px;
}

.movie-card.compact {
  width: 290px;
  flex: 0 0 290px;
  scroll-snap-align: start;
}

.movie-card.horizontal {
  flex-direction: row;
}

.movie-card.horizontal figure {
  width: 230px;
  flex: 0 0 230px;
  aspect-ratio: auto;
}

.movie-card.horizontal .card-body {
  min-width: 0;
}

.movie-card.mini {
  border-radius: 16px;
}

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

.movie-card.mini h3 {
  font-size: 15px;
}

.movie-card.mini p,
.movie-card.mini .tag-row {
  display: none;
}

.movie-scroller {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  background-color: #0f172a;
  padding: 24px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  color: #ffffff;
  font-size: 23px;
  font-weight: 900;
}

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

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 32px;
}

.stack-list {
  display: grid;
  gap: 18px;
}

.ranking-card,
.related-panel,
.detail-card,
.category-overview-card {
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.ranking-card {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 40px 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  background: #f8fafc;
  padding: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  background: #eef2ff;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #475569;
  background: #e2e8f0;
  font-weight: 900;
}

.rank-row.hot .rank-number {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.rank-row img {
  width: 76px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

.rank-title {
  color: #0f172a;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info {
  grid-column: 3;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inner-hero {
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: center;
  gap: 30px;
  color: #ffffff;
  background: radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.32), transparent 28%), linear-gradient(135deg, #020617, #1e293b);
  padding: 58px max(16px, calc((100vw - 1280px) / 2)) 62px;
}

.inner-hero > div,
.inner-hero form {
  width: min(100%, 1280px);
}

.inner-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.inner-hero p {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.72;
}

.local-search {
  justify-self: end;
}

.local-search input {
  width: 100%;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.95);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-bar button {
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #2563eb;
  background: #ffffff;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-bar button.is-active,
.filter-bar button:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.empty-state {
  border-radius: 18px;
  background: #ffffff;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  box-shadow: var(--soft-shadow);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.category-overview-copy h2 {
  margin: 16px 0 10px;
  font-size: 28px;
  font-weight: 900;
}

.category-overview-copy p {
  color: var(--muted);
  line-height: 1.7;
}

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

.detail-top {
  padding: 34px 0 64px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.crumbs a {
  color: var(--blue);
  font-weight: 800;
}

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

.player-panel {
  min-width: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.26);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  color: #ffffff;
  background: #020617;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.66;
}

.player-cover strong,
.play-mark {
  position: relative;
  z-index: 2;
}

.play-mark {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 36px rgba(6, 182, 212, 0.34);
  font-size: 34px;
  padding-left: 6px;
}

.player-cover strong {
  max-width: 80%;
  text-align: center;
  font-size: clamp(22px, 4vw, 40px);
  line-height: 1.2;
  text-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

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

.detail-card {
  margin-top: 24px;
  padding: 26px;
}

.detail-badges span {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.detail-card h1 {
  margin: 18px 0 14px;
  color: #0f172a;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.lead-text,
.detail-card p {
  color: #334155;
  font-size: 17px;
  line-height: 1.85;
}

.related-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.related-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
  margin-top: 54px;
}

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

.footer-brand {
  color: #ffffff;
  font-size: 23px;
  font-weight: 900;
}

.site-footer p {
  color: #94a3b8;
  line-height: 1.7;
}

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

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

.footer-links a:hover {
  color: #22d3ee;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 20px 0;
  color: #94a3b8;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .nav-wrap > .site-search {
    display: none;
  }

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

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

  .ranking-card,
  .related-panel {
    position: static;
  }
}

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

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

  .hero-carousel {
    height: 620px;
  }

  .home-search-band,
  .section-head,
  .inner-hero,
  .category-overview-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-search-band {
    margin-top: 0;
    border-radius: 0;
    width: 100%;
  }

  .big-search,
  .big-search input {
    width: 100%;
  }

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

  .inner-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .local-search {
    justify-self: stretch;
  }

  .movie-card.horizontal {
    flex-direction: column;
  }

  .movie-card.horizontal figure {
    width: 100%;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 580px) {
  .nav-wrap,
  .page-section,
  .detail-top {
    width: min(100% - 24px, 1280px);
  }

  .brand-text small {
    display: none;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-controls {
    bottom: 18px;
    gap: 10px;
  }

  .hero-prev,
  .hero-next {
    width: 38px;
    height: 38px;
  }

  .cards-3,
  .cards-4,
  .category-grid,
  .overview-samples {
    grid-template-columns: 1fr;
  }

  .page-section.soft-panel {
    width: 100%;
    border-radius: 0;
    padding: 32px 16px;
  }

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

  .rank-row img {
    width: 64px;
    height: 46px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: start;
  }
}
