/* ============================================================
   Home v4 — E-E-A-T curator / YouTube block (PRO-689)
   Scoped to the .pbm4-* component classes so it is inert on any
   page that doesn't render the block. Builds on ds-tokens.css
   (--bg-*, --line*, --t-*, --blue-2, --good, --r-*, --mono).
   Source of truth for the visual spec: ProtonV3 handoff styles-v4.css.
   ============================================================ */

/* ── Curator block ── */
.pbm4-curator {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-4, 20px);
  padding: 28px 32px;
}
.pbm4-curator-main {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.pbm4-curator-intro { min-width: 0; }
.pbm4-avatar {
  flex-shrink: 0;
  width: 84px; height: 84px;
  border-radius: 999px;
  padding: 3px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}
.pbm4-avatar .inner {
  width: 100%; height: 100%;
  border-radius: 999px;
  background: var(--bg-3);
  border: 3px solid var(--bg-1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--t-1);
  object-fit: cover;
}
.pbm4-curator-main .eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--blue-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.pbm4-curator-main h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--t-1);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.pbm4-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--good);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.pbm4-curator-main p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--t-2);
  max-width: 560px;
  margin: 0 0 14px;
  text-wrap: pretty;
}
.pbm4-curator-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pbm4-curator-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--r-2, 10px);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--t-1);
  cursor: pointer;
  transition: all 0.15s var(--ease-out, cubic-bezier(.2,.7,.3,1));
}
.pbm4-curator-links a:hover { background: var(--bg-3); border-color: var(--line-strong); }
.pbm4-curator-links a.yt {
  color: #fff;
  background: #cc0000;
  border-color: #cc0000;
}
.pbm4-curator-links a.yt:hover { background: #e51717; border-color: #e51717; }
.pbm4-curator-links a.yt svg { color: #fff; }
.pbm4-curator-links a.yt .subs {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 7px;
  border-radius: 999px;
}

/* Stats: full-width horizontal strip with a top border. */
.pbm4-curator-stats {
  grid-column: 1 / -1;
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.pbm4-curator-stats .stat { display: flex; flex-direction: column; gap: 2px; }
.pbm4-curator-stats .num {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--t-1);
}
.pbm4-curator-stats .lbl {
  font-size: 11.5px;
  color: var(--t-3);
}

/* ── Latest video card (YouTube funnel) — static, never an iframe ── */
.pbm4-video {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-3, 14px);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.18s var(--ease-out, cubic-bezier(.2,.7,.3,1));
  align-self: start;
  display: block;
  color: inherit;
  text-decoration: none;
}
.pbm4-video:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.pbm4-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(
    -45deg,
    var(--bg-3) 0px, var(--bg-3) 10px,
    var(--bg-2) 10px, var(--bg-2) 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.pbm4-video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.pbm4-video-play {
  position: relative;
  z-index: 1;
  width: 52px; height: 38px;
  border-radius: 10px;
  background: #cc0000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 20px rgba(204, 0, 0, 0.45);
  transition: transform 0.15s var(--ease-out, cubic-bezier(.2,.7,.3,1));
}
.pbm4-video:hover .pbm4-video-play { transform: scale(1.08); }
.pbm4-video-dur {
  position: absolute;
  z-index: 1;
  bottom: 8px; right: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  padding: 2px 6px;
  border-radius: 5px;
}
.pbm4-video-body { padding: 13px 15px 15px; }
.pbm4-video-eyebrow {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ef4444;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pbm4-video-eyebrow .live-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: #ef4444;
}
.pbm4-video-body h3 {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--t-1);
  margin: 7px 0 8px;
  text-wrap: pretty;
}
.pbm4-video-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--t-4);
}

/* ── Tablet: collapse the two-column grid ── */
@media (max-width: 1080px) {
  .pbm4-curator { grid-template-columns: 1fr; }
  .pbm4-curator-stats { flex-wrap: wrap; gap: 24px; }
}

/* ── Phone (real mobile, not the prototype frame) ── */
@media (max-width: 640px) {
  .pbm4-curator {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 16px;
    border-radius: 16px;
  }
  .pbm4-curator-main { gap: 14px; }
  .pbm4-avatar { width: 56px; height: 56px; }
  .pbm4-avatar .inner { font-size: 15px; border-width: 2px; }
  .pbm4-curator-main h2 { font-size: 17px; flex-wrap: wrap; gap: 6px; }
  .pbm4-curator-main p { font-size: 12.5px; line-height: 1.6; margin-bottom: 12px; }
  .pbm4-curator-links a { font-size: 12px; padding: 9px 13px; }
  .pbm4-curator-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
  }
  .pbm4-curator-stats .num { font-size: 15px; }
  .pbm4-curator-stats .lbl { font-size: 10.5px; }
  .pbm4-video-body h3 { font-size: 13px; }
}
