:root {
  color-scheme: light;
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --rose: #fb7185;
  --amber: #f59e0b;
  --violet: #8b5cf6;
  --emerald: #10b981;
  --pink: #ec4899;
  --indigo: #6366f1;
  --red: #ef4444;
  --green: #22c55e;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--slate-900);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 44%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.is-nav-open {
  overflow: hidden;
}

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

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

.container {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
}

.nav-shell {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.32);
}

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

.nav-link,
.mobile-link {
  color: var(--slate-700);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--sky-700);
  background: var(--sky-50);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 12px;
  background: var(--slate-100);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--slate-700);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--slate-200);
}

.mobile-nav-inner {
  display: grid;
  gap: 8px;
  padding-block: 14px;
}

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #334155);
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.56) 48%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-block: 80px;
  color: white;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 30px;
  padding: 6px 13px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.28);
}

.hero-content h1,
.hero-content h2 {
  max-width: 820px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 14px 38px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  max-width: 680px;
  margin-top: 22px;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.84);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-meta span {
  padding: 9px 14px;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn-primary,
.btn-ghost,
.text-link,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary,
.hero-search button {
  color: white;
  background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
  box-shadow: 0 16px 28px rgba(14, 165, 233, 0.28);
}

.btn-primary:hover,
.hero-search button:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(14, 165, 233, 0.32);
}

.btn-ghost {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.hero-search {
  width: min(100%, 620px);
  margin-top: 28px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  color: white;
  background: transparent;
  outline: none;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.64);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: white;
}

.page-section {
  padding-block: 54px;
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 900;
  color: var(--sky-700);
}

.section-head h2,
.page-hero h1,
.detail-info h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--slate-900);
}

.section-head p,
.page-hero p {
  max-width: 620px;
  margin-top: 8px;
  color: var(--slate-500);
  line-height: 1.75;
}

.section-link,
.text-link {
  color: var(--sky-700);
  background: var(--sky-50);
}

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

.category-card,
.category-overview,
.movie-card,
.rank-item,
.copy-card,
.filter-panel,
.player-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: var(--shadow-sm);
}

.category-card {
  min-height: 220px;
  padding: 22px;
  border-radius: var(--radius-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 165, 233, 0.28);
}

.category-dot,
.rail-line {
  display: inline-flex;
  width: 12px;
  height: 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--sky-500);
}

.accent-rose .category-dot,
.accent-rose.rail-line {
  background: var(--rose);
}

.accent-amber .category-dot,
.accent-amber.rail-line {
  background: var(--amber);
}

.accent-violet .category-dot,
.accent-violet.rail-line {
  background: var(--violet);
}

.accent-sky .category-dot,
.accent-sky.rail-line {
  background: var(--sky-500);
}

.accent-pink .category-dot,
.accent-pink.rail-line {
  background: var(--pink);
}

.accent-emerald .category-dot,
.accent-emerald.rail-line {
  background: var(--emerald);
}

.accent-slate .category-dot,
.accent-slate.rail-line {
  background: var(--slate-700);
}

.accent-indigo .category-dot,
.accent-indigo.rail-line {
  background: var(--indigo);
}

.accent-red .category-dot,
.accent-red.rail-line {
  background: var(--red);
}

.accent-green .category-dot,
.accent-green.rail-line {
  background: var(--green);
}

.category-card h2,
.category-overview h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--slate-900);
}

.category-card p,
.category-overview p {
  margin-top: 8px;
  color: var(--slate-500);
  line-height: 1.7;
}

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-preview a {
  max-width: 100%;
  padding: 6px 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 13px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--slate-100);
}

.poster-link img {
  transition: transform 0.36s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.05));
  transition: opacity 0.24s ease;
}

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

.play-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 46px;
  opacity: 0;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  transform: scale(0.92);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: scale(1);
}

.corner-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 10px;
  right: auto;
  background: rgba(225, 29, 72, 0.88);
}

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

.movie-card-body h2 {
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
  color: var(--slate-900);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body h2 a:hover,
.rank-content h2 a:hover {
  color: var(--sky-700);
}

.movie-card-body p {
  min-height: 42px;
  margin-top: 8px;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  margin-top: 10px;
  color: #64748b;
  font-size: 12px;
}

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

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--sky-700);
  background: var(--sky-50);
  font-size: 12px;
  font-weight: 700;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
}

.movie-card-horizontal .poster-link {
  aspect-ratio: 3 / 4;
  height: 100%;
}

.movie-card-horizontal .movie-card-body {
  padding: 20px;
}

