/* ============= COURSE WATCHER ============= */

body { padding-top: 76px; }

/* Hero */
.wt-hero {
  padding: 28px 0 56px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
  position: relative;
}
.wt-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink-muted);
  margin-bottom: 28px;
  transition: color .18s, transform .18s;
}
.wt-back svg { width: 16px; height: 16px; }
.wt-back:hover { color: var(--ink); transform: translateX(-2px); }

.wt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 960px) {
  .wt-hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Player */
.wt-player {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.wt-player-still {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
}
.wt-player-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
}
.wt-play-cta {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 22px 8px 8px;
  background: rgba(255,255,255,0.96);
  border-radius: 999px;
  align-self: flex-start;
  font-weight: 600;
  transition: transform .18s, box-shadow .2s;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.45);
}
.wt-play-cta:hover { transform: scale(1.03); box-shadow: 0 18px 40px -10px rgba(0,0,0,0.55); }
.wt-play-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--accent);
  display: grid; place-items: center;
}
.wt-play-icon svg { width: 18px; height: 18px; margin-left: 3px; }
.wt-play-label { display: block; font-size: 14px; color: var(--ink); }
.wt-play-sub { display: block; font-size: 12px; color: var(--ink-muted); font-weight: 500; }
.wt-no-trailer {
  position: relative; z-index: 2;
  font-size: 28px; font-weight: 700; color: #fff;
  letter-spacing: -0.02em;
}
.wt-type-badge {
  position: absolute; top: 18px; left: 18px; z-index: 3;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.95); color: var(--ink);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.wt-type-badge[data-type="Webinar"] { background: #fce6a8; }
.wt-type-badge[data-type="Mentorship"] { background: var(--accent); }

.wt-video {
  width: 100%; height: 100%; display: block;
  background: #000;
  object-fit: cover;
}

/* video.js player — themed to the ILMU design language */
.wt-vjs-shell { position: absolute; inset: 0; }
.wt-player .video-js {
  width: 100%; height: 100%;
  font-family: var(--font-body);
  background: #000;
}
.wt-player .video-js .vjs-tech { object-fit: contain; }

/* Big centred play button — mirrors .wt-play-icon (navy disc, cyan glyph) */
.wt-player .video-js .vjs-big-play-button {
  width: 72px; height: 72px; line-height: 72px;
  margin: 0; border: none; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--ink); color: var(--accent);
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.45);
  transition: transform .18s, box-shadow .2s;
}
.wt-player .video-js:hover .vjs-big-play-button,
.wt-player .video-js .vjs-big-play-button:focus {
  background: var(--ink);
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 18px 40px -10px rgba(0,0,0,0.55);
  outline: none;
}
.wt-player .video-js .vjs-big-play-button .vjs-icon-placeholder::before { line-height: 72px; }

/* Control bar — translucent navy (var --ink) with light controls */
.wt-player .video-js .vjs-control-bar {
  height: 3.4em;
  background: rgba(19, 49, 107, 0.82);
  color: #fff;
}
.wt-player .video-js .vjs-button > .vjs-icon-placeholder::before,
.wt-player .video-js .vjs-time-control,
.wt-player .video-js .vjs-remaining-time,
.wt-player .video-js .vjs-current-time,
.wt-player .video-js .vjs-duration { color: #fff; }
.wt-player .video-js .vjs-control:hover .vjs-icon-placeholder::before { color: var(--accent); }

/* Progress + volume — brand accent fill on a soft track */
.wt-player .video-js .vjs-slider { background: rgba(255,255,255,0.25); }
.wt-player .video-js .vjs-play-progress,
.wt-player .video-js .vjs-volume-level { background: var(--accent); }
.wt-player .video-js .vjs-play-progress::before { color: var(--accent); }
.wt-player .video-js .vjs-load-progress,
.wt-player .video-js .vjs-load-progress div { background: rgba(255,255,255,0.35); }
.wt-player .video-js .vjs-progress-control:hover .vjs-time-tooltip {
  color: var(--ink); background: #fff;
}

/* Hero meta */
.wt-cat {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--accent-deep); text-transform: uppercase;
  margin-bottom: 16px;
}
.wt-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.wt-desc {
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 540px;
}

