/* ── ALL VIDEOS VIEW ───────────────────────────────────── */

.av-view-wrap {
  padding: 20px 24px;
}

.av-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.av-search-wrap {
  width: 100%;
}

.av-search {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--b1);
  border-radius: var(--radius-md);
  background: var(--s2);
  color: var(--tx);
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.av-search:focus {
  border-color: var(--accent);
}

.av-stage-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.av-pill {
  padding: 5px 13px;
  border-radius: var(--radius-full);
  border: 1px solid var(--b1);
  background: var(--s2);
  color: var(--t2);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.av-pill:hover {
  border-color: var(--accent);
  color: var(--tx);
}

.av-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.av-pill-count {
  opacity: 0.7;
  margin-left: 3px;
}

.av-filters-row {
  display: flex;
  gap: 10px;
}

.av-channel-select,
.av-sort-select {
  padding: 7px 12px;
  border: 1px solid var(--b1);
  border-radius: var(--radius-md);
  background: var(--s2);
  color: var(--tx);
  font-size: 13px;
  cursor: pointer;
}

.av-count {
  font-size: 12px;
  color: var(--t3);
  margin-bottom: 12px;
}

.av-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.av-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s;
}

.av-card:hover {
  border-color: var(--accent);
}

.av-card-thumb {
  width: 110px;
  min-height: 62px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--s3);
  flex-shrink: 0;
}

.av-card-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.av-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.av-card-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--tx);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.av-card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.av-stage-badge {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
}

.av-stage-research  { background: rgba(96,165,250,0.15);  color: #60a5fa; }
.av-stage-working   { background: rgba(245,158,11,0.15);  color: #f59e0b; }
.av-stage-pre-upload { background: rgba(52,211,153,0.15); color: #34d399; }
.av-stage-complete  { background: rgba(167,139,250,0.15); color: #a78bfa; }

.av-channel-badge {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  border: 1px solid;
  color: var(--t2);
}

.av-progress-bar {
  height: 3px;
  background: var(--s3);
  border-radius: 2px;
  overflow: hidden;
}

.av-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}

.av-card-date {
  font-size: 11px;
  color: var(--t3);
}

.av-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--t3);
  font-size: 14px;
}
