:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --orange: #f97316;
  --green: #16a34a;
  --purple: #7c3aed;
  --red: #ef4444;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f3f7fb;
  --line: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: #f9fafb;
}

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

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
  font-size: 14px;
}

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

.nav-link {
  font-size: 15px;
  font-weight: 700;
  color: #374151;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.page-tools input,
.search-panel input,
.search-panel select {
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  padding: 0 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.page-tools input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-bg,
.detail-backdrop {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 20% 35%, rgba(37, 99, 235, 0.65), transparent 30%), linear-gradient(135deg, #0f172a, #111827 45%, #0891b2);
}

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

.hero-bg-title,
.poster-title {
  position: absolute;
  inset: auto 18px 18px 18px;
  display: grid;
  place-items: center;
  min-height: 48px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
  z-index: 0;
}

.hero-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  max-width: 1180px;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.hero h1,
.detail-intro h1,
.page-hero h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero p,
.detail-intro p,
.page-hero p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: clamp(17px, 2.3vw, 22px);
  line-height: 1.65;
}

.hero-tags,
.tag-row,
.filter-chips,
.cta-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.btn.primary,
.btn.full {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

.btn.primary:hover,
.btn.full:hover {
  background: var(--blue-dark);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn.light {
  background: var(--white);
  color: var(--blue);
}

.btn.outline-light {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--white);
}

.btn.full {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: var(--white);
  font-size: 36px;
  transition: background 0.2s ease;
}

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

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

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.hero-dot.active {
  background: var(--white);
}

.section {
  padding: 56px 0;
}

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

.section-heading span {
  display: block;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.section-heading.small {
  display: block;
}

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

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

.compact-grid {
  margin-top: 24px;
}

.movie-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-card.horizontal {
  display: flex;
  gap: 14px;
  padding: 12px;
  box-shadow: none;
  border: 1px solid var(--line);
}

.movie-card.large {
  min-height: 320px;
}

.poster {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.22), transparent 30%), linear-gradient(135deg, #1d4ed8, #06b6d4 54%, #111827);
}

.poster-cinema {
  aspect-ratio: 16 / 9;
}

.poster-wide {
  flex: 0 0 176px;
  width: 176px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

.poster img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.82));
}

.play-mark {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 34px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.16);
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
}

.duration {
  position: absolute;
  z-index: 4;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--white);
  padding: 4px 9px;
  font-size: 12px;
}

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

.movie-card-body h3,
.large-info h3,
.ranking-item h3 {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body p,
.ranking-item p {
  margin: 0 0 12px;
  color: #4b5563;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 8px;
  background: #dbeafe;
  color: var(--blue);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.pill.strong {
  background: var(--blue);
  color: var(--white);
}

.tag-row span {
  background: #eef2ff;
  color: #3730a3;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.large-info {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 24px;
  left: 24px;
  color: var(--white);
}

.large-info p {
  color: #e5e7eb;
}

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

.rail {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x proximity;
}

.rail-item {
  flex: 0 0 310px;
  scroll-snap-align: start;
}

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

.category-band {
  background: var(--white);
}

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

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

.category-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px;
  color: var(--white);
  padding: 24px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  right: -60px;
  top: -50px;
  background: rgba(255, 255, 255, 0.18);
}

.category-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow);
}

.category-card span,
.category-card strong,
.category-card em {
  position: relative;
  z-index: 1;
}

.category-card span {
  font-size: 12px;
  font-weight: 900;
  opacity: 0.82;
  letter-spacing: 0.08em;
}

.category-card strong {
  margin: 8px 0;
  font-size: 25px;
}

.category-card em {
  font-style: normal;
  opacity: 0.9;
  line-height: 1.5;
}

