/* css/components/video-exercises.css — Sune's Stories hub + modal */

/* ─── Hub wrapper (same width as other dashboard pages) ─────────────── */

.ve-hub {
  width: 100%;
  padding: 4px 0 48px;
  box-sizing: border-box;
}

/* ─── Series header ─────────────────────────────────────────────────── */

.ve-series-header {
  margin-bottom: 24px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #f0f7ff 0%, #fff 60%);
  border: 1.5px solid #ddeeff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ve-series-header-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ve-series-brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1899d6 0%, #1465a0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(24, 153, 214, 0.3);
}

.ve-series-brand-icon .material-symbols-outlined {
  font-size: 28px;
}

.ve-series-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary, #2D2E5F);
  margin: 0 0 4px;
  line-height: 1.15;
}

.ve-series-tagline {
  font-size: 0.9rem;
  color: var(--text-medium, #4a4b7c);
  margin: 0;
  line-height: 1.4;
}

.ve-series-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ve-series-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1899d6;
  background: #ddf4ff;
  border: 1.5px solid #b8e8fc;
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

.ve-series-pill .material-symbols-outlined {
  font-size: 15px;
}

.ve-series-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ve-series-overall-progress {
  flex: 1;
  height: 8px;
  background: #e8ecf4;
  border-radius: 999px;
  overflow: hidden;
}

.ve-series-overall-fill {
  height: 100%;
  background: linear-gradient(90deg, #58cc02 0%, #82e825 100%);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.ve-series-overall-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-medium, #4a4b7c);
  white-space: nowrap;
}

/* ─── Horizontal chapter rows ───────────────────────────────────────── */

.ve-chapter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ve-chapter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 2px solid #e8ecf4;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(45, 46, 95, 0.05);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.ve-chapter-row:hover:not(.ve-chapter-row--coming-soon) {
  border-color: #64B5F6;
  box-shadow: 0 6px 20px rgba(28, 176, 246, 0.12);
}

.ve-chapter-row--complete {
  border-color: #a8e06c;
  background: linear-gradient(135deg, #f8fff0 0%, #fff 60%);
}

.ve-chapter-row--coming-soon {
  opacity: 0.72;
}

.ve-chapter-row-info {
  flex: 1;
  min-width: 0;
}

.ve-chapter-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ve-chapter-ep {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1899d6;
  background: #ddf4ff;
  border: 1px solid #b8e8fc;
  border-radius: 999px;
  padding: 3px 10px;
}

.ve-level-badge {
  display: none;
}

.ve-chapter-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.ve-chapter-status--done {
  color: #46a302;
}

.ve-chapter-status--done .material-symbols-outlined {
  font-size: 16px;
}

.ve-chapter-status--started {
  color: #f97316;
}

.ve-chapter-status--soon {
  color: var(--text-light, #7b7ca0);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.68rem;
}

.ve-chapter-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary, #2D2E5F);
  margin: 0 0 4px;
  line-height: 1.3;
}

.ve-chapter-desc {
  font-size: 0.85rem;
  color: var(--text-medium, #4a4b7c);
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Step circles (play + numbered) ────────────────────────────────── */

.ve-chapter-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ve-step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #e8ecf4;
  background: #fff;
  color: var(--text-medium, #4a4b7c);
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.14s, border-color 0.14s, background 0.14s, box-shadow 0.14s;
  padding: 0;
  box-shadow: 0 2px 0 #dce3f0;
}

.ve-step-circle .material-symbols-outlined {
  font-size: 24px;
}

.ve-step-circle--play {
  background: linear-gradient(135deg, #1899d6 0%, #1cb0f6 100%);
  border-color: #1465a0;
  color: #fff;
  box-shadow: 0 3px 0 #1465a0;
}

.ve-step-circle--play.ve-step-circle--active:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #1465a0;
}

.ve-step-circle--active:not(.ve-step-circle--play) {
  border-color: #64B5F6;
  color: #1899d6;
  background: #f0f9ff;
}

.ve-step-circle--active:not(.ve-step-circle--play):hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #1899d6;
}

.ve-step-circle--done {
  background: #e5f8d0;
  border-color: #58cc02;
  color: #46a302;
  box-shadow: 0 2px 0 #46a302;
}

.ve-step-circle--done.ve-step-circle--play {
  background: linear-gradient(135deg, #58cc02 0%, #82e825 100%);
  border-color: #46a302;
  color: #fff;
  box-shadow: 0 3px 0 #46a302;
}

.ve-step-circle--locked {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.ve-step-circle:disabled {
  cursor: default;
  transform: none !important;
}

/* ─── Loading / empty / error ───────────────────────────────────────── */

.ve-loading,
.ve-error,
.ve-empty {
  text-align: center;
  padding: 56px 16px;
  color: var(--text-medium, #4a4b7c);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ve-loading .material-symbols-outlined,
.ve-error .material-symbols-outlined {
  font-size: 32px;
  opacity: 0.5;
}

/* ─── Modal overlay ─────────────────────────────────────────────────── */

.ve-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ve-modal-overlay--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.ve-modal-open {
  overflow: hidden;
}

.ve-modal-panel {
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 32px);
  background: var(--cu-lesson-bg, #fff);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(10, 12, 30, 0.25);
  animation: ve-modal-in 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.ve-modal-panel--video {
  max-width: 440px;
}

@keyframes ve-modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ve-modal-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}

.ve-modal-header {
  padding: 12px 16px 8px;
  flex-shrink: 0;
}

.ve-modal-header-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-medium, #4a4b7c);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ve-modal-header-spacer {
  width: 40px;
  flex-shrink: 0;
}

/* ─── Video in modal ──────────────────────────────────────────────────── */

.ve-modal-panel--video .ve-modal-inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ve-modal-video-stage {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0 0 calc(8px + env(safe-area-inset-bottom));
  min-height: 0;
  overflow: hidden;
}

.ve-modal-video-frame {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 320px;
  max-height: calc(100dvh - 88px);
  border-radius: 0;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.ve-video-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: rgba(24, 153, 214, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 0 #1465a0, 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  z-index: 2;
}

.ve-video-play-btn .material-symbols-outlined {
  font-size: 40px;
}

.ve-video-play-btn:hover {
  transform: scale(1.04);
}

.ve-video-play-btn:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #1465a0, 0 8px 20px rgba(0, 0, 0, 0.3);
}

.ve-video-play-btn[hidden] {
  display: none;
}

.ve-video-controls {
  position: absolute;
  inset: auto 0 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.82) 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.ve-video-ended ~ .ve-video-controls,
.ve-modal-video-frame:has(.ve-video-ended:not([hidden])) .ve-video-controls {
  opacity: 0.35;
  pointer-events: none;
}

.ve-video-progress-row {
  width: 100%;
}

.ve-video-seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  outline: none;
  cursor: pointer;
}

.ve-video-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1cb0f6;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.ve-video-seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1cb0f6;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.ve-video-seek::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.ve-video-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ve-video-time {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ve-video-volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ve-video-mute-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s;
}

.ve-video-mute-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.ve-video-mute-btn .material-symbols-outlined {
  font-size: 20px;
}

.ve-video-volume {
  -webkit-appearance: none;
  appearance: none;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  outline: none;
  cursor: pointer;
}

.ve-video-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.ve-video-volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
}

.ve-video-volume::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.ve-video-ended {
  position: absolute;
  inset: auto 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.72) 100%);
  display: flex;
  justify-content: flex-end;
  z-index: 3;
}

.ve-video-ended-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: flex-end;
}

.ve-video-restart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.ve-video-restart-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
}

