/**
 * Brand Bridge B2 — Movies / Artists CPT + taxonomy archives
 * Reuses category toolbar/shell/pagination; tokens mirror hubs.
 */

body.kp-bb-archives {
  --bb-bg: #f8fcff;
  --bb-bg-glow: rgba(227, 6, 19, 0.04);
  --bb-surface: #ffffff;
  --bb-surface-2: #eef6ff;
  --bb-text: #0f172a;
  --bb-muted: #64748b;
  --bb-border: #d4e5f7;
  --bb-accent: #e30613;
  --bb-accent-hover: #b8050f;
  --bb-link: #0059a8;
  --bb-radius: 0.75rem;
  --bb-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 420px at 12% -8%, var(--bb-bg-glow), transparent 55%),
    linear-gradient(180deg, #f8fcff 0%, #f3f7fb 100%) !important;
  color: var(--bb-text);
  font-family: var(--bb-font);
}

html[data-theme="dark"] body.kp-bb-archives {
  --bb-bg: #0b1220;
  --bb-bg-glow: rgba(227, 6, 19, 0.12);
  --bb-surface: #151d2e;
  --bb-surface-2: #1e293b;
  --bb-text: #f8fafc;
  --bb-muted: #94a3b8;
  --bb-border: #2a364a;
  --bb-accent: #ff4d4d;
  --bb-accent-hover: #e30613;
  --bb-link: #93c5fd;
  background:
    radial-gradient(900px 380px at 10% -10%, var(--bb-bg-glow), transparent 50%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 100%) !important;
}

body.kp-bb-archives,
body.kp-bb-archives #page,
body.kp-bb-archives .site,
body.kp-bb-archives .site-content,
body.kp-bb-archives #content,
body.kp-bb-archives .content-area,
body.kp-bb-archives .one-container .site-content {
  background: transparent !important;
  color: var(--bb-text);
}

body.kp-bb-archives #page,
body.kp-bb-archives .site {
  background: inherit !important;
}

body.kp-bb-archives .page-header,
body.kp-bb-archives #right-sidebar,
body.kp-bb-archives .generate-columns-container > .sidebar,
body.kp-bb-archives .kp-tax-filter,
body.kp-bb-archives .gp-compact-list,
body.kp-bb-archives .gp-compact-card {
  display: none !important;
}

body.kp-bb-archives .kp-movie.kp-category-layout {
  background: transparent !important;
  color: var(--bb-text) !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: grid !important;
  transform: none !important;
  font-weight: inherit !important;
  text-decoration: none !important;
  gap: inherit !important;
}

.kp-archives__meta {
  margin: -0.35rem 0 0.85rem !important;
  font-family: var(--bb-font);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bb-muted) !important;
  background: transparent !important;
}

body.kp-bb-archives .kp-archives__hero {
  margin-bottom: 0.85rem;
}

body.kp-bb-archives .kp-archives__hero .kp-movie__title,
body.kp-bb-archives .kp-archives__hero h1.kp-category__title,
body.kp-bb-archives h1.kp-movie__title,
body.kp-bb-archives h1.kp-category__title {
  margin: 0 !important;
  text-align: left !important;
  font-family: var(--bb-font) !important;
  font-weight: 800 !important;
  font-size: clamp(1.55rem, 3vw, 2.25rem) !important;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--bb-text) !important;
  background: transparent !important;
}

html[data-theme="dark"] body.kp-bb-archives .kp-archives__hero .kp-movie__title,
html[data-theme="dark"] body.kp-bb-archives .kp-archives__hero h1.kp-category__title,
html[data-theme="dark"] body.kp-bb-archives h1.kp-movie__title,
html[data-theme="dark"] body.kp-bb-archives h1.kp-category__title {
  color: #f8fafc !important;
}

body.kp-bb-archives .kp-archives__header .kp-category-toolbar {
  margin-top: 0.35rem;
}

.kp-archives-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0.75rem 0 0;
}

.kp-archives-sort__label {
  font-family: var(--bb-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bb-muted);
}

.kp-archives-sort__chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--bb-border);
  background: var(--bb-surface);
  color: var(--bb-text) !important;
  font-family: var(--bb-font);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
}

.kp-archives-sort__chip:hover {
  border-color: color-mix(in srgb, var(--bb-accent) 45%, var(--bb-border));
  color: var(--bb-accent) !important;
}

.kp-archives-sort__chip.is-active {
  background: var(--bb-accent) !important;
  border-color: var(--bb-accent) !important;
  color: #ffffff !important;
}

/* Artist archive: circular thumbs */
body.kp-bb-archives--artist .kp-archives-list--artists .kp-bb-row__media,
body.kp-bb-archives--artist .kp-archives-list--artists .kp-movie-song__media,
body.kp-bb-archives--movie .kp-archives-list--artists .kp-bb-row__media,
body.kp-bb-archives--movie .kp-archives-list--artists .kp-movie-song__media {
  border-radius: 999px;
  overflow: hidden;
}

body.kp-bb-archives .kp-category__title,
body.kp-bb-archives .kp-bb-row__title,
body.kp-bb-archives .kp-bb-row__meta,
body.kp-bb-archives .kp-movie-song__title,
body.kp-bb-archives .kp-movie-song__meta,
body.kp-bb-archives .kp-movie__related-title {
  background: transparent !important;
}

body.kp-bb-archives .kp-category-intro-wrap .kp-bb-intro__more {
  color: var(--bb-accent) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.kp-bb-archives .kp-category-intro-wrap .kp-bb-intro__more:hover {
  color: var(--bb-accent-hover) !important;
}

@media (max-width: 768px) {
  body.kp-bb-archives #content,
  body.kp-bb-archives .site-content,
  body.kp-bb-archives .content-area {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
