:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.76);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --muted: #94a3b8;
  --text: #f8fafc;
  --soft: #cbd5e1;
  --emerald: #34d399;
  --teal: #2dd4bf;
  --rose: #fb7185;
  --blue: #60a5fa;
  --amber: #fbbf24;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 36rem),
    linear-gradient(135deg, #020617 0%, #0f172a 50%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 10px 24px rgba(45, 212, 191, 0.28);
}

.brand-text {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  background: linear-gradient(90deg, #a7f3d0, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 14px;
  color: #cbd5e1;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.72);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(51, 65, 85, 0.72);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 10px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 18px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.82);
}

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

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

.hero-slides {
  position: relative;
  min-height: 70vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.82)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 40%, rgba(52, 211, 153, 0.14), transparent 28rem),
    linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.88));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.56fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  min-height: 70vh;
  padding: 54px 0 70px;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--emerald);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-kicker.rose {
  color: var(--rose);
}

.section-kicker.blue {
  color: var(--blue);
}

.section-kicker.amber {
  color: var(--amber);
}

.hero-copy h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  color: #d1fae5;
}

.hero-copy p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.9;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(10px);
}

.hero-tags span,
.detail-tags span {
  padding: 8px 13px;
  font-size: 0.86rem;
}

.tag-row span {
  padding: 5px 9px;
  color: #99f6e4;
  font-size: 0.74rem;
}

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

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

.primary-btn {
  padding: 0 22px;
  color: #04111f;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 14px 28px rgba(20, 184, 166, 0.28);
}

.ghost-btn,
.section-link {
  padding: 0 18px;
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.58);
}

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

.hero-search {
  display: flex;
  width: min(100%, 620px);
  margin-top: 28px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: #ffffff;
  background: transparent;
}

.hero-search button,
.search-form button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  min-height: 42px;
  color: #04111f;
  font-weight: 800;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.hero-poster {
  position: relative;
  display: block;
  width: min(100%, 360px);
  justify-self: end;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span,
.play-float,
.related-thumb span {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.92);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.32);
}

.hero-poster span {
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  font-size: 1.3rem;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.site-section {
  padding: 66px 0;
}

.muted-section {
  margin: 28px 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.54), rgba(30, 41, 59, 0.34));
}

.rank-section {
  background: rgba(15, 23, 42, 0.22);
}

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

.section-head h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
  max-width: 740px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 310px);
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.38);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

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

.play-float {
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
}

.card-content {
  padding: 16px;
}

.card-content h3,
.rank-info h3,
.related-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.03rem;
  line-height: 1.35;
}

.card-content h3 a,
.rank-info h3 a,
.related-card h3 a {
  transition: color 0.18s ease;
}

.card-content h3 a:hover,
.rank-info h3 a:hover,
.related-card h3 a:hover {
  color: var(--emerald);
}

.card-content p,
.rank-info p,
.related-card p {
  display: -webkit-box;
  margin: 9px 0 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #64748b;
  font-size: 0.78rem;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-meta span + span::before {
  content: "•";
  margin-right: 8px;
  color: #475569;
}

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

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

.category-tile {
  display: block;
  min-height: 178px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.15), transparent 12rem),
    rgba(15, 23, 42, 0.72);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 211, 153, 0.48);
}

.category-tile.large {
  min-height: 220px;
}

.category-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 16px;
  color: #04111f;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.category-tile h2,
.category-tile h3 {
  margin: 0;
  font-size: 1.22rem;
}

.category-tile p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.category-tile strong {
  display: inline-flex;
  margin-top: 18px;
  color: var(--emerald);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 92px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.7);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(52, 211, 153, 0.45);
}

.rank-num {
  color: #5eead4;
  font-size: 1.45rem;
  font-weight: 900;
  text-align: center;
}

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

.rank-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.rank-action {
  min-height: 40px;
  padding: 0 16px;
  color: #04111f;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.page-hero {
  position: relative;
  padding: 78px 0 44px;
  background:
    radial-gradient(circle at 20% 0%, rgba(52, 211, 153, 0.16), transparent 28rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(2, 6, 23, 0));
}

.page-hero.slim {
  padding-top: 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #94a3b8;
  font-size: 0.9rem;
}

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

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.62);
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form input {
  flex: 1;
  min-height: 46px;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  outline: 0;
  padding: 0 18px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.42);
}

.search-form input:focus {
  border-color: rgba(52, 211, 153, 0.64);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.filter-chip {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 8px 13px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.88);
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #04111f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.66)),
    var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.96));
}

.detail-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  min-height: 560px;
  padding: 56px 0;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 840px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 1.08rem;
  line-height: 1.9;
}

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

.detail-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.58);
}

.detail-tags {
  margin-top: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
}

.detail-main,
.detail-side {
  min-width: 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 18px;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(15, 23, 42, 0.18), rgba(0, 0, 0, 0.65)),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.64));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 24px 50px rgba(16, 185, 129, 0.36);
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.06);
}

.play-button span {
  padding-left: 4px;
  font-size: 1.9rem;
}

.player-overlay strong {
  max-width: min(80%, 660px);
  font-size: clamp(1.2rem, 3vw, 2.2rem);
}

.content-panel,
.side-card {
  margin-top: 22px;
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.accent-panel {
  background:
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.1), transparent 15rem),
    rgba(15, 23, 42, 0.72);
}

.content-panel h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.content-panel p {
  margin: 0;
  color: #cbd5e1;
  line-height: 2;
}

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

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

.related-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
}

.related-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

.related-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.related-thumb span {
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
}

.related-card h3 {
  font-size: 0.96rem;
}

.related-card p {
  margin-top: 6px;
  font-size: 0.84rem;
}

.mini-meta {
  margin-top: 6px;
  color: #64748b;
  font-size: 0.78rem;
}

.site-footer {
  margin-top: 54px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(2, 6, 23, 0.95));
}

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

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1.12rem;
}

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

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 34px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.9rem;
}

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

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

  .detail-side {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

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

  .hero-poster {
    justify-self: start;
    width: min(100%, 300px);
  }

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

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

  .rank-item {
    grid-template-columns: 46px 76px 1fr;
  }

  .rank-action {
    grid-column: 2 / 4;
    width: max-content;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

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

  .hero-carousel,
  .hero-slides,
  .hero-grid {
    min-height: 760px;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 12vw, 4rem);
  }

  .hero-search,
  .search-form {
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search input,
  .search-form input {
    min-height: 46px;
  }

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

  .card-content {
    padding: 13px;
  }

  .card-content p,
  .tag-row {
    display: none;
  }

  .detail-hero-grid {
    min-height: auto;
    padding: 34px 0 48px;
  }

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

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

  .related-card {
    grid-template-columns: 94px 1fr;
  }

  .content-panel,
  .side-card {
    padding: 20px;
  }
}
