:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.64);
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --emerald: #10b981;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.16), transparent 36rem),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.25);
  transition: transform 0.24s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-copy {
  display: grid;
}

.brand-name {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-tagline {
  margin-top: -3px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #22d3ee;
}

.nav-link-muted {
  color: #94a3b8;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 270px;
}

.header-search input,
.mobile-search input,
.movie-search-input {
  width: 100%;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  outline: none;
  padding: 11px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.movie-search-input:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  padding: 11px 18px;
  cursor: pointer;
}

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #e2e8f0;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 16px 18px;
  background: rgba(15, 23, 42, 0.98);
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

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

.mobile-link {
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.68);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font-weight: 700;
}

.mobile-link.active {
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.42);
}

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

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.88) 42%, rgba(2, 6, 23, 0.18) 100%), var(--hero-image);
  background-position: center;
  background-size: cover;
  transition: opacity 1s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 44%, rgba(2, 6, 23, 0.16) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(700px, 100%);
  padding-top: 40px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 18px 0 16px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero-copy p {
  width: min(640px, 100%);
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-meta,
.detail-meta-row,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin-bottom: 30px;
}

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

.hero-actions,
.page-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
}

.primary-button,
.ghost-button,
.section-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  box-shadow: 0 18px 35px rgba(6, 182, 212, 0.22);
}

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

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.58);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #475569;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.home-shell,
.page-shell {
  padding: 54px 0 76px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 70px;
}

.category-pill {
  display: grid;
  gap: 6px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.58));
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-pill:hover,
.category-card-main:hover,
.movie-card:hover {
  transform: translateY(-4px);
}

.category-pill:hover,
.category-card-main:hover {
  border-color: rgba(34, 211, 238, 0.42);
}

.category-pill span {
  color: #67e8f9;
  font-size: 13px;
  font-weight: 800;
}

.category-pill strong {
  color: #ffffff;
  font-size: 21px;
}

.content-section {
  margin-bottom: 76px;
}

.tinted-section,
.ranking-preview {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.62), rgba(8, 47, 73, 0.24));
  padding: 30px;
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.heading-bar {
  width: 5px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--teal));
  margin-top: 6px;
}

.section-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

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

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

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

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

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

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

.movie-card {
  position: relative;
  transition: transform 0.24s ease;
}

.poster-card,
.horizontal-card,
.movie-card-large {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.56);
}

.poster-card:hover,
.horizontal-card:hover,
.movie-card-large:hover {
  border-color: rgba(34, 211, 238, 0.36);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.26);
}

.poster-link,
.large-poster,
.horizontal-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link {
  aspect-ratio: 3 / 4;
}

.large-poster {
  aspect-ratio: 16 / 9;
}

.horizontal-poster {
  width: 150px;
  min-height: 112px;
  flex: 0 0 auto;
}

.poster-link img,
.large-poster img,
.horizontal-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.poster-gradient,
.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.08) 62%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-shade {
  opacity: 0.78;
}

.poster-card:hover .poster-gradient {
  opacity: 1;
}

.year-pill,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.year-pill {
  top: 10px;
  right: 10px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.82);
}

.rank-badge {
  top: 10px;
  left: 10px;
  color: #04111f;
  background: linear-gradient(90deg, #67e8f9, #5eead4);
}

.play-chip {
  right: 16px;
  bottom: 16px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.88);
}

.poster-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.poster-copy,
.large-card-copy,
.horizontal-copy {
  padding: 15px;
}

.large-card-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px;
}

.movie-card-large {
  min-height: 100%;
}

.movie-card-large h3,
.poster-card h3,
.horizontal-card h3 {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
}

.movie-card-large h3 {
  font-size: 22px;
}

.movie-card h3 a:hover {
  color: #22d3ee;
}

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

.card-meta {
  justify-content: space-between;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
}

.card-meta span:first-child {
  color: #22d3ee;
}

.horizontal-card {
  display: flex;
  min-height: 112px;
}

.horizontal-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.section-more {
  margin-top: 26px;
  text-align: center;
}

.section-more a {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 76px;
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.58), rgba(15, 23, 42, 0.5)),
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.16), transparent 24rem);
  border-bottom: 1px solid var(--line);
}

.slim-hero,
.search-hero,
.ranking-hero,
.category-page-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
}

