:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffbeb;
  --text: #111827;
  --muted: #6b7280;
  --line: #fed7aa;
  --amber: #f59e0b;
  --orange: #f97316;
  --rose: #f43f5e;
  --cyan: #06b6d4;
  --green: #10b981;
  --purple: #8b5cf6;
  --shadow: 0 20px 45px rgba(120, 53, 15, 0.14);
  --shadow-soft: 0 14px 30px rgba(120, 53, 15, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 34%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  min-height: 60vh;
}

.max-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.88);
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.32);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 20px;
  line-height: 1.1;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-link,
.chip-link {
  border-radius: 14px;
  transition: 0.22s ease;
}

.nav-link {
  padding: 10px 15px;
  color: #374151;
  font-weight: 650;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 237, 213, 0.9);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #92400e;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.mobile-link {
  padding: 12px 14px;
  color: #374151;
  font-weight: 700;
}

.mobile-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.category-rail {
  border-top: 1px solid rgba(251, 191, 36, 0.25);
}

.rail-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.rail-inner::-webkit-scrollbar {
  display: none;
}

.chip-link {
  white-space: nowrap;
  padding: 8px 13px;
  color: #78350f;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(251, 191, 36, 0.55);
  font-size: 14px;
  font-weight: 650;
}

.chip-link:hover,
.chip-link.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(90deg, #ffedd5, #fed7aa, #ffedd5);
}

.hero-site-title {
  position: absolute;
  top: 34px;
  left: 50%;
  z-index: 4;
  width: min(1240px, calc(100% - 32px));
  transform: translateX(-50%);
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}

.hero-site-title h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
}

.hero-site-title p {
  width: min(650px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 18%, rgba(251, 146, 60, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.50) 46%, rgba(0, 0, 0, 0.10));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 74px;
  width: min(1240px, calc(100% - 32px));
  transform: translateX(-50%);
  color: #ffffff;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  margin-bottom: 15px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.32);
  font-size: 14px;
  font-weight: 800;
}

.hero-content h2 {
  width: min(720px, 100%);
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero-content p {
  width: min(680px, 100%);
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta {
  margin-bottom: 22px;
}

.hero-meta a,
.hero-meta span {
  padding: 7px 12px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.24s ease;
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.32);
}

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

.btn.full {
  width: 100%;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

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

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

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

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: 0.22s ease;
}

.hero-dots button.active {
  width: 34px;
  background: #ffffff;
}

.panel,
.content-section,
.detail-wrap {
  margin-top: 42px;
}

.quick-search {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 460px);
  gap: 24px;
  align-items: center;
  margin-top: -34px;
  position: relative;
  z-index: 8;
  padding: 26px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.quick-search h2,
.section-head h2,
.side-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

.quick-search p,
.section-head p,
.overview-card p,
.category-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.search-form,
.filter-bar {
  display: flex;
  gap: 10px;
}

.search-form input,
.filter-bar input,
.filter-bar select {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  outline: 0;
  color: var(--text);
  background: #ffffff;
}

.search-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.search-form button {
  min-height: 46px;
  padding: 0 22px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 800;
  white-space: nowrap;
}

.search-form.large {
  width: min(720px, 100%);
  margin-top: 20px;
}

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

.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #d97706;
  font-weight: 800;
}

.section-more span {
  font-size: 22px;
}

.grid {
  display: grid;
}

.cards-grid {
  gap: 20px;
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.30);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: 0.24s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
}

.play-mark {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 10px 18px rgba(244, 63, 94, 0.26);
}

.card-body {
  padding: 15px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--text);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-title:hover,
.rank-title:hover,
.side-rank a:hover {
  color: #d97706;
}

.card-meta,
.detail-meta {
  margin: 9px 0;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
}

.card-body p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  padding: 5px 9px;
  color: #92400e;
  border-radius: 999px;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 160px 1fr;
}

.movie-card.horizontal .poster-wrap {
  aspect-ratio: auto;
  min-height: 210px;
}

.movie-card.horizontal .card-title {
  min-height: auto;
}

.blue-panel,
.amber-panel {
  padding: 30px;
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
}

