/**
 * Brand Bridge B2 — Front Page system
 * Source mock: baselines/design-30d/stitch-gate0/home-1280-canonical.png
 *
 * Loaded only on is_front_page(). Do not use 100vw full-bleed (causes horizontal scroll).
 */

/* ---- Tokens (light default; dark when html[data-theme="dark"]) ---- */
body.home.kp-bb-home {
  --bb-bg: #f8fcff;
  --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-radius-lg: 1rem;
  --bb-max: 72rem;
  --bb-hero-max: 42rem;
  --bb-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
  background: var(--bb-bg) !important;
  color: var(--bb-text);
  /* Do not clip on body — breaks position:sticky for the site nav */
  overflow-x: visible;
  font-family: var(--bb-font);
}

html[data-theme="dark"] body.home.kp-bb-home {
  --bb-bg: #0f172a;
  --bb-surface: #1e293b;
  --bb-surface-2: #334155;
  --bb-text: #f8fafc;
  --bb-muted: #94a3b8;
  --bb-border: #334155;
  --bb-accent: #ff4d4d;
  --bb-accent-hover: #e30613;
  --bb-link: #93c5fd;
  color-scheme: dark;
}

body.home.kp-bb-home .site,
body.home.kp-bb-home .site-content,
body.home.kp-bb-home #page {
  background: var(--bb-bg) !important;
  overflow-x: visible;
  max-width: 100%;
}

/* ---- Kill container / page chrome that fights the mock ---- */
body.home.kp-bb-home .entry-header,
body.home.kp-bb-home .site-header,
body.home.kp-bb-home header.site-header {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

body.home.kp-bb-home .site-content,
body.home.kp-bb-home .content-area,
body.home.kp-bb-home .inside-article,
body.home.kp-bb-home .entry-content,
body.home.kp-bb-home .one-container .container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  overflow-x: clip;
}

/* Accidental paste-kit comment becomes a <p> and opens a white gap under the nav */
body.home.kp-bb-home .entry-content > p:has(+ .kp-home-hero),
body.home.kp-bb-home .entry-content > p:has(+ section.kp-home-hero) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

