/**
 * css/phonetics-lab.css — French Pronunciation & Phonetics Lab
 * Revamped UI with High Contrast & Integrated Shadowing Studio (M581)
 */

.page-header h1 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}

.page-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.35rem;
  line-height: 1.5;
}

.tool-body {
  max-width: 860px;
  padding-bottom: 3rem;
}

.empty-note {
  color: var(--text-muted);
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.95rem;
  grid-column: 1 / -1;
}

/* ── Filter Rows (Level & Modality) ────────────────────────────────────────── */
.filter-group {
  margin-bottom: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.filter-row-modality {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.filter-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  min-width: 95px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* ── Category Grid (Lessons List) ─────────────────────────────────────────── */
.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}

.category-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease, box-shadow 0.18s ease;
  min-height: 145px;
  outline: none;
}

.category-item:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: var(--shadow-s);
}

.category-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  gap: 0.5rem;
}





[data-theme="light"] .chip-discriminate,
[data-theme="paper"] .chip-discriminate,

[data-theme="light"] .chip-liaison,
[data-theme="paper"] .chip-liaison,

[data-theme="light"] .chip-intonation,
[data-theme="paper"] .chip-intonation,

.category-item-count {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dim);
}

.category-item-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.category-item-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  flex: 1;
  margin-bottom: 0.85rem;
}

.category-item-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-text);
  border-top: 1px solid var(--border);
  padding-top: 0.65rem;
}

.category-item-arrow {
  transition: transform 0.15s ease;
}

.category-item:hover .category-item-arrow {
  transform: translateX(4px);
}

/* ── Category Detail & Explanation ────────────────────────────────────────── */
.back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s ease;
}

.back-btn:hover {
  color: var(--text);
}

.category-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  margin-bottom: 1.5rem;
}

.category-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-text);
}

.category-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.4rem 0 1rem;
}

.category-title-row h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.tts-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tts-icon-btn:hover {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-color: var(--accent);
  transform: scale(1.05);
}

.tts-icon-btn:active {
  transform: scale(0.92);
}

.category-explanation {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.7;
}

.category-explanation p {
  margin-bottom: 0.85rem;
}

.category-explanation p:last-child {
  margin-bottom: 0;
}

.category-explanation strong {
  color: var(--teal-text);
  font-weight: 700;
}

.category-explanation em {
  color: var(--purple);
  font-style: normal;
  font-weight: 600;
}

.category-table-wrap {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
}

.category-table-caption {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.category-table-scroll {
  overflow-x: auto;
}

.category-table {
  width: 100%;
  min-width: 360px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.category-table th,
.category-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border: 1px solid var(--border);
}

.category-table th {
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-table td:first-child {
  color: var(--text-muted);
  font-weight: 600;
}

.category-table td:not(:first-child) {
  color: var(--teal-text);
  font-weight: 700;
  font-family: var(--font-display);
}

/* ── Mode Navigation Tabs (Discriminate vs Studio/Shadowing) ──────────────── */
.ph-mode-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--surface-2);
  padding: 0.35rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.ph-mode-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.ph-mode-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.ph-mode-btn.active {
  background: var(--surface);
  color: var(--teal-text);
  border-color: var(--teal);
  box-shadow: var(--shadow-s);
}

/* ── Discriminate Item Card ────────────────────────────────────────────────── */
.item-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
}

.item-counter {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  margin: 0 auto 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}

