/* DevMafia FileHub v3.2 — nombres responsivos y vistas previas públicas */
.share-card,
#shareContent,
.share-file,
.share-file > *,
.share-file > * > *,
.file-card,
.file-top,
.file-top > * {
  min-width: 0;
  max-width: 100%;
}

.share-card {
  width: min(980px, calc(100vw - 32px)) !important;
  overflow: hidden;
}

.share-file {
  width: 100%;
  overflow: hidden;
  grid-template-columns: auto minmax(0, 1fr) !important;
}

.share-file h1,
.share-file .file-name,
#shareContent h1 {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-right: 0 !important;
  font-size: clamp(18px, 2.4vw, 32px) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.025em !important;
  white-space: normal !important;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-overflow: clip;
}

.dmfh-share-preview {
  width: 100%;
  margin: 18px 0 2px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(87, 177, 255, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 10%, rgba(237, 36, 255, 0.12), transparent 38%),
    radial-gradient(circle at 86% 12%, rgba(0, 217, 255, 0.11), transparent 40%),
    rgba(2, 5, 16, 0.84);
  box-shadow: inset 0 0 34px rgba(42, 90, 255, 0.06);
}

.dmfh-share-preview a {
  display: grid;
  width: 100%;
  min-height: 180px;
  max-height: min(62vh, 680px);
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background:
    linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.025) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.025) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.025) 75%),
    #030612;
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.dmfh-share-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(62vh, 660px);
  object-fit: contain;
  border-radius: 10px;
  user-select: none;
  -webkit-user-drag: none;
}

.dmfh-preview-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 9px 3px 1px;
  color: var(--muted, #9ca8ca);
  font-size: 11px;
}

.file-icon.dmfh-image-icon,
.upload-icon.dmfh-image-icon,
[data-file-icon].dmfh-image-icon,
.dmfh-manager-image-icon {
  position: relative;
  flex: 0 0 auto;
  width: 46px !important;
  height: 46px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(97, 139, 255, .36);
  border-radius: 12px;
  background: #030612 !important;
}

.file-icon.dmfh-image-icon,
.upload-icon.dmfh-image-icon,
[data-file-icon].dmfh-image-icon {
  width: 58px !important;
  height: 58px !important;
  border-radius: 14px;
}

.dmfh-image-icon img,
.dmfh-manager-image-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dmfh-image-icon::after {
  content: "IMG";
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 4px;
  border-radius: 5px;
  color: #fff;
  background: rgba(2, 4, 14, 0.78);
  font: 800 8px/1 ui-monospace, Consolas, monospace;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.24);
}

.dmfh-manager-image-icon--generated {
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}

@media (max-width: 780px) {
  .share-card {
    width: min(100% - 18px, 980px) !important;
    padding: 18px !important;
  }

  .share-file {
    grid-template-columns: minmax(0, 1fr) !important;
    text-align: center;
  }

  .share-file .big-icon {
    margin-inline: auto;
  }

  .share-file h1,
  #shareContent h1 {
    font-size: clamp(17px, 5.2vw, 25px) !important;
  }

  .dmfh-share-preview {
    padding: 7px;
  }

  .dmfh-share-preview a,
  .dmfh-share-preview img {
    max-height: 55vh;
  }
}
