:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.95);
  --line: rgba(168, 85, 247, 0.22);
  --text: #f8fafc;
  --muted: rgba(226, 232, 240, 0.72);
  --purple: #a855f7;
  --purple-soft: rgba(168, 85, 247, 0.18);
  --amber: #fbbf24;
  --pink: #ec4899;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.55);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.25), transparent 32rem),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.13), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(88, 28, 135, 0.92), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.28);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, var(--amber), var(--pink));
  border-radius: 999px;
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.35);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 24px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--amber), #fb7185, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  font-style: normal;
  color: #c4b5fd;
  font-size: 12px;
}

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

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

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber);
  transform: translateY(-1px);
}

.header-search {
  width: min(340px, 32vw);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(168, 85, 247, 0.32);
  border-radius: 999px;
}

.header-search input,
.mobile-panel input,
.global-search input,
.inline-filter input,
.catalog-tools input,
.catalog-tools select {
  color: var(--text);
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 999px;
  outline: none;
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 8px 10px 14px;
}

.header-search button,
.mobile-panel button,
.global-search button {
  border: 0;
  color: #111827;
  background: linear-gradient(135deg, var(--amber), #fb7185);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ddd6fe;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(168, 85, 247, 0.18);
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
}

.mobile-panel input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
}

.mobile-panel a {
  color: #ddd6fe;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

main {
  min-height: 60vh;
}

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

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.78) 38%, rgba(15, 23, 42, 0.32) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.28) 48%, rgba(2, 6, 23, 0.2) 100%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1240px) / 2));
  top: 50%;
  width: min(640px, calc(100% - 48px));
  transform: translateY(-46%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-content p:not(.eyebrow) {
  margin: 22px 0 0;
  color: #ddd6fe;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.detail-meta,
.tag-row,
.spotlight-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin: 26px 0 0;
}

.hero-tags span,
.detail-meta span,
.tag-row span,
.spotlight-links a {
  color: #f5d0fe;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.32);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
}

.hero-actions,
.detail-copy .primary-button {
  margin-top: 30px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: #111827;
  background: linear-gradient(135deg, var(--amber), #fb7185);
  box-shadow: 0 16px 40px rgba(251, 191, 36, 0.28);
}

.ghost-button {
  color: var(--text);
  margin-left: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.42);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(236, 72, 153, 0.22);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
  background: rgba(2, 6, 23, 0.55);
  border-radius: 999px;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.hero-arrow.left {
  left: 22px;
}

.hero-arrow.right {
  right: 22px;
}

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

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

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

.home-search-band,
.section-block,
.page-hero,
.breadcrumb {
  width: min(1240px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.home-search-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 24px;
  margin-top: -44px;
  position: relative;
  z-index: 5;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.82);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.home-search-band h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-content h2,
.watch-section h2,
.spotlight-panel h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.home-search-band h2,
.section-heading h2,
.page-hero h1 {
  font-size: clamp(28px, 4vw, 46px);
}

.home-search-band p,
.page-hero p:not(.eyebrow),
.spotlight-panel p,
.detail-lead,
.detail-content p,
.category-overview-card p,
.channel-card p,
.movie-card p,
.rank-card p {
  color: var(--muted);
  line-height: 1.75;
}

.home-search-band form,
.global-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: rgba(2, 6, 23, 0.52);
  border: 1px solid rgba(168, 85, 247, 0.24);
  border-radius: 999px;
}

.home-search-band input,
.global-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  background: transparent;
}

.home-search-band button {
  border: 0;
  color: #111827;
  background: linear-gradient(135deg, var(--amber), #fb7185);
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 900;
  cursor: pointer;
}

.section-block {
  padding-top: 76px;
}

.section-block.narrow {
  width: min(920px, calc(100% - 32px));
}

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

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading a {
  color: var(--amber);
  font-weight: 900;
}

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

.channel-card a,
.category-overview-card a,
.spotlight-panel,
.ranking-panel,
.movie-card,
.rank-card,
.catalog-tools,
.detail-content,
.watch-section {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.channel-card a {
  position: relative;
  display: block;
  min-height: 220px;
  padding: 22px;
  border-radius: 22px;
  overflow: hidden;
}

.channel-shine {
  position: absolute;
  width: 120px;
  height: 120px;
  right: -48px;
  top: -46px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.36), transparent 70%);
}

.channel-card h3,
.category-overview-card h2,
.movie-card h3,
.rank-card h3 {
  margin: 0;
}

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

.channel-links,
.category-sample {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.channel-links a,
.category-sample a {
  color: #ddd6fe;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.movie-card {
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.65);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.poster-link img,
.rank-cover img,
.detail-poster img,
.category-overview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  color: #111827;
  background: rgba(251, 191, 36, 0.92);
  border-radius: 999px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.score-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  color: var(--amber);
  font-weight: 900;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 999px;
  padding: 5px 9px;
}

.card-body {
  padding: 16px;
}

.movie-card h3 a:hover,
.rank-card h3 a:hover,
.channel-links a:hover,
.category-sample a:hover {
  color: var(--amber);
}

.movie-card h3 {
  font-size: 17px;
  line-height: 1.35;
}

.movie-card p {
  margin: 9px 0 12px;
  font-size: 14px;
}

.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #c4b5fd;
  font-size: 12px;
}

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

