:root {
  color-scheme: dark;
  --page-bg: #07111f;
  --panel-bg: rgba(15, 23, 42, 0.76);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.2);
  --muted: #94a3b8;
  --text: #f8fafc;
  --cyan: #22d3ee;
  --cyan-deep: #0284c7;
  --blue: #2563eb;
  --yellow: #facc15;
  --purple: #a78bfa;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(8, 47, 73, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(34, 211, 238, 0.18), transparent 36rem),
    radial-gradient(circle at 90% 12%, rgba(37, 99, 235, 0.26), transparent 34rem),
    linear-gradient(135deg, #020617 0%, #0f172a 45%, #0b2242 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  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: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 82%);
}

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;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(22px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.32);
}

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

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

.nav-link,
.mobile-nav-link {
  color: #cbd5e1;
  border-radius: 999px;
  transition: color 0.24s ease, background 0.24s ease, transform 0.24s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #ffffff;
  background: rgba(34, 211, 238, 0.13);
}

.header-search {
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(37, 99, 235, 0.24));
  color: #e0faff;
  border: 1px solid rgba(34, 211, 238, 0.26);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.76);
  color: white;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

.mobile-nav-link {
  padding: 12px 14px;
}

.hero {
  position: relative;
  height: min(620px, calc(100vh - 72px));
  min-height: 520px;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms 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:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 40%, rgba(2, 6, 23, 0.14) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1280px;
}

.hero-content > * {
  max-width: 720px;
}

.hero-kicker,
.section-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-kicker::before,
.section-kicker::before,
.page-hero span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero p {
  margin: 0 0 28px;
  color: #cbd5e1;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  max-width: 620px;
}

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

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

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  background: rgba(34, 211, 238, 0.12);
  color: #cffafe;
  font-size: 0.9rem;
}

.hero-actions,
.quick-search-form,
.small-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.primary-btn,
.ghost-btn,
.section-more,
.quick-search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.22s ease, border 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.primary-btn,
.quick-search-form button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 34px rgba(34, 211, 238, 0.2);
  cursor: pointer;
}

.ghost-btn,
.section-more {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.quick-search-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(34, 211, 238, 0.26);
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.56);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(14, 165, 233, 0.28);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dots button.active {
  width: 34px;
  background: var(--cyan);
}

.quick-search,
.content-section,
.detail-layout,
.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.quick-search {
  margin-top: -42px;
  position: relative;
  z-index: 8;
}

.quick-search-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.quick-search-inner span {
  color: var(--cyan);
  font-weight: 800;
}

.quick-search-inner h2 {
  margin: 4px 0 0;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.quick-search-form {
  flex: 1;
  max-width: 520px;
}

.quick-search-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.72);
  color: white;
  outline: 0;
}

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

.quick-search-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.content-section {
  padding-top: 76px;
  padding-bottom: 28px;
}

.accent-section {
  max-width: none;
  margin-top: 44px;
  padding: 72px max(24px, calc((100vw - 1280px) / 2 + 24px));
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(37, 99, 235, 0.16));
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

.section-heading h2,
.page-hero h1,
.movie-detail h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

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

.category-card {
  position: relative;
  min-height: 168px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 10%, rgba(34, 211, 238, 0.18), transparent 7rem),
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.56));
  transition: transform 0.24s ease, border 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.48);
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.16);
}

.category-index {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  font-weight: 900;
}

.category-card strong,
.category-card em {
  display: block;
}

.category-card strong {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.category-card em {
  color: var(--muted);
  font-style: normal;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.2);
  transition: transform 0.24s ease, border 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.46);
  box-shadow: 0 24px 58px rgba(34, 211, 238, 0.13);
}

.poster-link {
  position: relative;
  display: block;
  height: 256px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
}

.compact-card .poster-link {
  height: 210px;
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.08);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 55%);
  opacity: 0.9;
}

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.poster-badge {
  top: 12px;
  left: 12px;
  background: rgba(34, 211, 238, 0.9);
  color: #042f3c;
}

.poster-year {
  right: 12px;
  bottom: 12px;
  background: rgba(2, 6, 23, 0.78);
  color: #e2e8f0;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card h3 a:hover {
  color: var(--cyan);
}

