/* mother-diversity · site 10 · cherry-burst · 莓果画廊
   主色 #be123c · 辅色 #9f1239 · 点缀 #f59e0b · 竖版画廊 */
/* 主色 #be123c 品牌/链接 · 辅色 #9f1239 CTA · 点缀 #f59e0b 徽章热门 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.cb-site {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(880px 420px at 8% -6%, rgba(190, 18, 60, 0.14), transparent 58%),
    radial-gradient(640px 320px at 92% 12%, rgba(251, 113, 133, 0.1), transparent 55%),
    var(--cb-bg);
  color: var(--cb-ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

body.cb-site img {
  display: block;
  max-width: 100%;
}

body.cb-site a {
  color: var(--cb-primary);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.cb-site a:hover {
  color: var(--cb-secondary);
}

.cb-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header: 单行左品牌 + 中导航 + 右搜索 ── */
.cb-top {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--cb-line);
  box-shadow: 0 8px 32px rgba(225, 29, 72, 0.08);
}

.cb-top__bar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 18px;
}

.cb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cb-primary) !important;
  font-weight: 900;
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  letter-spacing: -0.03em;
}

.cb-brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--cb-primary), var(--cb-secondary));
  color: #fff;
  font-size: 17px;
  box-shadow: 0 8px 22px rgba(225, 29, 72, 0.38);
}

.cb-brand__name {
  background: linear-gradient(90deg, var(--cb-primary), var(--cb-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cb-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
}

.cb-nav a {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: var(--cb-muted) !important;
  background: rgba(225, 29, 72, 0.05);
  border: 1px solid transparent;
}

.cb-nav a:hover,
.cb-nav a[aria-current="page"] {
  color: #fff !important;
  background: var(--cb-primary);
  border-color: var(--cb-primary);
}

.cb-nav a[aria-current="page"] {
  box-shadow: 0 0 0 2px var(--cb-accent);
}

.cb-search {
  display: flex;
  align-items: stretch;
  min-width: 200px;
  border: 2px solid var(--cb-line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--cb-surface);
}

.cb-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.cb-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 9px 14px;
  font-size: 14px;
  outline: none;
  background: transparent;
  color: var(--cb-ink);
}

.cb-search input::placeholder {
  color: #be123c;
  opacity: 0.55;
}

.cb-search__go {
  border: 0;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--cb-primary), var(--cb-secondary));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.cb-search__go:hover {
  filter: brightness(1.08);
}

.cb-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 2px solid var(--cb-line);
  border-radius: 10px;
  background: var(--cb-surface);
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.cb-burger span {
  display: block;
  height: 2px;
  background: var(--cb-primary);
  border-radius: 2px;
}

/* ── Main ── */
.cb-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 18px 52px;
}

/* ── Hero: 通栏主推 ── */
.cb-spotlight {
  position: relative;
  overflow: hidden;
  margin: 0 -18px 28px;
  padding: 56px 28px 52px;
  background: linear-gradient(125deg, #4c0519 0%, #9f1239 42%, #be123c 72%, #fb7185 100%);
  color: #fff;
  text-align: center;
}

.cb-spotlight__burst {
  position: absolute;
  inset: -40% -20%;
  background:
    radial-gradient(circle at 30% 40%, rgba(251, 191, 36, 0.35), transparent 42%),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.12), transparent 50%);
  pointer-events: none;
  animation: cb-pulse 8s ease-in-out infinite alternate;
}

@keyframes cb-pulse {
  from { transform: scale(1) rotate(0deg); }
  to { transform: scale(1.06) rotate(2deg); }
}

.cb-spotlight__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.cb-spotlight__eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--cb-accent);
  color: #1a0a10;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.cb-spotlight h1 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
}

.cb-spotlight__lead {
  margin: 0 auto 28px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.75;
  opacity: 0.92;
}

.cb-spotlight__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cb-btn--cta {
  background: linear-gradient(135deg, var(--cb-primary), var(--cb-secondary));
  color: #fff !important;
  box-shadow: 0 12px 32px rgba(190, 18, 60, 0.42);
}

.cb-btn--cta:hover {
  transform: translateY(-2px);
  color: #fff !important;
  box-shadow: 0 16px 40px rgba(190, 18, 60, 0.5);
}

.cb-btn--line {
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.55);
}

.cb-btn--line:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff !important;
}

/* ── 彩色胶囊分类 ── */
.cb-capsules {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 32px;
  padding: 6px 2px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--cb-primary) transparent;
}