.movie-card-horizontal .movie-card-body h2 {
  font-size: 20px;
}

.feature-block {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
  border: 1px solid rgba(226, 232, 240, 0.86);
}

.rail-section + .rail-section {
  margin-top: 32px;
}

.rail-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 900;
}

.rail-line {
  width: 6px;
  height: 28px;
  margin: 0;
  border-radius: 999px;
}

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

.rail-card {
  width: 220px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 76px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--radius-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 165, 233, 0.28);
}

.rank-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: var(--slate-100);
}

.rank-number {
  color: var(--sky-700);
  font-size: 28px;
  font-weight: 950;
  text-align: center;
}

.rank-content h2 {
  font-size: 18px;
  font-weight: 900;
}

.rank-content p {
  margin-top: 6px;
  color: var(--slate-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-main {
  padding-top: 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--slate-500);
  font-size: 14px;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, #e0f2fe);
  border: 1px solid rgba(226, 232, 240, 0.86);
}

.slim-hero {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-hero {
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 430px) 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
  padding: 14px;
  border-radius: var(--radius-md);
}

.search-box {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-500);
}

.search-box input {
  width: 100%;
  color: var(--slate-900);
  outline: none;
  background: transparent;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-weight: 750;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: white;
  background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
}

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 26px;
  padding: 20px;
  border-radius: var(--radius-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-cover-stack {
  position: relative;
  min-height: 180px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-cover-stack img {
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.category-preview.wide a {
  max-width: 220px;
}

.detail-hero {
  padding: 42px 0 54px;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  border-bottom: 1px solid var(--slate-200);
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-cover {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  background: var(--slate-100);
  box-shadow: var(--shadow-lg);
}

.detail-info h1 {
  margin-bottom: 16px;
}

.detail-lead {
  max-width: 800px;
  color: var(--slate-700);
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.detail-meta-grid span {
  min-height: 72px;
  padding: 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.86);
}

.detail-meta-grid b {
  display: block;
  margin-bottom: 6px;
  color: var(--slate-500);
  font-size: 12px;
}

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

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

.player-section h2 {
  margin-bottom: 18px;
  font-size: 28px;
  font-weight: 900;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: #020617;
  box-shadow: var(--shadow-lg);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.20));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 7px;
  border-radius: 50%;
  color: white;
  font-size: 42px;
  background: rgba(14, 165, 233, 0.92);
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.36);
}

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

.detail-copy {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
  padding-top: 34px;
}

.copy-card {
  padding: 28px;
  border-radius: var(--radius-md);
}

.copy-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 900;
}

.copy-card p {
  color: var(--slate-700);
  line-height: 1.9;
}

.site-footer {
  margin-top: 70px;
  padding: 52px 0 28px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border-top: 1px solid var(--slate-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 36px;
}

.footer-desc {
  max-width: 540px;
  margin-top: 14px;
  color: var(--slate-500);
  line-height: 1.8;
}

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 900;
}

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

.footer-links a {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--slate-600);
  background: white;
  border: 1px solid var(--slate-200);
}

.footer-links a:hover {
  color: var(--sky-700);
  border-color: var(--sky-100);
  background: var(--sky-50);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  color: var(--slate-500);
  border-top: 1px solid var(--slate-200);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

  .rank-list.compact {
    grid-template-columns: 1fr;
  }
}

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

  .nav-toggle {
    display: flex;
  }

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

  .hero-arrow {
    display: none;
  }

  .category-grid,
  .movie-grid,
  .movie-grid.two-column,
  .footer-grid,
  .detail-copy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel,
  .category-overview,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    width: min(100%, 320px);
  }

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

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

  .hero-content {
    padding-block: 64px 82px;
  }

  .hero-search {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-search button {
    width: 100%;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-section {
    padding-block: 38px;
  }

  .page-hero {
    padding: 28px;
  }

  .category-grid,
  .movie-grid,
  .movie-grid.two-column,
  .footer-grid,
  .detail-copy {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal {
    grid-template-columns: 118px minmax(0, 1fr);
  }

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

  .rank-number {
    grid-row: 1;
    grid-column: 1;
    z-index: 2;
    align-self: start;
    justify-self: start;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px;
    color: white;
    font-size: 16px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.92);
  }

  .rank-poster {
    grid-row: 1;
    grid-column: 1;
  }

  .rank-content {
    grid-column: 2;
  }

  .rank-item .text-link {
    grid-column: 2;
    justify-self: start;
  }

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

  .player-overlay span {
    width: 74px;
    height: 74px;
    font-size: 32px;
  }
}