.ve-video-restart-btn .material-symbols-outlined {
  font-size: 22px;
}

.ve-video-ended[hidden] {
  display: none;
}

.ve-video-continue-btn {
  min-width: 140px;
  min-height: 52px;
  border-radius: 14px;
}

/* ─── Quiz in modal (learning / sp-* style) ─────────────────────────── */

.ve-modal-quiz {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.ve-modal-quiz .sp-practice-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ve-modal-quiz .sp-practice-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

.ve-modal-quiz .sp-exercise-card {
  padding: 8px 28px 20px;
  align-items: stretch;
  justify-content: flex-start;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.ve-modal-quiz .sp-session-instruction {
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1899d6;
  margin: 0 0 14px;
}

.ve-question-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark, #2D2E5F);
  line-height: 1.5;
  margin: 0 0 18px;
  text-align: left;
  width: 100%;
}

.ve-modal-quiz .sp-option-grid {
  width: 100%;
}

.ve-modal-quiz .sp-option-btn {
  border-color: #dbeafe;
  border-bottom-color: #bfdbfe;
  background: #f8fbff;
  box-shadow: 0 3px 0 #bfdbfe;
}

.ve-modal-quiz .sp-option-btn:hover {
  border-color: #1899d6;
  background: #eef8ff;
}

.ve-modal-quiz .sp-option-btn--selected {
  border-color: #1899d6;
  border-bottom-color: #1465a0;
  background: #ddf4ff;
  color: #1465a0;
  box-shadow: 0 3px 0 #1465a0;
}

.ve-modal-quiz .sp-option-btn--selected .sp-option-num {
  border-color: #1465a0;
  color: #1465a0;
  background: #fff;
}

.ve-modal-quiz .sp-option-btn--correct,
.ve-modal-quiz .sp-option-btn--selected.sp-option-btn--correct,
.ve-modal-quiz .ve-option-btn--revealed-correct {
  border-color: #58cc02;
  border-bottom-color: #46a302;
  background: #e8f8d8;
  color: #2d6a0a;
  box-shadow: 0 3px 0 #46a302;
}

.ve-modal-quiz .sp-option-btn--correct .sp-option-num,
.ve-modal-quiz .ve-option-btn--revealed-correct .sp-option-num {
  border-color: #46a302;
  background: #58cc02;
  color: #fff;
}

.ve-modal-quiz .sp-option-btn--correct .sp-option-label,
.ve-modal-quiz .ve-option-btn--revealed-correct .sp-option-label {
  font-weight: 800;
}

.ve-modal-quiz .sp-option-btn--incorrect,
.ve-modal-quiz .sp-option-btn--selected.sp-option-btn--incorrect {
  border-color: #ef4444;
  border-bottom-color: #dc2626;
  background: #fdecea;
  color: #b91c1c;
  box-shadow: 0 3px 0 #dc2626;
}

.ve-modal-quiz .sp-option-btn--incorrect .sp-option-num {
  border-color: #dc2626;
  background: #ef4444;
  color: #fff;
}

.ve-modal-quiz .sp-practice-footer {
  flex-shrink: 0;
  border-top: 1px solid #e8ecf4;
  background: #fff;
  padding-bottom: env(safe-area-inset-bottom);
}

.ve-modal-quiz .sp-practice-footer-actions {
  padding: 14px 20px;
}

.ve-modal-quiz .sp-btn--action {
  min-width: 120px;
  min-height: 52px;
  border-radius: 14px;
}

.ve-modal-quiz .sp-btn--action[data-mode="check"]:not(:disabled) {
  background: linear-gradient(180deg, #58cc02 0%, #46a302 100%);
  border-color: #46a302;
  border-bottom-color: #3d8f02;
  box-shadow: 0 4px 0 #3d8f02;
}

.ve-modal-quiz .sp-btn--action[data-mode="check"]:not(:disabled):active {
  border-bottom-color: #3d8f02;
  box-shadow: 0 2px 0 #3d8f02;
}

.ve-modal-quiz .sp-btn--action[data-mode="continue"]:not(:disabled),
.ve-modal-quiz .sp-btn--continue-mode:not(:disabled),
.ve-modal-quiz .sp-btn--continue-mode.sp-btn--correct:not(:disabled),
.ve-modal-quiz .sp-btn--continue-mode.sp-btn--incorrect:not(:disabled) {
  background: linear-gradient(180deg, #58cc02 0%, #46a302 100%);
  border-color: #46a302;
  border-bottom-color: #3d8f02;
  box-shadow: 0 4px 0 #3d8f02;
}

.ve-modal-quiz .sp-btn--action[data-mode="continue"]:not(:disabled):active,
.ve-modal-quiz .sp-btn--continue-mode:not(:disabled):active {
  border-bottom-color: #3d8f02;
  box-shadow: 0 2px 0 #3d8f02;
}

.ve-video-continue-btn:not(:disabled),
.ve-complete-footer .sp-btn--continue-mode:not(:disabled) {
  background: linear-gradient(180deg, #58cc02 0%, #46a302 100%);
  border-color: #46a302;
  border-bottom-color: #3d8f02;
  box-shadow: 0 4px 0 #3d8f02;
}

.ve-video-continue-btn:not(:disabled):active,
.ve-complete-footer .sp-btn--continue-mode:not(:disabled):active {
  border-bottom-color: #3d8f02;
  box-shadow: 0 2px 0 #3d8f02;
}

/* ─── Order sentences tiles ─────────────────────────────────────────── */

.ve-order-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ve-tile-answer {
  min-height: 52px;
  padding: 10px;
  background: #f8fbff;
  border: 2px dashed #b8e8fc;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ve-tile-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ve-tile,
.ve-tile-answer-item {
  padding: 10px 12px;
  background: #fff;
  border: 2px solid #e8ecf4;
  border-bottom-width: 3px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary, #2D2E5F);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, opacity 0.15s;
}

.ve-tile:hover:not(:disabled) { border-color: #64B5F6; }

.ve-tile--used {
  opacity: 0.32;
  cursor: default;
}

.ve-tile-answer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.ve-tile-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1cb0f6;
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ─── Section complete screen ───────────────────────────────────────── */

.ve-modal-complete .sp-practice-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ve-section-complete-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

.ve-section-complete {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 24px 8px;
}

.ve-section-complete-sub {
  margin-bottom: 8px;
}

.ve-section-complete-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.ve-section-complete-score-val {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #46a302;
  line-height: 1.2;
}

.ve-section-complete-score-lbl {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-medium, #4a4b7c);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ve-complete-footer {
  flex-shrink: 0;
  border-top: 1px solid #e8ecf4;
  background: #fff;
  padding-bottom: env(safe-area-inset-bottom);
}

.ve-complete-footer .sp-practice-footer-actions {
  padding: 14px 20px;
}

.ve-complete-footer .sp-btn--action {
  min-width: 140px;
  min-height: 52px;
  border-radius: 14px;
}

/* ─── Bento card (dashboard) ────────────────────────────────────────── */

.bento-card-video-exercises {
  background: linear-gradient(135deg, #ddf4ff 0%, #fff 65%);
}

.bento-card-video-exercises .bento-card-title {
  color: #1899d6;
}

/* ─── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .ve-series-header {
    padding: 18px 16px;
  }

  .ve-series-title {
    font-size: 1.45rem;
  }

  .ve-chapter-desc {
    display: none;
  }

  .ve-chapter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  .ve-chapter-steps {
    justify-content: center;
    flex-wrap: wrap;
  }

  .ve-step-circle {
    width: 44px;
    height: 44px;
  }

  .ve-modal-overlay {
    padding: 0;
    align-items: stretch;
    background: var(--cu-lesson-bg, #fff);
  }

  .ve-modal-panel {
    max-width: none;
    max-height: none;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    animation: ve-modal-fullscreen-in 0.22s ease;
  }

  .ve-modal-panel--video .ve-modal-video-frame {
    min-height: 0;
    max-height: none;
    flex: 1;
  }

  @keyframes ve-modal-fullscreen-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .ve-modal-inner {
    max-height: none;
    height: 100%;
  }

  .ve-modal-quiz .ve-quiz-instruction,
  .ve-section-complete-sub {
    display: none;
  }

  .ve-modal-quiz .sp-exercise-card {
    padding: 8px 20px 20px;
  }

  .ve-section-complete-body {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .ve-series-header-top {
    gap: 12px;
  }

  .ve-series-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .ve-series-title {
    font-size: 1.3rem;
  }

  .ve-step-circle {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .ve-step-circle .material-symbols-outlined {
    font-size: 20px;
  }
}