.cb-capsule {
  flex: 0 0 auto;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  color: #fff !important;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cb-capsule:nth-child(1) { background: var(--cb-primary); }
.cb-capsule:nth-child(2) { background: var(--cb-secondary); }
.cb-capsule:nth-child(3) { background: #e11d48; }
.cb-capsule:nth-child(4) { background: #f59e0b; color: #1a0508 !important; }
.cb-capsule:nth-child(5) { background: #fb7185; }
.cb-capsule:nth-child(6) { background: #be123c; }
.cb-capsule:nth-child(7) { background: #9f1239; }
.cb-capsule:nth-child(8) { background: #b45309; }

.cb-capsule:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  border-color: var(--cb-accent);
}

/* ── 区块面板 ── */
.cb-panel {
  margin-bottom: 40px;
}

.cb-panel--spot {
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 241, 242, 0.88));
  border: 1px solid var(--cb-line);
  box-shadow: var(--cb-shadow);
}

.cb-panel--grid {
  padding: 24px;
  border-radius: 20px;
  background: var(--cb-surface);
  border: 1px solid var(--cb-line);
}

.cb-panel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.cb-panel__title h2 {
  margin: 4px 0 0;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 900;
  color: var(--cb-ink);
}

.cb-panel__link {
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  color: var(--cb-secondary) !important;
}

.cb-panel__link:hover {
  color: var(--cb-primary) !important;
}

.cb-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--cb-accent);
  color: #1a0a10;
}

.cb-tag--hot {
  background: var(--cb-primary);
  color: #fff;
}

.cb-tag--new {
  background: var(--cb-secondary);
  color: #fff;
}

/* ── 竖版画廊片单（2:3） ── */
.cb-rail {
  display: grid;
  grid-auto-flow: unset;
  grid-auto-columns: unset;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 16px;
  overflow: visible;
  padding-bottom: 0;
}

/* ── 栅格 ── */
.cb-grid {
  display: grid;
  gap: 18px;
}

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

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

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

/* ── 卡片: 竖版 2:3 + 底部遮罩标题 ── */
.cb-film {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--cb-line);
  box-shadow: 0 10px 32px rgba(190, 18, 60, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cb-film:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(190, 18, 60, 0.22);
}

.cb-film__link {
  display: block;
  position: relative;
  color: #fff !important;
}

.cb-film__link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cb-film:hover .cb-film__link img {
  transform: scale(1.06);
}

.cb-film__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--cb-accent);
  color: #1a0a10;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.45);
}

.cb-film__play {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(190, 18, 60, 0.92);
  color: #fff;
  font-size: 15px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cb-film:hover .cb-film__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cb-film__shade {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 36px 14px 14px;
  background: linear-gradient(0deg, rgba(26, 10, 16, 0.92) 0%, transparent 100%);
}

.cb-film__shade h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cb-film__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.82;
}

.cb-film__meta span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  opacity: 0.6;
}

.cb-film--mini .cb-film__link img {
  aspect-ratio: 16 / 10;
}

.cb-film--mini .cb-film__shade h3 {
  font-size: 14px;
}

/* ── 分类页: 侧栏筛选 + 主网格 ── */
.cb-cat {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.cb-cat__side {
  position: sticky;
  top: 88px;
  padding: 24px;
  border-radius: 18px;
  background: var(--cb-surface);
  border: 2px solid var(--cb-line);
  box-shadow: 0 12px 36px rgba(225, 29, 72, 0.08);
}

.cb-cat__side h1 {
  margin: 10px 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 900;
  color: var(--cb-primary);
}

.cb-cat__desc {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--cb-muted);
}

.cb-cat__filter-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--cb-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cb-cat__filter input,
.cb-cat__selects select {
  width: 100%;
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 2px solid var(--cb-line);
  border-radius: 10px;
  background: var(--cb-bg);
  color: var(--cb-ink);
  font-weight: 600;
  outline: none;
}

.cb-cat__filter input:focus,
.cb-cat__selects select:focus {
  border-color: var(--cb-primary);
}

.cb-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cb-muted);
}

.cb-crumb a {
  color: var(--cb-primary) !important;
}

.cb-crumb span {
  opacity: 0.45;
}

.cb-crumb--play {
  margin-bottom: 18px;
}

/* ── 内页标题区 ── */
.cb-pagehead {
  margin-bottom: 28px;
  padding: 28px 26px;
  border-radius: 18px;
  background: linear-gradient(120deg, var(--cb-primary), var(--cb-secondary));
  color: #fff;
}

.cb-pagehead h1 {
  margin: 8px 0 8px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900;
}

.cb-pagehead p {
  margin: 0;
  max-width: 620px;
  opacity: 0.9;
  line-height: 1.7;
}

.cb-pagehead .cb-crumb {
  color: rgba(255, 255, 255, 0.75);
}

.cb-pagehead .cb-crumb a {
  color: #fff !important;
}

/* ── 筛选条 (rank/search) ── */
.cb-filterbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--cb-surface);
  border: 1px solid var(--cb-line);
}

.cb-filterbar__row input,
.cb-filterbar__row select {
  flex: 1 1 180px;
  padding: 10px 14px;
  border: 2px solid var(--cb-line);
  border-radius: 999px;
  background: var(--cb-bg);
  font-weight: 600;
  outline: none;
}

.cb-filterbar__row input:focus,
.cb-filterbar__row select:focus {
  border-color: var(--cb-secondary);
}

.cb-empty {
  padding: 40px;
  text-align: center;
  border-radius: 14px;
  background: var(--cb-surface);
  color: var(--cb-muted);
  font-weight: 700;
}

.cb-empty[hidden] {
  display: none !important;
}

