:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-soft: #0b1120;
  --panel: #111827;
  --panel-strong: #172033;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --blue: #3b82f6;
  --blue-strong: #2563eb;
  --cyan: #22d3ee;
  --gold: #f59e0b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(59, 130, 246, 0.22), transparent 30rem),
    radial-gradient(circle at 88% 0%, rgba(34, 211, 238, 0.14), transparent 24rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled,
body.nav-open .site-header {
  background: rgba(3, 7, 18, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(100% - 32px, var(--container));
  height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.brand__mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35);
  font-size: 14px;
  padding-left: 2px;
}

.brand__name {
  font-size: clamp(18px, 2vw, 24px);
  background: linear-gradient(90deg, #bfdbfe, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.desktop-nav a,
.mobile-nav a {
  color: #d1d5db;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: #60a5fa;
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 270px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
}

.top-search input,
.large-search input,
.toolbar input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-width: 0;
  color: var(--text);
  border: 1px solid var(--line);
  outline: none;
  background: rgba(15, 23, 42, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
  padding: 8px 10px 8px 14px;
  border: 0;
  background: transparent;
}

.top-search input::placeholder,
.large-search input::placeholder,
.toolbar input::placeholder,
.filter-panel input::placeholder {
  color: #64748b;
}

.top-search input:focus,
.large-search input:focus,
.toolbar input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.top-search button,
.large-search button,
.filter-panel button,
.button,
.source-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  color: #fff;
  font-weight: 750;
  background: var(--blue);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.top-search button {
  padding: 8px 14px;
  white-space: nowrap;
}

.top-search button:hover,
.large-search button:hover,
.filter-panel button:hover,
.button:hover,
.source-button:hover {
  background: var(--blue-strong);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 3px auto;
  background: #e5e7eb;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  padding: 0 0 20px;
  gap: 14px;
  flex-direction: column;
}

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

.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 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade,
.detail-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #030712 0%, rgba(3, 7, 18, 0.72) 36%, rgba(3, 7, 18, 0.08) 100%),
    linear-gradient(90deg, rgba(3, 7, 18, 0.82) 0%, rgba(3, 7, 18, 0.28) 55%, rgba(3, 7, 18, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
}

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

.eyebrow,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-copy .lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: #d1d5db;
  font-size: clamp(17px, 2.1vw, 22px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  color: #bfdbfe;
  backdrop-filter: blur(10px);
}

.hero-tags span {
  padding: 8px 14px;
  font-size: 14px;
}

.tag-row span {
  padding: 5px 9px;
  font-size: 12px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.24);
}

.button--primary {
  min-height: 56px;
  padding-inline: 30px;
  font-size: 17px;
}

.button--ghost {
  min-height: 56px;
  padding-inline: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(14px);
}

.button--ghost:hover {
  background: rgba(30, 41, 59, 0.85);
}

.button--wide {
  width: 100%;
  margin-top: 22px;
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  font-size: 42px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(37, 99, 235, 0.75);
  transform: translateY(-50%) scale(1.04);
}

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

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

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

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

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

.home-search-panel {
  position: relative;
  z-index: 5;
  margin-top: -68px;
}

.search-panel__inner,
.filter-panel,
.toolbar,
.player-card,
.detail-side,
.text-panel,
.ranking-panel {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius);
}

.search-panel__inner h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.04em;
}

.large-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.large-search input,
.toolbar input,
.filter-panel input,
.filter-panel select {
  min-height: 50px;
  padding: 0 16px;
  border-radius: 16px;
}

.large-search button,
.filter-panel button {
  padding: 0 24px;
}

.content-section {
  padding: 72px 0;
}

.content-section--soft {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(3, 7, 18, 0));
}

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

.section-heading--compact {
  align-items: start;
  margin-bottom: 18px;
}

.section-heading h2,
.ranking-panel h2,
.text-panel h2,
.detail-side h2,
.category-block h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.section-link {
  color: #93c5fd;
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card[hidden] {
  display: none;
}

.movie-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.82);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card a:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(30, 41, 59, 0.92);
}

.poster-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 20% 18%, rgba(59, 130, 246, 0.45), transparent 14rem),
    linear-gradient(135deg, #111827, #020617);
}

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

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

.poster-shell.image-missing::after {
  content: attr(data-title);
  position: absolute;
  inset: 20px;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.poster-gradient {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 62%);
  transition: opacity 0.25s ease;
}