/* Full-width bands without 100vw */
body.home.kp-bb-home .entry-content > .alignfull,
body.home.kp-bb-home .entry-content > .wp-block-group.alignfull {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.home.kp-bb-home .wp-block-group__inner-container {
  max-width: var(--bb-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

body.home.kp-bb-home .kp-home-hero .wp-block-group__inner-container {
  max-width: var(--bb-hero-max);
}

/* Kill WP block vertical rhythm stacking inside hero */
body.home.kp-bb-home .kp-home-hero .wp-block-group__inner-container > * {
  margin-block-start: 0 !important;
}

body.home.kp-bb-home .kp-home-hero .wp-block-heading {
  margin-block-end: 0.4rem !important;
}

/* ---- Header current item: Brand Bridge, not GP teal/purple ---- */
body.home.kp-bb-home .main-navigation .main-nav ul li[class*="current-menu-"] > a,
body.home.kp-bb-home .main-navigation .main-nav ul li.current-menu-item > a,
body.home.kp-bb-home .main-navigation .main-nav ul li.current-menu-ancestor > a {
  background: transparent !important;
  background-color: transparent !important;
  color: #fff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Underline is owned by brand-bridge-nav.css (::after only — no inset shadow). */
body.home.kp-bb-home .kp-site-nav__menu > li.current-menu-item > a,
body.home.kp-bb-home .kp-site-nav__menu > li.current-menu-ancestor > a {
  background: transparent !important;
  box-shadow: none !important;
}

body.home.kp-bb-home .main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

/* ---- Hero (compact — keep Song of the Day above the fold) ---- */
.kp-home-hero {
  position: relative;
  text-align: center;
  padding: 1.35rem 0 1.15rem !important;
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, color-mix(in srgb, #fde8ea 70%, transparent) 0%, transparent 52%),
    radial-gradient(ellipse 55% 45% at 88% 8%, color-mix(in srgb, var(--bb-surface-2) 90%, transparent) 0%, transparent 50%),
    linear-gradient(180deg, var(--bb-surface-2) 0%, var(--bb-bg) 78%) !important;
  border-bottom: 1px solid var(--bb-border);
  margin-top: 0 !important;
  /* Allow suggest dropdown to stack above tabs without clipping. */
  overflow: visible;
}

.kp-home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bb-accent) 0%, var(--bb-accent) 24%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.kp-home-hero__brand {
  margin: 0 0 0.55rem !important;
  padding: 0 !important;
  font-family: var(--bb-font) !important;
  font-size: clamp(1.05rem, 2vw, 1.2rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.1 !important;
  color: var(--bb-text) !important;
  text-align: center;
}

.kp-home-hero__brand span {
  color: var(--bb-accent) !important;
}

@keyframes kp-home-hero-in {
  from {
    opacity: 0;
    transform: translateY(0.45rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kp-home-hero .kp-home-hero__brand,
.kp-home-hero .kp-home-hero__title,
.kp-home-hero .kp-home-hero__lede,
.kp-home-hero .kp-home-hero__actions,
.kp-home-hero .kp-home-search,
.kp-home-hero .kp-home-tabs,
.kp-home-hero .kp-home-hero__learn {
  animation: kp-home-hero-in 0.45s ease both;
}

.kp-home-hero .kp-home-hero__title {
  animation-delay: 0.05s;
}

.kp-home-hero .kp-home-hero__lede {
  animation-delay: 0.1s;
}

.kp-home-hero .kp-home-hero__actions {
  animation-delay: 0.12s;
}

.kp-home-hero .kp-home-search {
  animation-delay: 0.15s;
}

.kp-home-hero .kp-home-tabs {
  animation-delay: 0.2s;
}

.kp-home-hero .kp-home-hero__learn {
  animation-delay: 0.25s;
}

@media (prefers-reduced-motion: reduce) {
  .kp-home-hero .kp-home-hero__brand,
  .kp-home-hero .kp-home-hero__title,
  .kp-home-hero .kp-home-hero__lede,
  .kp-home-hero .kp-home-search,
  .kp-home-hero .kp-home-tabs,
  .kp-home-hero .kp-home-hero__learn {
    animation: none;
  }
}

.kp-home-hero__title,
.kp-home-hero h1 {
  margin: 0 0 0.5rem !important;
  font-family: var(--bb-font) !important;
  font-size: clamp(1.55rem, 3vw, 2.25rem) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em;
  color: var(--bb-text) !important;
}

.kp-home-hero__lede {
  margin: 0 auto 1rem !important;
  max-width: 36rem;
  font-size: 0.98rem !important;
  line-height: 1.55 !important;
  color: var(--bb-muted) !important;
}

.kp-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 1.1rem !important;
}

.kp-home-hero a.kp-home-hero__app,
.kp-home-hero .kp-home-hero__app {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.55rem 1.2rem !important;
  border: 0 !important;
  border-radius: 0.7rem !important;
  background: var(--bb-accent) !important;
  box-shadow: none !important;
  font-family: var(--bb-font) !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
  color: #fff !important;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.15s ease;
}

.kp-home-hero a.kp-home-hero__app:hover,
.kp-home-hero a.kp-home-hero__app:focus-visible,
.kp-home-hero .kp-home-hero__app:hover,
.kp-home-hero .kp-home-hero__app:focus-visible {
  background: var(--bb-accent-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .kp-home-hero a.kp-home-hero__app:hover,
  .kp-home-hero a.kp-home-hero__app:focus-visible {
    transform: none;
  }
}

.kp-home-search {
  position: relative;
  z-index: 30;
  max-width: 40rem;
  margin: 0 auto 0.9rem !important;
}

.kp-home-search__form {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
}

.kp-home-search__field {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.kp-home-search__icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bb-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.kp-home-search__input {
  width: 100%;
  min-height: 3rem;
  height: 3rem;
  margin: 0;
  padding: 0 1rem 0 2.65rem !important;
  border: 1px solid var(--bb-border) !important;
  border-radius: var(--bb-radius) !important;
  background: var(--bb-surface) !important;
  color: var(--bb-text) !important;
  font-family: var(--bb-font) !important;
  font-size: 0.95rem !important;
  line-height: 1.3 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kp-home-search__input::placeholder {
  color: var(--bb-muted);
  opacity: 1;
}

.kp-home-search__input:focus {
  border-color: var(--bb-accent) !important;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.15) !important;
}

.kp-home-search__submit {
  flex: 0 0 auto;
  min-width: 6.75rem;
  min-height: 3rem;
  padding: 0 1.15rem;
  border: 0;
  border-radius: var(--bb-radius);
  background: var(--bb-accent);
  color: #fff;
  font-family: var(--bb-font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(227, 6, 19, 0.28);
  transition: background 0.15s ease, transform 0.15s ease;
}

.kp-home-search__submit:hover,
.kp-home-search__submit:focus-visible {
  background: var(--bb-accent-hover);
  outline: none;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .kp-home-search__submit:hover,
  .kp-home-search__submit:focus-visible {
    transform: none;
  }
}

/* Hide any leftover ASP chrome inside the search slot */
.kp-home-search .asp_w,
.kp-home-search .asp_m,
.kp-home-search .asp_w_container,
.kp-home-search .ajaxsearchpro {
  display: none !important;
}

.kp-home-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1rem 1.25rem;
  margin: 0 auto 0.55rem;
  max-width: 34rem;
  min-height: 2.4rem;
  border-bottom: 1px solid color-mix(in srgb, var(--bb-border) 80%, transparent);
}

.kp-home-tabs__item {
  padding: 0.4rem 0.1rem 0.55rem;
  border-bottom: 2px solid transparent;
  color: var(--bb-muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.kp-home-tabs__item:hover {
  color: var(--bb-text);
}

.kp-home-tabs__item.is-active {
  color: var(--bb-text);
  border-bottom-color: var(--bb-accent);
}

.kp-home-hero__learn {
  margin: 0 !important;
}

.kp-home-hero__learn a {
  color: var(--bb-link);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
}

.kp-home-hero__learn a:hover {
  color: var(--bb-accent);
  text-decoration: underline;
}

/* ---- Popular (SEO chips) ---- */
.kp-home-popular {
  padding: 0.85rem 0 0.15rem !important;
  background: var(--bb-bg) !important;
}

.kp-home-popular__title {
  margin: 0 0 0.55rem !important;
  font-family: var(--bb-font) !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8 !important;
}

.kp-home-popular__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.5rem;
  margin: 0 auto;
  max-width: 44rem;
  /* Reserve space before chips paint (CLS). */
  min-height: 2.5rem;
}

.kp-home-popular__chip,
.kp-home-popular a.kp-home-popular__chip {
  display: inline-flex !important;
  align-items: center;
  padding: 0.4rem 0.85rem !important;
  border: 1px solid var(--bb-border) !important;
  border-radius: 999px !important;
  background: var(--bb-surface) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  color: var(--bb-muted) !important;
  font-family: var(--bb-font) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.kp-home-popular__chip:hover,
.kp-home-popular a.kp-home-popular__chip:hover {
  color: var(--bb-accent) !important;
  border-color: color-mix(in srgb, var(--bb-accent) 35%, var(--bb-border)) !important;
  background: #fde8ea !important;
}

/* Legacy ·-separated links (pre-repaste) */
.kp-home-popular__links,
.kp-home-popular a:not(.kp-home-popular__chip) {
  color: var(--bb-muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.kp-home-popular a:not(.kp-home-popular__chip):hover {
  color: var(--bb-accent);
}

/* ---- Feature grid ---- */
.kp-home-feature {
  padding: 1.15rem 0 1rem !important;
  background: var(--bb-bg) !important;
}

.kp-home-columns--canonical {
  align-items: flex-start !important;
  gap: 2.5rem !important;
  max-width: var(--bb-max);
  margin: 0 auto;
}

@media (max-width: 781px) {
  .kp-home-columns--canonical,
  .kp-home-columns {
    flex-direction: column !important;
  }
}

.kp-home-section-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem !important;
  font-family: var(--bb-font) !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: var(--bb-text) !important;
}

.kp-home-section-title--star::before,
.kp-home-section-title--trend::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 1.1rem;
  background: var(--bb-accent);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.kp-home-section-title--star::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
}

.kp-home-section-title--trend::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z'/%3E%3C/svg%3E");
}

.kp-home-main .kp-home-section-title--trend,
.kp-home-main .kp-home-section-title--sargam,
.kp-home-section-title--sargam,
.kp-home-more + .kp-home-section-title,
p.kp-home-more + .kp-home-section-title,
.kp-home-more + h2.kp-home-section-title {
  margin-top: 2.75rem !important;
}

.kp-home-more {
  margin: 0.75rem 0 0 !important;
}

.kp-home-more a {
  color: var(--bb-accent);
  font-weight: 600;
  text-decoration: none;
}

.kp-home-more a:hover {
  text-decoration: underline;
}

/* ---- Shortcode cards ---- */
.kp-home-sotd {
  position: relative;
  display: block;
  height: 16rem;
  border-radius: var(--bb-radius-lg);
  overflow: hidden;
  text-decoration: none !important;
  color: #fff;
  background-color: #1a1a2e;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kp-home-sotd__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
}

@media (min-width: 640px) {
  .kp-home-sotd {
    height: 20rem;
  }
}

.kp-home-sotd:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .kp-home-sotd:hover {
    transform: none;
  }
}

.kp-home-sotd__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.15) 100%),
    linear-gradient(115deg, rgba(227, 6, 19, 0.22), transparent 55%);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.kp-home-sotd:hover .kp-home-sotd__shade {
  opacity: 0.95;
}

.kp-home-sotd__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.kp-home-sotd__badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(227, 6, 19, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

.kp-home-sotd__title {
  font-family: var(--bb-font);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.kp-home-sotd__meta {
  font-size: 0.95rem;
  color: #e2e8f0;
}

.kp-home-sotd__cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  opacity: 0.92;
}

.kp-home-sotd:hover .kp-home-sotd__cta {
  opacity: 1;
}

.kp-home-trending {
  display: flex;
  flex-direction: column;
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.kp-home-trending__infeed {
  width: 100%;
  margin: 0;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--bb-border);
  box-sizing: border-box;
}

.kp-home-trending__infeed:last-child {
  border-bottom: 0;
}

.kp-home-trending__infeed .kp-bb-ad__label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bb-muted);
}

.kp-home-trending__infeed .kp-bb-ad__box {
  width: 100%;
  max-width: 100% !important;
  min-height: 120px;
}

.kp-home-row {
  display: flex !important;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  margin: 0 !important;
  text-decoration: none !important;
  color: inherit;
  border: 0 !important;
  border-bottom: 1px solid var(--bb-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: background 0.15s ease;
}

.kp-home-row:last-child {
  border-bottom: 0 !important;
}

.kp-home-row:hover {
  background: var(--bb-surface-2) !important;
}

.kp-home-row__rank {
  flex: 0 0 1.75rem;
  width: 1.75rem;
  font-family: var(--bb-font);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bb-muted);
  text-align: center;
  line-height: 1;
}

.kp-home-row__rank--1 {
  color: var(--bb-accent);
}

.kp-home-row__thumb,
.kp-home-row picture.kp-home-row__thumb {
  width: 56px !important;
  height: 56px !important;
  border-radius: 0.45rem;
  object-fit: cover;
  flex: 0 0 56px;
  margin: 0 !important;
  overflow: hidden;
}

.kp-home-row picture.kp-home-row__thumb img {
  width: 56px !important;
  height: 56px !important;
  object-fit: cover;
  display: block;
}

.kp-home-row__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.kp-home-row__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--bb-text);
}

.kp-home-row:hover .kp-home-row__title {
  color: var(--bb-accent);
}

.kp-home-row__meta {
  font-size: 0.85rem;
  color: var(--bb-muted);
}

.kp-home-diff {
  flex: 0 0 auto;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kp-home-diff--beginner {
  background: #e0f2fe;
  color: #075985;
}

.kp-home-diff--easy {
  background: #dcfce7;
  color: #166534;
}

.kp-home-diff--med {
  background: #fef9c3;
  color: #854d0e;
}

.kp-home-diff--hard {
  background: #fee2e2;
  color: #991b1b;
}

.kp-home-spotlight {
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.kp-home-spotlight__banner {
  height: 6.5rem;
  background:
    radial-gradient(ellipse 80% 120% at 90% 20%, color-mix(in srgb, var(--bb-accent) 35%, transparent) 0%, transparent 55%),
    linear-gradient(115deg, #0f172a 0%, #1e293b 55%, #334155 100%);
}

.kp-home-spotlight__avatar {
  margin: -2.75rem 0 0 1.25rem;
  position: relative;
  z-index: 1;
}

.kp-home-spotlight__body {
  padding: 0.85rem 1.25rem 1.25rem;
}

.kp-home-spotlight__eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bb-accent);
}

.kp-home-spotlight__name {
  margin: 0.25rem 0 0.4rem;
  font-family: var(--bb-font);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bb-text);
}

.kp-home-spotlight__blurb {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--bb-muted);
}

.kp-home-spotlight__cta {
  display: block;
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: var(--bb-radius);
  border: 1px solid var(--bb-accent);
  background: var(--bb-accent);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.kp-home-spotlight__cta:hover {
  background: var(--bb-accent-hover);
  border-color: var(--bb-accent-hover);
  color: #fff !important;
}

/* ---- Ads ---- */
.kp-home-ad {
  margin: 1rem 0 0;
  text-align: center;
}

.kp-home-ad--leader {
  margin-top: 2.25rem !important;
}

.kp-home-ad__label {
  display: block;
  font-size: 0.625rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bb-muted) !important;
  margin: 0 0 0.35rem !important;
}

.kp-home-ad__box {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bb-border);
  border-radius: 0.5rem;
  background: var(--bb-surface-2);
  color: var(--bb-muted);
  font-weight: 600;
  box-sizing: border-box;
}

.kp-home-ad__box--300 {
  width: min(300px, 100%);
  min-height: 250px;
}

.kp-home-ad__box--728 {
  width: min(728px, 100%);
  min-height: 90px;
}

/* ---- Homepage app download CTA ---- */
.kp-home-app-wrap,
.wp-block-group.kp-home-app-wrap {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  background: transparent !important;
  border: 0 !important;
}

.kp-home-app {
  margin: 0 !important;
  padding: 2.5rem 0 !important;
  background:
    radial-gradient(ellipse 70% 80% at 100% 50%, color-mix(in srgb, var(--bb-accent) 14%, transparent) 0%, transparent 55%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f172a 100%) !important;
  border-top: 1px solid #334155;
  border-bottom: 1px solid #334155;
  color: #f8fafc;
}

.kp-home-app__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0 1.15rem;
  box-sizing: border-box;
}

@media (min-width: 800px) {
  .kp-home-app__inner {
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 2rem;
    padding: 0 1.5rem;
  }
}

.kp-home-app__eyebrow {
  margin: 0 0 0.4rem !important;
  font-family: var(--bb-font) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff4d4d !important;
}

.kp-home-app__title {
  margin: 0 0 0.55rem !important;
  font-family: var(--bb-font) !important;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #f8fafc !important;
}

.kp-home-app__lede {
  margin: 0 0 1rem !important;
  max-width: 36rem;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.55;
  color: #94a3b8 !important;
}

.kp-home-app__points {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: grid;
  gap: 0.45rem;
}

.kp-home-app__points li {
  position: relative;
  margin: 0 !important;
  padding: 0 0 0 1.15rem !important;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: #e2e8f0 !important;
}

.kp-home-app__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #ff4d4d;
}