.item-prompt {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.item-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.check-btn,
.next-btn {
  padding: 0.7rem 2rem;
  border-radius: var(--radius);
  border: none;
  background: var(--teal);
  color: var(--teal-ink);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.check-btn:hover,
.next-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.check-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.result-box {
  display: none;
  margin-top: 1.25rem;
  padding: 1.15rem;
  border-radius: var(--radius);
  text-align: left;
}

.result-box.show {
  display: block;
}

.result-box.ok {
  background: var(--surface-2);
  border: 1.5px solid #047857;
}

.result-box.wrong {
  background: var(--surface-2);
  border: 1.5px solid #be123c;
}

.verdict-ok {
  color: #10b981;
  font-weight: 800;
  font-size: 1rem;
}

.verdict-wrong {
  color: #ef4444;
  font-weight: 800;
  font-size: 1rem;
}

.result-explanation {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ── Pronunciation & Shadowing Studio Card ─────────────────────────────────── */
.ph-studio-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.ph-studio-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.ph-studio-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  line-height: 1.5;
}

/* Shadowing Method Guide */
.ph-shadow-guide {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.6rem;
  text-align: left;
}

@media (max-width: 640px) {
  .ph-shadow-guide {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .ph-shadow-arrow {
    display: none;
  }
}

.ph-shadow-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ph-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--teal-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.ph-step-content {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  line-height: 1.35;
}

.ph-step-content strong {
  color: var(--text);
  font-weight: 700;
}

.ph-step-content span {
  color: var(--text-muted);
}

.ph-shadow-arrow {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 800;
}

/* Minimal Pair Selector */
.ph-selector-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.ph-pair-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.ph-pair-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  min-width: 140px;
}

.ph-pair-btn:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.ph-pair-btn.active {
  border-color: var(--teal);
  background: var(--surface);
  color: var(--teal-text);
  box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.25), var(--shadow-s);
}

.ph-pair-ipa {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-family: monospace;
  font-weight: normal;
}

.ph-pair-btn.active .ph-pair-ipa {
  color: var(--teal-text);
  font-weight: 600;
}

.ph-pair-listen {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background-color 0.15s ease;
  flex-shrink: 0;
}

.ph-pair-listen:hover {
  background: var(--teal);
  color: var(--teal-ink);
  transform: scale(1.1);
}

/* Target Presentation */
.ph-target-display {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  min-width: min(100%, 460px);
}

.ph-target-badge { margin-bottom:0.75rem; }

.ph-target-text {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.ph-target-ipa {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--teal-text);
  margin-bottom: 1rem;
}

.ph-playback-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.ph-play-model-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid var(--teal);
  background: rgba(0, 180, 216, 0.12);
  color: var(--teal-text);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ph-play-model-btn:hover {
  background: var(--teal);
  color: var(--teal-ink);
  transform: scale(1.02);
}

.ph-speed-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ph-speed-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-right: 0.2rem;
}

.ph-speed-pill { cursor: pointer; }



/* Recording Controls & Volume Meter */
.ph-rec-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 1.4rem 0;
}

.ph-record-btn {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 3.5px solid var(--teal);
  background: var(--surface-2);
  color: var(--teal-text);
  font-size: 2.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.ph-record-btn:hover {
  transform: scale(1.06);
  background: var(--teal-soft);
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.35);
}

.ph-record-btn.recording {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  animation: ph-pulse 1.3s infinite;
}

@keyframes ph-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65); }
  70% { box-shadow: 0 0 0 18px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.ph-rec-status {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  min-height: 1.4rem;
}

.ph-meter-wrap {
  width: 100%;
  max-width: 340px;
  height: 9px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 0.2rem 0;
}

.ph-meter-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #00b4d8);
  transition: width 80ms ease;
}

