/* ============================
   MODEL MIDIA — Velvet Premium
============================ */

.modelmidia-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background: var(--background);
  color: var(--text);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

/* ---------- Header ---------- */
.modelmidia-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modelmidia-actions {
  display: flex;
  gap: 10px;
}

/* ---------- Grid ---------- */
.modelmidia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.modelmidia-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(212,175,55,0.25);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  cursor: grab;
  transition: transform .25s ease, border .25s ease;
}
.modelmidia-card:active { cursor: grabbing; }
.modelmidia-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.modelmidia-card img,
.modelmidia-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Video Play Overlay */
.modelmidia-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.55);
  padding: 10px;
  border-radius: 50%;
}
.modelmidia-play img { width: 24px; height: 24px; }

/* Delete Button */
.modelmidia-delete {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(0,0,0,0.7);
  border: none;
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background .25s ease;
}
.modelmidia-delete:hover { background: rgba(229,57,53,0.9); }

/* Empty State */
.modelmidia-empty {
  grid-column: span 3;
  text-align: center;
  padding: 40px 0;
  color: var(--text-light);
}
.modelmidia-empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--gold);
}

/* ---------- See More ---------- */
.modelmidia-see-more {
  text-align: center;
}
.modelmidia-see-more .dash-btn {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .25s ease;
}
.modelmidia-see-more .dash-btn:hover { filter: brightness(1.15); }

/* ---------- Footer Add ---------- */
.modelmidia-footer {
  text-align: center;
}
.modelmidia-btn-footer {
  background: linear-gradient(90deg, var(--gold), #cfa349);
  border: none;
  color: #000;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: filter .25s ease;
}
.modelmidia-btn-footer:disabled {
  background: #444;
  color: #999;
  cursor: not-allowed;
}
.modelmidia-btn-footer:hover:not(:disabled) { filter: brightness(1.1); }

.modelmidia-limit-note {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ============================
   HELP MODAL
============================ */
.modelmidia-help-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
}
.modelmidia-help-modal.active { display: flex; }

.modelmidia-help-dialog {
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 20px;
  color: var(--text);
  max-width: 400px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  position: relative;
}
.modelmidia-help-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--gold);
}
.modelmidia-help-list { padding-left: 18px; font-size: 0.9rem; line-height: 1.4; }
.modelmidia-help-close {
  position: absolute;
  top: 8px; right: 10px;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--gold);
}

/* ============================
   MEDIA VIEW MODAL
============================ */
.model-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
}
.model-modal.active { display: flex; }

.model-modal-dialog {
 
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.model-modal-dialog.wide { max-width: 95vw; }

.model-modal-close {
  position: absolute;
  top: 8px; right: 10px;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--gold);
}

.media-view-body img,
.media-view-body video {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 10px;
  display: block;
  margin: auto;
  object-fit: contain;
}

/* ============================
   RED DIAMOND SPECIAL
============================ */
.modelmidia-card.redDiamond {
  border: 2px solid #d62b2b;
  box-shadow: 0 0 16px rgba(229,57,53,0.7), 0 0 28px rgba(212,175,55,0.45);
}
.modelmidia-card.redDiamond:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 22px rgba(229,57,53,0.9), 0 0 32px rgba(212,175,55,0.6);
}
/* === Base dos Modais === */
.model-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  animation: fadeIn .25s ease;
}

.model-modal.active { display: flex; }

.model-modal-dialog {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  max-width: 900px;
  max-height: 86vh;
  width: 100%;
  color: var(--text);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  overflow-y: auto;
  animation: scaleIn .25s ease;
}

.model-modal-dialog.wide { max-width: 1200px; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* === Botão Fechar === */
.model-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--gold);
  cursor: pointer;
  transition: transform .25s ease, color .25s ease;
}
.model-modal-close:hover {
  transform: scale(1.2);
  color: #f0ca32;
}

/* === Help Modal === */
.modelmidia-help-modal .modelmidia-help-dialog {
  max-width: 480px;
  padding: 24px;
}
.modelmidia-help-title {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.modelmidia-help-list {
  list-style: disc;
  padding-left: 18px;
  font-size: 0.95rem;
  color: var(--text-light);
}
.modelmidia-help-list li { margin-bottom: 8px; }

/* === Media View (imagem maior) === */
.media-view-body {
  display: flex;
  justify-content: center;
  align-items: center;
}
.media-view-body img,
.media-view-body video {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  border: 1px solid var(--gold);
  box-shadow: 0 0 18px rgba(212,175,55,0.45);
}