.kp-home-app__action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

@media (min-width: 800px) {
  .kp-home-app__action {
    align-items: flex-end;
    min-width: 14rem;
  }
}

.kp-home-app a.kp-home-app__cta,
.kp-home-app .kp-home-app__cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.4rem !important;
  border: 0 !important;
  border-radius: 0.75rem !important;
  /* #ff4d4d + white ~3.3:1 fails a11y; accent #e30613 + white ~4.9:1 */
  background: var(--bb-accent, #e30613) !important;
  box-shadow: none !important;
  font-family: var(--bb-font) !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.kp-home-app a.kp-home-app__cta:hover,
.kp-home-app a.kp-home-app__cta:focus-visible,
.kp-home-app .kp-home-app__cta:hover,
.kp-home-app .kp-home-app__cta:focus-visible {
  background: var(--bb-accent-hover, #b8050f) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: none !important;
}

.kp-home-app__meta {
  margin: 0 !important;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8 !important;
  text-align: center;
}

@media (min-width: 800px) {
  .kp-home-app__meta {
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kp-home-app a.kp-home-app__cta:hover,
  .kp-home-app a.kp-home-app__cta:focus-visible {
    transform: none;
  }
}

/* ---- Guide ---- */
.kp-home-guide {
  margin: 0 !important;
  padding: 2.75rem 0 !important;
  background: var(--bb-bg) !important;
  border-top: 1px solid var(--bb-border);
  border-bottom: 1px solid var(--bb-border);
}

.kp-home-guide__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title more"
    "intro intro"
    "grid grid";
  column-gap: 1rem;
  row-gap: 0.35rem;
  align-items: baseline;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
}

.kp-home-guide__card::before {
  display: none !important;
}

.kp-home-guide__head {
  grid-area: title;
  display: contents;
}

.kp-home-guide__title {
  grid-area: title;
  margin: 0 !important;
  font-family: var(--bb-font) !important;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: var(--bb-text) !important;
}

.kp-home-guide__head .kp-home-more,
.kp-home-guide__card > .kp-home-more {
  grid-area: more;
  margin: 0 !important;
  justify-self: end;
  white-space: nowrap;
}

.kp-home-guide__head .kp-home-more a,
.kp-home-guide__card > .kp-home-more a {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
}

.kp-home-guide__intro {
  grid-area: intro;
  margin: 0 0 1.15rem !important;
  max-width: 40rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--bb-muted);
}

.kp-home-guide__grid {
  grid-area: grid;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--bb-border);
}

