/**
 * Aparat Pro Player — frontend styles (RTL-first)
 */

.app-pro-wrap {
  --app-pro-bg: #0b1220;
  --app-pro-panel: #111827;
  --app-pro-border: rgba(255, 255, 255, 0.08);
  --app-pro-text: #e5e7eb;
  --app-pro-muted: #9ca3af;
  --app-pro-radius: 14px;
  direction: rtl;
  font-family: Tahoma, "Segoe UI", Vazirmatn, sans-serif;
  color: var(--app-pro-text);
  margin: 1.5rem 0;
}

.app-pro-shell {
  display: grid;
  gap: 1rem;
  background: linear-gradient(160deg, #0f172a 0%, #111827 55%, #0b1220 100%);
  border: 1px solid var(--app-pro-border);
  border-radius: calc(var(--app-pro-radius) + 4px);
  padding: 1rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.app-pro-layout-sidebar .app-pro-shell {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  align-items: start;
}

.app-pro-layout-below .app-pro-shell,
.app-pro-layout-stacked .app-pro-shell {
  grid-template-columns: 1fr;
}

.app-pro-current-chapter {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: var(--app-pro-primary);
  border: 1px solid transparent;
  color: #fff;
  font-size: 0.92rem;
}

.app-pro-current-chapter .app-pro-current-label {
  opacity: 0.9;
  font-weight: 500;
}

.app-pro-current-chapter .app-pro-current-title {
  font-weight: 700;
}

.app-pro-current-chapter[hidden] {
  display: none !important;
}

.app-pro-player-box {
  background: var(--app-pro-panel);
  border-radius: var(--app-pro-radius);
  overflow: hidden;
  border: 1px solid var(--app-pro-border);
  position: relative;
}

.app-pro-quiz-soon {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.app-pro-quiz-soon[hidden] {
  display: none !important;
}

.app-pro-quiz-soon-text {
  background: rgba(245, 158, 11, 0.95);
  color: #1c1000;
  font-weight: 800;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: appProPulse 1s ease infinite;
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
}

@keyframes appProPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.app-pro-tv-hint {
  margin-top: 0.5rem;
  color: var(--app-pro-muted);
  font-size: 0.8rem;
  text-align: center;
}

.app-pro-tv .app-pro-quiz-option.is-tv-focus,
.app-pro-tv .app-pro-chapter-list li.is-tv-focus,
.app-pro-quiz-option.is-tv-focus {
  outline: 2px solid var(--app-pro-primary);
  outline-offset: 2px;
  transform: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.app-pro-tv .app-pro-btn,
.app-pro-tv .app-pro-tab,
.app-pro-tv .app-pro-quiz-option {
  min-height: 54px;
  font-size: 1.08rem;
}

.app-pro-media {
  position: relative;
  width: 100%;
  background: #000;
  aspect-ratio: 16 / 9;
  min-height: 220px;
}

.app-pro-media video,
.app-pro-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.app-pro-quiz-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.app-pro-quiz-overlay[hidden] {
  display: none !important;
}

.app-pro-quiz-card {
  width: min(480px, 100%);
  max-height: min(92%, 560px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(165deg, #121a2b 0%, #0b1220 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: appProQuizIn 0.28s ease;
}

.app-pro-quiz-card-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 1.1rem 1.15rem 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

.app-pro-quiz-card-body::-webkit-scrollbar {
  width: 6px;
}

.app-pro-quiz-card-body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
}

@keyframes appProQuizIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.app-pro-quiz-badge {
  display: inline-flex;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--app-pro-accent);
  color: #111;
  font-size: 0.78rem;
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.app-pro-quiz-question {
  margin: 0 0 0.45rem;
  font-size: clamp(1rem, 2.8vw, 1.18rem);
  line-height: 1.55;
  color: #fff;
  word-break: break-word;
}

.app-pro-quiz-hint {
  margin: 0 0 0.75rem;
  color: var(--app-pro-muted);
  font-size: 0.82rem;
}

.app-pro-quiz-hint[hidden] {
  display: none !important;
}

.app-pro-quiz-options {
  display: grid;
  gap: 0.5rem;
}

.app-pro-quiz-option {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: right;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  min-height: 48px;
}

.app-pro-quiz-mark {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
}

.app-pro-quiz-options.is-multi .app-pro-quiz-mark {
  border-radius: 5px;
}

.app-pro-quiz-option.is-selected .app-pro-quiz-mark {
  border-color: var(--app-pro-primary);
  background: var(--app-pro-primary);
}

.app-pro-quiz-option.is-selected .app-pro-quiz-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: inherit;
}

.app-pro-quiz-opt-text {
  flex: 1;
  line-height: 1.45;
  word-break: break-word;
}

.app-pro-quiz-option:hover {
  border-color: var(--app-pro-primary);
  background: rgba(255, 255, 255, 0.07);
}

.app-pro-quiz-option.is-selected {
  border-color: var(--app-pro-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 3px 0 0 var(--app-pro-primary);
}

.app-pro-quiz-option.is-correct {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.16);
}

.app-pro-quiz-option.is-wrong {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

.app-pro-quiz-option:disabled {
  cursor: default;
  opacity: 0.95;
}

.app-pro-quiz-feedback {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.app-pro-quiz-feedback.is-ok {
  color: #6ee7b7;
}

.app-pro-quiz-feedback.is-bad {
  color: #fca5a5;
}

.app-pro-quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 0 auto;
  padding: 0.85rem 1.15rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

.app-pro-quiz-actions .app-pro-btn {
  flex: 1;
  min-width: 120px;
  min-height: 48px;
  font-weight: 700;
}

.app-pro-quiz-submit.is-loading,
.app-pro-btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
  cursor: wait;
}

.app-pro-panel-title {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--app-pro-muted);
}

.app-pro-controls {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.85rem 0.25rem;
}

.app-pro-seek-group {
  display: flex;
  gap: 0.35rem;
}

.app-pro-seek-group .app-pro-btn {
  min-width: 52px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 0.45rem 0.55rem;
}

.app-pro-timeline-thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--app-pro-accent);
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  left: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 2;
}

.app-pro-marker.is-quiz {
  width: 8px;
  height: 8px;
  top: 0;
  border-radius: 50%;
  background: var(--app-pro-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.app-pro-marker.is-bookmark {
  width: 6px;
  height: 6px;
  top: 1px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.app-pro-timeline {
  padding: 0.75rem 1rem 0.35rem;
}

.app-pro-timeline-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  overflow: visible;
}

.app-pro-timeline-progress {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--app-pro-primary), var(--app-pro-accent));
  pointer-events: none;
}

.app-pro-timeline-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.app-pro-marker {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 14px;
  background: var(--app-pro-accent);
  opacity: 0.9;
  transform: translateX(-50%);
}

.app-pro-timeline-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  color: var(--app-pro-muted);
  font-size: 0.82rem;
  direction: ltr;
  unicode-bidi: isolate;
}

.app-pro-time-current,
.app-pro-time-duration {
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.app-pro-bookmark-wrap {
  position: relative;
  margin-right: auto;
}

.app-pro-bookmark-popover {
  position: absolute;
  bottom: calc(100% + 0.55rem);
  right: 0;
  z-index: 30;
  width: min(280px, 88vw);
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--app-pro-border);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.app-pro-bookmark-popover[hidden] {
  display: none !important;
}

.app-pro-bookmark-popover-title {
  margin: 0 0 0.55rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.app-pro-bookmark-hint {
  margin: 0 0 0.55rem;
  color: var(--app-pro-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.app-pro-bookmark-popover label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  color: var(--app-pro-muted);
}

.app-pro-bookmark-popover input {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--app-pro-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--app-pro-text);
  direction: ltr;
  text-align: left;
}

.app-pro-bookmark-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.app-pro-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--app-pro-border);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-size: 0.88rem;
  max-width: min(92vw, 420px);
  text-align: center;
}

.app-pro-toast[hidden] {
  display: none !important;
}

.app-pro-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem 1rem 1rem;
}