.tag-row.large span {
  font-size: 14px;
}

.inline-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.inline-filter input {
  width: min(420px, 100%);
  padding: 13px 16px;
}

.filter-status,
.inline-filter div,
.search-result-head {
  color: #c4b5fd;
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.ranking-panel,
.spotlight-panel {
  border-radius: var(--radius);
  padding: 26px;
}

.rank-list,
.rank-grid-large,
.search-results {
  display: grid;
  gap: 14px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: auto 74px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
}

.rank-num {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, var(--amber), #fb7185);
  border-radius: 12px;
  font-weight: 1000;
}

.rank-cover {
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  background: #111827;
}

.rank-card h3 {
  font-size: 16px;
}

.rank-card p {
  margin: 7px 0;
  font-size: 13px;
}

.spotlight-panel {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 18rem),
    rgba(15, 23, 42, 0.78);
}

.spotlight-links {
  margin-top: 24px;
}

.page-hero {
  position: relative;
  margin-top: 42px;
  padding: 70px min(7vw, 76px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(88, 28, 135, 0.58)),
    radial-gradient(circle at right, rgba(251, 191, 36, 0.16), transparent 30rem);
  box-shadow: var(--shadow);
}

.page-hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  top: -150px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.32), transparent 70%);
}

.page-hero-content {
  position: relative;
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(34px, 6vw, 64px);
}

.page-hero p:not(.eyebrow) {
  font-size: 18px;
  max-width: 760px;
}

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

.category-overview-card a {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius);
}

.category-overview-card img {
  min-height: 100%;
}

.category-overview-card .poster-shade {
  display: none;
}

.category-overview-card div {
  padding: 28px;
}

.catalog-tools {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
  padding: 20px;
  border-radius: var(--radius);
}

.catalog-tools label {
  display: grid;
  gap: 8px;
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 800;
}

.catalog-tools input,
.catalog-tools select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  color: #c4b5fd;
  font-size: 14px;
}

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

.detail-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 34px;
  align-items: stretch;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius);
  background: #111827;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: min(6vw, 56px);
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 22rem),
    rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.detail-lead {
  margin: 20px 0 20px;
  font-size: 18px;
}

.watch-section {
  width: min(1240px, calc(100% - 32px));
  margin: 58px auto 0;
  padding: 24px;
  border-radius: var(--radius);
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.72));
  border: 0;
  cursor: pointer;
}

.player-overlay span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, var(--amber), #fb7185);
  border-radius: 999px;
  box-shadow: 0 20px 60px rgba(251, 191, 36, 0.36);
  font-size: 28px;
}

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

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

.detail-content {
  padding: 34px;
  border-radius: var(--radius);
}

.detail-content h2 {
  margin-top: 0;
  font-size: 28px;
}

.detail-content h2 + p {
  margin-top: 12px;
}

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

.search-page {
  width: min(920px, calc(100% - 32px));
}

.global-search {
  margin-bottom: 22px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.search-result-card img {
  width: 92px;
  height: 128px;
  object-fit: cover;
  border-radius: 14px;
}

.search-result-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.search-result-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  margin-top: 96px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.98));
  border-top: 1px solid var(--line);
}

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

.footer-brand strong {
  font-size: 28px;
  background: linear-gradient(90deg, var(--amber), #fb7185, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-brand p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

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

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

.copyright {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: rgba(226, 232, 240, 0.54);
  border-top: 1px solid rgba(168, 85, 247, 0.16);
}

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

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

  .menu-toggle {
    display: block;
  }

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

  .split-section,
  .home-search-band,
  .detail-hero,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .header-inner {
    height: 64px;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .hero-carousel {
    min-height: 72vh;
  }

  .hero-content {
    top: 54%;
  }

  .hero-arrow {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
  }

  .ghost-button {
    margin-left: 0;
  }

  .home-search-band,
  .page-hero,
  .ranking-panel,
  .spotlight-panel,
  .detail-copy,
  .watch-section,
  .detail-content {
    padding: 20px;
  }

  .home-search-band form,
  .global-search,
  .mobile-panel form,
  .inline-filter {
    flex-direction: column;
    border-radius: 22px;
  }

  .channel-grid,
  .movie-grid,
  .wide-grid,
  .related-grid,
  .category-overview-grid,
  .rank-grid-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-overview-card a,
  .rank-card,
  .search-result-card {
    grid-template-columns: 1fr;
  }

  .category-overview-card a {
    min-height: 0;
  }

  .category-overview-card img {
    aspect-ratio: 16 / 9;
  }

  .catalog-tools {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    gap: 18px;
  }

  .detail-poster {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .channel-grid,
  .movie-grid,
  .wide-grid,
  .related-grid,
  .rank-grid-large {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 36px;
  }

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