:root {
  --night-950: #071a2d;
  --night-900: #102a43;
  --night-850: #183553;
  --night-800: #243b53;
  --night-700: #334e68;
  --night-600: #486581;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-soft: #94a3b8;
  --card-border: rgba(148, 163, 184, 0.18);
  --glass: rgba(36, 59, 83, 0.72);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.15), transparent 32rem),
    linear-gradient(180deg, var(--night-900), var(--night-950));
  color: var(--text-main);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.2;
  z-index: -1;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(16, 42, 67, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-400));
  color: #111827;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.32);
}

.brand-text {
  font-size: 20px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.desktop-nav a,
.mobile-panel a,
.filter-links a,
.section-more,
.category-open,
.ranking-foot a {
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.filter-links a:hover,
.section-more:hover,
.category-open:hover,
.ranking-foot a:hover {
  color: var(--amber-400);
}

.top-search {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(36, 59, 83, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  overflow: hidden;
}

.top-search input,
.quick-search-form input,
.filter-bar input {
  color: var(--text-main);
  background: transparent;
  border: 0;
  outline: 0;
}

.top-search input {
  width: 190px;
  padding: 12px 14px;
}

.top-search button,
.quick-search-form button {
  border: 0;
  background: var(--amber-500);
  color: #111827;
  font-weight: 800;
  padding: 12px 16px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: var(--night-800);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text-main);
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

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

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(36, 59, 83, 0.75);
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--night-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 26, 45, 0.96), rgba(16, 42, 67, 0.78) 38%, rgba(16, 42, 67, 0.24)),
    linear-gradient(0deg, rgba(7, 26, 45, 0.96), transparent 46%);
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 48px;
  max-width: 760px;
  justify-self: center;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.42);
}

.hero-content p {
  max-width: 690px;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.hero-meta span,
.detail-meta span,
.tag-row span,
.ranking-foot span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(36, 59, 83, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text-muted);
  font-size: 13px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-400));
  color: #111827;
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.28);
}

.ghost-btn {
  color: var(--text-main);
  background: rgba(36, 59, 83, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-teaser:hover,
.category-overview-card:hover,
.ranking-item:hover {
  transform: translateY(-3px);
}

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

.hero-dot {
  width: 44px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--amber-500);
}

.quick-panel,
.content-section,
.filter-bar,
.ranking-list,
.detail-content-grid,
.player-section {
  width: min(1280px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.quick-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 24px;
  margin-top: -64px;
  position: relative;
  z-index: 5;
}

.quick-search-card,
.hot-rank-card,
.movie-card,
.category-overview-card,
.ranking-item,
.story-card,
.video-shell {
  background: rgba(16, 42, 67, 0.78);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-search-card,
.hot-rank-card {
  border-radius: 28px;
  padding: clamp(22px, 4vw, 34px);
}

.quick-search-card h2,
.hot-rank-card h2,
.section-heading h2,
.compact-hero h1,
.detail-info h1,
.story-card h2,
.player-section h2 {
  margin: 8px 0 12px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.quick-search-card h2,
.hot-rank-card h2,
.section-heading h2,
.compact-hero h1 {
  font-size: clamp(28px, 4vw, 46px);
}

.quick-search-form {
  display: flex;
  gap: 0;
  margin: 22px 0 18px;
  background: rgba(36, 59, 83, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  overflow: hidden;
}

.quick-search-form input {
  min-width: 0;
  flex: 1;
  padding: 16px 18px;
}

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

.category-chip-row a,
.filter-links a,
.section-more,
.category-open {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(36, 59, 83, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.card-title-row,
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.card-title-row a {
  color: var(--amber-400);
  font-weight: 800;
}

.hot-rank-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.hot-rank-list a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(36, 59, 83, 0.58);
}

.rank-no {
  color: var(--amber-400);
  font-weight: 900;
}

.rank-info {
  min-width: 0;
}

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

.rank-info em {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-soft);
  font-style: normal;
}

.rank-heat {
  color: var(--amber-400);
  font-weight: 800;
}

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

.top-tight {
  padding-top: 28px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading p {
  max-width: 760px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
}

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

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

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

.movie-card {
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.36);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--night-800), var(--night-700));
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: brightness(0.78);
}

.year-badge,
.type-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.year-badge {
  left: 12px;
  background: rgba(245, 158, 11, 0.92);
  color: #111827;
}

.type-badge {
  right: 12px;
  background: rgba(16, 42, 67, 0.82);
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent, rgba(7, 26, 45, 0.72));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.poster-overlay span {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.92);
  color: #111827;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

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

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

.movie-card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card-body h3 a:hover {
  color: var(--amber-400);
}

.movie-meta,
.movie-desc,
.ranking-body p,
.story-card p,
.detail-one-line,
.compact-hero p,
.quick-search-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.movie-meta {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text-soft);
}

.movie-desc {
  margin: 0 0 12px;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 5px 9px;
  font-size: 12px;
}

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

.category-teaser {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--night-800);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-teaser:hover {
  border-color: rgba(245, 158, 11, 0.38);
}

.category-teaser img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 0.4s ease;
}

.category-teaser:hover img {
  transform: scale(1.07);
}

.category-teaser-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 26, 45, 0.96), transparent 78%);
}