.app-pro-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--app-pro-text);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font-size: 0.88rem;
  transition: 0.18s ease;
}

.app-pro-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.app-pro-btn.is-primary,
.app-pro-resume {
  background: var(--app-pro-primary);
  border-color: transparent;
  color: #fff;
}

.app-pro-btn[hidden],
.app-pro-quality-wrap[hidden] {
  display: none !important;
}

.app-pro-quality-wrap {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-right: auto;
  color: var(--app-pro-muted);
  font-size: 0.85rem;
}

.app-pro-quality {
  background: #0b1220;
  color: var(--app-pro-text);
  border: 1px solid var(--app-pro-border);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
}

.app-pro-side {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--app-pro-border);
  border-radius: var(--app-pro-radius);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.app-pro-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.55rem;
  border-bottom: 1px solid var(--app-pro-border);
  background: rgba(0, 0, 0, 0.18);
}

.app-pro-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--app-pro-muted);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.86rem;
}

.app-pro-tab.is-active {
  background: rgba(15, 118, 110, 0.25);
  color: #fff;
}

.app-pro-panels {
  flex: 1;
  min-height: 0;
}

.app-pro-panel {
  display: none;
  padding: 0.75rem;
  max-height: 520px;
  overflow: auto;
}

.app-pro-panel.is-active {
  display: block;
}

