:root {
  --sky: #0284c7;
  --sky-dark: #0369a1;
  --sky-soft: #e0f2fe;
  --emerald: #059669;
  --rose: #e11d48;
  --amber: #f59e0b;
  --slate: #0f172a;
  --slate-soft: #334155;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 45%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sky);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--emerald));
  border-radius: 13px;
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.28);
  font-size: 18px;
}

.nav-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.nav-panel > a,
.nav-categories > a {
  color: #334155;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-panel a:hover,
.footer-links a:hover {
  color: var(--sky);
}

.nav-categories {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 8px;
}

.nav-categories a {
  font-size: 14px;
  color: #64748b;
}

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

.nav-search input,
.page-search input,
.filter-actions input,
.filter-actions select {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 230px;
  padding: 10px 14px;
}

.nav-search input:focus,
.page-search input:focus,
.filter-actions input:focus,
.filter-actions select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.nav-search button,
.page-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  background: var(--sky);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--sky);
  background: transparent;
  font-size: 26px;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(125deg, #0369a1, #2563eb 45%, #312e81);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.24), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(16, 185, 129, 0.35), transparent 26%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.22));
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 140px;
  content: "";
  background: linear-gradient(0deg, #f8fafc, rgba(248, 250, 252, 0));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 110px;
}

.hero-slider {
  position: relative;
  min-height: 470px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  gap: 42px;
  align-items: center;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 16px 0 20px;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 26px;
  color: #dbeafe;
  font-size: 20px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 8px 14px;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 750;
  backdrop-filter: blur(12px);
}

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

.hero-tags span,
.tag-row span,
.tag-cloud span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--sky-dark);
  background: #e0f2fe;
  font-size: 13px;
  font-weight: 700;
}

.hero .hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--sky-dark);
  background: #fff;
  box-shadow: 0 14px 34px rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.78);
}

.btn-light {
  color: #eff6ff;
  background: rgba(15, 23, 42, 0.22);
}

.hero-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 34px;
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.38);
  transform: rotate(1.4deg);
}

.hero-cover::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.36), transparent 50%);
}

.hero-cover img {
  width: 100%;
  aspect-ratio: 16 / 22;
  object-fit: cover;
  background: rgba(224, 242, 254, 0.25);
  transition: transform 0.45s ease;
}

.hero-cover:hover img {
  transform: scale(1.05);
}

.hero-search-card {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(18px);
}

.hero-search-card form {
  flex: 1;
}

.hero-search-card label {
  display: block;
  margin-bottom: 8px;
  color: #dbeafe;
  font-weight: 700;
}

.hero-search-card form > div {
  display: flex;
  gap: 10px;
}

.hero-search-card input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  outline: 0;
}

.hero-search-card button {
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: #fff;
  background: var(--emerald);
  font-weight: 800;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dots button.is-active {
  width: 34px;
  background: #fff;
}

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

.white-section {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.76);
}

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

.section-heading > div {
  max-width: 760px;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--emerald));
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

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

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sky-dark);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: #dbeafe;
}

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

.movie-card:hover img,
.rank-item:hover img {
  transform: scale(1.06);
}

.poster-year {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--sky-dark);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.22);
}

.movie-card-body {
  padding: 16px;
}

.movie-card h3,
.rank-info h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.35;
}

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

.movie-meta,
.rank-info div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.movie-meta span:first-child {
  color: var(--sky-dark);
  font-weight: 800;
}

.tag-row {
  margin-top: 12px;
}

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

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

