:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --card: rgba(30, 41, 59, 0.62);
  --card-hover: rgba(30, 41, 59, 0.96);
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --orange: #ea580c;
  --green: #22c55e;
  --rose: #f43f5e;
  --blue: #38bdf8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.16), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(56, 189, 248, 0.12), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.22));
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo span:last-of-type {
  background: linear-gradient(90deg, var(--amber-light), var(--orange), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-light), var(--orange));
  box-shadow: 0 0 26px rgba(245, 158, 11, 0.42);
  font-size: 13px;
  transition: transform 0.5s ease;
}

.logo:hover .logo-mark {
  transform: rotate(180deg);
}

.logo i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.8);
}

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

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

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: var(--amber-light);
}

.top-search {
  width: min(310px, 28vw);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
}

.top-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 7px 10px;
  font-size: 13px;
}

.top-search button {
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  color: #e5e7eb;
  background: rgba(30, 41, 59, 0.9);
  padding: 8px 12px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(16px);
}

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

.mobile-panel a {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.5);
}

.mobile-cats {
  grid-template-columns: repeat(2, 1fr);
  padding-top: 0;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
  filter: saturate(1.04);
}

.hero-slide.active .hero-bg {
  transform: scale(1);
}

.hero-gradient,
.detail-hero::before,
.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(to top, #020617 5%, rgba(2, 6, 23, 0.82) 38%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.74) 44%, rgba(2, 6, 23, 0.22) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.48fr);
  align-items: center;
  gap: 48px;
  padding-top: 64px;
}

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

.tag-list,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.13);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-meta,
.feature-meta,
.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--muted);
  font-size: 14px;
}

.hero-meta {
  margin: 22px 0 30px;
}

.hero-meta span:first-child,
.feature-meta span:first-child,
.detail-meta span:first-child {
  color: var(--amber-light);
  font-weight: 800;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.primary-button {
  color: white;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.24);
}

.ghost-button {
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 44px rgba(245, 158, 11, 0.26);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 2.75;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  border-radius: 999px;
  color: #111827;
  background: var(--amber-light);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 900;
}

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

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

.hero-dot.active {
  width: 58px;
  background: var(--amber-light);
}

.section {
  padding: 68px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-line {
  flex: 1;
  height: 4px;
  min-width: 120px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.72), transparent);
}

.section-more {
  color: var(--amber-light);
  font-weight: 800;
  white-space: nowrap;
}

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

.feature-card a {
  position: relative;
  display: block;
  min-height: 280px;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--card);
}

.feature-card img,
.poster-wrap img,
.category-card img,
.rank-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.feature-card:hover img,
.movie-card:hover img,
.category-card:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.feature-overlay,
.poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.18));
}

.feature-content {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
}

.feature-content h3 {
  margin: 12px 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.feature-content p {
  margin: 0 0 16px;
  color: #d1d5db;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

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

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

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

.movie-card.is-hidden {
  display: none;
}

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.36);
  background: var(--card-hover);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(56, 189, 248, 0.12)),
    rgba(15, 23, 42, 0.9);
}

.compact .poster-wrap {
  aspect-ratio: 16 / 10;
}

.play-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(245, 158, 11, 0.86);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.score-chip,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  color: #111827;
  background: var(--amber-light);
  font-size: 12px;
  font-weight: 900;
}

.score-chip {
  right: 12px;
}

.rank-badge {
  left: 12px;
  min-width: 34px;
  text-align: center;
  background: linear-gradient(135deg, var(--amber-light), var(--orange));
  color: white;
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 8px;
  min-height: 2.5em;
  color: white;
  font-size: 16px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.card-link:hover h3 {
  color: var(--amber-light);
}

.card-line {
  min-height: 3em;
  margin: 0 0 12px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  gap: 8px 12px;
  margin-bottom: 12px;
  font-size: 12px;
}

.card-body .tag-list span {
  min-height: 23px;
  padding: 2px 8px;
  font-size: 11px;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 0 18px;
  scroll-snap-type: x proximity;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 96px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  background: var(--card-hover);
}

.rank-number {
  color: var(--amber);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.rank-row img {
  height: 72px;
  border-radius: 12px;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info strong {
  color: white;
  font-style: normal;
}

.rank-info em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(56, 189, 248, 0.1)),
    #020617;
}

.category-hero,
.detail-hero {
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
}

.page-hero .container,
.detail-hero .container {
  position: relative;
  z-index: 2;
}

.compact-hero .container,
.category-hero .container {
  padding: 92px 0 70px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.11);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-hero h1,
.detail-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-light);
}

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

.category-card a {
  position: relative;
  display: block;
  min-height: 270px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.category-card img {
  position: absolute;
  inset: 0;
}

.category-card a::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.2));
}

.category-card-content {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: 22px;
}

.category-card-content span {
  color: var(--amber-light);
  font-size: 13px;
  font-weight: 900;
}

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

.category-card-content p {
  margin: 0;
  color: #d1d5db;
  font-size: 14px;
}

.filter-panel {
  margin-bottom: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-xl);
  background: var(--panel);
  padding: 20px;
  backdrop-filter: blur(14px);
}

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

.filter-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  outline: 0;
  color: white;
  background: rgba(15, 23, 42, 0.82);
  padding: 11px 12px;
}

.filter-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.filter-result button {
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: var(--amber-light);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 900;
}

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

.detail-hero .container {
  padding: 96px 0 72px;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4.2;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.detail-meta {
  margin: 22px 0 28px;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-overlay-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 22px 60px rgba(245, 158, 11, 0.3);
  transform: translate(-50%, -50%);
  font-size: 28px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-box.is-playing .player-overlay-button {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.82);
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  border-radius: 999px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.76);
  padding: 7px 12px;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
}

.prose-card,
.info-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-xl);
  background: var(--panel);
  padding: 26px;
}

.prose-card h2,
.info-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.prose-card p {
  margin: 0 0 22px;
  color: #d1d5db;
  font-size: 16px;
}

.prose-card p:last-child {
  margin-bottom: 0;
}

.info-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0 0 22px;
}

.info-card dt {
  color: var(--muted);
}

.info-card dd {
  margin: 0;
  color: #e5e7eb;
}

.info-card a {
  color: var(--amber-light);
}

.site-footer {
  margin-top: 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 220px;
  gap: 32px;
  padding: 44px 0;
}

.footer-brand p,
.footer-links a,
.footer-count {
  color: var(--muted);
  font-size: 14px;
}

.footer-brand p {
  max-width: 560px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

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

.footer-links.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #64748b;
  font-size: 13px;
}

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

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

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

  .mobile-menu-button {
    display: inline-flex;
  }

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

  .hero {
    height: auto;
    min-height: 680px;
  }

  .hero-inner,
  .detail-layout,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 110px 0 90px;
  }

  .hero-poster {
    display: none;
  }

  .feature-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

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

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

  .detail-poster {
    width: min(280px, 70vw);
  }
}

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

  .logo {
    font-size: 18px;
  }

  .section {
    padding: 46px 0;
  }

  .section-head,
  .filter-result,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .hero p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .movie-grid.four,
  .movie-grid.five,
  .movie-grid.six,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 14px;
  }

  .card-line {
    font-size: 12px;
  }

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

  .rank-row {
    grid-template-columns: 38px 86px minmax(0, 1fr);
  }

  .rank-row img {
    height: 60px;
  }

  .player-overlay-button {
    width: 58px;
    height: 58px;
    font-size: 22px;
  }

  .prose-card,
  .info-card {
    padding: 20px;
  }
}