.page-hero h1 {
  width: min(850px, 100%);
  margin: 18px 0 14px;
  color: #ffffff;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  width: min(760px, 100%);
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
}

.page-hero-actions {
  margin-top: 28px;
}

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

.category-card-block {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: var(--shadow);
}

.category-card-main {
  display: grid;
  gap: 10px;
  min-height: 210px;
  border-bottom: 1px solid var(--line);
  padding: 28px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(20, 184, 166, 0.07));
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-number {
  color: #67e8f9;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.category-card-main h2 {
  margin: 0;
  color: #ffffff;
  font-size: 28px;
}

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

.category-enter {
  width: fit-content;
  margin-top: 8px;
  color: #22d3ee;
  font-weight: 800;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 20px 28px 24px;
}

.category-samples a {
  color: #cbd5e1;
}

.category-samples a:hover {
  color: #22d3ee;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.66);
  padding: 24px;
}

.filter-panel h2 {
  margin: 10px 0 0;
  font-size: 26px;
}

.filter-controls {
  display: grid;
  gap: 12px;
}

.type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.6);
  padding: 8px 14px;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  border-color: transparent;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  padding: 24px;
  text-align: center;
}

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

.is-hidden {
  display: none !important;
}

.detail-shell {
  padding: 32px 0 78px;
}

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

.breadcrumb a:hover {
  color: #22d3ee;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.92fr);
  gap: 30px;
  align-items: start;
}

.player-card,
.text-panel,
.side-panel,
.poster-detail-card,
.detail-header {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.12));
  cursor: pointer;
}

.player-card.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 18px 46px rgba(6, 182, 212, 0.32);
  font-size: 30px;
}

.play-overlay strong {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.detail-header {
  margin-bottom: 22px;
  padding: 26px;
}

.detail-header h1 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-header p {
  margin: 0 0 20px;
  color: #cbd5e1;
  font-size: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-row span {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
}

.text-panel {
  margin-bottom: 22px;
  padding: 26px;
}

.text-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 22px;
}

.text-panel p {
  margin: 0;
  color: #cbd5e1;
  font-size: 17px;
}

.detail-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 20px;
}

.poster-detail-card {
  overflow: hidden;
}

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

.poster-detail-card div {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.poster-detail-card strong {
  color: #ffffff;
  font-size: 20px;
}

.poster-detail-card span {
  color: #22d3ee;
}

.side-panel {
  padding: 20px;
}

.side-links {
  display: grid;
  gap: 10px;
}

.side-links a {
  display: grid;
  gap: 2px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.62);
  padding: 12px 14px;
}

.side-links a:hover {
  color: #22d3ee;
  background: rgba(8, 47, 73, 0.6);
}

.side-links small {
  color: var(--muted);
}

.related-section {
  margin-top: 34px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
  padding: 36px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.4fr;
  gap: 28px;
}

.footer-logo {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-content: start;
}

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

.footer-links a:hover {
  color: #22d3ee;
}

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

  .menu-toggle {
    display: block;
  }

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

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

  .detail-sidebar {
    position: static;
  }

  .poster-detail-card {
    display: none;
  }
}

@media (max-width: 860px) {
  .hero-carousel {
    height: 74vh;
    min-height: 560px;
  }

  .hero-slide {
    background-image: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.74) 58%, rgba(2, 6, 23, 0.16) 100%), var(--hero-image);
  }

  .hero-arrow {
    display: none;
  }

  .category-strip,
  .category-overview-grid,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .tinted-section,
  .ranking-preview {
    padding: 22px;
  }
}

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

  .brand-name {
    font-size: 17px;
  }

  .brand-tagline {
    display: none;
  }

  .hero-carousel {
    min-height: 540px;
  }

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

  .hero-actions,
  .page-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .poster-grid,
  .compact-grid,
  .movie-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .horizontal-poster {
    width: 118px;
  }

  .poster-copy,
  .large-card-copy,
  .horizontal-copy {
    padding: 12px;
  }

  .page-hero {
    padding: 64px 0 54px;
  }

  .detail-shell {
    padding-top: 22px;
  }

  .detail-header,
  .text-panel,
  .side-panel {
    padding: 18px;
  }

  .play-circle {
    width: 64px;
    height: 64px;
  }
}
