/* ChillVibez Universe — Disney+ Style Hero Brand Tiles (Desktop & Mobile) */

.cv-brand-hub {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.cv-cat-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cv-cat-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0 0.25rem;
}

.cv-cat-header::before,
.cv-cat-header::after {
  content: "";
  flex: 1;
  height: 1px;
}

.cv-cat-header::before {
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.18), transparent);
}

.cv-cat-header::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent);
}

.cv-cat-title {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 247, 255, 0.62);
  white-space: nowrap;
}

.cv-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cv-brand-grid {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 10px;
  scrollbar-width: none;
}

.cv-brand-grid::-webkit-scrollbar {
  display: none;
}

.cv-car-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 14, 22, 0.82);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

.cv-car-arrow.prev { left: -10px; }
.cv-car-arrow.next { right: -10px; }
.cv-car-arrow:hover { border-color: rgba(251, 191, 36, 0.75); color: #fbbf24; }

.cv-brand-tile {
  position: relative;
  aspect-ratio: 16 / 9;
  flex: 0 0 240px;
  scroll-snap-align: start;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #1b1f33 0%, #111422 100%);
  box-shadow:
    0 14px 28px -10px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transform: translateZ(0) scale(1);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.32s ease;
}

.cv-tile-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.36s ease;
  pointer-events: none;
  z-index: 0;
}

.cv-tile-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 35%, rgba(8, 10, 18, 0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

.cv-tile-shine {
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  transform: rotate(25deg);
  transition: left 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
}

.cv-tile-logo {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  text-align: center;
  user-select: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.cv-tile-logo-img {
  display: block;
  max-width: 82%;
  max-height: 78%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.65));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.cv-logo-main {
  font-family: "Outfit", "Plus Jakarta Sans", sans-serif;
  font-weight: 900;
  font-size: clamp(1rem, 1.8vw, 1.38rem);
  letter-spacing: 0.14em;
  padding-left: 0.14em;
  color: #ffffff;
  line-height: 1.05;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.cv-logo-sub {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(0.62rem, 0.95vw, 0.78rem);
  letter-spacing: 0.38em;
  padding-left: 0.38em;
  margin-top: 0.28rem;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.cv-badge-3d {
  display: inline-block;
  padding: 0.08em 0.36em;
  border-radius: 4px;
  background: linear-gradient(135deg, #8b5cf6, #38bdf8);
  color: #fff;
  letter-spacing: 0.08em;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.cv-logo-sub--labs {
  color: #2dd4bf;
  letter-spacing: 0.48em;
  padding-left: 0.48em;
}

.cv-badge-pxl {
  display: inline-block;
  padding: 0.1em 0.38em;
  border-radius: 3px;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  letter-spacing: 0.1em;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.55);
}

/* Hover / Focus / Active States */
.cv-brand-tile:hover,
.cv-brand-tile:focus-visible,
.cv-brand-tile.is-active {
  transform: translateZ(0) scale(1.045);
}

.cv-brand-tile:hover .cv-tile-canvas,
.cv-brand-tile:focus-visible .cv-tile-canvas,
.cv-brand-tile.is-active .cv-tile-canvas {
  opacity: 1;
}

.cv-brand-tile:hover .cv-tile-shine,
.cv-brand-tile:focus-visible .cv-tile-shine,
.cv-brand-tile.is-active .cv-tile-shine {
  left: 125%;
}

.cv-brand-tile:hover .cv-tile-logo,
.cv-brand-tile:focus-visible .cv-tile-logo,
.cv-brand-tile.is-active .cv-tile-logo {
  transform: scale(1.04);
}

/* Brand-specific neon border glows */
.cv-brand-tile[data-brand="studios"]:hover,
.cv-brand-tile[data-brand="studios"]:focus-visible,
.cv-brand-tile[data-brand="studios"].is-active {
  border-color: rgba(255, 78, 205, 0.9);
  box-shadow: 0 18px 38px -10px rgba(0, 0, 0, 0.85), 0 0 24px rgba(255, 78, 205, 0.4), 0 0 10px rgba(0, 229, 255, 0.25);
}

.cv-brand-tile[data-brand="3d"]:hover,
.cv-brand-tile[data-brand="3d"]:focus-visible,
.cv-brand-tile[data-brand="3d"].is-active {
  border-color: rgba(139, 92, 246, 0.92);
  box-shadow: 0 18px 38px -10px rgba(0, 0, 0, 0.85), 0 0 24px rgba(139, 92, 246, 0.42), 0 0 10px rgba(56, 189, 248, 0.28);
}

.cv-brand-tile[data-brand="labs"]:hover,
.cv-brand-tile[data-brand="labs"]:focus-visible,
.cv-brand-tile[data-brand="labs"].is-active {
  border-color: rgba(16, 185, 129, 0.9);
  box-shadow: 0 18px 38px -10px rgba(0, 0, 0, 0.85), 0 0 24px rgba(16, 185, 129, 0.38), 0 0 10px rgba(45, 212, 191, 0.25);
}

.cv-brand-tile[data-brand="pxl"]:hover,
.cv-brand-tile[data-brand="pxl"]:focus-visible,
.cv-brand-tile[data-brand="pxl"].is-active {
  border-color: rgba(245, 158, 11, 0.92);
  box-shadow: 0 18px 38px -10px rgba(0, 0, 0, 0.85), 0 0 24px rgba(245, 158, 11, 0.42), 0 0 10px rgba(236, 72, 153, 0.28);
}

.cv-brand-tile[data-brand="fatty"]:hover,
.cv-brand-tile[data-brand="fatty"]:focus-visible,
.cv-brand-tile[data-brand="fatty"].is-active {
  border-color: rgba(255, 204, 34, 0.92);
  box-shadow: 0 18px 38px -10px rgba(0, 0, 0, 0.85), 0 0 24px rgba(255, 204, 34, 0.42), 0 0 10px rgba(255, 140, 36, 0.3);
}
.cv-brand-tile[data-brand="fatty"]:hover .cv-tile-logo-img,
.cv-brand-tile[data-brand="fatty"].is-active .cv-tile-logo-img {
  filter: drop-shadow(0 0 14px rgba(255, 204, 34, 0.65)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.75));
}

.cv-brand-tile[data-brand="gary"]:hover,
.cv-brand-tile[data-brand="gary"]:focus-visible,
.cv-brand-tile[data-brand="gary"].is-active {
  border-color: rgba(95, 211, 194, 0.92);
  box-shadow: 0 18px 38px -10px rgba(0, 0, 0, 0.85), 0 0 24px rgba(95, 211, 194, 0.42), 0 0 10px rgba(255, 209, 102, 0.28);
}
.cv-brand-tile[data-brand="gary"]:hover .cv-tile-logo-img,
.cv-brand-tile[data-brand="gary"].is-active .cv-tile-logo-img {
  filter: drop-shadow(0 0 14px rgba(95, 211, 194, 0.65)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.75));
}

.cv-brand-tile[data-brand="minty"]:hover,
.cv-brand-tile[data-brand="minty"]:focus-visible,
.cv-brand-tile[data-brand="minty"].is-active {
  border-color: rgba(126, 249, 180, 0.92);
  box-shadow: 0 18px 38px -10px rgba(0, 0, 0, 0.85), 0 0 24px rgba(126, 249, 180, 0.42), 0 0 10px rgba(20, 184, 166, 0.3);
}
.cv-brand-tile[data-brand="minty"]:hover .cv-tile-logo-img,
.cv-brand-tile[data-brand="minty"].is-active .cv-tile-logo-img {
  filter: drop-shadow(0 0 14px rgba(126, 249, 180, 0.65)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.75));
}

.cv-brand-tile[data-brand="ethan"]:hover,
.cv-brand-tile[data-brand="ethan"]:focus-visible,
.cv-brand-tile[data-brand="ethan"].is-active {
  border-color: rgba(0, 240, 255, 0.92);
  box-shadow: 0 18px 38px -10px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 119, 255, 0.45), 0 0 10px rgba(0, 240, 255, 0.32);
}
.cv-brand-tile[data-brand="ethan"]:hover .cv-tile-logo-img,
.cv-brand-tile[data-brand="ethan"].is-active .cv-tile-logo-img {
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.65)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.75));
}