.blue-panel {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.amber-panel {
  background: linear-gradient(135deg, #fef3c7, #ffedd5, #fff7ed);
}

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

.category-card,
.overview-card {
  padding: 18px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: 0.22s ease;
}

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

.category-posters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.category-posters img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: #ffedd5;
}

.category-card h3,
.overview-title {
  display: block;
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.overview-card ul,
.side-rank {
  padding: 0;
  margin: 16px 0;
  list-style: none;
}

.overview-card li,
.side-rank li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(251, 191, 36, 0.50);
  color: #4b5563;
  font-size: 14px;
}

.overview-card li a,
.side-rank a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.page-hero {
  padding: 64px 0;
  color: #ffffff;
  background: radial-gradient(circle at 76% 12%, rgba(251, 191, 36, 0.40), transparent 34%), linear-gradient(135deg, #111827, #1f2937 42%, #7c2d12);
}

.page-hero.compact h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
}

.page-hero.compact p {
  width: min(760px, 100%);
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.page-hero.hot {
  background: radial-gradient(circle at 80% 0%, rgba(244, 63, 94, 0.40), transparent 32%), linear-gradient(135deg, #111827, #7f1d1d);
}

.page-hero.library {
  background: radial-gradient(circle at 78% 10%, rgba(16, 185, 129, 0.36), transparent 32%), linear-gradient(135deg, #0f172a, #064e3b);
}

.page-hero.search-hero {
  background: radial-gradient(circle at 76% 16%, rgba(6, 182, 212, 0.42), transparent 32%), linear-gradient(135deg, #111827, #164e63);
}

.page-hero.category-page {
  background: radial-gradient(circle at 78% 12%, rgba(139, 92, 246, 0.38), transparent 32%), linear-gradient(135deg, #111827, #4c1d95);
}

.filter-bar {
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.filter-bar select {
  max-width: 190px;
}

.with-sidebar,
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}

.side-panel,
.poster-panel,
.detail-card,
.player-card {
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.side-panel {
  padding: 20px;
}

.sticky-panel {
  position: sticky;
  top: 118px;
}

.empty-state {
  display: none;
  padding: 36px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 22px;
  background: #ffffff;
}

.empty-state.show {
  display: block;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

.rank-cover img {
  width: 96px;
  height: 126px;
  object-fit: cover;
  border-radius: 16px;
  background: #ffedd5;
}

.rank-title {
  font-size: 20px;
  font-weight: 900;
}

.rank-info p {
  display: -webkit-box;
  margin: 8px 0;
  overflow: hidden;
  color: #4b5563;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-play {
  padding: 10px 16px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: #d97706;
  font-weight: 800;
}

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

.player-card {
  overflow: hidden;
  padding: 0;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.54));
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
  font-size: 34px;
}

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

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  padding: 8px 12px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s ease;
  pointer-events: none;
}

.player-message.show {
  opacity: 1;
  transform: translateY(0);
}

.detail-card {
  padding: clamp(20px, 4vw, 34px);
}

.detail-category {
  display: inline-flex;
  padding: 7px 12px;
  margin-bottom: 14px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-size: 14px;
  font-weight: 800;
}

.detail-card h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
}

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

.detail-card p {
  margin: 0;
  color: #374151;
  line-height: 1.86;
}

.lead-text {
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff7ed;
  font-size: 18px;
  font-weight: 700;
}

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

.poster-panel {
  padding: 16px;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 14px;
  border-radius: 18px;
  background: #ffedd5;
}

.related-section {
  margin-top: 0;
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #030712);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.footer-logo {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.footer-brand p {
  width: min(680px, 100%);
  color: #9ca3af;
  line-height: 1.8;
}

.footer-links,
.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.footer-links a,
.footer-cats a {
  color: #fef3c7;
  font-weight: 700;
}

.copyright {
  margin: 24px 0 0;
  color: #9ca3af;
  font-size: 14px;
}

@media (max-width: 1120px) {
  .cards-grid.five {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 620px;
  }

  .hero-site-title {
    top: 24px;
  }

  .hero-content {
    bottom: 78px;
  }

  .quick-search,
  .with-sidebar,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid.three,
  .cards-grid.four,
  .cards-grid.five,
  .cards-grid.horizontal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-panel,
  .sticky-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 66px;
  }

  .brand-text small,
  .category-rail {
    display: none;
  }

  .hero {
    height: 640px;
  }

  .hero-arrow {
    display: none;
  }

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

  .quick-search {
    margin-top: 18px;
    padding: 20px;
  }

  .search-form,
  .filter-bar {
    flex-direction: column;
  }

  .filter-bar select {
    max-width: none;
  }

  .cards-grid.three,
  .cards-grid.four,
  .cards-grid.five,
  .cards-grid.horizontal-list,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal .poster-wrap {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

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

  .rank-play {
    text-align: center;
  }
}
