/* ═══════════════════════════════════════════════════════════════════════
 * Doubleyou Live Module Styles (v1.0.0)
 * ═══════════════════════════════════════════════════════════════════════
 *
 * Additive, FULLY SCOPED to `.pp-live-*` classnames + #pp-live-* IDs so
 * no risk of clashing with existing app.css selectors. All values reuse
 * existing tokens (--clay, --ink, --cream, --warm, --r-md, --sp-*) so we
 * blend with the rest of the UI.
 *
 * Mapping vs. the original mock (gold/red theme): we keep a tasteful
 * "live red" accent and an amber/clay action gradient (matches the
 * Doubleyou clay palette). No globals are overridden.
 * ═══════════════════════════════════════════════════════════════════════ */

:root {
  --pp-live-red: #E53935;
  --pp-live-red-glow: rgba(229, 57, 53, 0.35);
  --pp-live-gold: var(--clay, #c67d06);
  --pp-live-gold-dim: rgba(198, 125, 6, 0.35);
}

/* ────────── PAGE LAYOUT ────────── */
.pp-live-page {
  padding: 12px 16px 96px;
  max-width: var(--max-w, 680px);
  margin: 0 auto;
}

.pp-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 14px;
}

.pp-live-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink, #1e1a0f);
  margin: 0;
}

.pp-live-pulse-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pp-live-red);
  box-shadow: 0 0 0 4px var(--pp-live-red-glow);
  animation: pp-live-pulse 1.4s ease-in-out infinite;
}

@keyframes pp-live-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.85; }
}

