:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-solid: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.72);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --amber: #f59e0b;
  --orange: #ea580c;
  --blue: #38bdf8;
  --green: #22c55e;
  --shadow: 0 28px 80px rgba(2, 6, 23, 0.5);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.16), transparent 32rem),
    radial-gradient(circle at 80% 8%, rgba(56, 189, 248, 0.14), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.58));
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  backdrop-filter: blur(18px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(2, 6, 23, 0.96);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.44);
}

.nav-shell {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.98), rgba(234, 88, 12, 0.92)),
    linear-gradient(225deg, rgba(56, 189, 248, 0.45), transparent);
  box-shadow: 0 12px 34px rgba(245, 158, 11, 0.32);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px 9px 10px 13px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: #fff7ed;
}

.brand-text {
  font-size: 1.12rem;
  background: linear-gradient(90deg, #fbbf24, #fb923c, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: var(--soft);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--soft);
  border-radius: 999px;
  margin: 0 auto;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.96);
  padding: 12px 16px 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
}

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

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.22) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.035);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.2) 0%, rgba(2, 6, 23, 0.96) 100%),
    radial-gradient(circle at 18% 40%, rgba(245, 158, 11, 0.22), transparent 28rem);
}

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

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 16px 0 14px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  max-width: 12ch;
}

.hero-copy p {
  max-width: 640px;
  color: var(--soft);
  font-size: clamp(1rem, 2vw, 1.22rem);
  margin: 0 0 22px;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
}

.hero-meta span,
.detail-meta span {
  color: var(--soft);
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.56);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(90deg, var(--amber), var(--orange));
  color: white;
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.28);
}

.btn.ghost {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.58);
  color: var(--text);
}

.btn:hover,
.section-link:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-search {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  color: var(--text);
  outline: none;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.76);
}

.hero-search input {
  border: 0;
  padding: 0 16px;
  background: transparent;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  padding: 10px 20px;
  font-weight: 900;
}

.hero-arrow {
  position: absolute;
  top: 52%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: white;
  background: rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(12px);
  font-size: 2rem;
  line-height: 1;
}

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

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

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

.hero-dots button {
  width: 18px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 38px;
  background: var(--amber);
}

.quick-strip {
  margin-top: -38px;
  position: relative;
  z-index: 7;
}

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

.quick-grid a {
  min-height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  color: var(--text);
  font-weight: 900;
}

.main-stack,
.page-shell .container,
.detail-page .container {
  display: grid;
  gap: 32px;
}

.main-stack {
  padding: 60px 0 72px;
}

.page-shell {
  padding: 106px 0 72px;
}

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

.content-section,
.detail-copy,
.side-card,
.filter-panel,
.page-hero,
.category-card-large,
.ranking-table {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.content-section,
.detail-copy,
.side-card,
.page-hero {
  padding: clamp(20px, 3vw, 30px);
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.section-head p,
.page-hero p,
.footer-about p,
.category-info p,
.detail-copy p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link,
.text-link {
  display: inline-flex;
  color: #fbbf24;
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.82);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 28px 50px rgba(2, 6, 23, 0.46);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.82);
}

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

.movie-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.15);
}

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

.card-play,
.score-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.card-play {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.36);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.score-badge {
  right: 10px;
  top: 10px;
  min-width: 42px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(245, 158, 11, 0.9);
}

.card-content {
  padding: 15px;
}

.card-content h3 {
  margin: 0 0 7px;
  font-size: 1rem;
  line-height: 1.35;
}

.card-content h3 a:hover {
  color: #fbbf24;
}

.card-meta {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.card-content p {
  min-height: 3.2em;
  margin: 0 0 12px;
  color: var(--soft);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card.compact .card-content p {
  display: none;
}

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

.category-tile,
.category-cover {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background-image:
    linear-gradient(135deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.42)),
    var(--tile-image);
  background-size: cover;
  background-position: center;
}

.category-tile {
  min-height: 174px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.category-tile strong,
.category-cover span {
  position: relative;
  z-index: 2;
  font-size: 1.35rem;
  font-weight: 950;
}

.category-tile em {
  position: relative;
  z-index: 2;
  color: var(--soft);
  font-style: normal;
  font-size: 0.9rem;
}

.tile-glow {
  position: absolute;
  inset: auto 12px 12px 12px;
  height: 42%;
  background: linear-gradient(0deg, rgba(245, 158, 11, 0.24), transparent);
  filter: blur(16px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #fbbf24;
}

.breadcrumb span::before,
.breadcrumb a + span::before,
.breadcrumb a + a::before {
  content: "/";
  margin-right: 8px;
  color: rgba(148, 163, 184, 0.5);
}

.page-hero {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.2), transparent 26rem),
    radial-gradient(circle at 85% 35%, rgba(56, 189, 248, 0.16), transparent 24rem),
    rgba(15, 23, 42, 0.72);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 4.6rem);
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  padding: 16px;
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  border-radius: 14px;
  padding: 0 12px;
}