.cv-brand-tile[data-brand="tim"]:hover,
.cv-brand-tile[data-brand="tim"]:focus-visible,
.cv-brand-tile[data-brand="tim"].is-active {
  border-color: rgba(217, 107, 39, 0.92);
  box-shadow: 0 18px 38px -10px rgba(0, 0, 0, 0.85), 0 0 24px rgba(217, 107, 39, 0.45), 0 0 10px rgba(230, 184, 122, 0.32);
}
.cv-brand-tile[data-brand="tim"]:hover .cv-tile-logo-img,
.cv-brand-tile[data-brand="tim"].is-active .cv-tile-logo-img {
  filter: drop-shadow(0 0 14px rgba(230, 184, 122, 0.6)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.75));
}

/* Mobile Compact Layout */
.cv-brand-hub.is-mobile {
  padding: 0 16px;
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}

.cv-brand-hub.is-mobile .cv-brand-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  padding: 4px 2px 8px;
}

.cv-brand-hub.is-mobile .cv-brand-tile {
  flex: 0 0 178px;
  min-width: 0;
  border-radius: 14px;
}

.cv-brand-hub.is-mobile .cv-car-arrow {
  width: 28px;
  height: 28px;
  font-size: 15px;
}
.cv-brand-hub.is-mobile .cv-car-arrow.prev { left: -6px; }
.cv-brand-hub.is-mobile .cv-car-arrow.next { right: -6px; }

.cv-brand-hub.is-mobile .cv-logo-main { font-size: 0.92rem; }
.cv-brand-hub.is-mobile .cv-logo-sub { font-size: 0.54rem; }
.cv-brand-hub.is-mobile .cv-brand-tile:hover,
.cv-brand-hub.is-mobile .cv-brand-tile.is-active {
  transform: translateZ(0) scale(1.025);
}

/* Desktop Brand Results Row */
#brand-results-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
}

#brand-results-row .poster-card {
  flex: 0 0 184px;
  min-width: 184px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

#brand-results-row .poster-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.55);
}

#brand-results-row .poster-art {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

#brand-results-row .poster-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#brand-results-row .poster-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 40px;
}

#brand-results-row .poster-ch-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(9, 11, 18, 0.84);
  color: #fbbf24;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 2px 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
}

#brand-results-row .poster-meta {
  padding: 9px 10px;
}

#brand-results-row .poster-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#brand-results-row .poster-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dedicated Brand / Character Category Page (Desktop & Mobile) */
.brand-page-view {
  padding: 16px 24px 36px;
}

.brand-page-view.hidden-view,
.hero-stage.hidden-view {
  display: none !important;
}

.brand-page-hdr {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.brand-page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
}

.brand-page-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-page-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-page-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.m-brand-page-hdr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 16px 14px;
}

.m-brand-page-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.m-brand-page-meta h2 {
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