.movie-card p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  justify-content: space-between;
  color: #cbd5e1;
  font-size: 0.84rem;
}

.card-meta span:last-child,
.rank-meta span:last-child {
  color: var(--yellow);
  font-weight: 900;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  font-size: 0.76rem;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
}

.rank-poster {
  position: relative;
  height: 148px;
  overflow: hidden;
  border-radius: 14px;
}

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

.rank-poster span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  font-weight: 900;
}

.rank-item h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.rank-item h3 a:hover {
  color: var(--cyan);
}

.rank-item p {
  margin: 0 0 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-meta {
  color: #cbd5e1;
  font-size: 0.84rem;
}

.page-hero {
  padding-top: 70px;
  padding-bottom: 48px;
}

.page-hero > div {
  padding: 44px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 0%, rgba(34, 211, 238, 0.16), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.54));
  box-shadow: var(--shadow);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 700;
}

.filter-bar input,
.filter-bar select {
  padding: 0 14px;
}

.empty-state {
  display: none;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding-top: 36px;
  padding-bottom: 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #94a3b8;
  font-size: 0.92rem;
}

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

.breadcrumb strong {
  color: #e2e8f0;
  font-weight: 700;
}

.player-card,
.movie-detail,
.related-section,
.sidebar-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: 0 18px 58px rgba(2, 6, 23, 0.24);
}

.player-card {
  overflow: hidden;
}

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

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(34, 211, 238, 0.22), transparent 12rem),
    linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.12));
  color: white;
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  font-size: 2rem;
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.36);
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  text-align: center;
}

.movie-detail,
.related-section {
  margin-top: 22px;
  padding: 28px;
}

.movie-detail h1 {
  margin-bottom: 18px;
}

.detail-meta {
  margin-bottom: 20px;
}

.lead-text {
  color: #dbeafe;
  font-size: 1.12rem;
}

.movie-detail h2,
.sidebar-panel h2 {
  margin: 28px 0 12px;
  font-size: 1.32rem;
}

.movie-detail p {
  color: #cbd5e1;
}

.detail-tags {
  margin: 18px 0 8px;
}

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

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

.detail-sidebar {
  align-self: start;
  position: sticky;
  top: 96px;
}

.sidebar-panel {
  padding: 20px;
}

.sidebar-panel h2 {
  margin-top: 0;
}

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

.sidebar-link {
  display: grid;
  grid-template-columns: 32px 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.34);
  transition: background 0.22s ease, color 0.22s ease;
}

.sidebar-link:hover {
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
}

.sidebar-link span {
  color: var(--yellow);
  font-weight: 900;
}

.sidebar-link img {
  width: 58px;
  height: 74px;
  border-radius: 10px;
  object-fit: cover;
}

.sidebar-link strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.94rem;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.76);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 24px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  max-width: 680px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}

.footer-links a:hover {
  color: white;
  background: rgba(34, 211, 238, 0.16);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 32px;
  color: #64748b;
  font-size: 0.9rem;
}

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

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

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

  .detail-sidebar {
    position: static;
  }
}

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

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

  .hero {
    height: 580px;
  }

  .hero-control {
    display: none;
  }

  .quick-search-inner,
  .section-heading,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-search-form {
    max-width: none;
  }

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

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

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

@media (max-width: 640px) {
  .header-inner,
  .quick-search,
  .content-section,
  .detail-layout,
  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    height: 560px;
    min-height: 520px;
  }

  .hero-content {
    padding: 0 18px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .quick-search {
    margin-top: -26px;
  }

  .quick-search-inner,
  .page-hero > div,
  .movie-detail,
  .related-section {
    padding: 20px;
  }

  .category-grid,
  .large-category-grid,
  .rank-grid,
  .rank-page-grid,
  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poster-link {
    height: 210px;
  }

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

  .rank-poster {
    height: 128px;
  }

  .footer-links {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .related-grid,
  .category-grid,
  .large-category-grid,
  .rank-grid,
  .rank-page-grid {
    grid-template-columns: 1fr;
  }

  .poster-link,
  .compact-card .poster-link {
    height: 260px;
  }
}