.result-line {
  color: var(--muted);
  min-height: 1.5rem;
}

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

.category-card-large {
  overflow: hidden;
  display: grid;
  grid-template-columns: 42% 1fr;
}

.category-cover {
  min-height: 280px;
  display: flex;
  align-items: end;
  padding: 22px;
}

.category-info {
  padding: 22px;
}

.category-info h2 {
  margin: 0;
  font-size: 1.5rem;
}

.category-info ul {
  padding: 0;
  margin: 16px 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--soft);
}

.category-info li a:hover {
  color: #fbbf24;
}

.rank-list,
.side-ranks {
  display: grid;
  gap: 12px;
}

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

.rank-item:hover,
.ranking-row:hover {
  background: rgba(245, 158, 11, 0.1);
  transform: translateX(4px);
}

.rank-number {
  min-width: 36px;
  font-size: 1.1rem;
  color: #fbbf24;
  font-weight: 950;
}

.rank-item img {
  width: 88px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-copy {
  display: grid;
  gap: 3px;
}

.rank-copy strong {
  line-height: 1.3;
}

.rank-copy em {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
}

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

.podium-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: #0f172a;
  box-shadow: var(--shadow);
}

.podium-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 0.5s ease;
}

.podium-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(2, 6, 23, 0.94));
}

.podium-card:hover img {
  transform: scale(1.08);
}

.podium-card strong,
.podium-card em,
.podium-rank {
  position: relative;
  z-index: 2;
}

.podium-rank {
  width: max-content;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.9);
  padding: 5px 10px;
  font-weight: 950;
}

.podium-card strong {
  font-size: 1.42rem;
  line-height: 1.25;
}

.podium-card em {
  color: var(--soft);
  font-style: normal;
}

.ranking-table {
  overflow: hidden;
}

.ranking-row {
  display: grid;
  grid-template-columns: 46px 74px 1fr 80px;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-num {
  color: #fbbf24;
  font-weight: 950;
  font-size: 1.1rem;
}

.ranking-row img {
  width: 74px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-main {
  display: grid;
  gap: 2px;
}

.ranking-main em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-meta {
  color: #fbbf24;
  font-weight: 950;
  text-align: right;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.watch-main {
  display: grid;
  gap: 24px;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.74)),
    radial-gradient(circle, rgba(245, 158, 11, 0.26), transparent 18rem);
  font-weight: 950;
  font-size: 1.08rem;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-orb {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 20px 48px rgba(245, 158, 11, 0.42);
  font-size: 2rem;
}

.detail-copy h1 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  margin-bottom: 14px;
}

.detail-copy h2,
.side-card h2 {
  margin: 24px 0 8px;
  font-size: 1.45rem;
}

.lead-text {
  color: #fbbf24 !important;
  font-weight: 800;
  font-size: 1.08rem;
}

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

.watch-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 92px;
}

.poster-side {
  display: grid;
  gap: 12px;
}

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

.poster-side strong {
  font-size: 1.2rem;
}

.poster-side span {
  color: var(--muted);
}

.watch-side .rank-item {
  grid-template-columns: 86px 1fr;
}

.watch-side .rank-item .rank-number {
  display: none;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.9);
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.footer-links {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

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

[data-movie-card][hidden] {
  display: none;
}

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

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

  .watch-side {
    position: static;
    grid-template-columns: 280px 1fr;
  }
}

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

  .nav-toggle {
    display: flex;
  }

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

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

  .hero-arrow {
    display: none;
  }

  .quick-grid,
  .category-grid,
  .podium-grid,
  .category-overview-grid,
  .footer-grid,
  .filter-panel,
  .watch-side {
    grid-template-columns: 1fr 1fr;
  }

  .category-card-large {
    grid-template-columns: 1fr;
  }

  .category-cover {
    min-height: 220px;
  }
}

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

  .brand-text {
    font-size: 1rem;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 3rem;
  }

  .hero-search,
  .hero-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

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

  .quick-grid,
  .movie-grid,
  .large-grid,
  .category-grid,
  .podium-grid,
  .category-overview-grid,
  .footer-grid,
  .filter-panel,
  .watch-side {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 34px 64px 1fr;
  }

  .ranking-meta {
    grid-column: 3;
    text-align: left;
  }

  .player-card {
    border-radius: 18px;
  }
}
