:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-2: #1e293b;
  --line: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #2563eb;
  --blue-light: #60a5fa;
  --cyan: #67e8f9;
  --green: #22c55e;
  --purple: #9333ea;
  --red: #f43f5e;
  --yellow: #facc15;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 35rem),
    radial-gradient(circle at top right, rgba(147, 51, 234, 0.12), transparent 32rem),
    var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(51, 65, 85, 0.8);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

.brand__text {
  display: grid;
  gap: 1px;
}

.brand__text strong {
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #60a5fa, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.nav-link {
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--blue-light);
  transform: translateY(-1px);
}

.header-search,
.mobile-search {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.95);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.85);
}

.header-search input,
.mobile-search input {
  width: 230px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 11px 14px;
}

.header-search button,
.mobile-search button {
  border: 0;
  color: white;
  background: var(--blue);
  padding: 0 16px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
}

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

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(51, 65, 85, 0.75);
  padding: 16px 24px 22px;
  background: rgba(15, 23, 42, 0.98);
}

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

.mobile-links,
.mobile-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mobile-links a,
.mobile-categories a {
  border-radius: 12px;
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.75);
  padding: 10px 12px;
}

.hero-section {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-slide::before,
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-slide::before {
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.76) 44%, rgba(2, 6, 23, 0.05) 100%);
}

.hero-slide::after {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.64) 44%, rgba(2, 6, 23, 0.05) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 72vh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 24px 80px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: white;
  background: rgba(37, 99, 235, 0.9);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  color: white;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 26px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.hero-actions,
.hero-tabs,
.filter-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(15, 23, 42, 0.65);
  padding: 6px 12px;
  font-size: 14px;
}

.hero-actions {
  margin-top: 30px;
}

.btn-primary,
.btn-secondary,
.hero-control,
.filter-pill {
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), #1d4ed8);
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  color: #e0f2fe;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: rgba(15, 23, 42, 0.72);
}

.btn-primary:hover,
.btn-secondary:hover,
.filter-pill:hover {
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: white;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.22);
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgba(37, 99, 235, 0.85);
}

.hero-control--prev {
  left: 24px;
}

.hero-control--next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--blue-light);
}

.hero-search-card {
  max-width: 1280px;
  margin: -52px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 6;
}

.hero-search-card__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(18px);
}

.hero-search-card input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(51, 65, 85, 0.95);
  border-radius: 16px;
  outline: 0;
  color: white;
  background: rgba(2, 6, 23, 0.72);
  padding: 0 18px;
  font-size: 17px;
}

.hero-tabs {
  grid-column: 1 / -1;
}

.hero-tabs a,
.category-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #cbd5e1;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(30, 41, 59, 0.62);
  padding: 8px 13px;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-tabs a:hover,
.category-chip:hover {
  color: white;
  background: rgba(37, 99, 235, 0.75);
  transform: translateY(-1px);
}

.section {
  padding: 76px 24px;
}

.section--soft {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(2, 6, 23, 0.6));
}

.section--panel {
  background: rgba(15, 23, 42, 0.65);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: white;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-heading p {
  max-width: 690px;
  margin: 8px 0 0;
  color: var(--muted);
}

.more-link {
  min-width: max-content;
  color: var(--blue-light);
  font-weight: 800;
}

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

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

.movie-card {
  display: block;
  min-width: 0;
}

.movie-card article {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.28);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover article {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 28px 70px rgba(37, 99, 235, 0.16);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 20% 10%, rgba(96, 165, 250, 0.25), transparent 45%),
    linear-gradient(135deg, #0f172a, #020617);
}

.movie-card--small .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 58%);
}

.poster-badge,
.poster-meta {
  position: absolute;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  border-radius: 999px;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  top: 12px;
  background: rgba(37, 99, 235, 0.9);
}

.poster-meta {
  right: 12px;
  bottom: 12px;
  left: auto;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(2, 6, 23, 0.76);
}

.movie-card__body {
  padding: 18px;
}

.movie-card h2 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: white;
  font-size: 18px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.movie-card:hover h2 {
  color: var(--blue-light);
}

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

.tag-row span {
  border-radius: 999px;
  color: #93c5fd;
  background: rgba(30, 41, 59, 0.9);
  padding: 5px 9px;
  font-size: 12px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  color: #64748b;
  font-size: 13px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.95));
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(96, 165, 250, 0.75);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -65px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28), transparent 70%);
}