@media (min-width: 700px) {
  .kp-home-guide__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.kp-home-guide__item {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 1.15rem 0 0;
}

@media (min-width: 700px) {
  .kp-home-guide__item {
    padding: 1.25rem 1.5rem 0 0;
  }

  .kp-home-guide__item + .kp-home-guide__item {
    padding-left: 1.5rem;
    padding-right: 0;
    border-left: 1px solid var(--bb-border);
  }
}

.kp-home-guide__sample {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 0.5rem;
  background: var(--bb-surface) !important;
  border: 1px solid var(--bb-border);
  font-family: var(--bb-font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bb-text);
  line-height: 1.2;
}

.kp-home-guide__sample span {
  color: var(--bb-muted);
  font-weight: 500;
  letter-spacing: 0;
}

.kp-home-guide__sample em {
  font-style: normal;
  color: var(--bb-accent);
  font-weight: 800;
}

.kp-home-guide__icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--bb-accent) 10%, var(--bb-surface));
  border: 1px solid color-mix(in srgb, var(--bb-accent) 22%, var(--bb-border));
  color: var(--bb-accent);
}

.kp-home-guide__icon svg {
  display: block;
}

.kp-home-guide__h {
  margin: 0;
  font-family: var(--bb-font);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bb-text);
}

.kp-home-guide__item p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bb-muted);
  line-height: 1.55;
}