/* ── 播放页: 左播放器 + 右侧信息卡（高度不对齐拉伸） ── */
.cb-play {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  gap: 16px;
  align-items: start;
  margin-bottom: 24px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.cb-play__screen {
  background: #0a0406;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: min(70vh, 640px);
}

.cb-play__screen video,
#movie-player {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  max-height: none;
  object-fit: contain;
  background: #0a0406;
}

.cb-play__info {
  padding: 18px 16px 20px;
  background: linear-gradient(165deg, #4c0519 0%, #9f1239 48%, #be123c 100%);
  color: #fff;
  border-radius: 16px;
}

.cb-play__poster {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 16px;
  border-radius: 10px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.cb-play__info h1 {
  margin: 0 0 16px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 900;
  line-height: 1.35;
  color: #fff;
}

.cb-play__meta {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cb-play__meta li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.cb-play__meta em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
}

.cb-play__meta strong {
  color: var(--cb-accent);
}

.cb-synopsis {
  margin-bottom: 36px;
  padding: 28px;
  border-radius: 18px;
  background: var(--cb-surface);
  border: 1px solid var(--cb-line);
}

.cb-synopsis h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--cb-primary);
}

.cb-synopsis p {
  margin: 0 0 12px;
  line-height: 1.85;
  color: var(--cb-muted);
}

.cb-synopsis__full {
  color: var(--cb-ink);
}

/* ── 分类总览 tiles ── */
.cb-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cb-tiles .category-tile,
.cb-tiles a {
  display: block;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--cb-surface);
  border: 2px solid var(--cb-line);
  color: var(--cb-ink) !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cb-tiles .category-tile:hover,
.cb-tiles a:hover {
  transform: translateY(-3px);
  border-color: var(--cb-primary);
  box-shadow: 0 12px 32px rgba(225, 29, 72, 0.14);
  color: var(--cb-primary) !important;
}

.cb-tiles strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--cb-primary);
}

.cb-tiles span {
  display: block;
  font-size: 14px;
  line-height: 1.65;
  color: var(--cb-muted);
}

/* ── Footer: 品牌带 + 底栏 ── */
.cb-foot {
  margin-top: auto;
  background: linear-gradient(180deg, #1a0a10, #2d0f1a);
  color: rgba(255, 255, 255, 0.82);
}

.cb-foot__band {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 18px 24px;
}

.cb-foot__brand strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--cb-primary);
}

.cb-foot__brand p {
  margin: 0;
  line-height: 1.7;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.68);
}

.cb-foot__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cb-foot__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cb-foot__label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cb-accent);
  margin-bottom: 4px;
}

.cb-foot__col a {
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 600;
  font-size: 14px;
}

.cb-foot__col a:hover {
  color: var(--cb-accent) !important;
}

.cb-foot__copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
}

/* ── 兼容旧 class（404 等） ── */
body.cb-site .movie-grid:not(.cb-grid):not(.cb-rail) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.cb-site .image-off {
  opacity: 0;
}

body.cb-site .nav-toggle {
  display: none;
}

/* ── 响应式 ── */
@media (max-width: 1024px) {
  .cb-grid--5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cb-play {
    grid-template-columns: 1fr;
  }

  .cb-play__info {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: start;
  }

  .cb-play__poster {
    margin: 0;
    max-width: 120px;
  }
}

@media (max-width: 860px) {
  .cb-top__bar {
    grid-template-columns: 42px 1fr auto;
    grid-template-rows: auto auto;
  }

  .cb-burger {
    display: flex;
    grid-row: 1;
  }

  .cb-brand {
    grid-row: 1;
    justify-self: start;
    font-size: 1.1rem;
  }

  .cb-search {
    grid-row: 1;
    grid-column: 3;
    min-width: 120px;
  }

  .cb-search input {
    width: 80px;
  }

  .cb-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    padding: 12px;
    border-radius: 14px;
    background: var(--cb-bg);
    border: 1px solid var(--cb-line);
  }

  .cb-nav.open {
    display: flex;
  }

  .cb-nav a {
    justify-content: center;
    padding: 12px;
  }

  .cb-spotlight {
    margin-left: -14px;
    margin-right: -14px;
    padding: 40px 20px 36px;
  }

  .cb-cat {
    grid-template-columns: 1fr;
  }

  .cb-cat__side {
    position: static;
  }

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

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

  .cb-foot__band {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .cb-main {
    padding: 18px 14px 40px;
  }

  .cb-grid--5,
  .cb-grid--4,
  .cb-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cb-rail {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 12px;
  }

  .cb-panel__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cb-play__info {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cb-play__poster {
    max-width: 140px;
    margin: 0 auto;
  }

  .cb-filterbar__row {
    flex-direction: column;
  }

  .cb-filterbar__row input,
  .cb-filterbar__row select {
    flex: 1 1 auto;
    width: 100%;
  }

  .cb-foot__cols {
    grid-template-columns: 1fr;
  }

  .cb-foot__copy {
    flex-direction: column;
  }

  .cb-tiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .cb-grid--5,
  .cb-grid--4,
  .cb-grid--3 {
    grid-template-columns: 1fr;
  }

  .cb-search input {
    display: none;
  }

  .cb-search__go {
    border-radius: 999px;
    padding: 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