/* Assessment Feedback Card */
.ph-assessment-card {
  display: none;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
  margin-top: 1.5rem;
  animation: ph-fade-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ph-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ph-assessment-card.show {
  display: block;
}

.ph-assessment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ph-score-pill {
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.ph-score-pill.success {
  background: #047857;
  color: #ffffff;
  border: 1px solid #065f46;
}

.ph-score-pill.warning {
  background: #b45309;
  color: #ffffff;
  border: 1px solid #92400e;
}

.ph-score-pill.miss {
  background: #be123c;
  color: #ffffff;
  border: 1px solid #9f1239;
}

.ph-assessment-time {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.ph-phonetic-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.1rem;
  margin-bottom: 1.25rem;
}

.ph-compare-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ph-compare-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.ph-compare-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.ph-compare-ipa {
  font-family: monospace;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--teal-text);
}

.ph-diag-banner {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.ph-diag-banner.success {
  background: var(--surface);
  border: 1.5px solid #047857;
  color: var(--text);
}

.ph-diag-banner.warning {
  background: var(--surface);
  border: 1.5px solid #b45309;
  color: var(--text);
}

.ph-diag-banner.miss {
  background: var(--surface);
  border: 1.5px solid #be123c;
  color: var(--text);
}

.ph-diag-banner strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
}

.ph-diag-banner.success strong { color: #10b981; }
.ph-diag-banner.warning strong { color: #f59e0b; }
.ph-diag-banner.miss strong { color: #ef4444; }
.ph-diag-banner p { margin: 0; color: var(--text); }

/* Dual-Track Audio Comparison Deck */
.ph-comparison-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.ph-deck-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ph-deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}




.ph-deck-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.ph-deck-btn {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--teal);
  background: rgba(0, 180, 216, 0.12);
  color: var(--teal-text);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.ph-deck-btn:hover {
  background: var(--teal);
  color: var(--teal-ink);
}

.ph-deck-audio {
  width: 100%;
  height: 38px;
  border-radius: 8px;
  outline: none;
}

.ph-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--teal-ink);
  font-weight: 800;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.ph-save-btn:hover {
  opacity: 0.9;
}

.ph-save-btn.saved {
  background: #047857;
  color: #ffffff;
  cursor: default;
}

/* Saved Recordings History Drawer */
.ph-history-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.6rem;
  text-align: left;
}

.ph-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}

.ph-history-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.ph-history-body {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ph-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
}

.ph-hist-target {
  font-weight: 800;
  color: var(--text);
}

.ph-hist-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-left: 0.6rem;
}

.ph-hist-verdict {
  font-size: 0.82rem;
  font-weight: 800;
}

.category-complete {
  text-align: center;
  padding: 3rem 1.5rem;
}

.category-complete-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.category-complete p {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* ── Lesson Player Launcher Banner ─────────────────────────────────────── */
.ph-player-banner {
  margin-bottom: 0.5rem;
}

.ph-player-banner-content {
  flex: 1;
  min-width: 240px;
}

.ph-player-banner-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--purple);
  margin-bottom: 0.25rem;
}

.ph-player-banner-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
}

.ph-player-banner-sub {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.ph-player-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ph-player-launch-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.ph-table-example {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.15rem 0.35rem 0.15rem 0;
  padding: 0.15rem 0.45rem;
  font-size: 0.86rem;
}

.ph-table-tts {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 0.82rem;
  opacity: 0.8;
  transition: opacity 0.12s, transform 0.12s;
}

.ph-table-tts:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* Phone: guided-path banner trimmed to title + launch button */
@media (max-width: 640px) {
  .ph-player-banner { padding: .75rem .9rem; gap: .6rem; }
  .ph-player-banner-content { min-width: 0; flex: 1 1 100%; }
  .ph-player-banner-title { font-size: 1.02rem; }
  .ph-player-banner-sub { display: none; }
  .ph-player-launch-btn { width: 100%; justify-content: center; }
}

/* M637: .option-btn / .play-btn come from shared.css DS:TYPE; tokens only. */
.option-btn { --opt-accent: var(--teal); --opt-sel-bg: var(--teal-soft); --opt-sel-ink: var(--teal-text); --opt-ok-edge: #047857; --opt-ok-ink: #10b981; --opt-bad-edge: #be123c; --opt-bad-ink: #ef4444; font-size: 1.05rem; font-weight: 700; justify-content: center; }
@media (min-width: 640px) { .option-btn { padding: .8rem 1.6rem; min-width: 130px; } }
.play-btn { --play-size: 76px; --play-bg: var(--teal-soft); --play-ink: var(--teal-text); margin-bottom: 1.25rem; }
.play-btn:hover { background: var(--teal); color: var(--teal-ink); }