@media (max-width: 420px) {
  .kp-home-guide__card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "intro"
      "grid"
      "more";
  }

  .kp-home-guide__head .kp-home-more,
  .kp-home-guide__card > .kp-home-more {
    justify-self: start;
    margin-top: 0.75rem !important;
  }
}

/* ---- Browse by movie / artist (stacked catalog bands) ---- */
.kp-home-tax {
  padding: 2.75rem 0 !important;
  background: var(--bb-surface) !important;
  border-top: 1px solid var(--bb-border);
}

.kp-home-tax__grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2.75rem !important;
  width: 100%;
  margin: 0 !important;
  flex-wrap: unset !important;
  align-items: stretch !important;
}

.kp-home-tax__grid > .wp-block-column,
.kp-home-tax__panel {
  min-width: 0;
  margin: 0 !important;
  flex-basis: auto !important;
  width: auto !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title more"
    "lede lede"
    "browse browse";
  column-gap: 1rem;
  row-gap: 0.35rem;
  align-items: baseline;
}

.kp-home-tax__panel + .kp-home-tax__panel,
.kp-home-tax__grid > .wp-block-column + .wp-block-column {
  padding-top: 2.75rem;
  border-top: 1px solid var(--bb-border);
}

.kp-home-tax__panel .kp-home-section-title,
.kp-home-tax__panel > h2,
.kp-home-tax__panel .wp-block-heading {
  grid-area: title;
  margin: 0 !important;
  font-family: var(--bb-font) !important;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: var(--bb-text) !important;
}

.kp-home-tax__lede {
  grid-area: lede;
  margin: 0 0 0.85rem !important;
  font-size: 0.92rem !important;
  font-weight: 500;
  line-height: 1.5;
  color: var(--bb-muted) !important;
}

.kp-home-tax__panel .kp-home-more {
  grid-area: more;
  margin: 0 !important;
  justify-self: end;
  white-space: nowrap;
}

.kp-home-tax__panel .kp-home-more a {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
}

@media (max-width: 420px) {
  .kp-home-tax__grid > .wp-block-column,
  .kp-home-tax__panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "lede"
      "browse"
      "more";
  }

  .kp-home-tax__panel .kp-home-more {
    justify-self: start;
    margin-top: 0.35rem !important;
  }
}

.kp-home-browse {
  grid-area: browse;
  display: grid;
  gap: 0.85rem 0.75rem;
  margin: 0;
  width: 100%;
}

.kp-home-browse--movie {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 720px) {
  .kp-home-browse--movie {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem 0.85rem;
  }
}

.kp-home-browse--artist {
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .kp-home-browse--artist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 1rem;
  }
}

@media (min-width: 960px) {
  .kp-home-browse--artist {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.kp-home-browse__item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  min-width: 0;
  text-align: left;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.15s ease;
}

.kp-home-browse--movie .kp-home-browse__item {
  align-items: stretch;
}

.kp-home-browse--artist .kp-home-browse__item {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.kp-home-browse--artist .kp-home-browse__item:hover {
  transform: none;
  background: color-mix(in srgb, var(--bb-surface-2) 88%, var(--bb-accent) 12%);
  border-color: color-mix(in srgb, var(--bb-accent) 28%, var(--bb-border));
}

.kp-home-browse--movie .kp-home-browse__item:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .kp-home-browse--movie .kp-home-browse__item:hover {
    transform: none;
  }
}

.kp-home-browse__poster {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--bb-surface-2);
  border: 1px solid var(--bb-border);
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kp-home-browse__poster img,
.kp-home-browse__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kp-home-browse__item:hover .kp-home-browse__poster {
  border-color: color-mix(in srgb, var(--bb-accent) 45%, var(--bb-border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--bb-accent) 20%, transparent);
}

.kp-home-browse__avatar,
.kp-home-browse__avatar.kp-circle-img,
picture.kp-home-browse__avatar {
  flex-shrink: 0;
  display: block !important;
  box-sizing: border-box !important;
  --kp-circle-size: 4.5rem;
  width: var(--kp-circle-size) !important;
  height: var(--kp-circle-size) !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.kp-home-browse__avatar img,
.kp-home-browse__avatar.kp-circle-img img,
picture.kp-home-browse__avatar img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.kp-home-browse__item:hover .kp-home-browse__avatar,
.kp-home-browse__item:hover .kp-home-browse__avatar.kp-circle-img--border,
.kp-home-browse__item:hover picture.kp-home-browse__avatar {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--bb-accent) 28%, transparent);
}

