:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-2: #111827;
  --panel-3: #1e293b;
  --line: #334155;
  --line-soft: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --cyan-2: #06b6d4;
  --blue: #60a5fa;
  --amber: #facc15;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.14), transparent 24rem),
    radial-gradient(circle at 86% 18%, rgba(96, 165, 250, 0.16), transparent 26rem),
    var(--bg);
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #06121d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.28);
  font-size: 14px;
}

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

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

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

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #cbd5e1;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--line-soft);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-nav a {
  padding: 12px 10px;
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 650;
}

.mobile-nav a:hover {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

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

.hero {
  position: relative;
  height: min(720px, 72vh);
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide img,
.ranking-hero > img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.82) 20%, rgba(2, 6, 23, 0.35) 55%, rgba(2, 6, 23, 0.12) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.32), rgba(2, 6, 23, 0.74));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
}

.hero-copy {
  width: min(720px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.11);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero h1,
.page-hero h1,
.ranking-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero p,
.page-hero p,
.ranking-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 18px;
}

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

.hero-meta span,
.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 13px;
}

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

.btn,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  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: #06121d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.2);
}

.btn.ghost {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(148, 163, 184, 0.28);
}

.btn:hover,
.hero-search button:hover {
  transform: translateY(-2px);
}

.hero-search {
  display: flex;
  width: min(620px, 100%);
  margin-top: 26px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 0 16px;
}

.hero-search input::placeholder,
.filter-box input::placeholder {
  color: var(--muted-2);
}

.search-results {
  width: min(620px, 100%);
  margin-top: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.search-results a,
.search-results p {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
}

.search-results a:hover {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

.search-results span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 32px;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

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

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

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
  padding: 76px 0;
  background: #020617;
}

.section.dark {
  background: #0f172a;
}

.section-gradient {
  background: linear-gradient(180deg, #020617, #0f172a);
}

.category-section {
  background: linear-gradient(180deg, #0f172a, #1e293b);
}

.bottom-soft {
  background: linear-gradient(0deg, #020617, #1e293b);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.section-title.with-link {
  justify-content: space-between;
}

.section-title.with-link > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title h2,
.ranking-panel h2,
.related-panel h2,
.text-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.15;
}

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

.section-icon {
  color: var(--cyan);
  font-size: 24px;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 190px;
  gap: 24px;
  overflow-x: auto;
  padding: 6px 4px 20px;
  scroll-snap-type: x proximity;
}

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

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

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

.movie-card a {
  display: block;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel-3);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover .poster-wrap {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 22px 70px rgba(34, 211, 238, 0.18);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card.wide .poster-wrap img {
  aspect-ratio: 16 / 9;
}

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

.poster-fade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.14), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.poster-fade p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 13px;
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  padding: 5px 9px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.year-badge {
  right: 10px;
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.74);
}

.rank-badge {
  left: 10px;
  color: #07111d;
  background: linear-gradient(135deg, var(--amber), #fde68a);
}

.card-body {
  padding-top: 12px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--cyan);
}

.card-meta {
  display: flex;
  gap: 10px;
  margin: 7px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.genre-chip {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.09);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.category-card,
.category-overview-card,
.ranking-panel,
.text-panel,
.player-card,
.related-panel,
.filter-box {
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

.category-card {
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(15, 23, 42, 0.96);
}

.category-count {
  color: var(--cyan);
  font-weight: 800;
  font-size: 13px;
}

.category-card h3 {
  margin: 10px 0 10px;
  color: #fff;
  font-size: 22px;
}

.category-card p,
.category-overview-card p {
  margin: 0;
  color: var(--muted);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.category-samples a {
  padding: 5px 9px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.1);
  font-size: 12px;
}

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

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

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.ranking-list,
.latest-list,
.related-list,
.ranking-page-list {
  display: grid;
  gap: 16px;
}

.compact-card a {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.74);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.compact-card a:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(30, 41, 59, 0.9);
}

.compact-card img {
  width: 86px;
  height: 118px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
}

.compact-card p {
  display: -webkit-box;
  margin: 6px 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 13px;
}

.compact-card span {
  color: var(--muted-2);
  font-size: 12px;
}

.compact-rank {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 9px;
  color: #06121d !important;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 13px !important;
  font-weight: 900;
}

.page-main {
  min-height: 70vh;
}

.page-hero,
.ranking-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 58px;
  background: linear-gradient(135deg, #020617, #0f172a 48%, #1e293b);
}

.small-hero {
  padding-bottom: 72px;
}

.category-hero {
  background:
    radial-gradient(circle at 14% 10%, rgba(34, 211, 238, 0.2), transparent 24rem),
    linear-gradient(135deg, #020617, #0f172a 55%, #1e293b);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
}

.category-poster-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.category-poster-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.category-overview-card span {
  color: var(--cyan);
  font-weight: 800;
}

.category-overview-card h2 {
  margin: 8px 0;
  font-size: 28px;
}

.filter-box {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 190px));
  gap: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.filter-box input,
.filter-box select {
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  outline: 0;
  color: var(--text);
  background: rgba(2, 6, 23, 0.65);
  padding: 0 12px;
}

.filter-box input:focus,
.filter-box select:focus {
  border-color: rgba(34, 211, 238, 0.6);
}

.filter-count {
  min-height: 24px;
  margin: 0 0 20px;
  color: var(--muted);
}

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

.ranking-hero {
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 70px;
}

.ranking-hero > img {
  position: absolute;
  inset: 0;
}

.ranking-hero-content {
  position: relative;
  z-index: 2;
}

.ranking-page-list .compact-card a {
  grid-template-columns: 100px minmax(0, 1fr);
}

.ranking-page-list .compact-card img {
  width: 100px;
  height: 136px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 58px;
  background: #020617;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  filter: blur(3px) saturate(1.12);
  transform: scale(1.02);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.54)),
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.4));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
}

