/* DMG CMS — edit mode overlay (team: add ?cms=1 to URL) */
.cms-edit-mode .cms-editable { outline: 1px dashed rgba(34, 197, 94, 0.5); outline-offset: 2px; position: relative; }
.cms-text-wrap { display: inline; position: relative; }
.cms-text-wrap .cms-toolbar { left: 0; right: auto; }
.cms-edit-mode .cms-editable:hover { outline-color: var(--accent, #22c55e); }
.cms-toolbar {
  position: absolute;
  top: -36px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: var(--surface, #0c0c0c);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 99999;
  font-size: 0.75rem;
}
.cms-toolbar button {
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: var(--text, #fafafa);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}
.cms-toolbar button:hover { background: var(--accent, #22c55e); color: #050505; }
.cms-toolbar button.cms-btn-delete:hover { background: #ef4444; color: #fff; }
.cms-bg-wrap, .cms-video-wrap { position: relative; display: block; }
.cms-video-wrap video { display: block; width: 100%; }
.cms-toolbar-poster { position: relative; top: 4px; margin-top: 4px; }
.cms-toolbar-label { font-size: 0.65rem; color: #aaa; margin-right: 4px; }
.cms-float { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 99999; display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; }
.cms-api-status { font-size: 0.7rem; padding: 0.25rem 0.5rem; border-radius: 4px; }
.cms-api-status.cms-api-ok { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.cms-api-status.cms-api-error { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.cms-float .cms-btn-edit-mode,
.cms-float .cms-btn-save,
.cms-float .cms-btn-videos,
.cms-float .cms-btn-discography,
.cms-float .cms-btn-merch,
.cms-float .cms-btn-shows {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px;
  background: #22c55e;
  color: #050505;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
}
.cms-float .cms-btn-videos,
.cms-float .cms-btn-discography,
.cms-float .cms-btn-merch,
.cms-float .cms-btn-shows { background: #1a1a1a; color: #fafafa; border: 1px solid rgba(255,255,255,0.2); }
.cms-catalog-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cms-catalog-panel.is-open { display: flex; }
.cms-catalog-panel__inner {
  background: #111;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 12px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  padding: 1.25rem;
  color: #fafafa;
}
.cms-catalog-panel__inner h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.cms-catalog-panel__hint { margin: 0 0 1rem; font-size: 0.8rem; color: #aaa; }
.cms-catalog-row {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cms-catalog-row input,
.cms-catalog-row textarea {
  width: 100%;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: #0a0a0a;
  color: #fafafa;
  font-size: 0.85rem;
  font-family: inherit;
}
.cms-catalog-row__top { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.cms-catalog-image-row { display: flex; gap: 0.5rem; align-items: center; }
.cms-catalog-image-row input { flex: 1; }
.cms-catalog-image-row button,
.cms-catalog-row__top button {
  padding: 0.35rem 0.6rem;
  font-size: 0.7rem;
  background: rgba(255,255,255,0.08);
  color: #fafafa;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.cms-catalog-remove:hover { background: #ef4444 !important; }
.cms-catalog-panel__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.cms-catalog-panel__actions button {
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 8px;
  background: #22c55e;
  color: #050505;
  font-weight: 600;
  cursor: pointer;
}
.cms-catalog-panel__actions .cms-catalog-close { background: #333; color: #fff; }
.cms-float .cms-btn-edit-mode.off { background: #1a1a1a; color: #fafafa; border: 1px solid rgba(255,255,255,0.2); }
.cms-float .cms-btn-save { display: none; }
.cms-edit-mode .cms-float .cms-btn-save { display: block; }
.cms-float .cms-btn-save.unsaved { box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.8); }
.cms-unsaved-label { font-size: 0.65rem; color: #eab308; }
.cms-image-wrap { position: relative; display: inline-block; padding-bottom: 42px; }
.cms-video-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cms-video-panel.is-open { display: flex; }
.cms-video-panel__inner {
  background: #111;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 12px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  padding: 1.25rem;
  color: #fafafa;
}
.cms-video-panel__inner h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.cms-video-panel__hint { margin: 0 0 1rem; font-size: 0.8rem; color: #aaa; }
.cms-video-row {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cms-video-row input, .cms-video-row select {
  width: 100%;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: #0a0a0a;
  color: #fafafa;
  font-size: 0.85rem;
}
.cms-video-row__top { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; }
.cms-video-row__top select { width: auto; flex: 1; min-width: 120px; }
.cms-video-panel__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.cms-video-panel__actions button {
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 8px;
  background: #22c55e;
  color: #050505;
  font-weight: 600;
  cursor: pointer;
}
.cms-video-panel__actions #cms-video-close { background: #333; color: #fff; }
.cms-video-remove, .cms-video-up, .cms-video-down {
  padding: 0.35rem 0.6rem !important;
  font-size: 0.7rem !important;
  background: rgba(255,255,255,0.08) !important;
  color: #fafafa !important;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.cms-video-remove:hover { background: #ef4444 !important; }