.kp-home-browse__name {
  font-family: var(--bb-font);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--bb-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.kp-home-browse--movie .kp-home-browse__name {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  min-height: 2.6em;
}

.kp-home-browse--artist .kp-home-browse__name {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 700;
  -webkit-line-clamp: 2;
}

.kp-home-browse__item:hover .kp-home-browse__name {
  color: var(--bb-accent);
}

/* ---- FAQ ---- */
.kp-home-faq-wrap {
  padding: 1.75rem 0 2.5rem !important;
  background: var(--bb-bg) !important;
}

.kp-home-faq-wrap__title,
.kp-home-faq-wrap > h2,
.kp-home-faq-wrap .wp-block-heading.has-text-align-center {
  margin: 0 0 0.25rem !important;
  font-family: var(--bb-font) !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: var(--bb-text) !important;
}

.kp-home-faq {
  margin-top: 1rem;
  padding: 0.35rem 1.35rem 0.5rem;
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-lg);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.kp-home-faq__item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--bb-border);
}

.kp-home-faq__item:last-child {
  border-bottom: 0;
}

.kp-home-faq h3,
.kp-home-faq .wp-block-heading,
.kp-home-faq__item h3 {
  margin: 0 0 0.35rem !important;
  font-family: var(--bb-font) !important;
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  color: var(--bb-text) !important;
}

