:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-solid: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --cyan-soft: rgba(34, 211, 238, 0.16);
  --shadow: 0 22px 70px rgba(2, 6, 23, 0.5);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(8, 145, 178, 0.2), transparent 34rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 36rem),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.45), transparent);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(2, 6, 23, 0.94);
  box-shadow: 0 14px 42px rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 76px;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: #ecfeff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.28);
}

.brand-text {
  font-size: 1.22rem;
}

.desktop-nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  color: var(--muted-strong);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ecfeff;
  background: var(--cyan-soft);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(310px, 28vw);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
}

.header-search input,
.hero-search-form input,
.toolbar input,
.toolbar select {
  min-width: 0;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search input {
  flex: 1;
  padding: 8px 10px;
}

.header-search button,
.hero-search-form button {
  border: 0;
  border-radius: 999px;
  color: #06111f;
  background: var(--cyan);
  font-weight: 700;
  padding: 8px 14px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
}

.menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.96);
}

.mobile-panel-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 22px;
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.7);
}

.mobile-link.is-active {
  color: var(--text);
  background: var(--cyan-soft);
}

.mobile-link-muted {
  font-size: 0.94rem;
  color: var(--muted);
}

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

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.18)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.12) 38%, rgba(2, 6, 23, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  padding: 150px 0 150px;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 16px;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 700px;
  margin: 0 0 26px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
}

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

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  color: #cffafe;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.16);
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 46px;
  padding: 0 24px;
  color: #06111f;
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.26);
}

.ghost-button {
  min-height: 46px;
  padding: 0 22px;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.64);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.52);
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: max(18px, calc((100vw - 1180px) / 2 - 66px));
}

.hero-next {
  right: max(18px, calc((100vw - 1180px) / 2 - 66px));
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(203, 213, 225, 0.5);
}

.hero-dot.is-active {
  width: 34px;
  border-radius: 999px;
  background: var(--cyan);
}

.hero-panel-wrap {
  position: relative;
  z-index: 5;
}

.hero-search-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  display: grid;
  grid-template-columns: 1.1fr 1.8fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search-panel strong,
.hero-search-panel span {
  display: block;
}

.hero-search-panel span {
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-search-form {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.48);
}

.hero-search-form input {
  flex: 1;
  padding: 10px 14px;
}

.hot-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  color: #cffafe;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.24);
}

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

.page-hero {
  position: relative;
  padding: 90px 0 68px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(34, 211, 238, 0.2), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 12px 0;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.08;
}

.page-hero p {
  max-width: 800px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.08rem;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.hero-stat-card {
  min-width: 170px;
  padding: 28px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow);
}

.hero-stat-card strong {
  display: block;
  color: var(--cyan);
  font-size: 3rem;
  line-height: 1;
}

.hero-stat-card span {
  color: var(--muted);
}

.section {
  padding: 70px 0;
}

.section-lift {
  margin-top: -10px;
}

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

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.section-head p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section-link {
  min-height: 40px;
  padding: 0 16px;
  color: var(--cyan);
  background: rgba(8, 145, 178, 0.12);
}

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

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

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

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.9));
  box-shadow: 0 10px 34px rgba(2, 6, 23, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  border-color: rgba(34, 211, 238, 0.42);
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 48px rgba(8, 145, 178, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.85);
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 58%);
}

.play-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: white;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.score-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  padding: 4px 10px;
  color: #06111f;
  border-radius: 999px;
  background: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.card-body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.04rem;
}

.card-meta,
.card-desc,
.compact-card em,
.ranking-title em {
  color: var(--muted);
}

.card-desc {
  display: -webkit-box;
  min-height: 3.1em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  min-height: 26px;
  padding: 3px 9px;
  font-size: 0.82rem;
}

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

.category-card,
.category-overview-card a {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.18), rgba(15, 23, 42, 0.84)),
    var(--panel-solid);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover,
.category-overview-card a:hover {
  border-color: rgba(34, 211, 238, 0.42);
  transform: translateY(-4px);
}

.category-card span,
.category-overview-card h2 {
  font-weight: 800;
  font-size: 1.1rem;
}

.category-card strong,
.category-count {
  color: var(--cyan);
}

.category-card em,
.category-overview-card p,
.category-samples {
  color: var(--muted);
  font-style: normal;
}

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

.category-overview-card a {
  min-height: 230px;
}

.category-overview-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.8rem;
}

.category-samples {
  display: grid;
  gap: 4px;
}

