:root {
  --bg: #050816;
  --bg-elevated: #0b1120;
  --border: #1f2937;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --accent-hover: #818cf8;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.12);
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.7);
  --transition-fast: 0.16s ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.app-body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: var(--text);
  min-height: 100vh;
}

/* Header */

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.8rem;
  background: linear-gradient(to right, rgba(15,23,42,0.98), rgba(17,24,39,0.96));
  border-bottom: 1px solid rgba(55,65,81,0.7);
  backdrop-filter: blur(16px);
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: conic-gradient(from 180deg, #4f46e5, #ec4899, #22c55e, #4f46e5);
  box-shadow: 0 0 18px rgba(96,165,250,0.7);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-badge {
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(156,163,175,0.4);
  background: radial-gradient(circle at top left, rgba(96,165,250,0.18), rgba(15,23,42,1));
  color: var(--text-muted);
}

/* Main */

.app-main {
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
}

/* Auth (Login) */

.auth-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: radial-gradient(circle at top, #020617, #020617 45%, #000 100%);
  border-radius: 20px;
  padding: 2.2rem 2.4rem 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(55,65,81,0.9);
}

.auth-title {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

/* Forms */

.form-field {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(55,65,81,0.9);
  background: rgba(15,23,42,0.9);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.35);
  background: rgba(15,23,42,1);
}

.input::placeholder {
  color: #6b7280;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ec4899);
  color: #f9fafb;
  box-shadow: 0 14px 30px rgba(79,70,229,0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(79,70,229,0.7);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-radius: 999px;
  border: 1px solid rgba(75,85,99,0.8);
  padding-inline: 0.9rem;
}

.btn-ghost:hover {
  background: rgba(31,41,55,0.85);
  color: var(--text);
}

.btn-chip {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.9);
  color: var(--text-muted);
  text-decoration: none !important;
}

.btn-chip.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #e5e7eb;
}

.btn-good {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #022c22;
  font-size: 0.85rem;
  padding-inline: 0.8rem;
}

.btn-good:hover {
  filter: brightness(1.05);
}

.btn-bad {
  background: var(--danger-soft);
  border: 1px solid rgba(248,113,113,0.7);
  color: #fecaca;
  font-size: 0.85rem;
  padding-inline: 0.8rem;
}

.btn-bad:hover {
  background: rgba(248,113,113,0.2);
}

.btn-delete {
  margin-left: auto;
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(248,113,113,0.7);
  color: #fecaca;
  font-size: 0.8rem;
  padding-inline: 0.7rem;
}

.btn-delete:hover {
  background: rgba(239,68,68,0.18);
}

/* Toolbar & Grid */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.toolbar-right {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

.clips-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Cards */

.card {
  background: radial-gradient(circle at top left, rgba(56,189,248,0.1), rgba(15,23,42,1));
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(55,65,81,0.9);
  box-shadow: var(--shadow-subtle);
}

.clip-card {
  background: radial-gradient(circle at top left, rgba(79,70,229,0.18), rgba(15,23,42,1));
  border-radius: var(--radius-lg);
  padding: 0.85rem 0.9rem 0.9rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(55,65,81,0.9);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.clip-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.clip-title {
  font-size: 0.95rem;
  font-weight: 500;
}

.clip-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.clip-meta span + span::before {
  content: "•";
  margin: 0 0.35rem;
  color: rgba(148,163,184,0.8);
}

.clip-video {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(30,64,175,0.6);
}

.clip-video video {
  display: block;
  width: 100%;
}

.clip-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}

/* Table (Creators / User-Verwaltung) */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.7rem;
}

.table th,
.table td {
  padding: 0.5rem 0.4rem;
  text-align: left;
}

.table th {
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(55,65,81,0.9);
}

.table tr + tr td {
  border-top: 1px solid rgba(31,41,55,0.7);
}

.table tr:hover td {
  background: rgba(15,23,42,0.85);
}

/* Badges & Alerts */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(156,163,175,0.7);
  color: var(--text-muted);
}

.badge-accent {
  border-color: rgba(129,140,248,0.9);
  background: rgba(55,65,81,0.95);
  color: #e5e7eb;
}

.alert {
  font-size: 0.85rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.9);
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 768px) {
  .app-header {
    padding: 0.7rem 1.1rem;
  }

  .app-main {
    padding: 0 1rem;
  }

  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar-right {
    margin-left: 0;
  }
}
	  
	  /* Liste statt Grid */

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

.clip-row {
  background: radial-gradient(circle at top left, rgba(79,70,229,0.18), rgba(15,23,42,1));
  border-radius: var(--radius-lg);
  padding: 0.7rem 0.9rem 0.8rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(55,65,81,0.9);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.clip-row-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.clip-row-info {
  min-width: 0;
}

.clip-title {
  font-size: 0.95rem;
  font-weight: 500;
}

.clip-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.clip-meta span + span::before {
  content: "•";
  margin: 0 0.3rem;
  color: rgba(148,163,184,0.8);
}

.clip-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.clip-row-footer {
  margin-top: 0.25rem;
  font-size: 0.8rem;
}

/* Details / Play-Button */

.clip-details {
  margin-top: 0.3rem;
}

.clip-details summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.9);
}

.clip-details summary::-webkit-details-marker {
  display: none;
}

.clip-details[open] summary {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #e5e7eb;
}

.clip-details-icon {
  font-size: 0.9rem;
}

.clip-details-content {
  margin-top: 0.4rem;
}

.clip-video {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(30,64,175,0.6);
}

.clip-video iframe {
  display: block;
  width: 100%;
  height: 360px;
}

@media (max-width: 768px) {
  .clip-video iframe {
    height: 220px;
  }
}
.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(15,23,42,0.85);
  border: 1px solid rgba(148,163,184,0.25);
}

.sync-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.sync-badge.sync-green .sync-dot {
  background: #22c55e; /* grün */
}

.sync-badge.sync-yellow .sync-dot {
  background: #facc15; /* gelb */
}

.sync-badge.sync-red .sync-dot {
  background: #ef4444; /* rot */
}
.unrated-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.6);
  color: #fef3c7;
  text-decoration: none;
}

.unrated-pill:hover {
  background: rgba(250, 204, 21, 0.18);
}

.unrated-pill.unrated-pill-muted {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34,197,94,0.5);
  color: #bbf7d0;
}
.btn-chip,
.btn-ghost {
    line-height: 1;           /* gleiche Text-Höhe */
    padding: 0.45rem 0.75rem; /* gleiche Abstände */
    display: inline-flex;
    align-items: center;      /* Inhalt mittig */
}
	  .clip-row-rated-good {
  border-left: 3px solid #22c55e;
}

.clip-row-rated-bad {
  border-left: 3px solid #ef4444;
  opacity: 0.65;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal {
  background: #020617;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7);
  border: 1px solid rgba(148,163,184,0.4);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.modal-header h2 {
  margin: 0;
  font-size: 1rem;
  color: #e5e7eb;
}

.modal-body {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.modal-footer {
  margin-top: 0.75rem;
  text-align: right;
}

.modal-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 0.9rem;
}

.modal-close:hover {
  color: #e5e7eb;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.note-item {
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(15,23,42,0.8);
}

.note-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.2rem;
}

.note-text {
  font-size: 0.85rem;
  color: #e5e7eb;
}
.btn-notes-highlight{
  background:#fbbf24 !important;
  color:#000 !important;
  border-color:#d97706 !important;
  font-weight:600;
}