/* ══════════════════════════════════════════════════════════════════════════
   VIDEO MODAL
══════════════════════════════════════════════════════════════════════════ */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.modal.hidden { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.85);
  cursor: pointer;
}
.modal-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 900px;
  background: var(--navy-dark);
  border-radius: 0;
  overflow: hidden;
  max-height: 100dvh;
  display: flex; flex-direction: column;
}
.modal-topbar {
  display: flex; align-items: center;
  padding: 12px 14px 12px 16px;
  gap: 12px;
  background: var(--navy);
}
.modal-title-wrap { flex: 1; min-width: 0; }
.modal-video-title {
  font-size: 13px; font-weight: 600; color: var(--white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.modal-counter {
  font-size: 11px; color: rgba(255,255,255,.45);
  display: block; margin-top: 2px;
}
.modal-close {
  flex-shrink: 0;
  background: rgba(255,255,255,.08);
}
.modal-close:hover { background: rgba(255,255,255,.18); }

.player-ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  flex-shrink: 0;
}
.player-ratio iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}

.modal-controls {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 12px;
  gap: 8px;
}
.btn-ctrl {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.8);
  transition: background var(--trans), color var(--trans);
  min-width: 100px;
}
.btn-ctrl:first-child { justify-content: flex-start; }
.btn-ctrl:last-child  { justify-content: flex-end; }
.btn-ctrl:hover { background: rgba(255,255,255,.15); color: var(--white); }
.btn-ctrl:disabled { opacity: .3; cursor: not-allowed; }
.modal-duration {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.5);
  flex-shrink: 0;
}

/* ═══ VIDEO NOTES ═══ */
.video-note-editor {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(42, 48, 80, 0.6);
  border: 1px solid rgba(52, 211, 153, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}
.video-note-text {
  width: 100%;
  min-height: 80px;
  padding: 0.75rem 1rem;
  background: rgba(30, 34, 53, 0.8);
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 8px;
  color: #FAFAF6;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s ease;
  outline: none;
}
.video-note-text::placeholder {
  color: rgba(160, 152, 136, 0.6);
}
.video-note-text:focus {
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.08);
}
.video-note-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.6rem;
}
.video-note-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, #34D399, #059669);
  color: #1E2235;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(52, 211, 153, 0.25);
}
.video-note-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.4);
}
.video-note-save:active {
  transform: translateY(0);
}
.video-note-status {
  font-size: 0.75rem;
  color: #34D399;
  font-weight: 500;
}

