.vv-page {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: #0f172a;
}

.vv-grid-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.vv-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
}

.vv-card:hover {
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.08);
}

.vv-card-pad {
  padding: 1.5rem;
}

.vv-card-pad-lg {
  padding: 2rem;
}

.vv-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vv-kicker-indigo { color: #6366f1; }
.vv-kicker-amber { color: #f59e0b; }
.vv-kicker-emerald { color: #10b981; }

.vv-stat-value {
  font-size: 2.25rem;
  font-weight: 900;
  margin-top: 0.5rem;
  color: #1e293b;
}

.vv-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #1e293b;
}

.vv-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.vv-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.vv-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
}

.vv-input,
.vv-select,
.vv-textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
  color: #0f172a;
  outline: none;
}

.vv-input:focus,
.vv-select:focus,
.vv-textarea:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.vv-textarea {
  min-height: 84px;
  resize: vertical;
}

.vv-dropzone {
  border: 2px dashed #cbd5e1;
  background: #fefefe;
  border-radius: 24px;
  transition: all 0.2s;
  text-align: center;
  padding: 2rem;
  cursor: pointer;
}

.vv-dropzone:hover,
.vv-dropzone.is-dragover {
  border-color: #4f46e5;
  background: #fafbff;
}

.vv-drop-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #eef2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.vv-drop-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
}

.vv-drop-note {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.vv-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.vv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.7rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.2s;
  border: 1px solid transparent;
  text-decoration: none;
}

.vv-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vv-btn-primary {
  background: #4f46e5;
  color: #ffffff;
}

.vv-btn-primary:hover { background: #4338ca; }

.vv-btn-secondary {
  background: #ffffff;
  color: #475569;
  border-color: #e2e8f0;
}

.vv-btn-secondary:hover { background: #f8fafc; }

.vv-btn-dark {
  background: #0f172a;
  color: #ffffff;
}

.vv-btn-dark:hover { background: #1e293b; }

.vv-btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.vv-btn-danger:hover { background: #fee2e2; }

.vv-progress {
  margin-top: 1rem;
}

.vv-progress-track {
  height: 0.375rem;
  width: 100%;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.vv-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #6366f1;
  transition: width 0.25s ease;
}

.vv-progress-bar.is-indeterminate {
  width: 45% !important;
  animation: vv-indeterminate 1.2s ease-in-out infinite;
}

.vv-progress-text {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.5rem;
}

.vv-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem;
}

.vv-filter-grow {
  flex: 1 1 220px;
}

.vv-filter-fixed {
  width: 176px;
}

.vv-library {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vv-subject-block {
  background: transparent;
}

.vv-subject-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.vv-subject-bar {
  width: 4px;
  height: 28px;
  border-radius: 999px;
  background: #6366f1;
}

.vv-subject-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #1e293b;
}

.vv-count-chip {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.vv-chapter-block {
  margin-left: 0.75rem;
  margin-bottom: 1.25rem;
}

.vv-chapter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.vv-chapter-title {
  font-size: 1rem;
  font-weight: 800;
  color: #334155;
}

.vv-video-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vv-video-row {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.18s ease;
  padding: 1rem 1.1rem;
}

.vv-video-row:hover {
  box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.18);
  background: #fafcff;
}

.vv-video-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.vv-video-title {
  font-size: 1rem;
  font-weight: 900;
  color: #1e293b;
}

.vv-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vv-status-processing { background: #ffedd5; color: #b45309; }
.vv-status-ready { background: #dcfce7; color: #15803d; }
.vv-status-error { background: #fee2e2; color: #b91c1c; }
.vv-status-queued { background: #dbeafe; color: #1d4ed8; }

.vv-video-submeta {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.3rem;
}

.vv-video-desc {
  font-size: 0.875rem;
  color: #475569;
  margin-top: 0.6rem;
}

.vv-video-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.vv-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.vv-page-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.vv-page-btn {
  border-radius: 0.75rem;
  padding: 0.65rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
}

.vv-page-btn:hover { background: #f8fafc; }

.vv-page-btn.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.vv-nav-card {
  display: none;
}

@keyframes vv-indeterminate {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(250%); }
}

@media (max-width: 1200px) {
  .vv-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .vv-grid-stats {
    grid-template-columns: 1fr;
  }

  .vv-filter-fixed {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .vv-form-grid {
    grid-template-columns: 1fr;
  }

  .vv-card-pad-lg {
    padding: 1.25rem;
  }

  .vv-video-row {
    padding: 0.9rem;
  }
}