.category-teaser strong,
.category-teaser em {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.category-teaser strong {
  bottom: 58px;
  font-size: 22px;
}

.category-teaser em {
  bottom: 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  font-style: normal;
}

.page-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 24px;
}

.compact-hero > div {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(28px, 6vw, 58px);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(36, 59, 83, 0.95), rgba(16, 42, 67, 0.88));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(16, 42, 67, 0.72);
  border: 1px solid var(--card-border);
}

.filter-bar input {
  flex: 1;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(36, 59, 83, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

.category-overview-card {
  border-radius: 28px;
  padding: 22px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-overview-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
}

.category-overview-header h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.category-overview-header p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 16px;
}

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

.category-preview-strip a {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 2 / 3;
  background: var(--night-800);
}

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

.category-preview-strip span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 9px 9px;
  font-size: 12px;
  background: linear-gradient(0deg, rgba(7, 26, 45, 0.96), transparent);
}

.ranking-list {
  display: grid;
  gap: 16px;
  padding: 28px 0 80px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  border-radius: 24px;
  padding: 14px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.ranking-item:hover {
  border-color: rgba(245, 158, 11, 0.35);
}

.ranking-poster {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 2 / 3;
  background: var(--night-800);
}

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

.ranking-poster span {
  position: absolute;
  left: 8px;
  top: 8px;
  border-radius: 999px;
  padding: 5px 8px;
  color: #111827;
  background: var(--amber-500);
  font-size: 12px;
  font-weight: 900;
}

.ranking-body h2 {
  margin: 4px 0 8px;
  font-size: 24px;
}

.ranking-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: flex;
  align-items: center;
}

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

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

.detail-backdrop span {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 26, 45, 0.96), rgba(16, 42, 67, 0.8)),
    linear-gradient(0deg, var(--night-950), transparent 62%);
}

.detail-wrap {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 48px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--text-soft);
  margin-bottom: 28px;
}

.breadcrumb a:hover {
  color: var(--amber-400);
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(26px, 5vw, 54px);
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  box-shadow: var(--shadow);
  background: var(--night-800);
}

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

.detail-info h1 {
  font-size: clamp(42px, 7vw, 76px);
}

.detail-one-line {
  max-width: 820px;
  font-size: 18px;
}

.detail-tags {
  margin-bottom: 26px;
}

.player-section {
  padding-top: 58px;
}

.compact-heading {
  margin-bottom: 18px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--text-main);
  background: linear-gradient(0deg, rgba(7, 26, 45, 0.74), rgba(7, 26, 45, 0.32));
  cursor: pointer;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber-500);
  color: #111827;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

.play-overlay strong {
  font-size: clamp(18px, 3vw, 30px);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 32px;
}

.story-card {
  border-radius: 28px;
  padding: clamp(22px, 4vw, 34px);
}

.story-card h2 {
  font-size: 28px;
}

.story-card p {
  margin: 0;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(7, 26, 45, 0.72);
}

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

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--text-soft);
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.footer-grid a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

[data-search-item].is-hidden {
  display: none;
}

@media (max-width: 1160px) {
  .movie-grid,
  .wide-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .nav-wrap {
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .quick-panel,
  .detail-main,
  .detail-content-grid,
  .footer-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    margin-top: -38px;
  }

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

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-poster {
    max-width: 320px;
  }
}

@media (max-width: 680px) {
  .hero-carousel {
    min-height: 78vh;
  }

  .hero-content {
    align-self: end;
    padding-bottom: 94px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(7, 26, 45, 0.96), rgba(16, 42, 67, 0.55)),
      linear-gradient(90deg, rgba(7, 26, 45, 0.82), transparent);
  }

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

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

  .quick-search-form {
    flex-direction: column;
  }

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

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

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

  .ranking-item {
    grid-template-columns: 86px 1fr;
  }

  .ranking-body h2 {
    font-size: 18px;
  }

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

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

  .detail-hero {
    min-height: auto;
  }

  .detail-wrap {
    padding-top: 42px;
  }
}

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

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