.kp-home-faq p,
.kp-home-faq__item p {
  margin: 0 !important;
  color: var(--bb-muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.kp-home-footnote {
  margin-top: 1.25rem !important;
  font-size: 0.85rem !important;
  color: var(--bb-muted) !important;
}

/* ---- Dark mode: force surfaces + readable type (beats WP block inline / cache) ---- */
html[data-theme="dark"] body.home.kp-bb-home .kp-home-hero {
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, color-mix(in srgb, #3f1d22 75%, transparent) 0%, transparent 52%),
    radial-gradient(ellipse 55% 45% at 88% 8%, color-mix(in srgb, var(--bb-surface) 80%, transparent) 0%, transparent 50%),
    linear-gradient(180deg, var(--bb-surface) 0%, var(--bb-bg) 78%) !important;
  border-color: var(--bb-border) !important;
  color: var(--bb-text) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-popular,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-feature,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-faq-wrap,
html[data-theme="dark"] body.home.kp-bb-home .wp-block-group.kp-home-popular,
html[data-theme="dark"] body.home.kp-bb-home .wp-block-group.kp-home-feature,
html[data-theme="dark"] body.home.kp-bb-home .wp-block-group.kp-home-faq-wrap {
  background: var(--bb-bg) !important;
  background-image: none !important;
  color: var(--bb-text) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-app,
html[data-theme="dark"] body.home.kp-bb-home .wp-block-group.kp-home-app {
  background:
    radial-gradient(ellipse 70% 80% at 100% 50%, color-mix(in srgb, #ff4d4d 16%, transparent) 0%, transparent 55%),
    linear-gradient(135deg, #0b1220 0%, #152033 55%, #0b1220 100%) !important;
  border-color: #2a3a52 !important;
}

html[data-theme="dark"] body.home.kp-bb-home a.kp-home-app__cta,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-app__cta {
  background: #e30613 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.home.kp-bb-home a.kp-home-app__cta:hover,
html[data-theme="dark"] body.home.kp-bb-home a.kp-home-app__cta:focus-visible {
  background: #b8050f !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-tax,
html[data-theme="dark"] body.home.kp-bb-home .wp-block-group.kp-home-tax {
  background: var(--bb-surface) !important;
  background-image: none !important;
  color: var(--bb-text) !important;
  border-color: var(--bb-border) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-guide,
html[data-theme="dark"] body.home.kp-bb-home .wp-block-group.kp-home-guide {
  background: var(--bb-bg) !important;
  background-image: none !important;
  color: var(--bb-text) !important;
  border-color: var(--bb-border) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-faq,
html[data-theme="dark"] body.home.kp-bb-home .wp-block-group.kp-home-faq,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-trending,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-spotlight,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-search__input,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-popular__chip {
  background: var(--bb-surface) !important;
  background-image: none !important;
  border-color: var(--bb-border) !important;
  color: var(--bb-text) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-guide__card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Field is a layout wrapper only — never a second bordered box around the input. */
html[data-theme="dark"] body.home.kp-bb-home .kp-home-search__field {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-popular__chip:hover {
  background: color-mix(in srgb, #3f1d22 80%, var(--bb-surface)) !important;
  border-color: color-mix(in srgb, var(--bb-accent) 40%, var(--bb-border)) !important;
  color: var(--bb-accent) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-hero__brand,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-tax .kp-home-section-title,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-tax h2,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-faq-wrap > h2,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-faq-wrap .wp-block-heading,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-faq-wrap__title,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-faq h3,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-faq .wp-block-heading,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-guide__title,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-guide__h,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-browse__name,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-section-title,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-row__title {
  color: var(--bb-text) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-hero__brand span {
  color: var(--bb-accent) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-row__rank {
  color: var(--bb-muted) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-row__rank--1 {
  color: var(--bb-accent) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-faq p,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-faq .wp-block-paragraph,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-guide__intro,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-guide__item p,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-hero__lede,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-row__meta,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-footnote {
  color: var(--bb-muted) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-faq__item {
  border-color: var(--bb-border) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-guide__icon {
  background: color-mix(in srgb, var(--bb-accent) 16%, var(--bb-surface)) !important;
  border-color: color-mix(in srgb, var(--bb-accent) 30%, var(--bb-border)) !important;
  color: var(--bb-accent) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-guide__sample {
  background: var(--bb-surface) !important;
  border-color: var(--bb-border) !important;
  color: var(--bb-text) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-guide__sample span {
  color: var(--bb-muted) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-guide__sample em {
  color: var(--bb-accent) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-guide__grid,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-guide__item + .kp-home-guide__item {
  border-color: var(--bb-border) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-search__input {
  color: var(--bb-text) !important;
  -webkit-text-fill-color: var(--bb-text) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-search__icon {
  color: var(--bb-muted) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-ad__box {
  background: var(--bb-surface) !important;
  border-color: var(--bb-border) !important;
  border-style: dashed;
  color: var(--bb-muted) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-circle-img--border {
  border-color: var(--bb-surface) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-browse__poster {
  background: var(--bb-surface-2) !important;
  border-color: var(--bb-border) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-browse--artist .kp-home-browse__item:hover {
  background: color-mix(in srgb, var(--bb-surface-2) 70%, #3f1d22 30%) !important;
  border-color: color-mix(in srgb, var(--bb-accent) 35%, var(--bb-border)) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-tax__panel + .kp-home-tax__panel,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-tax__grid > .wp-block-column + .wp-block-column {
  border-top-color: var(--bb-border) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-tax__lede {
  color: var(--bb-muted) !important;
}

html[data-theme="dark"] body.home.kp-bb-home a.kp-home-hero__app,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-hero__app {
  background: #e30613 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.home.kp-bb-home a.kp-home-hero__app:hover,
html[data-theme="dark"] body.home.kp-bb-home a.kp-home-hero__app:focus-visible {
  background: #b8050f !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-hero__learn a,
html[data-theme="dark"] body.home.kp-bb-home .kp-home-more a {
  color: var(--bb-accent) !important;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-diff--beginner {
  background: #0c4a6e;
  color: #bae6fd;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-diff--easy {
  background: #14532d;
  color: #bbf7d0;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-diff--med {
  background: #713f12;
  color: #fde68a;
}

html[data-theme="dark"] body.home.kp-bb-home .kp-home-diff--hard {
  background: #7f1d1d;
  color: #fecaca;
}

/* ---- Mobile ≤768: Brand Bridge home-dark-390 / home-390 layout ---- */
@media (max-width: 768px) {
  body.home.kp-bb-home,
  body.home.kp-bb-home .site,
  body.home.kp-bb-home .site-content,
  body.home.kp-bb-home #page,
  body.home.kp-bb-home .entry-content {
    overflow-x: clip !important;
    max-width: 100% !important;
  }

  body.home.kp-bb-home .entry-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.home.kp-bb-home .entry-content > .wp-block-group,
  body.home.kp-bb-home .entry-content > .wp-block-group > .wp-block-group__inner-container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
  }

  body.home.kp-bb-home .entry-content > .wp-block-group.alignfull {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.home.kp-bb-home .entry-content > .wp-block-group.alignfull > .wp-block-group__inner-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .kp-home-hero {
    text-align: left !important;
    padding: 0.95rem 0 0.75rem !important;
    border-bottom: 0 !important;
    background:
      radial-gradient(ellipse 80% 60% at 0% 0%, color-mix(in srgb, #fde8ea 55%, transparent) 0%, transparent 50%),
      var(--bb-bg) !important;
  }

  .kp-home-hero .has-text-align-center,
  .kp-home-hero__title.has-text-align-center,
  .kp-home-hero__lede.has-text-align-center,
  .kp-home-hero__learn.has-text-align-center,
  .kp-home-hero__brand {
    text-align: left !important;
  }

  .kp-home-hero__brand {
    margin-bottom: 0.4rem !important;
    font-size: 1rem !important;
  }

  .kp-home-hero__title,
  .kp-home-hero h1 {
    font-size: 1.35rem !important;
    text-align: left !important;
    margin: 0 0 0.35rem !important;
    padding: 0 !important;
  }

  .kp-home-hero__lede {
    margin: 0 0 0.7rem !important;
    max-width: 22rem;
    font-size: 0.85rem !important;
    text-align: left !important;
  }

  .kp-home-search {
    max-width: none;
    margin: 0 0 0.65rem !important;
    width: 100% !important;
  }

  .kp-home-search__form {
    flex-direction: column;
    gap: 0.65rem;
  }

  .kp-home-search__input {
    min-height: 3rem !important;
    height: 3rem !important;
    border-radius: 999px !important;
    font-size: 0.95rem !important;
    padding-left: 2.85rem !important;
  }

  .kp-home-search__icon {
    left: 1.05rem;
  }

  .kp-home-search__submit {
    width: 100%;
    min-width: 0;
    min-height: 3rem;
    border-radius: 999px;
  }

  /* Pill tabs (mock) — kill underline-row double line */
  .kp-home-tabs {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 0 0.85rem !important;
    padding: 0 0 0.1rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  .kp-home-tabs::-webkit-scrollbar {
    display: none;
  }

  .kp-home-tabs__item {
    flex: 0 0 auto !important;
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
    border: 1px solid var(--bb-border) !important;
    border-radius: 999px !important;
    background: var(--bb-surface) !important;
    color: var(--bb-muted) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
  }

  .kp-home-tabs__item:hover {
    color: var(--bb-text) !important;
    background: var(--bb-surface-2) !important;
  }

  .kp-home-tabs__item.is-active {
    background: var(--bb-accent) !important;
    border-color: var(--bb-accent) !important;
    color: #fff !important;
  }

  .kp-home-hero__learn {
    text-align: left !important;
    margin-top: 0.15rem !important;
  }

  .kp-home-hero__learn a {
    color: var(--bb-accent) !important;
    font-size: 0.8rem !important;
  }

  /* Quiet SEO strip — not in mobile mock */
  .kp-home-popular {
    display: none !important;
  }

  .kp-home-feature {
    padding: 0.75rem 0 0.35rem !important;
  }

  .kp-home-columns--canonical,
  .kp-home-columns {
    flex-direction: column !important;
    gap: 1.35rem !important;
    margin: 0 !important;
  }

  .kp-home-main,
  .kp-home-rail,
  .kp-home-columns .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .kp-home-section-title {
    font-size: 1.12rem !important;
  }

  .kp-home-sotd {
    height: 12.5rem;
    border-radius: 0.75rem;
    width: 100%;
  }

  .kp-home-sotd__body {
    padding: 1.1rem;
  }

  .kp-home-sotd__title {
    font-size: 1.15rem;
  }

  .kp-home-trending,
  .kp-home-spotlight {
    width: 100%;
    max-width: 100%;
    border-radius: 0.75rem;
    box-sizing: border-box;
  }

  .kp-home-row {
    padding: 0.7rem 0.8rem;
    gap: 0.65rem;
  }

  .kp-home-row__rank {
    flex-basis: 1.35rem;
    width: 1.35rem;
    font-size: 0.85rem;
  }

  .kp-home-row__thumb,
  .kp-home-row picture.kp-home-row__thumb,
  .kp-home-row picture.kp-home-row__thumb img {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px;
  }

  .kp-home-row__title {
    font-size: 0.92rem !important;
  }

  .kp-home-ad {
    margin: 0.5rem 0 0;
  }

  /*
   * Leader uses the same responsive unit on mobile; keep it visible.
   */

  .kp-home-ad__box--300 {
    width: 100% !important;
    max-width: 300px;
  }

  .kp-home-guide {
    margin: 0.75rem 0 0 !important;
    padding: 0.85rem 0 0.5rem !important;
    border: 0 !important;
    background: transparent !important;
  }

  .kp-home-guide__card {
    padding: 0 !important;
    border-radius: 0 !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .kp-home-guide__title {
    font-size: 1.1rem !important;
  }

  .kp-home-guide__grid {
    grid-template-columns: 1fr !important;
  }

  .kp-home-guide__item + .kp-home-guide__item {
    border-left: 0 !important;
    padding-left: 0 !important;
    margin-top: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bb-border);
  }

  .kp-home-tax,
  .kp-home-faq-wrap {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .kp-home-tax__grid {
    gap: 2rem !important;
  }

  .kp-home-tax__panel + .kp-home-tax__panel,
  .kp-home-tax__grid > .wp-block-column + .wp-block-column {
    padding-top: 2rem;
  }

  .kp-home-browse--movie {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.75rem 0.5rem;
  }

  .kp-home-browse--artist {
    grid-template-columns: 1fr !important;
    gap: 0.3rem;
  }

  .kp-home-browse--artist .kp-home-browse__avatar,
  .kp-home-browse--artist .kp-home-browse__avatar.kp-circle-img,
  .kp-home-browse--artist picture.kp-home-browse__avatar {
    --kp-circle-size: 4rem;
  }

  .kp-home-browse--movie .kp-home-browse__name {
    font-size: 0.72rem;
    min-height: 2.4em;
  }

  .kp-home-browse--artist .kp-home-browse__name {
    font-size: 0.86rem;
  }

  .kp-home-tax__panel .kp-home-more a {
    font-size: 0.8125rem !important;
  }

  .kp-home-faq {
    padding: 0.95rem !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .kp-home-faq h3,
  .kp-home-faq .wp-block-heading {
    font-size: 0.98rem !important;
  }

  .kp-home-more a {
    font-size: 0.9rem;
  }
}

/* ---- Sargam Section & Rail Card Enhancements ---- */
.kp-home-section-title--sargam::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 1.1rem;
  background: var(--bb-accent);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z'/%3E%3C/svg%3E");
}

.kp-home-sargam-card {
  margin-top: 1.5rem;
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-lg);
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.kp-home-sargam-card__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.kp-home-sargam-card__icon {
  font-size: 1.35rem;
  line-height: 1;
}

.kp-home-sargam-card__title {
  margin: 0 !important;
  font-family: var(--bb-font) !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: var(--bb-text) !important;
}

.kp-home-sargam-card__desc {
  margin: 0 0 0.95rem !important;
  font-size: 0.875rem !important;
  line-height: 1.55 !important;
  color: var(--bb-muted) !important;
}

.kp-home-sargam-card__links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.kp-home-sargam-card__links li {
  margin: 0 !important;
  padding: 0 !important;
}

.kp-home-sargam-card__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  border-radius: var(--bb-radius);
  background: var(--bb-surface-2);
  border: 1px solid var(--bb-border);
  color: var(--bb-text) !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.kp-home-sargam-card__links a:hover {
  background: color-mix(in srgb, var(--bb-accent) 10%, var(--bb-surface-2));
  border-color: var(--bb-accent);
  color: var(--bb-accent) !important;
  transform: translateX(2px);
}
