/* Local Video Lessons v23 */

/* Badge đếm video */
.local-video-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--color-primary, #2563eb);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* File input */
.local-video-file-label input[type="file"] {
  margin-top: 6px;
}
.local-video-file-label small {
  display: block;
  margin-top: 4px;
  color: var(--color-muted, #6b7280);
  font-size: 12px;
}
.local-video-file-label code {
  font-family: monospace;
  background: var(--color-surface-raised, #f3f4f6);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Progress bar */
.local-video-progress {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.local-video-progress-bar {
  height: 8px;
  background: var(--color-border, #e5e7eb);
  border-radius: 4px;
  overflow: hidden;
}
.local-video-progress-bar i {
  display: block;
  height: 100%;
  background: var(--color-primary, #2563eb);
  border-radius: 4px;
  transition: width .3s ease;
  width: 2%;
}
.local-video-progress span {
  font-size: 13px;
  color: var(--color-muted, #6b7280);
}

/* Thư viện */
.local-video-library {
  margin-top: 24px;
  border-top: 1px solid var(--color-border, #e5e7eb);
  padding-top: 20px;
}
.local-video-library h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-muted, #6b7280);
}
.local-video-course-block {
  margin-bottom: 16px;
}
.local-video-course-block > b {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--color-text, #111827);
}
.local-video-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border, #f3f4f6);
  flex-wrap: wrap;
  margin: 0;
}
.local-video-order {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary, #2563eb);
  min-width: 38px;
}
.local-video-title {
  flex: 1;
  font-size: 14px;
  color: var(--color-text, #111827);
}
.local-video-meta {
  font-size: 11px;
  color: var(--color-muted, #9ca3af);
}
.local-video-empty {
  color: var(--color-muted, #6b7280);
  font-style: italic;
  font-size: 14px;
}

/* Player */
.local-video-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.local-video-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.local-video-file-info {
  font-size: 12px;
  color: var(--color-muted, #9ca3af);
  margin: 0;
}