.category-card strong {
  position: relative;
  display: block;
  color: white;
  font-size: 23px;
  margin-bottom: 10px;
}

.category-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.category-card span {
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: var(--blue-light);
  font-weight: 800;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
}

.rank-board,
.panel {
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: var(--shadow);
}

.rank-board {
  padding: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: 48px 88px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  padding: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: rgba(30, 41, 59, 0.75);
  transform: translateX(4px);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  font-weight: 900;
}

.rank-item img {
  width: 88px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

.rank-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: white;
}

.rank-info small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero {
  padding: 86px 24px 48px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.96)),
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.28), transparent 30rem);
}

.page-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0;
  color: white;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.92);
  padding: 18px;
}

.filter-panel input {
  min-height: 52px;
  width: 100%;
  border: 1px solid rgba(51, 65, 85, 0.95);
  border-radius: 16px;
  outline: 0;
  color: white;
  background: rgba(2, 6, 23, 0.72);
  padding: 0 16px;
}

.filter-pill {
  color: #cbd5e1;
  border: 1px solid rgba(51, 65, 85, 0.95);
  background: rgba(30, 41, 59, 0.75);
  padding: 8px 13px;
}

.filter-pill.is-active {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: #020617;
}

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

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.8) 55%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.75) 48%, rgba(2, 6, 23, 0.18) 100%);
}

.detail-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 92px 24px 64px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 24px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #93c5fd;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: white;
}

.detail-copy h1 {
  margin: 0 0 18px;
  color: white;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-copy .lead {
  max-width: 840px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: 20px;
}

.detail-meta,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.detail-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 18px;
  color: white;
  background: rgba(37, 99, 235, 0.9);
  font-weight: 800;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.95);
  border-radius: 24px;
  background: black;
  box-shadow: var(--shadow);
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.36));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
  display: grid;
  place-items: center;
  gap: 10px;
  width: 138px;
  height: 138px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.88);
  box-shadow: 0 28px 65px rgba(37, 99, 235, 0.42);
}

.play-icon {
  font-size: 42px;
  line-height: 1;
  transform: translateX(3px);
}

.article-panel {
  margin-top: 28px;
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.92);
  padding: 28px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 24px;
}

.article-panel p {
  margin: 0 0 16px;
  color: #cbd5e1;
}

.side-panel {
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.92);
  padding: 22px;
}

.side-panel + .side-panel {
  margin-top: 22px;
}

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

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
  padding-bottom: 12px;
}

.info-list span:first-child {
  color: var(--muted);
}

.info-list span:last-child {
  color: white;
  text-align: right;
}

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

.related-list .rank-item {
  grid-template-columns: 76px minmax(0, 1fr);
  padding: 8px;
}

.related-list .rank-item img {
  width: 76px;
  height: 52px;
}

.related-list .rank-num {
  display: none;
}

.empty-state {
  display: none;
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.92);
  padding: 36px;
  text-align: center;
}

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

.site-footer {
  border-top: 1px solid rgba(51, 65, 85, 0.82);
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
  padding: 54px 24px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

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

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

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: var(--blue-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1280px;
  margin: 36px auto 0;
  border-top: 1px solid rgba(51, 65, 85, 0.82);
  color: var(--muted);
  padding-top: 20px;
  font-size: 14px;
}

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

  .menu-toggle {
    display: block;
  }

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

  .rank-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header__inner {
    height: 64px;
    padding: 0 16px;
  }

  .brand__text strong {
    font-size: 18px;
  }

  .hero-section,
  .hero-content {
    min-height: 74vh;
  }

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

  .hero-control {
    display: none;
  }

  .hero-search-card {
    margin-top: -34px;
    padding: 0 16px;
  }

  .hero-search-card__inner {
    grid-template-columns: 1fr;
  }

  .section,
  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-heading {
    display: block;
  }

  .more-link {
    display: inline-block;
    margin-top: 12px;
  }

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

  .detail-hero__inner {
    grid-template-columns: 1fr;
    padding: 78px 16px 46px;
  }

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

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

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .movie-grid--wide,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 72px minmax(0, 1fr);
  }

  .rank-item img {
    width: 72px;
    height: 50px;
  }

  .player-button {
    width: 112px;
    height: 112px;
  }
}