.category-card {
  border: 1px solid rgba(125, 211, 252, 0.42);
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(145deg, #fff, #eff6ff);
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.category-card span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  background: var(--sky);
  font-size: 13px;
  font-weight: 800;
}

.category-card h2 {
  margin: 16px 0 8px;
  color: #0f172a;
  font-size: 24px;
}

.category-card p {
  min-height: 72px;
  margin: 0;
  color: var(--muted);
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  overflow: hidden;
  color: #0369a1;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.rank-item {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.rank-item a {
  display: grid;
  grid-template-columns: 58px 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.rank-number {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  font-weight: 900;
}

.rank-item img {
  width: 120px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  object-fit: cover;
  background: #e0f2fe;
  transition: transform 0.35s ease;
}

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

.page-hero {
  padding: 86px 0;
}

.page-hero-sky {
  background: linear-gradient(125deg, #0284c7, #2563eb 55%, #312e81);
}

.page-hero-emerald {
  background: linear-gradient(125deg, #047857, #059669 55%, #0f766e);
}

.page-hero-rose {
  background: linear-gradient(125deg, #be123c, #e11d48 55%, #f59e0b);
}

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

.page-hero span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 800;
}

.page-hero h1 {
  max-width: 900px;
  margin: 18px 0 12px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #e0f2fe;
  font-size: 19px;
}

.page-search {
  display: flex;
  gap: 10px;
  max-width: 680px;
  margin-top: 26px;
}

.page-search input {
  flex: 1;
  padding: 14px 18px;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.filter-panel strong {
  display: block;
  color: #0f172a;
  font-size: 20px;
}

.filter-panel p {
  margin: 3px 0 0;
  color: var(--muted);
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.filter-actions input,
.filter-actions select {
  min-width: 190px;
  padding: 12px 14px;
}

.empty-state {
  border: 1px dashed #bae6fd;
  border-radius: 20px;
  padding: 34px;
  color: #0369a1;
  background: #f0f9ff;
  text-align: center;
  font-weight: 800;
}

.detail-hero {
  min-height: 560px;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: blur(3px);
}

.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.95));
}

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

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

.breadcrumb,
.breadcrumb-sep {
  display: inline-flex;
  margin-bottom: 28px;
  color: #bae6fd;
  font-weight: 750;
}

.breadcrumb-sep {
  margin-right: 8px;
  margin-left: 8px;
  color: #94a3b8;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 16 / 22;
  object-fit: cover;
  background: #dbeafe;
}

.detail-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.detail-copy p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: 20px;
}

.detail-section {
  padding-top: 48px;
}

.player-shell {
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.3);
}

.player-frame {
  position: relative;
  overflow: hidden;
  background: #000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.25), rgba(0, 0, 0, 0.62));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--sky-dark);
  background: #fff;
  font-size: 34px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.play-overlay strong {
  font-size: 20px;
}

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

.player-info {
  padding: 24px;
  color: #fff;
}

.player-info h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.player-info p {
  margin: 0;
  color: #cbd5e1;
}

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

.detail-main {
  display: grid;
  gap: 20px;
}

.article-card,
.detail-side {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.article-card h2,
.detail-side h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 24px;
}

.article-card p {
  margin: 0;
  color: #334155;
  font-size: 17px;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 96px;
}

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

.detail-side dt {
  color: #64748b;
  font-weight: 750;
}

.detail-side dd {
  margin: 0;
  color: #0f172a;
  font-weight: 700;
}

.detail-side a {
  color: var(--sky-dark);
}

.next-prev {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.next-prev a {
  overflow: hidden;
  color: var(--sky-dark);
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  margin-top: 72px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b 52%, #0f172a);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  padding: 52px 0 36px;
}

.footer-brand {
  color: #fff;
}

.footer-inner p {
  max-width: 520px;
  color: #94a3b8;
}

.footer-inner h2 {
  margin: 0 0 14px;
  color: #7dd3fc;
  font-size: 18px;
}

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

.footer-links a {
  color: #cbd5e1;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 20px 0 28px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: var(--sky);
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

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

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

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

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .topbar {
    min-height: 66px;
    flex-wrap: wrap;
  }

  .nav-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 16px;
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-search {
    width: 100%;
  }

  .nav-search input {
    width: 100%;
  }

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .hero-cover {
    max-width: 300px;
    transform: none;
  }

  .hero-search-card,
  .filter-panel,
  .section-heading,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-actions,
  .page-search,
  .hero-search-card form > div {
    flex-direction: column;
  }

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

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

  .detail-side {
    position: static;
  }

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

@media (max-width: 640px) {
  .brand {
    font-size: 20px;
  }

  .hero-inner {
    padding-top: 44px;
  }

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

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .category-movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .rank-item a {
    grid-template-columns: 46px 92px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-item img {
    width: 92px;
  }

  .content-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }
}
