/* ═══════════════════════════════════════════════════════════
   DIRECTOR DE EVENTOS — eventos + música
   ═══════════════════════════════════════════════════════════ */

.director-panel { border: 1px solid rgba(179, 102, 255, 0.25); }
.director-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem;
}
.director-header h2 i { color: #b366ff !important; }

/* Tabs */
.evt-tabs { display: flex; gap: 0.4rem; }
.evt-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.evt-tab-btn:hover { background: rgba(179, 102, 255, 0.12); color: #fff; }
.evt-tab-btn.active {
  background: linear-gradient(135deg, rgba(179, 102, 255, 0.25), rgba(0, 204, 255, 0.15));
  color: #fff;
  border-color: rgba(179, 102, 255, 0.55);
}

/* Progress bar de evento en curso */
#event-progress-bar {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.6rem 0.9rem;
  background: rgba(179, 102, 255, 0.08);
  border: 1px solid rgba(179, 102, 255, 0.3);
  border-radius: 10px;
}
#event-progress-label { font-size: 0.85rem; font-weight: 600; color: #b366ff; min-width: 200px; }
.event-progress-track {
  flex: 1; height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
}
#event-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #b366ff, #00ccff);
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(179, 102, 255, 0.6);
}
.evt-cancel-btn {
  background: rgba(255, 51, 102, 0.18);
  color: var(--danger);
  border: 1px solid rgba(255, 51, 102, 0.4);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}
.evt-cancel-btn:hover { background: rgba(255, 51, 102, 0.3); }

/* Toast feedback */
.music-toast {
  margin-bottom: 0.8rem;
  padding: 0.6rem 0.9rem;
  background: rgba(0, 204, 255, 0.1);
  border: 1px solid rgba(0, 204, 255, 0.3);
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.85rem;
}
.music-toast.warn { background: rgba(255, 153, 0, 0.1); border-color: rgba(255, 153, 0, 0.3); color: #ff9900; }

/* Grid de cards de eventos */
.event-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.8rem;
}
.event-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 4px solid rgba(255, 255, 255, 0.15);
}
.event-card:hover {
  background: rgba(179, 102, 255, 0.08);
  border-color: rgba(179, 102, 255, 0.4);
  transform: translateY(-2px);
}
.event-card.voice-consejo    { border-left-color: var(--gold); }
.event-card.voice-guardianes { border-left-color: #b366ff; }
.event-card.voice-abismo     { border-left-color: var(--danger); }
.event-card.voice-utilidad   { border-left-color: var(--text-muted); }

.event-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.4rem;
}
.event-icon { font-size: 1.6rem; }
.event-duration {
  font-size: 0.7rem; color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.15rem 0.5rem; border-radius: 50px;
  font-family: var(--font-mono);
}
.event-title {
  font-size: 0.95rem; color: #fff; margin: 0.2rem 0;
  display: flex; align-items: center; gap: 0.4rem;
}
.event-voice {
  font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.event-desc {
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin-bottom: 0.6rem;
  min-height: 2.5em;
}
.event-launch-btn {
  width: 100%;
  background: linear-gradient(135deg, rgba(179, 102, 255, 0.18), rgba(0, 204, 255, 0.12));
  color: #fff;
  border: 1px solid rgba(179, 102, 255, 0.3);
  padding: 0.5rem; border-radius: 6px;
  font-size: 0.8rem; cursor: pointer;
  pointer-events: none;
}

.role-pill {
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
}
.role-pill-admin {
  background: rgba(255, 51, 102, 0.18);
  color: var(--danger);
  border: 1px solid rgba(255, 51, 102, 0.4);
}

/* Forms en modales */
.event-form-field, .evt-form-field { display: flex; flex-direction: column; margin-bottom: 0.7rem; }
.event-form-field label, .evt-form-field label {
  font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.3rem;
}
.event-form-field input, .event-form-field textarea, .event-form-field select,
.evt-form-field input, .evt-form-field select {
  width: 100%; padding: 0.55rem; background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--panel-border); border-radius: 6px;
  color: #fff; font-family: var(--font-ui); font-size: 0.9rem; outline: none;
}
.event-form-field input:focus, .event-form-field textarea:focus,
.event-form-field select:focus, .evt-form-field input:focus, .evt-form-field select:focus {
  border-color: var(--primary);
}
.evt-form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }
.evt-form-row + .evt-form-row { grid-template-columns: 1fr 1fr; }

/* Toolbar de música */
.music-toolbar {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem;
  flex-wrap: wrap;
}
.btn-stop {
  background: rgba(255, 51, 102, 0.15) !important;
  color: var(--danger) !important;
  border: 1px solid rgba(255, 51, 102, 0.35) !important;
  padding: 0.45rem 0.9rem !important;
  font-size: 0.85rem !important;
  flex: none;
}

/* Catálogo de música */
.music-catalog { display: flex; flex-direction: column; gap: 0.6rem; }
.music-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
}
.music-group summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  padding: 0.2rem 0;
  list-style: none;
}
.music-group summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.2s;
  color: var(--primary);
  font-size: 0.7rem;
}
.music-group[open] summary::before { transform: rotate(90deg); }
.music-group summary::-webkit-details-marker { display: none; }
.music-count { color: var(--text-muted); font-size: 0.75rem; font-weight: 400; }

.music-list { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.3rem; }
.music-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0.7rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.15s;
  gap: 0.6rem;
}
.music-row:hover {
  background: rgba(179, 102, 255, 0.08);
  border-color: rgba(179, 102, 255, 0.25);
}
.music-info { flex: 1; min-width: 0; }
.music-label { font-size: 0.85rem; color: #fff; }
.music-id {
  font-size: 0.7rem; color: var(--text-muted); font-family: var(--font-mono);
  word-break: break-all;
}
.music-actions { display: flex; gap: 0.3rem; flex: none; }
.mbtn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  font-size: 0.85rem;
}
.mbtn:hover { background: rgba(179, 102, 255, 0.18); color: #fff; border-color: rgba(179, 102, 255, 0.4); }
.mbtn-preview:hover { background: rgba(0, 204, 255, 0.18); color: var(--accent); border-color: rgba(0, 204, 255, 0.4); }
.mbtn-all:hover     { background: rgba(179, 102, 255, 0.22); color: #b366ff; border-color: rgba(179, 102, 255, 0.5); box-shadow: 0 0 8px rgba(179, 102, 255, 0.25); }
.mbtn-area:hover    { background: rgba(255, 215, 0, 0.18); color: var(--gold); border-color: rgba(255, 215, 0, 0.4); }
.mbtn-player:hover  { background: rgba(0, 255, 204, 0.18); color: var(--success); border-color: rgba(0, 255, 204, 0.4); }

/* Responsive */
@media (max-width: 700px) {
  .director-header { flex-direction: column; align-items: flex-start; }
  .event-catalog-grid { grid-template-columns: 1fr; }
}
