* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: #f8fafc;
  line-height: 1.6;
}

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: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

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

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

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: #475569;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #2563eb;
  background: #eff6ff;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #f1f5f9;
}

.header-search input {
  width: 160px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 8px 8px 12px;
}

.header-search button,
.filter-panel button,
.primary-button,
.ghost-button,
.category-preview-head a,
.section-more a {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button {
  padding: 8px 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #eff6ff;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #2563eb;
  border-radius: 999px;
}

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

.mobile-panel.open {
  display: grid;
  gap: 8px;
}

.mobile-panel .nav-link,
.mobile-sub-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
}

.mobile-category-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 48%, #0f766e 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(34, 211, 238, 0.26), transparent 30%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.18), transparent);
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  padding: 82px 0 72px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 56px;
}

.hero-slide.active {
  display: grid;
  animation: heroFade 0.55s ease both;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  display: grid;
  gap: 20px;
}

.hero-badge {
  justify-self: start;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: block;
  color: #cffafe;
}

.hero p {
  max-width: 720px;
  margin: 0;
  font-size: clamp(17px, 2vw, 21px);
  color: #e0f2fe;
}

.hero-tags,
.detail-badges,
.card-meta,
.tag-row,
.detail-tags,
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-tags span,
.detail-badges span,
.detail-badges a,
.tag-row span,
.detail-tags span,
.mini-tags span {
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.primary-button {
  color: #2563eb;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.primary-button:hover,
.ghost-button:hover,
.header-search button:hover,
.filter-panel button:hover,
.category-preview-head a:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 28px;
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.34);
  transform: rotate(1.2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

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

.hero-poster-info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.hero-poster-info strong {
  font-size: 22px;
}

.hero-poster-info em {
  font-style: normal;
  color: #bae6fd;
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  font-size: 26px;
  backdrop-filter: blur(12px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  padding: 0;
  opacity: 0.55;
}

.hero-dot.active {
  width: 28px !important;
  opacity: 1;
}

.search-strip {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 32px));
  margin: -34px auto 0;
}

.big-search {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.big-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 18px;
  border-radius: 18px;
  background: #f8fafc;
}

.big-search button {
  border: 0;
  border-radius: 18px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  font-weight: 900;
  cursor: pointer;
}

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

.no-padding {
  padding: 0;
}

.section-heading {
  margin-bottom: 32px;
  text-align: center;
}

.section-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 680px;
  margin: 10px auto 0;
  color: #64748b;
}

.section-icon {
  display: inline-flex;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #bfdbfe;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0f172a;
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(15, 23, 42, 0.72));
  opacity: 0.82;
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.92);
  font-size: 13px;
  font-weight: 900;
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 17px;
}