.rank-band {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.96)),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 24rem);
  border-block: 1px solid var(--line);
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: auto 74px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.68);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.compact-card:hover {
  border-color: rgba(34, 211, 238, 0.42);
  transform: translateX(3px);
}

.compact-card img {
  width: 74px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
}

.compact-card span:last-child {
  display: grid;
  min-width: 0;
}

.compact-card strong,
.compact-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-number,
.ranking-index {
  color: var(--cyan);
  font-weight: 900;
}

.rank-promo {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  min-height: 360px;
  padding: 28px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.28), transparent 16rem),
    linear-gradient(180deg, rgba(8, 47, 73, 0.92), rgba(15, 23, 42, 0.88));
  box-shadow: var(--shadow);
}

.rank-promo span {
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.18em;
}

.rank-promo h2 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1;
}

.rank-promo p {
  color: var(--muted-strong);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 190px 160px;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
}

.toolbar input,
.toolbar select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.5);
}

.toolbar select option {
  color: #0f172a;
}

.filter-summary,
.filter-empty {
  margin-bottom: 20px;
  color: var(--muted);
}

.filter-empty {
  display: none;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  background: rgba(15, 23, 42, 0.72);
}

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

.ranking-table {
  display: grid;
  gap: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 62px 92px 1fr auto 72px;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.7);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row:hover {
  border-color: rgba(34, 211, 238, 0.42);
  transform: translateX(3px);
}

.ranking-row img {
  width: 92px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
}

.ranking-title {
  display: grid;
  min-width: 0;
}

.ranking-title strong,
.ranking-title em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-meta {
  color: var(--muted-strong);
}

.ranking-score {
  display: grid;
  place-items: center;
  width: 52px;
  height: 34px;
  color: #06111f;
  border-radius: 999px;
  background: var(--cyan);
  font-weight: 900;
}

.detail-main {
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.14), transparent 28rem),
    var(--bg);
}

.detail-hero {
  padding: 40px 0 30px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--muted);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-start {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.85);
  box-shadow: 0 18px 42px rgba(8, 145, 178, 0.35);
  font-size: 2.2rem;
  transform: translateX(3px);
}

.detail-info-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

.detail-info-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
}

.detail-info-card h1 {
  margin: 8px 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
}

.detail-info-card p,
.content-card p {
  color: var(--muted-strong);
}

.detail-meta {
  margin: 16px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.content-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 12px 42px rgba(2, 6, 23, 0.28);
}

.content-card h2 {
  margin: 10px 0 12px;
  font-size: 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 46px 0;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer-grid p,
.footer-links a {
  color: var(--muted);
}

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

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

@media (max-width: 1120px) {
  .all-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .menu-button {
    display: flex;
    margin-left: auto;
  }

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

  .hero {
    min-height: 820px;
  }

  .hero-content {
    min-height: 610px;
    padding-top: 120px;
    padding-bottom: 190px;
  }

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

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    bottom: 170px;
  }

  .movie-grid,
  .featured-grid,
  .all-grid,
  .category-grid,
  .category-overview-grid,
  .rank-list,
  .rank-layout,
  .detail-layout,
  .content-grid,
  .footer-grid,
  .page-hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rank-promo,
  .detail-layout .player-shell {
    grid-column: 1 / -1;
  }

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

  .ranking-row {
    grid-template-columns: 46px 78px 1fr;
  }

  .ranking-meta,
  .ranking-score {
    display: none;
  }
}

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

  .nav-shell {
    height: 66px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    min-height: 560px;
    padding-top: 100px;
    padding-bottom: 210px;
  }

  .hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-tags span,
  .detail-meta span,
  .tag-row span {
    font-size: 0.78rem;
  }

  .hero-search-panel {
    bottom: 18px;
    padding: 14px;
  }

  .hero-search-form {
    display: grid;
    border-radius: 18px;
  }

  .hero-search-form button {
    min-height: 42px;
  }

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

  .section {
    padding: 46px 0;
  }

  .section-head {
    display: grid;
  }

  .movie-grid,
  .featured-grid,
  .all-grid,
  .category-grid,
  .category-overview-grid,
  .rank-list,
  .rank-layout,
  .detail-layout,
  .content-grid,
  .footer-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .card-body {
    padding: 14px;
  }

  .compact-card {
    grid-template-columns: auto 70px 1fr;
  }

  .detail-hero {
    padding-top: 28px;
  }

  .player-start {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .content-card {
    padding: 22px;
  }
}