.movie-card a:hover .poster-gradient,
.movie-card a:hover .play-hover {
  opacity: 1;
}

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  color: #fff;
  font-size: 30px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.play-hover::before,
.player-cover__icon {
  display: inline-grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.86);
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.38);
  backdrop-filter: blur(10px);
}

.play-hover::before {
  content: "";
  position: absolute;
}

.year-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.year-chip {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  color: #dbeafe;
  background: rgba(0, 0, 0, 0.62);
}

.rank-badge {
  left: 12px;
  top: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.movie-card__body {
  padding: 16px;
}

.movie-card__body h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card a:hover h3 {
  color: #93c5fd;
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #cbd5e1;
  font-size: 12px;
}

.meta-row span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.13);
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 330px);
  gap: 20px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
}

.rail .movie-card {
  scroll-snap-align: start;
}

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

.ranking-panel,
.detail-side,
.text-panel,
.player-card {
  border-radius: var(--radius);
  padding: 24px;
}

.ranking-panel {
  position: sticky;
  top: 96px;
}

.ranking-panel ol {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.ranking-panel li a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
}

.ranking-panel li a:hover {
  background: rgba(59, 130, 246, 0.16);
}

.ranking-number {
  grid-row: span 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: #facc15;
  font-weight: 900;
}

.ranking-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.ranking-meta {
  color: var(--muted);
  font-size: 12px;
}

.category-strip,
.category-grid {
  display: grid;
  gap: 14px;
}

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

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

.category-strip a,
.category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-strip a:hover,
.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(30, 41, 59, 0.85);
}

.category-strip strong,
.category-card strong {
  color: #fff;
  font-size: 16px;
}

.category-strip span,
.category-card span {
  color: var(--muted);
  font-size: 13px;
}

.category-strip--muted a {
  min-height: 62px;
  background: rgba(15, 23, 42, 0.52);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 148px 0 66px;
  background:
    radial-gradient(circle at 28% 20%, rgba(59, 130, 246, 0.24), transparent 26rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(3, 7, 18, 0.92));
}

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

.page-stack {
  display: grid;
  gap: 46px;
  padding: 58px 0 76px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 18px;
}

.toolbar span {
  flex: 0 0 auto;
  color: #bfdbfe;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 190px auto;
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 20px;
}

.search-summary {
  min-height: 30px;
  color: var(--muted);
  margin-bottom: 18px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
}

.pagination a:hover {
  border-color: rgba(96, 165, 250, 0.46);
  color: #93c5fd;
}

.detail-hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  padding: 132px 0 70px;
  background: #020617;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(0.9);
  transform: scale(1.04);
  opacity: 0.68;
}

.detail-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
}

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

.detail-copy h1 {
  font-size: clamp(38px, 6.5vw, 74px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(12px);
}

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

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

.movie-player video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at 50% 45%, rgba(59, 130, 246, 0.22), rgba(0, 0, 0, 0.58));
  font-size: 18px;
  font-weight: 900;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-cover__icon {
  font-size: 30px;
  padding-left: 4px;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.source-button {
  padding: 10px 16px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(59, 130, 246, 0.14);
}

.source-button.is-active {
  background: var(--blue);
}

.detail-side dl {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
}

.detail-side dl div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-side dt {
  color: var(--muted);
  font-size: 13px;
}

.detail-side dd {
  margin: 0;
  color: #fff;
  font-weight: 800;
}

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

.text-panel p {
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 16px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.96);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 32px;
  padding: 44px 0;
}

.footer-brand {
  color: #bfdbfe;
  font-size: 20px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: var(--muted);
  font-size: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.site-footer a:hover {
  color: #93c5fd;
}

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

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

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

  body.nav-open .mobile-nav {
    display: flex;
  }

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-header__inner {
    height: 66px;
  }

  .hero-content {
    padding-top: 66px;
  }

  .hero-arrow {
    display: none;
  }

  .search-panel__inner,
  .large-search,
  .filter-panel,
  .detail-hero__inner,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .movie-grid--three,
  .movie-grid--four,
  .category-strip,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 560px) {
  .container,
  .site-header__inner,
  .mobile-nav {
    width: min(100% - 22px, var(--container));
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.045em;
  }

  .hero-tags span {
    padding: 6px 10px;
    font-size: 12px;
  }

  .content-section {
    padding: 48px 0;
  }

  .movie-grid--three,
  .movie-grid--four,
  .category-strip,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .rail {
    grid-auto-columns: minmax(240px, 86vw);
  }
}