.card-meta {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card h3,
.movie-card h2 {
  margin: 0;
  line-height: 1.35;
}

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

.movie-card h3 a:hover,
.rank-card h2 a:hover {
  color: #2563eb;
}

.movie-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.tag-row span {
  background: #eff6ff;
  color: #2563eb;
}

.soft-section {
  background: linear-gradient(135deg, #ecfeff, #f0fdf4);
}

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

.compact-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.compact-card img {
  width: 126px;
  min-height: 96px;
  object-fit: cover;
}

.compact-card span {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  min-width: 0;
}

.compact-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card em {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

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

.category-tile {
  min-height: 168px;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 36%),
    linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:nth-child(2n) {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 36%),
    linear-gradient(135deg, #f97316, #ef4444);
}

.category-tile:nth-child(3n) {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 36%),
    linear-gradient(135deg, #059669, #14b8a6);
}

.category-tile:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.18);
}

.category-tile span {
  display: block;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.section-more {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.feature-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-band div {
  padding: 26px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.2);
}

.feature-band strong,
.feature-band span {
  display: block;
}

.feature-band strong {
  font-size: 24px;
}

.feature-band span {
  margin-top: 8px;
  color: #dbeafe;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.28), transparent 30%),
    linear-gradient(135deg, #1d4ed8, #0891b2 54%, #0f766e);
}

.small-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #e0f2fe;
  font-size: 18px;
}

.filter-panel {
  position: sticky;
  top: 82px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 180px 160px auto;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

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

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: #ffffff;
  padding: 0 14px;
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
}

.filter-panel button {
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.empty-state {
  margin-bottom: 24px;
  padding: 22px;
  border-radius: 18px;
  background: #fff7ed;
  color: #c2410c;
  text-align: center;
  font-weight: 800;
}

.stacked-sections {
  display: grid;
  gap: 34px;
}

.category-preview-block {
  padding: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.category-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.category-preview-head h2 {
  margin: 0;
  font-size: 28px;
}

.category-preview-head p {
  margin: 8px 0 0;
  color: #64748b;
}

.category-preview-head a {
  flex: 0 0 auto;
  padding: 10px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

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

.rank-card {
  display: grid;
  grid-template-columns: 64px 160px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-number {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-size: 22px;
  font-weight: 900;
}

.rank-poster {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
}

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

.rank-card h2 {
  font-size: 22px;
}

.rank-card p {
  margin: 8px 0 12px;
  color: #64748b;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
}

.detail-main {
  min-width: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #2563eb;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 26px 64px rgba(2, 6, 23, 0.28);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.58));
  cursor: pointer;
}

.play-overlay span {
  display: inline-flex;
  width: 86px;
  height: 86px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #2563eb;
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.28);
  padding-left: 5px;
}

.play-overlay.hidden {
  display: none;
}

.detail-card,
.side-card {
  margin-top: 22px;
  padding: 26px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.detail-badges a,
.detail-badges span {
  background: #eff6ff;
  color: #2563eb;
}

.detail-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.lead-text {
  margin: 0 0 22px;
  color: #475569;
  font-size: 18px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.detail-meta-grid div {
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
}

.detail-meta-grid strong,
.detail-meta-grid span {
  display: block;
}

.detail-meta-grid strong {
  color: #64748b;
  font-size: 13px;
}

.detail-meta-grid span {
  margin-top: 5px;
  font-weight: 900;
}

.detail-card h2 {
  margin: 24px 0 10px;
  font-size: 24px;
}

.detail-card p {
  margin: 0;
  color: #334155;
}

.detail-tags {
  margin-top: 24px;
}

.detail-tags span,
.mini-tags span {
  background: #f1f5f9;
  color: #475569;
}

.side-poster {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

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

.side-card h2 {
  margin: 0 0 16px;
}

.side-info {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.side-info span {
  color: #64748b;
}

.side-info a,
.side-info strong {
  color: #2563eb;
}

.mini-tags {
  margin-top: 16px;
}

.related-section {
  padding-top: 34px;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 30px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 42px;
}

.footer-logo .brand-text {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
}

.footer-brand p {
  max-width: 440px;
  margin: 16px 0 0;
  color: #94a3b8;
}

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

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
  }

  .side-card {
    margin-top: 0;
  }
}

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

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

  .nav-shell {
    gap: 12px;
  }

  .hero-shell {
    min-height: auto;
    padding: 54px 0 86px;
  }

  .hero-slide,
  .hero-slide.active {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 310px;
  }

  .big-search,
  .filter-panel,
  .compact-filter {
    grid-template-columns: 1fr;
    display: grid;
  }

  .big-search button,
  .filter-panel button {
    min-height: 46px;
  }

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

  .rank-card {
    grid-template-columns: 52px 120px 1fr;
  }

  .detail-meta-grid,
  .footer-shell {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .brand-text {
    font-size: 18px;
  }

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

  .hero-actions,
  .hero-tags {
    align-items: stretch;
  }

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

  .content-section {
    padding: 48px 0;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .category-grid,
  .feature-band,
  .detail-meta-grid,
  .footer-shell,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 48px 1fr;
  }

  .rank-poster {
    grid-row: span 2;
  }

  .category-preview-head {
    display: grid;
  }

  .compact-card img {
    width: 112px;
  }

  .small-hero > div {
    padding: 48px 0;
  }

  .mobile-category-links {
    grid-template-columns: 1fr;
  }
}