.detail-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 30px;
  align-items: end;
}

.detail-poster img {
  width: 240px;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.detail-one-line {
  max-width: 850px;
  color: #cbd5e1;
  font-size: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.tag-list a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(148, 163, 184, 0.12);
  font-size: 13px;
}

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

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

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

.player-card {
  padding: 12px;
  background: rgba(2, 6, 23, 0.96);
}

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

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

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 50% 45%, rgba(34, 211, 238, 0.28), transparent 20rem),
    rgba(0, 0, 0, 0.34);
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  color: #06121d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 60px rgba(34, 211, 238, 0.32);
  font-size: 30px;
  text-indent: 4px;
}

.video-overlay span:last-child {
  max-width: 80%;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.text-panel {
  padding: 24px;
  margin-top: 22px;
}

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

.related-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.related-panel .movie-card {
  display: grid;
}

.related-panel .movie-card .poster-wrap img {
  aspect-ratio: 16 / 9;
}

.related-panel .card-body h3 {
  min-height: auto;
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(160px, 0.6fr) minmax(160px, 0.6fr);
  gap: 34px;
  padding: 44px 0;
}

.footer-brand p {
  max-width: 560px;
  color: var(--muted);
}

.footer-logo {
  margin-bottom: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 17px;
}

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

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

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

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 15px;
    font-size: 14px;
  }

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

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

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

  .ranking-panel,
  .related-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-content {
    align-items: flex-end;
    padding: 120px 0 70px;
  }

  .hero-arrow {
    display: none;
  }

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

  .hero-search button {
    padding: 0 14px;
  }

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

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

  .category-overview-card,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

  .hero-actions {
    display: grid;
  }

  .hero-search {
    display: grid;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
  }

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

  .section {
    padding: 54px 0;
  }

  .movie-grid,
  .wide-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

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

  .category-poster-stack {
    grid-template-columns: repeat(4, 1fr);
  }

  .compact-card a,
  .ranking-page-list .compact-card a {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .compact-card img,
  .ranking-page-list .compact-card img {
    width: 78px;
    height: 108px;
  }

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

  .text-panel,
  .related-panel {
    padding: 18px;
  }

  .play-circle {
    width: 66px;
    height: 66px;
    font-size: 24px;
  }
}