.tone-blue {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.tone-cyan {
  background: linear-gradient(135deg, #0891b2, #22d3ee);
}

.tone-red {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.tone-green {
  background: linear-gradient(135deg, #16a34a, #84cc16);
}

.tone-orange {
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.tone-purple {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.two-col-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.horizontal-list,
.side-list {
  display: grid;
  gap: 14px;
}

.rank-panel {
  position: sticky;
  top: 96px;
  border-radius: 20px;
  background: var(--white);
  padding: 24px;
  box-shadow: var(--shadow);
}

.rank-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 12px;
  padding: 10px;
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: #f3f4f6;
}

.rank-row b,
.ranking-item b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
}

.rank-row:nth-child(1) b,
.ranking-item:nth-child(1) b {
  background: #eab308;
  color: var(--white);
}

.rank-row:nth-child(2) b,
.ranking-item:nth-child(2) b {
  background: #9ca3af;
  color: var(--white);
}

.rank-row:nth-child(3) b,
.ranking-item:nth-child(3) b {
  background: #ea580c;
  color: var(--white);
}

.rank-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.cta-section {
  padding: 70px 0;
  color: var(--white);
  background: linear-gradient(120deg, var(--blue), var(--cyan));
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
}

.cta-inner p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.7;
}

.cta-actions {
  justify-content: center;
}

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.55), transparent 32%), linear-gradient(135deg, #0f172a, #1d4ed8 52%, #0891b2);
}

.page-hero.slim {
  padding: 72px 0;
}

.page-hero p {
  color: #dbeafe;
}

.page-tools {
  margin-top: 24px;
}

.page-tools input {
  width: min(520px, 100%);
}

.filter-chips {
  margin-top: 16px;
}

.filter-chips button {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  font-weight: 800;
}

.filter-chips button.active,
.filter-chips button:hover {
  background: var(--white);
  color: var(--blue);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 190px));
  gap: 12px;
  margin-top: 28px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  border-radius: 14px;
}

.search-state {
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 800;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 42px 132px minmax(0, 1fr) 80px;
  gap: 18px;
  align-items: center;
  border-radius: 18px;
  background: var(--white);
  padding: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.tiny-poster {
  width: 132px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

.ranking-item span,
.ranking-item em {
  color: var(--muted);
  font-style: normal;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: #0f172a;
}

.detail-backdrop {
  filter: blur(2px) saturate(1.08);
  transform: scale(1.02);
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.18));
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  min-height: 560px;
  padding: 42px 0;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.detail-intro p {
  color: #e5e7eb;
}

.player-panel {
  border-radius: 24px;
  padding: 16px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.movie-player {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22), rgba(0, 0, 0, 0.56));
  color: var(--white);
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.38);
}

.play-overlay strong {
  font-size: 20px;
}

.player-shell.is-playing .play-overlay {
  display: none;
}

.player-message {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.74);
  color: var(--white);
  padding: 8px 12px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.detail-main,
.detail-side,
.text-page {
  border-radius: 22px;
  background: var(--white);
  padding: 28px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.info-grid div {
  border-radius: 16px;
  background: #f3f7fb;
  padding: 16px;
}

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

.info-grid strong {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.info-grid span {
  font-weight: 800;
}

.content-block {
  margin-top: 28px;
}

.content-block h2,
.detail-side h2,
.text-page h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-block p,
.text-page p {
  color: #374151;
  line-height: 1.9;
  margin: 0;
}

.large-tags span {
  background: #e0f2fe;
  color: #0369a1;
  margin-bottom: 4px;
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.prev-next a {
  border-radius: 14px;
  background: #f3f4f6;
  padding: 14px;
  color: #374151;
  font-weight: 800;
}

.detail-side {
  position: sticky;
  top: 96px;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
}

.site-footer h3 {
  color: var(--white);
  margin: 0 0 14px;
}

.site-footer p {
  line-height: 1.7;
}

.site-footer a {
  display: block;
  margin: 9px 0;
  color: #d1d5db;
}

.site-footer a:hover {
  color: #60a5fa;
}

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid #1f2937;
  padding: 18px 0;
  text-align: center;
  color: #9ca3af;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .movie-grid,
  .library-grid,
  .category-grid,
  .all-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .rank-panel,
  .detail-side {
    position: static;
  }

  .detail-hero-content {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    min-height: 64px;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    padding: 14px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 12px;
    border-radius: 12px;
  }

  .nav-link:hover,
  .nav-link.active {
    background: #eff6ff;
  }

  .header-search {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    height: 560px;
  }

  .hero-cover {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.45));
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 88px;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .ranking-item {
    grid-template-columns: 40px 100px minmax(0, 1fr);
  }

  .ranking-item em {
    display: none;
  }

  .detail-hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px;
  }

  .detail-poster {
    width: min(260px, 72vw);
  }

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

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 22px;
  }

  .movie-grid,
  .library-grid,
  .category-grid,
  .all-categories,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal {
    flex-direction: column;
  }

  .poster-wide {
    width: 100%;
    flex-basis: auto;
  }

  .hero h1,
  .detail-intro h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .section {
    padding: 40px 0;
  }

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

  .tiny-poster {
    display: none;
  }

  .prev-next {
    grid-template-columns: 1fr;
  }

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