/* ── Next Level You — Speakers Overlay ── */
.nly-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(7,41,58,.7); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 20px 16px; overflow-y: auto;
}
.nly-overlay.hidden { display: none; }
.nly-panel {
  background: var(--night-card, #2A3050); border-radius: var(--r-lg); width: 100%; max-width: 760px;
  box-shadow: var(--shadow-lg); overflow: hidden; margin: auto;
}
.nly-header {
  background: var(--gradient-primary, linear-gradient(135deg, #34D399, #6EE7B7));
  color: #1E2235; padding: 20px 24px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.nly-title, .nly-header h2 { font-size: 18px; font-weight: 700; margin: 0; color: #1E2235; }
.nly-subtitle { font-size: 13px; opacity: .8; margin-top: 4px; }
.nly-close {
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 15px; transition: background .15s;
}
.nly-close:hover { background: rgba(255,255,255,.3); }
.nly-body { padding: 16px; max-height: 70vh; overflow-y: auto; }
.nly-grid { display: flex; flex-direction: column; gap: 10px; }
.nly-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(42, 48, 80, 0.65); border-radius: var(--r-sm);
  padding: 12px 14px; border: 1px solid var(--border);
  transition: border-color .15s, box-shadow .15s;
}
.nly-card:hover { border-color: rgba(52, 211, 153, 0.2); box-shadow: 0 2px 8px rgba(52, 211, 153, 0.12); }
.nly-card-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nly-card-body { flex: 1; min-width: 0; }
.nly-card-name { font-weight: 700; font-size: 14px; color: var(--cream, #FAFAF6); }
.nly-card-topic { font-size: 12.5px; color: var(--teal); margin-top: 2px; font-style: italic; }
.nly-card-bio { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.nly-card-link {
  color: var(--teal); font-size: 13px; flex-shrink: 0; padding: 4px;
  opacity: .6; transition: opacity .15s;
}
.nly-card-link:hover { opacity: 1; }

/* ── Product card Speakers button ── */
.product-btn-speakers {
  background: rgba(52, 211, 153, 0.12); color: var(--emerald, #34D399); border: 1px solid rgba(52, 211, 153, 0.3);
  font-size: 13px; font-weight: 600; border-radius: 20px;
  padding: 8px 14px; cursor: pointer; font-family: inherit;
  transition: background .15s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.product-btn-speakers:hover { background: rgba(52, 211, 153, 0.2); }
.product-card-footer { gap: 8px; flex-wrap: wrap; }

/* ── NLY speaker card with video/audio ── */
.nly-card { flex-direction: column; }
.nly-thumb {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--r-sm); background: #2A3050;
  display: block;
}
.nly-info { width: 100%; }
.nly-name { font-size: 16px; font-weight: 700; color: var(--cream, #FAFAF6); margin: 8px 0 4px; }
.nly-bio { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.nly-video-wrap {
  position: relative; width: 100%; padding-bottom: 56.25%;
  border-radius: var(--r-sm); overflow: hidden; background: #000;
  margin-bottom: 10px;
}
.nly-video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}
.nly-audio-wrap { margin-top: 8px; }
.nly-audio-label {
  font-size: 12.5px; color: var(--teal); font-weight: 600; margin-bottom: 4px;
  display: flex; align-items: center; gap: 5px;
}
.nly-audio-wrap audio { width: 100%; }

/* ── NLY Accordion (days → speakers) ── */
.trainer-grid.nly-accordion-mode {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nly-acc-row {
  border: 1px solid rgba(245, 240, 232, 0.06);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: rgba(42, 48, 80, 0.65);
}
.nly-acc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  background: rgba(53, 61, 96, 0.5);
  transition: background .15s;
}
.nly-acc-header:hover { background: rgba(52, 211, 153, 0.04); }
.nly-acc-header.expanded { background: rgba(52, 211, 153, 0.08); }
.nly-acc-header.expanded .nly-acc-title { color: var(--cream); }
.nly-acc-header.expanded .nly-acc-count { color: #34D399; }
.nly-acc-header.expanded .nly-acc-chevron { color: #34D399; transform: rotate(180deg); }
.nly-acc-title {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--cream, #FAFAF6);
}
.nly-acc-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.nly-acc-chevron {
  color: var(--muted);
  font-size: 12px;
  transition: transform .2s;
  flex-shrink: 0;
}
.nly-acc-body {
  display: none;
  flex-direction: column;
}
.nly-acc-body.open { display: flex; }
.nly-acc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid rgba(245, 240, 232, 0.06);
  cursor: pointer;
  transition: background .12s;
}
.nly-acc-item:hover { background: rgba(52, 211, 153, 0.03); }
.nly-acc-item-thumb {
  width: 56px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(53, 61, 96, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nly-acc-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nly-acc-item-thumb-ph { font-size: 18px; }
.nly-acc-item-info { flex: 1; min-width: 0; }
.nly-acc-item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cream, #FAFAF6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nly-acc-item-topic {
  font-size: 12px;
  color: var(--teal);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nly-acc-item-badges { display: flex; gap: 4px; flex-shrink: 0; }
.nly-acc-badge {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
}
.nly-acc-badge-vid { background: rgba(52, 211, 153, 0.15); color: var(--emerald, #34D399); }
.nly-acc-badge-aud { background: rgba(7,41,58,.1); color: var(--navy); }
.nly-acc-badge-bonus { background: rgba(255,165,0,.15); color: #d97706; }

/* ═══════════════════════════════════════════════════════════════
   lgstart – Course Player
═══════════════════════════════════════════════════════════════ */

/* Dark mode body class */
body.lg-mode { background: var(--night, #1E2235); }
body.lg-mode .app-body { max-width: 100%; padding: 0; }
body.lg-mode #view-grid { background: var(--night, #1E2235); }
body.lg-mode #trainer-grid { background: var(--night, #1E2235); padding: 0 !important; }

/* PDF container */
.lg-pdf-container {
  padding: 20px 20px 0;
  background: var(--night, #1E2235);
}
.lg-pdf-inline-frame {
  display: block; width: 100%; border: none;
  height: calc((100vh - 56px) * 0.9);
  min-height: 480px;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.lg-pdf-footer {
  padding: 14px 0 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.lg-pdf-hint {
  font-size: 13px; color: var(--muted); text-align: center;
  max-width: 480px; line-height: 1.6;
}
.lg-pdf-download-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; background: var(--teal); color: #fff;
  border-radius: 8px; font-size: 14px; font-weight: 700;
  text-decoration: none; transition: background .15s, transform .1s;
}
.lg-pdf-download-btn:hover { background: var(--teal-light); transform: translateY(-1px); }

/* Loading state */
.lg-content-loading {
  display: flex; align-items: center; justify-content: center; padding: 80px 20px;
}
.lg-content-wrap { width: 100%; }
.lg-content-wrap iframe { width: 100%; border: none; display: block; overflow: hidden; }
.lg-no-content {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; gap: 12px; color: var(--muted); text-align: center;
}
.lg-no-content i { font-size: 36px; opacity: 0.4; }
.lg-no-content p { font-size: 14px; max-width: 340px; line-height: 1.6; }
.lg-loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 80px 20px; gap: 16px;
}
.lg-loading p { color: var(--muted); font-size: 14px; }
.lg-spin {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
