:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.86);
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --gold: #facc15;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.14), transparent 34rem),
    radial-gradient(circle at 92% 12%, rgba(59, 130, 246, 0.12), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

body.menu-open {
  overflow: hidden;
}

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;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.site-logo {
  font-size: 24px;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #00111a;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.28);
}

.logo-mark.small {
  width: 28px;
  height: 28px;
  border-radius: 10px;
}

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

.nav-link {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

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

.header-search input,
.large-search input,
.filter-panel input,
.filter-panel select {
  color: var(--text);
  background: rgba(2, 6, 23, 0.52);
  border: 1px solid var(--line);
  outline: none;
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 190px;
  padding: 10px 14px;
}

.header-search input:focus,
.large-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(34, 211, 238, 0.75);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  background: rgba(15, 23, 42, 0.94);
}

.header-search button,
.large-search button,
.primary-btn,
.ghost-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.large-search button,
.primary-btn {
  color: white;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.26);
}

.header-search button {
  padding: 10px 16px;
}

.header-search button:hover,
.large-search button:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.84);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
  margin-top: 8px;
}

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

.hero {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
}

.hero-stage,
.hero-slide {
  min-height: 76vh;
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.78) 46%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, #020617 0%, transparent 38%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1180px;
  padding: 80px 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 16px 0;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.05em;
}

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

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.22);
  border: 1px solid rgba(34, 211, 238, 0.24);
  font-size: 12px;
  font-weight: 700;
}

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

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

.ghost-btn {
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(226, 232, 240, 0.22);
  backdrop-filter: blur(10px);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.hero-controls button {
  border: 0;
  color: white;
  cursor: pointer;
  background: transparent;
}

.hero-controls > button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.hero-controls > button:hover {
  background: rgba(148, 163, 184, 0.16);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 30px;
  background: var(--cyan);
}

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

.section-intro {
  padding-top: 44px;
}

.intro-card,
.article-panel,
.rank-panel,
.filter-panel,
.player-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62));
  box-shadow: var(--shadow);
}

.intro-card {
  padding: clamp(28px, 5vw, 52px);
  overflow: hidden;
  position: relative;
}

.intro-card::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.14);
  filter: blur(6px);
}

.intro-card h2,
.section-head h2,
.article-panel h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.intro-card h2 {
  margin-top: 10px;
  font-size: clamp(30px, 5vw, 54px);
}

.intro-card p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.large-search {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 720px;
  gap: 10px;
  margin-top: 28px;
}

.large-search input {
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
  border-radius: 18px;
}

.large-search button {
  padding: 0 24px;
  border-radius: 18px;
}

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

.section-head.compact {
  margin-bottom: 20px;
}

.section-head h2 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 40px);
}

.section-head a {
  color: var(--cyan);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.42);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

.play-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: white;
  background: rgba(34, 211, 238, 0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.card-content {
  padding: 16px;
}

.card-content h2 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
}

.card-content h2 a:hover {
  color: var(--cyan);
}

.card-content p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  min-height: 44px;
}

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

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.card-tags span {
  min-height: 24px;
  padding: 3px 8px;
}

.category-band {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.28), rgba(15, 23, 42, 0.78));
  border-block: 1px solid var(--line);
}

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  min-height: 172px;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.8), rgba(37, 99, 235, 0.72));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-6px) scale(1.01);
  filter: saturate(1.12);
}

.category-tile img,
.category-card img {
  position: absolute;
  right: -26px;
  bottom: -42px;
  width: 150px;
  height: 200px;
  object-fit: cover;
  opacity: 0.2;
  transform: rotate(8deg);
}

.category-tile span,
.category-card span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong,
.category-card h2 {
  position: relative;
  z-index: 1;
  display: block;
  margin: 14px 0 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile em,
.category-card p {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 78%;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

.tile-1 {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.84), rgba(37, 99, 235, 0.72));
}

.tile-2 {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.8), rgba(249, 115, 22, 0.72));
}

.tile-3 {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.8), rgba(8, 145, 178, 0.72));
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 30px;
}

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

.compact-item {
  display: grid;
  grid-template-columns: auto 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.compact-item img {
  width: 82px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-item strong {
  display: block;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-item em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin-top: 4px;
}

.list-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  font-weight: 900;
}

.list-rank.dot {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
}

.rank-panel {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 94px;
}

.seo-block {
  padding-top: 0;
}

.seo-block h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 16px;
}

.seo-block p {
  max-width: 900px;
  color: var(--muted);
  line-height: 1.9;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.page-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 22%, rgba(34, 211, 238, 0.22), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
}

.page-hero > div {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.page-hero h1 {
  margin-top: 12px;
  font-size: clamp(38px, 6vw, 66px);
}

.page-hero p {
  max-width: 720px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.category-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.62));
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 18px;
  margin-bottom: 28px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
}

.empty-state {
  display: none;
  padding: 36px;
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

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

.detail-hero {
  min-height: 650px;
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.08);
  transform: scale(1.04);
  opacity: 0.36;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.94)),
    linear-gradient(0deg, #020617, transparent 36%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 34px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 54px);
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

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

.detail-copy h1 {
  margin-top: 12px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.03;
}

.lead-text {
  max-width: 760px;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.8;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid var(--line);
}

.player-panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  padding: 0;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.58));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.34);
  font-size: 38px;
  padding-left: 6px;
}

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

.article-panel {
  padding: clamp(24px, 4vw, 42px);
}

.article-panel h2 {
  margin: 22px 0 14px;
  font-size: 26px;
}

.article-panel h2:first-child {
  margin-top: 0;
}

.article-panel p {
  color: #cbd5e1;
  line-height: 1.95;
  font-size: 16px;
}

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

.info-grid span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.28);
  color: #dbeafe;
}

.info-grid b {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
  font-size: 12px;
}

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

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.74);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 28px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 34px;
}

.site-footer p,
.site-footer a,
.site-footer span {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer a,
.site-footer span {
  display: block;
  margin-top: 8px;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

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

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

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

  .rank-panel {
    position: static;
  }

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

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

@media (max-width: 680px) {
  .header-inner {
    min-height: 64px;
  }

  .site-logo {
    font-size: 20px;
  }

  .hero,
  .hero-stage,
  .hero-slide,
  .hero-copy {
    min-height: 650px;
  }

  .hero-copy {
    padding: 88px 0 110px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-actions,
  .large-search {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn,
  .large-search button {
    width: 100%;
  }

  .section-shell {
    padding: 46px 0;
  }

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

  .movie-grid,
  .all-grid,
  .ranking-grid,
  .related-grid,
  .category-grid,
  .category-card-grid,
  .filter-panel,
  .footer-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .category-tile,
  .category-card {
    min-height: 150px;
  }

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

  .compact-item img {
    width: 72px;
    height: 54px;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-hero-content {
    padding-bottom: 48px;
  }

  .page-hero > div {
    padding: 58px 0;
  }

  .player-overlay span {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }
}