.wt-author { margin-bottom: 24px; }
.wt-author-link {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 16px 6px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .18s;
}
.wt-author-link:hover { border-color: var(--accent); }
.wt-author-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover;
}
.wt-author-label { display: block; font-size: 11px; color: var(--ink-muted); font-weight: 500; }
.wt-author-name { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }

.wt-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}
.wt-stat-num {
  font-size: 18px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--ink);
}
.wt-stat-num svg { width: 16px; height: 16px; }
.wt-stat-label { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }

.wt-meta-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.wt-meta-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px; color: var(--ink-muted); font-weight: 500;
}
.wt-meta-chip svg { width: 13px; height: 13px; }

.wt-cta-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.wt-progress-mini {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-muted); font-weight: 500;
}
.wt-progress-mini-track {
  width: 140px; height: 6px;
  background: var(--line); border-radius: 3px; overflow: hidden;
}
.wt-progress-mini-fill {
  height: 100%; background: var(--accent);
  transition: width .4s;
}

/* Sticky tabs */
.wt-tabs {
  position: sticky; top: 76px; z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
[data-theme="dark"] .wt-tabs { background: rgba(10,20,40,0.92); }
.wt-tabs-inner {
  display: flex; gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.wt-tabs-inner::-webkit-scrollbar { display: none; }
.wt-tab {
  padding: 18px 20px;
  font-size: 14.5px; font-weight: 600;
  color: var(--ink-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .18s, border-color .18s;
  margin-bottom: -1px;
}
.wt-tab:hover { color: var(--ink); }
.wt-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Main grid */
.wt-main {
  padding: 56px 0 80px;
}
.wt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1024px) {
  .wt-grid { grid-template-columns: 1fr; gap: 32px; }
  .wt-sidebar { order: -1; }
}

.wt-content > section { scroll-margin-top: 140px; }

.wt-section {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.wt-section:first-child {
  padding-top: 0; border-top: none;
}
.wt-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 24px;
}
.wt-section-meta {
  font-size: 13.5px; color: var(--ink-muted); font-weight: 500;
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.wt-progress-pill {
  padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-deep);
  font-weight: 700; font-size: 12.5px;
}
.wt-h2 {
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

/* Benefits */
.wt-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
@media (max-width: 640px) {
  .wt-benefits { grid-template-columns: 1fr; }
}
.wt-benefit {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; line-height: 1.5;
  color: var(--ink);
}
.wt-benefit-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid; place-items: center;
  margin-top: 1px;
}
.wt-benefit-check svg { width: 12px; height: 12px; }

/* Accordion */
.wt-accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.wt-acc-item { border-bottom: 1px solid var(--line); }
.wt-acc-item:last-child { border-bottom: none; }
.wt-acc-head {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  text-align: left;
  transition: background .15s;
}
.wt-acc-head:hover { background: var(--surface-2); }
.wt-acc-num {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 500;
  color: var(--accent-deep);
  font-style: italic;
}
.wt-acc-titles { display: flex; flex-direction: column; gap: 2px; }
.wt-acc-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.wt-acc-sub { font-size: 13px; color: var(--ink-muted); font-weight: 500; }
.wt-acc-chev {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--ink-muted);
  transition: transform .25s;
}
.wt-acc-chev svg { width: 16px; height: 16px; }
.wt-acc-item.is-open .wt-acc-chev { transform: rotate(180deg); color: var(--ink); }

.wt-acc-body {
  list-style: none;
  padding: 0 24px 16px 64px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.wt-vid {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.wt-vid:last-child { border-bottom: none; }

.wt-vid-state {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  cursor: pointer;
  transition: all .18s;
}
.wt-vid-state svg { width: 12px; height: 12px; }
.wt-vid-state:hover:not(:disabled) {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.wt-vid-state:disabled { cursor: not-allowed; opacity: 0.6; }

.wt-vid.is-watched .wt-vid-state {
  background: var(--accent); color: var(--ink);
  border-color: var(--accent);
}
.wt-vid.is-watched .wt-vid-title {
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-color: var(--ink-soft);
  text-decoration-thickness: 1px;
}
.wt-vid.is-locked .wt-vid-state {
  background: var(--surface-2); color: var(--ink-soft);
}
.wt-vid.is-locked .wt-vid-title {
  color: var(--ink-soft);
}

.wt-vid-title {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink);
}
.wt-vid-preview {
  padding: 2px 8px; border-radius: 4px;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.wt-vid-time {
  font-size: 13px; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* Educator */
.wt-educator {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
@media (max-width: 640px) {
  .wt-educator { grid-template-columns: 1fr; }
}
.wt-educator-img {
  width: 100%; aspect-ratio: 1;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.wt-educator-role {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--accent-deep); text-transform: uppercase;
  margin-bottom: 8px;
}
.wt-educator-name {
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.wt-educator-bio {
  font-size: 15px; color: var(--ink-muted);
  line-height: 1.55; margin-bottom: 20px;
}
.wt-educator-stats {
  display: flex; gap: 32px;
  padding-top: 20px; margin-top: 20px;
  border-top: 1px solid var(--line);
  margin-bottom: 20px;
}
.wt-educator-stats div { font-size: 13px; color: var(--ink-muted); }
.wt-educator-stats strong {
  display: block; font-size: 22px; color: var(--ink);
  font-weight: 700; letter-spacing: -0.01em;
}
.wt-educator-stats span { display: block; }
.wt-educator-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.wt-educator-link svg { width: 14px; height: 14px; transition: transform .18s; }
.wt-educator-link:hover { color: var(--accent-deep); }
.wt-educator-link:hover svg { transform: translateX(3px); }

/* Reviews */
.wt-reviews-summary {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  align-items: center;
}
@media (max-width: 640px) {
  .wt-reviews-summary { grid-template-columns: 1fr; gap: 24px; }
}
.wt-rating-big { text-align: center; }
.wt-rating-num {
  font-size: 56px; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--ink);
}
.wt-rating-stars {
  display: inline-flex; gap: 2px;
  margin: 8px 0 6px;
}
.wt-rating-stars svg { width: 18px; height: 18px; }
.wt-rating-count { font-size: 13px; color: var(--ink-muted); font-weight: 500; }

.wt-rating-bars { display: flex; flex-direction: column; gap: 8px; }
.wt-rating-bar {
  display: grid;
  grid-template-columns: 44px 1fr 40px;
  gap: 12px; align-items: center;
  font-size: 13px; font-weight: 500; color: var(--ink-muted);
}
.wt-bar-label { font-weight: 600; color: var(--ink); }
.wt-bar-track {
  height: 8px; background: var(--line); border-radius: 4px; overflow: hidden;
}
.wt-bar-fill {
  display: block; height: 100%;
  background: var(--accent);
  border-radius: 4px;
}
.wt-bar-pct { font-variant-numeric: tabular-nums; text-align: right; }

.wt-reviews-list { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.wt-review {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.wt-review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--accent);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
}
.wt-review-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  margin-bottom: 4px;
}
.wt-review-head strong { font-size: 15px; color: var(--ink); }
.wt-review-date { font-size: 12.5px; color: var(--ink-muted); }
.wt-review-stars { display: inline-flex; gap: 2px; margin-bottom: 8px; }
.wt-review-stars svg { width: 13px; height: 13px; }
.wt-review-text {
  font-size: 14.5px; line-height: 1.55; color: var(--ink-muted);
}

/* Q&A */
.wt-qa-form {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
}
.wt-qa-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.wt-qa-avatar-edu {
  background: var(--ink); color: var(--accent);
}
.wt-qa-input { display: flex; flex-direction: column; gap: 12px; }
.wt-qa-input textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14.5px;
  color: var(--ink);
  resize: vertical;
  min-height: 56px;
  transition: border-color .18s, background .18s;
}
.wt-qa-input textarea:focus {
  outline: none; border-color: var(--accent);
  background: var(--surface);
}
.wt-qa-input textarea:disabled {
  background: var(--surface-2);
  color: var(--ink-muted);
  cursor: not-allowed;
}
.wt-qa-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.wt-qa-hint { font-size: 12.5px; color: var(--ink-soft); }

.wt-qa-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.wt-qa-item {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column; gap: 16px;
}
.wt-qa-q, .wt-qa-a {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
}
.wt-qa-a {
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  margin-left: 24px;
}
.wt-qa-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wt-qa-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.wt-qa-head strong { font-size: 14.5px; color: var(--ink); }
.wt-qa-you {
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px;
  background: var(--accent-soft); color: var(--accent-deep);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.wt-qa-edu {
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px;
  background: var(--ink); color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.wt-qa-date { font-size: 12px; color: var(--ink-muted); }
.wt-qa-text {
  font-size: 14.5px; line-height: 1.55; color: var(--ink);
  margin-top: 4px;
}
.wt-qa-pending {
  margin-left: 58px;
  padding: 10px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  font-size: 13px; color: var(--ink-muted);
  font-style: italic;
}

/* Resources */
.wt-docs {
  list-style: none;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.wt-doc {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.wt-doc:last-child { border-bottom: none; }
.wt-doc-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
}
.wt-doc-icon[data-type="PDF"] { background: #fde2e2; color: #c92e2e; }
.wt-doc-icon[data-type="XLSX"] { background: #d6f0d8; color: #2a7a2e; }
.wt-doc-icon[data-type="DOCX"] { background: #dee9fc; color: #2c5fbe; }
.wt-doc-info { display: flex; flex-direction: column; min-width: 0; }
.wt-doc-name {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wt-doc-size { font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }
.wt-doc-action {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--ink); color: #fff;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background .18s, transform .18s;
}
.wt-doc-action svg { width: 14px; height: 14px; }
.wt-doc-action:hover { background: #0d2454; }
.wt-doc-locked {
  background: var(--surface-2); color: var(--ink-muted);
  cursor: not-allowed;
}
.wt-doc-locked:hover { background: var(--surface-2); }
.wt-doc.is-locked .wt-doc-icon { opacity: 0.55; filter: grayscale(0.4); }
.wt-doc.is-locked .wt-doc-name { color: var(--ink-muted); }

/* Sidebar */
.wt-sidebar {
  position: sticky;
  top: 152px;
}
.wt-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  display: flex; flex-direction: column;
  gap: 18px;
}
.wt-sb-price {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 4px;
}
.wt-sb-amt {
  font-size: 40px; font-weight: 800;
  letter-spacing: -0.03em; color: var(--ink);
}
.wt-sb-once {
  font-size: 14px; color: var(--ink-muted); font-weight: 500;
}
.wt-sb-free {
  font-size: 36px; font-weight: 800;
  letter-spacing: -0.03em; color: var(--accent-deep);
}
.wt-sb-cta {
  width: 100%; justify-content: center;
}
.wt-sb-divider {
  position: relative;
  text-align: center;
  font-size: 12px; color: var(--ink-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin: 8px 0;
}
.wt-sb-divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--line);
}
.wt-sb-divider span {
  position: relative;
  background: var(--surface);
  padding: 0 12px;
}
.wt-sb-includes {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.wt-sb-includes li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--ink-muted);
  line-height: 1.45;
}
.wt-sb-includes svg {
  width: 14px; height: 14px;
  color: var(--accent-deep);
  flex-shrink: 0;
  margin-top: 3px;
}
.wt-sb-guarantee {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--ink); font-weight: 500;
}

.wt-sb-progress {
  padding: 4px 0 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.wt-sb-progress-head {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 13px; color: var(--ink-muted); font-weight: 600;
  margin-bottom: 8px;
}
.wt-sb-progress-head strong {
  font-size: 24px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.01em;
}
.wt-sb-progress-track {
  height: 8px; background: var(--line);
  border-radius: 4px; overflow: hidden;
}
.wt-sb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 100%);
  transition: width .4s;
}
.wt-sb-progress-meta {
  font-size: 12.5px; color: var(--ink-muted);
  margin-top: 8px;
}

/* Footer */
.wt-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-muted);
  text-align: center;
}
.wt-footer a { color: var(--ink-muted); }
.wt-footer a:hover { color: var(--ink); }

/* Toast */
.wt-toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--ink); color: #fff;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastUp .35s cubic-bezier(0.22, 1, 0.36, 1);
}
.wt-toast svg {
  width: 16px; height: 16px;
  color: var(--accent);
}
@keyframes toastUp {
  from { transform: translate(-50%, 16px); opacity: 0; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .wt-stats { grid-template-columns: repeat(2, 1fr); }
  .wt-section { padding: 28px 0; }
  .wt-h2 { font-size: 22px; }
  .wt-acc-head { padding: 16px; gap: 12px; }
  .wt-acc-num { font-size: 18px; }
  .wt-acc-body { padding: 0 16px 12px 56px; }
  .wt-vid { font-size: 13.5px; }
  .wt-rating-num { font-size: 44px; }
  .wt-doc { grid-template-columns: 44px 1fr; gap: 12px; padding: 14px; }
  .wt-doc-action span { display: none; }
  .wt-doc-action { padding: 10px; }
  .wt-qa-a { margin-left: 0; }
  .wt-qa-pending { margin-left: 0; }
  .wt-tab { padding: 14px 14px; font-size: 13.5px; }
}

/* ---- Lesson player ---- */
.wt-video { width: 100%; height: 100%; display: block; border-radius: var(--radius-lg); background: #000; }
.wt-video-player { object-fit: contain; }
.wt-enroll-cta {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: #fff; font-weight: 700; font-size: 15px;
  margin: auto;
}

/* ---- Lesson progress bar ---- */
.wt-lesson-progress {
  height: 3px; background: rgba(0,0,0,0.08); border-radius: 999px;
  margin-top: 5px; overflow: hidden;
}
.wt-lesson-progress .bar {
  height: 100%; background: var(--accent, #111);
  border-radius: 999px; transition: width 200ms ease;
}
.wt-vid.is-active { background: var(--surface-2, #f6f6f6); border-radius: 8px; }

/* ---- Continue watching banner ---- */
.wt-continue-banner {
  background: var(--surface, #f6f6f6);
  border: 1px solid var(--line-strong, #e5e5e5);
  padding: 12px 16px; border-radius: 10px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; gap: 12px;
}

/* Active lesson notes (Alpine x-html, shared watcherPlayer scope) */
[x-cloak] { display: none !important; }
.wt-notes {
  margin: 22px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--line, #e7e7e7);
  border-radius: var(--radius-lg, 14px);
  background: var(--surface, #fff);
}
.wt-notes h3 { font-size: 14px; font-weight: 800; margin: 0 0 10px; color: var(--ink, #1a1a1a); }
.wt-notes-body { font-size: 14px; line-height: 1.65; color: var(--ink-soft, #444); }
.wt-notes-body h2 { font-size: 18px; font-weight: 800; margin: 14px 0 6px; color: var(--ink, #1a1a1a); }
.wt-notes-body h3 { font-size: 15px; font-weight: 700; margin: 12px 0 6px; color: var(--ink, #1a1a1a); }
.wt-notes-body ul, .wt-notes-body ol { padding-left: 22px; margin: 8px 0; }
.wt-notes-body p { margin: 6px 0; }
.wt-notes-body a { color: var(--accent-deep, #b45309); text-decoration: underline; }

/* Leave-a-review form (rating stars + body), reuses the .wt-qa-form shell */
.wt-review-form { margin-bottom: 28px; }
.wt-review-form-head {
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; color: var(--ink-soft, #444);
}
.wt-review-form .wt-qa-input textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14.5px;
  color: var(--ink);
  resize: vertical;
  min-height: 56px;
  transition: border-color .18s, background .18s;
}
.wt-review-form .wt-qa-input textarea:focus {
  outline: none; border-color: var(--accent);
  background: var(--surface);
}
.wt-star-input { display: inline-flex; gap: 4px; }
.wt-star {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  padding: 0; border: none; background: none; cursor: pointer;
  color: var(--line-strong);
  transition: color .12s, transform .12s;
}
.wt-star:hover { transform: scale(1.12); }
.wt-star:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.wt-star svg { width: 28px; height: 28px; }
.wt-star.is-on { color: #f5c842; }

/* Clear the fixed top nav when setActive() scrolls the player into view */
.wt-player { scroll-margin-top: 88px; }
