/* Web/css/featured-shows.css
   Phase 9 — Curate · Featured Shows. Matches the home-layout dark admin
   aesthetic + tokens.css palette; intentionally lightweight (no drag,
   no editor — just preview panel + searchable list). */

.fs-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  overflow-y: auto;
  height: 100%;
}

.fs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.fs-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.fs-sub {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.fs-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fs-status {
  font-size: 13px;
  color: var(--text-secondary);
  min-height: 18px;
}

.fs-status--error {
  color: var(--status-critical);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.fs-status--info {
  color: var(--text-primary);
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: var(--radius);
  padding: 6px 10px;
}

/* ── currently-featured panel ── */
.fs-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.fs-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.fs-panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.fs-panel-sub {
  color: var(--text-muted);
  font-size: 12px;
}

.fs-pill {
  font: 12px var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
}

.fs-empty {
  color: var(--text-muted);
  font-size: 13px;
  padding: 16px;
  text-align: center;
}

.fs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.fs-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
}

.fs-card-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-secondary);
}

.fs-card-cover--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--text-muted);
}

.fs-card-body {
  padding: 8px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.fs-card-owner {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-card-unfeature {
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: center;
}

.fs-card-unfeature:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.fs-card-unfeature:disabled {
  cursor: wait;
  opacity: 0.6;
}

/* ── search list ── */
.fs-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.fs-search-input {
  flex: 1;
  padding: 8px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 13px;
}

.fs-search-input:focus {
  outline: 1px solid var(--accent, var(--color-violet-light));
}

.fs-table-summary {
  color: var(--text-muted);
  font-size: 12px;
  margin: 4px 0 8px;
}

.fs-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.fs-row--featured {
  border-color: var(--color-violet-light, #a78bfa);
  background: rgba(167, 139, 250, 0.06);
}

.fs-row-cover {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
}

.fs-row-cover--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
}

.fs-row-body {
  flex: 1;
  min-width: 0;
}

.fs-row-name {
  font-weight: 500;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-row-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.fs-row-toggle {
  padding: 6px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.fs-row-toggle:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.fs-row-toggle--on {
  background: rgba(167, 139, 250, 0.15);
  border-color: var(--color-violet-light, #a78bfa);
  color: var(--text-primary);
}

.fs-row-toggle:disabled {
  cursor: wait;
  opacity: 0.6;
}

.fs-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.fs-page-btn {
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
}

.fs-page-btn:hover:not(:disabled) {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.fs-page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.fs-note {
  color: var(--text-muted);
  font-size: 12px;
  padding: 8px 0;
}

.fs-note code {
  font-family: var(--font-mono);
  background: var(--bg-elevated);
  padding: 1px 4px;
  border-radius: var(--radius-sm);
}
