:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --dark: #020617;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --orange: #f97316;
  --red: #ef4444;
  --green: #10b981;
  --shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 52%, #0f172a 100%);
  color: #fff;
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.26);
}

.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 52%, #2563eb 100%);
  box-shadow: 0 12px 26px rgba(6, 182, 212, 0.35);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 66px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
  font-weight: 650;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 15px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan);
  transition: width 0.2s ease;
}

.site-nav a:hover {
  color: #67e8f9;
}

.site-nav a:hover::after {
  width: 100%;
}

.header-search {
  flex: 0 1 260px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.header-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 7px 10px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.header-search button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: #fff;
  padding: 7px 13px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-slider {
  position: relative;
  height: 560px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 18% 22%, rgba(6, 182, 212, 0.28), transparent 32%), linear-gradient(135deg, #020617, #111827 52%, #0f172a);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.02);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(2, 6, 23, 0.56) 46%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.08) 52%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 780px;
  padding-top: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #06b6d4;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.28);
}

.hero-copy h1 {
  margin: 18px 0 14px;
  max-width: 820px;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 2.2vw, 1.25rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span,
.meta-chip,
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-meta span {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
  box-shadow: none;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

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

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

.page-section.compact {
  padding: 38px 0;
}

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

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.2);
}

.section-icon.hot {
  background: linear-gradient(135deg, #ef4444, #ec4899);
}

.section-icon.region {
  background: linear-gradient(135deg, #10b981, #059669);
}

.section-icon.blue {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.section-icon.purple {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-head p,
.page-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

.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-card,
.movie-list-card,
.category-tile,
.info-card,
.sidebar-card,
.filter-panel,
.rank-panel {
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0f172a, #334155);
}

.movie-card.tall .movie-poster {
  aspect-ratio: 2 / 2.7;
}

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

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 23, 0.78) 100%);
}

.badge,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 850;
}

.badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  font-size: 0.78rem;
}

.rank-badge {
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

.play-chip {
  left: 12px;
  bottom: 12px;
  padding: 7px 11px;
  color: #fff;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
}

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

.movie-card h3,
.movie-list-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 900;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.movie-desc {
  margin: 0;
  color: #475569;
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.movie-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.movie-list-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 138px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-list-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.movie-list-card .movie-poster {
  aspect-ratio: auto;
  height: 100%;
}

.movie-list-card .movie-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-panel {
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 44px);
  background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 100%);
}

.region-block {
  margin-bottom: 46px;
}

.region-block:last-child {
  margin-bottom: 0;
}

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

.region-block h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
}

.text-link {
  color: #0891b2;
  font-weight: 850;
}

.text-link:hover {
  color: #2563eb;
}

.page-hero {
  color: #fff;
  padding: 74px 0 58px;
  background:
    radial-gradient(circle at 18% 22%, rgba(6, 182, 212, 0.28), transparent 34%),
    radial-gradient(circle at 86% 10%, rgba(37, 99, 235, 0.28), transparent 28%),
    linear-gradient(135deg, #020617 0%, #111827 56%, #0f172a 100%);
}

.page-title {
  max-width: 860px;
}

.page-title p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.stat-pill {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  font-weight: 750;
}

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

.category-tile {
  display: block;
  padding: 24px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.42);
  box-shadow: var(--shadow);
}

.category-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  font-weight: 900;
}

.category-tile h3 {
  margin: 16px 0 6px;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-samples span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
}

.filter-panel {
  padding: 22px;
  margin-bottom: 26px;
}

.filter-controls {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 12px 13px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.result-count {
  color: var(--muted);
  white-space: nowrap;
  font-weight: 750;
}

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

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 26px 62px rgba(2, 6, 23, 0.28);
  aspect-ratio: 16 / 9;
}

.video-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.95), rgba(37, 99, 235, 0.95));
  box-shadow: 0 20px 46px rgba(6, 182, 212, 0.32);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-player.is-playing .player-big-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}

.player-toolbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
}

.player-toolbar button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  padding: 9px 13px;
  font-weight: 800;
}

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

.player-error {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.82);
}

.player-error.is-visible {
  display: flex;
}

.info-card,
.sidebar-card {
  padding: clamp(22px, 3vw, 32px);
}

.info-card h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.detail-section {
  margin: 0 0 26px;
}

.detail-section h2 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  font-weight: 900;
}

.detail-section p {
  margin: 0;
  color: #475569;
}

.sidebar-card {
  position: sticky;
  top: 94px;
}

.sidebar-card h3 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 900;
}

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

.info-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.info-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-list dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.info-list dd {
  margin: 2px 0 0;
  font-weight: 800;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
}

.rank-title {
  font-weight: 900;
}

.rank-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-weight: 800;
}

.pagination a:hover,
.pagination .active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.empty-state {
  display: none;
  padding: 32px;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
  background: #fff;
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  margin-top: 76px;
  color: #cbd5e1;
  background: #020617;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer p,
.site-footer li {
  color: #94a3b8;
}

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

.site-footer a:hover {
  color: #67e8f9;
}

.copyright {
  padding: 20px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  text-align: center;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .header-search {
    display: flex;
  }

  .site-header.is-open .header-inner {
    flex-wrap: wrap;
    padding: 12px 0 16px;
  }

  .site-header.is-open .site-nav {
    order: 3;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .site-header.is-open .site-nav a {
    min-height: auto;
    padding: 12px 0;
  }

  .site-header.is-open .header-search {
    order: 4;
    flex: 1 1 100%;
  }

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

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

  .filter-controls {
    grid-template-columns: 1fr 1fr;
  }

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

  .sidebar-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero-slider {
    height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 13vw, 3.5rem);
  }

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

  .section-head,
  .region-block-head {
    align-items: start;
    flex-direction: column;
  }

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

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

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

  .filter-controls {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 44px 1fr;
  }

  .rank-item .btn {
    grid-column: 1 / -1;
  }

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