.app-pro-search,
.app-pro-transcript-search,
.app-pro-note-input,
.app-pro-comment-input {
  width: 100%;
  box-sizing: border-box;
  background: #0b1220;
  color: var(--app-pro-text);
  border: 1px solid var(--app-pro-border);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.7rem;
  font: inherit;
}

.app-pro-chapter-list,
.app-pro-bookmark-list,
.app-pro-note-list,
.app-pro-comment-list,
.app-pro-transcript-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-pro-chapter-list li,
.app-pro-bookmark-list li,
.app-pro-note-list li,
.app-pro-comment-list li,
.app-pro-transcript-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: start;
  padding: 0.7rem 0.65rem;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.15s ease;
}

.app-pro-chapter-list li:hover,
.app-pro-bookmark-list li:hover,
.app-pro-transcript-list li:hover,
.app-pro-comment-list li:hover,
.app-pro-note-list li:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--app-pro-border);
}

.app-pro-chapter-list li.is-active {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--app-pro-primary);
  box-shadow: inset 3px 0 0 var(--app-pro-primary);
}

.app-pro-chapter-list li.is-done .app-pro-ch-title {
  color: var(--app-pro-muted);
}

.app-pro-ch-time,
.app-pro-item-time {
  color: var(--app-pro-accent);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  min-width: 3.2rem;
}

.app-pro-ch-title,
.app-pro-item-title {
  font-size: 0.92rem;
  line-height: 1.45;
}

.app-pro-ch-check {
  color: #34d399;
  font-size: 0.85rem;
}

.app-pro-form {
  margin-bottom: 0.85rem;
}

.app-pro-form .app-pro-btn {
  width: 100%;
  background: var(--app-pro-primary);
  border-color: transparent;
  color: #fff;
}

.app-pro-item-actions button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #f87171;
  cursor: pointer;
  font-size: 0.78rem;
}

.app-pro-empty {
  color: var(--app-pro-muted);
  text-align: center;
  padding: 1.2rem 0.5rem;
  font-size: 0.9rem;
}

.app-pro-iframe-hint {
  margin: 0.5rem 1rem 0;
  color: #fbbf24;
  font-size: 0.8rem;
}

.app-pro-error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

/* ========== Responsive: tablet ========== */
@media (max-width: 1100px) {
  .app-pro-layout-sidebar .app-pro-shell {
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.85fr);
  }
}

@media (max-width: 960px) {
  .app-pro-wrap {
    margin: 1rem 0;
  }

  .app-pro-shell {
    padding: 0.75rem;
    border-radius: 14px;
    gap: 0.75rem;
  }

  .app-pro-layout-sidebar .app-pro-shell {
    grid-template-columns: 1fr;
  }

  .app-pro-side {
    min-height: 0;
  }

  .app-pro-panel {
    max-height: min(42vh, 380px);
  }

  .app-pro-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .app-pro-tab {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0.55rem 0.9rem;
  }

  .app-pro-btn {
    min-height: 44px;
    padding: 0.7rem 1rem;
  }

  .app-pro-quiz-option {
    min-height: 48px;
    font-size: 1rem;
  }
}

/* ========== Responsive: mobile ========== */
@media (max-width: 640px) {
  .app-pro-wrap {
    margin: 0.5rem -0.25rem;
  }

  .app-pro-shell {
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: none;
  }

  .app-pro-media {
    min-height: 180px;
    border-radius: 10px 10px 0 0;
  }

  .app-pro-current-chapter {
    font-size: 0.82rem;
    border-radius: 10px;
    padding: 0.45rem 0.65rem;
  }

  .app-pro-toolbar {
    padding: 0.65rem 0.75rem 0.85rem;
    gap: 0.4rem;
  }

  .app-pro-controls {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .app-pro-seek-group {
    justify-content: center;
  }

  .app-pro-quality-wrap {
    margin-right: 0;
    width: 100%;
    justify-content: space-between;
  }

  .app-pro-quiz-overlay {
    padding: 0.65rem;
    align-items: end;
  }

  .app-pro-quiz-card {
    width: 100%;
    max-height: min(78vh, 560px);
    overflow: auto;
    border-radius: 16px 16px 12px 12px;
    padding: 1rem 1rem 1.15rem;
  }

  .app-pro-quiz-question {
    font-size: 1.05rem;
  }

  .app-pro-quiz-actions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, transparent, #0b1220 30%);
    padding-top: 0.75rem;
  }

  .app-pro-panel {
    max-height: min(48vh, 420px);
  }

  .app-pro-chapter-list li,
  .app-pro-bookmark-list li,
  .app-pro-note-list li,
  .app-pro-comment-list li,
  .app-pro-transcript-list li {
    padding: 0.85rem 0.7rem;
    min-height: 48px;
  }
}