.pp-live-sub {
  font-size: 12px;
  color: var(--ink-muted, #7a6a3a);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ────────── GO-LIVE CTA ────────── */
.pp-live-cta {
  width: 100%;
  padding: 14px;
  border-radius: var(--r-lg, 14px);
  background: linear-gradient(135deg, var(--clay, #c67d06), var(--clay-d, #a56605));
  border: none;
  color: var(--white, #fefcf5);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
  box-shadow: 0 6px 18px rgba(198, 125, 6, 0.25);
  margin-bottom: 18px;
}
.pp-live-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(198, 125, 6, 0.32); }
.pp-live-cta:active { transform: translateY(0); opacity: 0.92; }
.pp-live-cta-icon { font-size: 20px; line-height: 1; }

/* ────────── GRID ────────── */
.pp-live-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pp-live-card {
  position: relative;
  aspect-ratio: 9 / 13;
  border-radius: var(--r-lg, 14px);
  background: var(--warm, #f5edda);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border, rgba(30,26,15,0.10));
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.pp-live-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md, 0 4px 12px rgba(30,26,15,0.08)); }
.pp-live-card:active { transform: translateY(0); }

.pp-live-card.pp-live-featured {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.pp-live-thumb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(145deg, #efe0bc, #d9c486 60%, #c6a85a);
  color: var(--ink, #1e1a0f);
}
.pp-live-thumb.pp-live-thumb-img { background-position: center; background-size: cover; font-size: 0; }
.pp-live-thumb.pp-live-thumb-alt {
  background: linear-gradient(145deg, #e5d2a0, #c79a4a 60%, #8a6310);
}
.pp-live-thumb.pp-live-thumb-alt2 {
  background: linear-gradient(145deg, #f2e2b3, #b58a3a 60%, #6f4e15);
}

.pp-live-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,26,15,0.85) 0%, rgba(30,26,15,0.25) 50%, transparent 100%);
  pointer-events: none;
}

.pp-live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--r-pill, 100px);
  background: var(--pp-live-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pp-live-badge .pp-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pp-live-pulse 1.4s ease-in-out infinite;
}

.pp-live-viewer-count {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: var(--r-pill, 100px);
  background: rgba(30,26,15,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.pp-live-cohost-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: var(--r-pill, 100px);
  background: linear-gradient(135deg, var(--clay, #c67d06), var(--clay-l, #d4910a));
  color: var(--ink, #1e1a0f);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.pp-live-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  color: #fff;
  z-index: 2;
}
.pp-live-card-user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 4px;
  font-weight: 600;
}
.pp-live-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cream, #fdf8f0);
  color: var(--clay-d, #a56605);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  border: 1.5px solid var(--clay, #c67d06);
  flex-shrink: 0;
}
.pp-live-username { font-size: 12px; font-weight: 700; }
.pp-live-cohost-x { color: var(--clay-l, #d4910a); font-weight: 700; font-size: 13px; }
.pp-live-card-titel {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  margin: 4px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pp-live-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.pp-live-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--r-pill, 100px);
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-weight: 600;
}

/* ────────── EMPTY / LOADING STATE ────────── */
.pp-live-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-muted, #7a6a3a);
  font-size: 14px;
}
.pp-live-empty-emoji { font-size: 44px; opacity: 0.6; display: block; margin-bottom: 12px; }
.pp-live-empty-title { font-weight: 700; color: var(--ink, #1e1a0f); font-size: 15px; margin-bottom: 4px; }

.pp-live-skel {
  background: linear-gradient(90deg, var(--warm, #f5edda) 0%, #ece1c5 50%, var(--warm, #f5edda) 100%);
  background-size: 200% 100%;
  animation: pp-live-shimmer 1.6s linear infinite;
  border-radius: var(--r-lg, 14px);
  aspect-ratio: 9 / 13;
}
@keyframes pp-live-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ────────── PLAYER MODAL ────────── */
.pp-live-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: #0d0a05;
  flex-direction: column;
}
.pp-live-modal.pp-live-open { display: flex; }

.pp-live-player-area {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  background: linear-gradient(145deg, #1a1507, #3a2c08 60%, #1a1507);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pp-live-player-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.pp-live-player-emoji {
  position: absolute;
  font-size: 80px;
  opacity: 0.25;
  pointer-events: none;
}
.pp-live-video-pulse {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(201,151,58,0.10) 0%, transparent 70%);
  animation: pp-live-vid-pulse 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pp-live-vid-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.pp-live-player-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px env(safe-area-inset-top, 0px);
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  z-index: 3;
  pointer-events: none;
}
.pp-live-player-top > * { pointer-events: auto; }
.pp-live-close {
  background: rgba(0,0,0,0.55);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pp-live-host-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 5px 12px 5px 5px;
  border-radius: var(--r-pill, 100px);
  color: #fff;
}
.pp-live-host-pill .pp-live-avatar { width: 28px; height: 28px; font-size: 12px; }
.pp-live-host-name { font-size: 13px; font-weight: 600; }
.pp-live-follow-btn {
  background: var(--clay, #c67d06);
  border: none;
  color: var(--ink, #1e1a0f);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--r-pill, 100px);
  cursor: pointer;
}

.pp-live-cohosts-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.92), transparent);
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pp-live-reactions-overlay {
  position: absolute;
  bottom: 12px;
  right: 14px;
  width: 50px;
  height: 240px;
  pointer-events: none;
  z-index: 4;
}
.pp-live-floating-react {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 26px;
  animation: pp-live-float-up 2s ease-out forwards;
}
@keyframes pp-live-float-up {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  60% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-180px) translateX(-12px) scale(1.4); }
}

/* ────────── CHAT ────────── */
.pp-live-chat-area {
  background: var(--cream, #fdf8f0);
  padding: 12px 16px 14px;
  height: 280px;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}
.pp-live-chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.pp-live-chat-messages::-webkit-scrollbar { width: 4px; }
.pp-live-chat-messages::-webkit-scrollbar-thumb { background: var(--clay-alpha, rgba(198,125,6,0.10)); border-radius: 2px; }

.pp-live-chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  animation: pp-live-slide-in 0.25s ease;
}
@keyframes pp-live-slide-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.pp-live-chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--warm, #f5edda);
  color: var(--clay-d, #a56605);
  border: 1px solid var(--clay-alpha, rgba(198,125,6,0.10));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.pp-live-chat-bubble { flex: 1; min-width: 0; }
.pp-live-chat-user { font-size: 11px; font-weight: 800; color: var(--clay-d, #a56605); margin-bottom: 2px; }
.pp-live-chat-text { font-size: 13px; color: var(--ink, #1e1a0f); line-height: 1.4; word-wrap: break-word; }

.pp-live-chat-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border, rgba(30,26,15,0.10));
  margin-top: 8px;
}
.pp-live-chat-input {
  flex: 1;
  background: var(--warm, #f5edda);
  border: 1px solid var(--border, rgba(30,26,15,0.10));
  border-radius: var(--r-pill, 100px);
  padding: 10px 14px;
  color: var(--ink, #1e1a0f);
  font-size: 13px;
  outline: none;
  min-width: 0;
  transition: border-color 0.2s;
}
.pp-live-chat-input:focus { border-color: var(--clay, #c67d06); }
.pp-live-chat-input::placeholder { color: var(--ink-muted, #7a6a3a); }

.pp-live-send-btn,
.pp-live-react-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pp-live-send-btn {
  background: var(--clay, #c67d06);
  color: #fff;
  font-size: 16px;
}
.pp-live-react-btn {
  background: transparent;
  font-size: 22px;
  padding: 0;
}
.pp-live-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ────────── START LIVE SHEET ────────── */
.pp-live-start-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(0,0,0,0.6);
  align-items: flex-end;
  justify-content: center;
  animation: pp-live-fade-in 0.2s ease;
}
.pp-live-start-modal.pp-live-open { display: flex; }
@keyframes pp-live-fade-in { from { opacity: 0; } to { opacity: 1; } }

.pp-live-start-sheet {
  width: 100%;
  max-width: 520px;
  background: var(--cream, #fdf8f0);
  border-radius: var(--r-xl, 20px) var(--r-xl, 20px) 0 0;
  padding: 18px 20px 32px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  animation: pp-live-slide-up 0.28s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes pp-live-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.pp-live-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--clay-alpha, rgba(198,125,6,0.25));
  border-radius: 2px;
  margin: 0 auto 16px;
}
.pp-live-sheet-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink, #1e1a0f);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pp-live-sheet-sub {
  font-size: 13px;
  color: var(--ink-muted, #7a6a3a);
  margin-bottom: 16px;
}
.pp-live-sheet-input {
  width: 100%;
  background: var(--warm, #f5edda);
  border: 1px solid var(--border, rgba(30,26,15,0.10));
  border-radius: var(--r-md, 10px);
  padding: 12px 14px;
  color: var(--ink, #1e1a0f);
  font-size: 14px;
  outline: none;
  margin-bottom: 12px;
  box-sizing: border-box;
}
.pp-live-sheet-input:focus { border-color: var(--clay, #c67d06); }

.pp-live-preview-wrap {
  background: #0d0a05;
  border-radius: var(--r-md, 10px);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  max-height: 240px;
  margin: 0 auto 14px;
  position: relative;
  width: 160px;
}
.pp-live-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pp-live-preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  text-align: center;
  padding: 12px;
}
.pp-live-preview-placeholder-emoji { font-size: 34px; opacity: 0.7; }

.pp-live-sheet-tags-label {
  font-size: 12px;
  color: var(--ink-muted, #7a6a3a);
  margin-bottom: 8px;
  font-weight: 600;
}
.pp-live-sheet-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.pp-live-sheet-tag {
  padding: 6px 12px;
  border-radius: var(--r-pill, 100px);
  border: 1px solid var(--border, rgba(30,26,15,0.18));
  background: transparent;
  color: var(--ink-muted, #7a6a3a);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 600;
}
.pp-live-sheet-tag.pp-live-tag-selected {
  border-color: var(--clay, #c67d06);
  color: var(--clay-d, #a56605);
  background: var(--clay-alpha, rgba(198,125,6,0.10));
}

.pp-live-start-btn {
  width: 100%;
  padding: 14px;
  background: var(--pp-live-red);
  border: none;
  border-radius: var(--r-md, 10px);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.02em;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.pp-live-start-btn:hover { opacity: 0.95; transform: translateY(-1px); }
.pp-live-start-btn:active { transform: translateY(0); }
.pp-live-start-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pp-live-start-btn .pp-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }

.pp-live-error {
  background: rgba(229, 57, 53, 0.10);
  border: 1px solid rgba(229, 57, 53, 0.30);
  color: var(--danger, #c0392b);
  padding: 10px 12px;
  border-radius: var(--r-md, 10px);
  font-size: 12px;
  margin-bottom: 12px;
  display: none;
}
.pp-live-error.pp-live-active { display: block; }

/* ────────── NAV BUTTON ENHANCEMENT ────────── */
.dy-nav-item[data-pagina="live"] .pp-live-nav-dot,
.dy-sb-item[data-pagina="live"] .pp-live-nav-dot {
  position: absolute;
  top: 6px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pp-live-red);
  box-shadow: 0 0 0 2px var(--cream, #fdf8f0);
  display: none;
  animation: pp-live-pulse 1.4s ease-in-out infinite;
}
.dy-nav-item[data-pagina="live"][data-has-live="1"] .pp-live-nav-dot,
.dy-sb-item[data-pagina="live"][data-has-live="1"] .pp-live-nav-dot { display: block; }

.dy-nav-item[data-pagina="live"],
.dy-sb-item[data-pagina="live"] { position: relative; }

/* ─── Paskamer Studio nav label: 2-lijns op mobile bottom nav.
   Belangrijk: alleen onze button, NIET algemene .dy-nav-item overrulen. ─── */
.dy-nav-item[data-pagina="live"] span:not(.pp-live-nav-dot) {
  display: inline-block;
  line-height: 1.05;
  text-align: center;
}
.dy-nav-item[data-pagina="live"] span:not(.pp-live-nav-dot) br {
  /* Op compacte schermen forceren we een echte line-break, normaal flow zorgt al voor 2 regels */
  display: block;
}
.dy-sb-item[data-pagina="live"] span {
  /* Sidebar (desktop): label op 1 regel */
  white-space: nowrap;
}

/* ─── Premium polish voor onze custom Live nav item: active indicator ─── */
.dy-nav-item[data-pagina="live"].active::before,
.dy-sb-item[data-pagina="live"].active::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--clay, #c67d06);
  box-shadow: 0 0 8px rgba(198,125,6,0.45);
}
.dy-sb-item[data-pagina="live"].active::before {
  top: 50%; left: 0;
  transform: translateY(-50%);
  width: 3px; height: 22px;
  box-shadow: 0 0 8px rgba(198,125,6,0.45);
}

/* ─── BOTTOM NAV MOBILE FIT: zorg dat ALLE items (incl. nieuwe Studio tab)
   netjes verdeeld worden zonder dat labels achter de centrale ⊕ knop verdwijnen.
   Pure visuele verfijning geen functionaliteit gewijzigd. ─── */
@media (max-width: 720px) {
  /* Equal width tabs, geen verschuiving */
  .dy-nav .dy-nav-item {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 1px;
    padding-right: 1px;
  }
  /* Studio label kleiner zodat 2 regels passen zonder afkapping */
  .dy-nav-item[data-pagina="live"] span:not(.pp-live-nav-dot) {
    font-size: 0.5rem;
    letter-spacing: 0.01em;
  }
  /* SVG icon iets compacter op heel kleine schermen */
  .dy-nav-item[data-pagina="live"] svg {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 380px) {
  .dy-nav-item[data-pagina="live"] span:not(.pp-live-nav-dot) {
    font-size: 0.46rem;
  }
}

/* ─── TOP FEED TABS (Ontdek/Uitgelicht/Trending/Mijn): subtiele fade
   rechts om aan te geven dat er meer scrollbaar is op mobiel.
   We muteren de bestaande .dy-filters layout NIET alleen een ::after overlay. ─── */
@media (max-width: 640px) {
  .dy-filters {
    position: relative;
    scroll-snap-type: x proximity;
    scroll-padding-left: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .dy-filters > .dy-filter {
    scroll-snap-align: start;
  }
  /* Fade indicator rechts toont dat er nog meer tabs zijn */
  .dy-filters::after {
    content: '';
    position: sticky;
    right: 0;
    top: 0;
    bottom: 0;
    width: 24px;
    height: 100%;
    flex-shrink: 0;
    margin-left: -24px;
    background: linear-gradient(to right, transparent, var(--cream, #fdf8f0) 70%);
    pointer-events: none;
    z-index: 1;
  }
}

/* ────────── DARK THEME COMPAT ────────── */
@media (prefers-color-scheme: dark) {
  .pp-live-page { /* no-op; legacy app dictates theme via .dy-dark */ }
}

/* ────────── RESPONSIVE ────────── */
@media (max-width: 380px) {
  .pp-live-grid { gap: 8px; }
  .pp-live-card-titel { font-size: 12px; }
}

@media (min-width: 768px) {
  .pp-live-grid { grid-template-columns: repeat(3, 1fr); }
  .pp-live-card.pp-live-featured { grid-column: span 3; aspect-ratio: 21 / 9; }
}

/* ═══════════════════════════════════════════════════════════════════
 * v1.0.2 Premium Paskamer Studio polish
 * ═══════════════════════════════════════════════════════════════════ */

/* ────────── FORMAT PILL (Studio categories) ────────── */
.pp-live-format-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px 5px 8px;
  border-radius: var(--r-pill, 100px);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  z-index: 3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.pp-live-viewer-count.pp-live-scheduled {
  background: rgba(198,125,6,0.85);
}

/* ────────── HOST LINK (klikbaar → profiel) ────────── */
.pp-live-host-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  transition: opacity 0.15s ease;
  outline: none;
}
.pp-live-host-link:hover { opacity: 0.85; text-decoration: underline; }
.pp-live-host-link:focus-visible {
  outline: 2px solid var(--clay-l, #d4910a);
  outline-offset: 2px;
  border-radius: var(--r-pill, 100px);
}
.pp-live-brand-tick {
  display: inline-block;
  color: var(--clay-l, #d4910a);
  font-weight: 900;
  font-size: 11px;
  margin-left: 2px;
}

/* ────────── FORMAT GRID (start sheet, premium tiles) ────────── */
.pp-live-format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
@media (min-width: 500px) {
  .pp-live-format-grid { grid-template-columns: repeat(3, 1fr); }
}
.pp-live-format-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 12px 10px;
  border-radius: var(--r-md, 10px);
  border: 1.5px solid var(--border, rgba(30,26,15,0.10));
  background: var(--warm, #f5edda);
  color: var(--ink, #1e1a0f);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  font-family: inherit;
}
.pp-live-format-tile:hover {
  border-color: var(--clay, #c67d06);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(198,125,6,0.15);
}
.pp-live-format-tile.pp-live-format-selected {
  border-color: var(--clay, #c67d06);
  background: linear-gradient(135deg, rgba(198,125,6,0.10), rgba(198,125,6,0.03));
  box-shadow: 0 4px 14px rgba(198,125,6,0.20), inset 0 0 0 1px var(--clay, #c67d06);
}
.pp-live-format-emoji { font-size: 22px; line-height: 1; margin-bottom: 2px; }
.pp-live-format-label { font-size: 13px; font-weight: 800; color: var(--ink, #1e1a0f); letter-spacing: -0.005em; }
.pp-live-format-desc { font-size: 11px; color: var(--ink-muted, #7a6a3a); line-height: 1.35; }
.pp-live-format-tile.pp-live-format-selected .pp-live-format-label { color: var(--clay-d, #a56605); }

/* ────────── PREMIUM PAGE HEADER POLISH ────────── */
.pp-live-page { padding: 16px 16px 96px; }
.pp-live-head {
  padding: 4px 0 12px;
  border-bottom: 1px solid var(--border, rgba(30,26,15,0.08));
  margin-bottom: 18px;
}
.pp-live-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.pp-live-sub {
  font-size: 10.5px;
  color: var(--ink-muted, #7a6a3a);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--warm, #f5edda);
  padding: 4px 10px;
  border-radius: var(--r-pill, 100px);
}

/* ────────── CARD: premium shadow + hover elevation ────────── */
.pp-live-card {
  box-shadow: 0 2px 10px rgba(30,26,15,0.06);
  border: 1px solid var(--border, rgba(30,26,15,0.08));
}
.pp-live-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(30,26,15,0.14), 0 2px 6px rgba(30,26,15,0.06);
}

/* ═══════════════════════════════════════════════════════════════════
 * v60.1.189 LIVE MODULE LIFECYCLE FIXES
 * ═══════════════════════════════════════════════════════════════════
 * 1. Player top-bar: .pp-live-badge staat op position:absolute (voor
 *    grid-cards). In de player-top flex container moet 'ie static zijn
 *    zodat 'ie NIET over de X-close knop valt.
 * 2. X-close z-index verhoogd zodat 'ie altijd bovenop staat.
 * 3. Wanneer player modal open is: bottom-nav + sidebar KLIKKKAAR maken
 *    boven de modal → tab-switch werkt zonder eerst X te klikken.
 * ═══════════════════════════════════════════════════════════════════ */

/* Fix 1+2: X-knop nooit meer verborgen achter LIVE badge */
.pp-live-player-top .pp-live-badge {
  position: static;
  top: auto;
  left: auto;
}
.pp-live-player-top .pp-live-close {
  position: relative;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* Fix 3: Wanneer player open is, hef bottom-nav + sidebar boven de modal
 * zodat gebruiker via tabs kan wisselen (auto-close via DY.navigeer wrapper). */
body.pp-live-player-active .dy-nav {
  z-index: 11500 !important;
}
body.pp-live-player-active .dy-sb-nav,
body.pp-live-player-active .dy-sidebar {
  z-index: 11500 !important;
}

/* Op mobile: reserveer ruimte onderaan zodat chat-input niet onder de
 * bottom-nav valt wanneer die bovenop de modal staat. */
@media (max-width: 640px) {
  body.pp-live-player-active .pp-live-chat-area {
    padding-bottom: calc(var(--nav-h, 68px) + env(safe-area-inset-bottom, 0px) + 8px);
  }
}

/* ═══════════════════════════════════════════════════════════════════
 * v60.1.192 CONTRAST FIX (dark theme) + SHEET CLOSE BUTTON
 * ═══════════════════════════════════════════════════════════════════
 * De site is standaard dark theme (bg #0a0806 warm-brown-zwart). De live
 * module gebruikte var(--ink, #1e1a0f) voor teksten, wat effectief
 * onzichtbaar is op de donkere achtergrond. Override alleen binnen de
 * Paskamer Studio scope zodat geen andere modules worden beïnvloed.
 * ═══════════════════════════════════════════════════════════════════ */

/* Live grid page hoofdtitel duidelijk leesbaar */
[data-testid="live-page"] .pp-live-title {
  color: rgba(254, 252, 245, 0.96) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Empty state ("Nog niemand live in de Studio" + subtekst) */
[data-testid="live-page"] .pp-live-empty {
  color: rgba(254, 252, 245, 0.72) !important;
}
[data-testid="live-page"] .pp-live-empty-title {
  color: rgba(254, 252, 245, 0.98) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
[data-testid="live-page"] .pp-live-empty-emoji {
  opacity: 0.85;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

/* Category chips + tab-headers ook lichter */
[data-testid="live-page"] .pp-live-tab {
  color: rgba(254, 252, 245, 0.80);
}
[data-testid="live-page"] .pp-live-tab.pp-live-tab-active {
  color: rgba(254, 252, 245, 1);
}
[data-testid="live-page"] .pp-live-count-badge {
  color: rgba(30, 26, 15, 0.92);   /* dark ink on the light badge keep readable */
}

/* Sessies-teller "0 SESSIES" badge blijft op wit geen wijziging nodig */

/* ────────── Start-sheet close button (X, top-right) ────────── */
.pp-live-sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.18s ease, transform 0.12s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.pp-live-sheet-close:hover {
  background: rgba(0, 0, 0, 0.62);
  border-color: rgba(255, 255, 255, 0.32);
}
.pp-live-sheet-close:active { transform: scale(0.94); }
.pp-live-sheet-close:focus-visible {
  outline: 2px solid var(--clay, #c67d06);
  outline-offset: 2px;
}
.pp-live-start-sheet { position: relative; }

/* ────────── v60.1.193 REPORT / MELDEN button in player top bar ────────── */
.pp-live-player-top .pp-live-report-btn {
  position: relative;
  z-index: 5;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.18s ease, transform 0.12s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.pp-live-player-top .pp-live-report-btn:hover {
  background: rgba(220, 60, 60, 0.55);
  border-color: rgba(255, 255, 255, 0.42);
}
.pp-live-player-top .pp-live-report-btn:active { transform: scale(0.92); }
.pp-live-player-top .pp-live-report-btn:focus-visible {
  outline: 2px solid var(--clay, #c67d06);
  outline-offset: 2px;
}
/* Op mobile: 44px touch target */
@media (max-width: 640px) {
  .pp-live-player-top .pp-live-report-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
 * v60.1.194 SCHEDULED LIVE mode toggle + AANKOMEND grid + countdown
 * ═══════════════════════════════════════════════════════════════════ */

/* ── Start-sheet: Nu / Later plannen toggle ───────────────────── */
.pp-live-mode-toggle {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  margin: 12px 0;
}
.pp-live-mode-opt {
  flex: 1;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: rgba(254, 252, 245, 0.72);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.18s ease, color 0.18s ease;
}
.pp-live-mode-opt:hover { color: rgba(254, 252, 245, 0.95); }
.pp-live-mode-opt.pp-live-mode-active {
  background: var(--clay, #c67d06);
  color: #fff;
  box-shadow: 0 2px 10px rgba(198, 125, 6, 0.35);
}
.pp-live-mode-emoji { font-size: 1.05em; line-height: 1; }

/* ── Datetime picker wrap ─────────────────────────────────────── */
.pp-live-schedule-wrap {
  margin: 8px 0 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(198, 125, 6, 0.22);
  border-radius: 12px;
}
.pp-live-schedule-label {
  display: block;
  color: rgba(254, 252, 245, 0.92);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.pp-live-schedule-hint {
  color: rgba(254, 252, 245, 0.55);
  font-weight: 400;
  font-size: 0.82rem;
}
.pp-live-schedule-input {
  width: 100%;
  padding: 11px 12px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  color-scheme: dark;
}
.pp-live-schedule-input:focus {
  outline: none;
  border-color: var(--clay, #c67d06);
  background: rgba(0, 0, 0, 0.48);
}
.pp-live-schedule-preview {
  margin-top: 10px;
  color: rgba(254, 252, 245, 0.9);
  font-size: 0.9rem;
}
.pp-live-schedule-relatief {
  color: rgba(254, 252, 245, 0.6);
  font-weight: 400;
  margin-left: 6px;
}
.pp-live-schedule-warn {
  color: #ff8a8a;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ═════════════════════════════════════════════════════════════════
 * AANKOMEND sectie in de grid
 * ═════════════════════════════════════════════════════════════════ */
.pp-live-scheduled {
  margin: 8px 0 24px;
}
.pp-live-scheduled-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 2px;
}
.pp-live-scheduled-title {
  color: rgba(254, 252, 245, 0.96);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.pp-live-scheduled-count {
  color: rgba(254, 252, 245, 0.6);
  font-size: 0.85rem;
  font-weight: 500;
}
.pp-live-scheduled-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.pp-live-scheduled-card {
  position: relative;
  background: linear-gradient(160deg, #1a1508 0%, #241a0d 100%);
  border: 1px solid rgba(198, 125, 6, 0.25);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.pp-live-scheduled-card:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 125, 6, 0.5);
  box-shadow: 0 6px 20px rgba(198, 125, 6, 0.18);
}
.pp-live-scheduled-card-media {
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at 50% 40%, rgba(198,125,6,0.16) 0%, rgba(0,0,0,0.4) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.pp-live-scheduled-card-emoji {
  font-size: 46px;
  opacity: 0.85;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.pp-live-scheduled-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  background: rgba(198, 125, 6, 0.9);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.06em;
}
.pp-live-scheduled-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pp-live-scheduled-card-host {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pp-live-scheduled-card-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--clay, #c67d06);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.pp-live-scheduled-card-hostname {
  color: rgba(254, 252, 245, 0.78);
  font-size: 0.78rem;
  font-weight: 500;
}
.pp-live-scheduled-card-title {
  color: rgba(254, 252, 245, 0.96);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pp-live-scheduled-card-when {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(254, 252, 245, 0.72);
  font-size: 0.82rem;
}
.pp-live-scheduled-card-when-icon { opacity: 0.7; }
.pp-live-scheduled-card-countdown {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 10px;
  color: rgba(254, 252, 245, 0.94);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, color 0.25s ease;
}
.pp-live-scheduled-card-cd-urgent {
  background: rgba(220, 60, 60, 0.28);
  color: #ffcccc;
  border-color: rgba(220, 60, 60, 0.5);
}
.pp-live-scheduled-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}
.pp-live-scheduled-btn {
  flex: 1;
  padding: 9px 8px;
  border: 0;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.1s ease, opacity 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.pp-live-scheduled-btn:active { transform: scale(0.96); }
.pp-live-scheduled-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pp-live-scheduled-btn-primary {
  background: var(--clay, #c67d06);
  color: #fff;
}
.pp-live-scheduled-btn-primary:hover:not(:disabled) {
  background: #d68912;
}
.pp-live-scheduled-btn-primary.pp-live-scheduled-btn-active {
  background: rgba(64, 175, 96, 0.9);
}
.pp-live-scheduled-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(254, 252, 245, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 90px;
}
.pp-live-scheduled-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Mobile touch targets */
@media (max-width: 640px) {
  .pp-live-scheduled-btn { padding: 11px 10px; font-size: 0.85rem; min-height: 44px; }
}