/* ========== Landscape phones ========== */
@media (max-width: 900px) and (orientation: landscape) {
  .app-pro-media {
    max-height: 70vh;
    aspect-ratio: auto;
    height: min(70vh, 420px);
  }

  .app-pro-quiz-overlay {
    align-items: center;
  }

  .app-pro-quiz-card {
    max-height: 90vh;
  }
}

/* ========== Large screens / TV / home displays ========== */
@media (min-width: 1400px) {
  .app-pro-wrap {
    --app-pro-radius: 18px;
    font-size: 1.05rem;
  }

  .app-pro-shell {
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .app-pro-layout-sidebar .app-pro-shell {
    grid-template-columns: minmax(0, 1.85fr) minmax(320px, 0.85fr);
  }

  .app-pro-btn,
  .app-pro-tab,
  .app-pro-quiz-option {
    min-height: 52px;
    font-size: 1.05rem;
  }

  .app-pro-quiz-question {
    font-size: 1.35rem;
  }

  .app-pro-quiz-card {
    width: min(640px, 100%);
    padding: 1.6rem 1.75rem;
  }

  .app-pro-ch-title,
  .app-pro-item-title {
    font-size: 1.05rem;
  }

  .app-pro-panel {
    max-height: 640px;
  }
}

@media (min-width: 1800px) {
  .app-pro-wrap {
    font-size: 1.12rem;
  }

  .app-pro-media {
    min-height: 420px;
  }

  .app-pro-quiz-option {
    min-height: 58px;
    font-size: 1.15rem;
    padding: 1rem 1.15rem;
  }
}

/* Safe areas (notch / home indicator) */
@supports (padding: max(0px)) {
  .app-pro-quiz-card {
    padding-bottom: max(1.15rem, env(safe-area-inset-bottom));
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .app-pro-quiz-card {
    animation: none;
  }

  .app-pro-btn,
  .app-pro-quiz-option,
  .app-pro-chapter-list li {
    transition: none;
  }
}

/* Focus visibility for remote / keyboard / TV */
.app-pro-btn:focus-visible,
.app-pro-tab:focus-visible,
.app-pro-quiz-option:focus-visible,
.app-pro-chapter-list li:focus-visible,
.app-pro-search:focus-visible {
  outline: 2px solid var(--app-pro-primary);
  outline-offset: 2px;
}

/* ========== Themes ========== */
.app-pro-theme-transparent .app-pro-shell {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 0;
}

.app-pro-theme-transparent .app-pro-player-box,
.app-pro-theme-transparent .app-pro-side {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.app-pro-theme-transparent .app-pro-quiz-card {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
}

.app-pro-theme-light {
  --app-pro-bg: #f8fafc;
  --app-pro-panel: #ffffff;
  --app-pro-border: rgba(15, 23, 42, 0.1);
  --app-pro-text: #0f172a;
  --app-pro-muted: #64748b;
}

.app-pro-theme-light .app-pro-shell {
  background: linear-gradient(160deg, #f8fafc, #eef2ff);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.app-pro-theme-light .app-pro-player-box,
.app-pro-theme-light .app-pro-side,
.app-pro-theme-light .app-pro-panel,
.app-pro-theme-light .app-pro-tab {
  color: var(--app-pro-text);
}

.app-pro-theme-light .app-pro-quiz-card {
  background: #fff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.1);
}

.app-pro-theme-light .app-pro-quiz-question {
  color: #0f172a;
}

.app-pro-theme-light .app-pro-quiz-option {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}

.app-pro-theme-light .app-pro-btn {
  background: #fff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}

.app-pro-theme-light .app-pro-btn.is-primary {
  background: var(--app-pro-primary);
  color: #fff;
}
