/* ══════════════════════════════════════════════════════════════
   PERFIL FLOTANTE — SOLO PC
   · Tarjeta pequeña junto al avatar / nombre / miembro pulsado (.pv-float)
   · Recuadro grande y centrado al abrir el perfil desde un MD (.pv-big)
   En móvil NO se aplica nada de esto: sigue la hoja desplegable.
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 769px) {

  /* ── Tarjeta flotante pequeña ───────────────────────────── */
  html:not(.lock-mobile-layout) .pv-overlay.pv-float {
    background: transparent;
    align-items: flex-start;
    justify-content: flex-start;
  }
  html:not(.lock-mobile-layout) .pv-float .pv-sheet {
    position: fixed;
    width: 340px;
    max-width: 340px;
    height: auto !important;
    max-height: calc(100vh - 24px) !important;
    border-radius: 12px;
    transform: none !important;
    transition: none !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.07);
  }
  html:not(.lock-mobile-layout) .pv-float .pv-drag-handle,
  html:not(.lock-mobile-layout) .pv-big .pv-drag-handle { display: none; }
  html:not(.lock-mobile-layout) .pv-float .pv-scroll-body {
    flex: 0 1 auto;
    border: none;
    padding-bottom: 4px;
  }
  html:not(.lock-mobile-layout) .pv-float .pv-avatar-ring { width: 84px; height: 84px; }
  html:not(.lock-mobile-layout) .pv-float .pv-avatar { width: 84px; height: 84px; border-width: 6px; }
  html:not(.lock-mobile-layout) .pv-float .pv-username { font-size: 1.15rem; }
  html:not(.lock-mobile-layout) .pv-float .pv-note-section { display: none; }
  html:not(.lock-mobile-layout) .pv-float .pv-section { margin: 0 12px 8px; }
  html:not(.lock-mobile-layout) .pv-float .pv-info { padding-bottom: 12px; }

  /* ── Recuadro grande (MD) ───────────────────────────────── */
  html:not(.lock-mobile-layout) .pv-overlay.pv-big {
    background: rgba(0,0,0,.6);
    align-items: center;
    justify-content: center;
  }
  html:not(.lock-mobile-layout) .pv-big .pv-sheet {
    width: min(680px, 94vw);
    max-width: none;
    height: min(780px, calc(100vh - 48px)) !important;
    max-height: calc(100vh - 48px) !important;
    border-radius: 14px;
    transform: none !important;
    transition: none !important;
    box-shadow: 0 12px 48px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
  }
  html:not(.lock-mobile-layout) .pv-big .pv-scroll-body { border: none; }
  html:not(.lock-mobile-layout) .pv-big .pv-avatar-wrap { padding: 0 24px; margin-bottom: 4px; }
  html:not(.lock-mobile-layout) .pv-big .pv-avatar-ring { width: 128px; height: 128px; }
  html:not(.lock-mobile-layout) .pv-big .pv-avatar { width: 128px; height: 128px; border-width: 8px; font-size: 2rem; }
  html:not(.lock-mobile-layout) .pv-big .pv-status-badge { width: 34px; height: 34px; right: 6px; bottom: 6px; }
  html:not(.lock-mobile-layout) .pv-big .pv-info { padding: 4px 24px 10px; position: relative; }
  html:not(.lock-mobile-layout) .pv-big .pv-name-row { display: block; }
  html:not(.lock-mobile-layout) .pv-big .pv-username { font-size: 1.6rem; }
  html:not(.lock-mobile-layout) .pv-big .pv-tag { font-size: .95rem; }
  html:not(.lock-mobile-layout) .pv-big .pv-msg-action { display: none !important; }
  html:not(.lock-mobile-layout) .pv-big .pv-action-btns {
    position: absolute; right: 24px; top: -64px;
    display: flex; align-items: center; gap: 8px;
  }
  html:not(.lock-mobile-layout) .pv-big .pv-icon-btn,
  html:not(.lock-mobile-layout) .pv-big .pv-more-btn {
    width: 40px; height: 40px; min-width: 40px; border-radius: 8px; margin: 0;
  }
  html:not(.lock-mobile-layout) .pv-big #pvDmBtn {
    width: auto; padding: 0 16px; gap: 8px; background: #413CDD; color: #fff;
  }
  html:not(.lock-mobile-layout) .pv-big #pvDmBtn:hover { background: #4C47E6; }
  html:not(.lock-mobile-layout) .pv-big #pvDmBtn::after { content: 'Enviar mensaje'; font-size: .88rem; font-weight: 700; }
  html:not(.lock-mobile-layout) .pv-big .pv-section {
    background: transparent; border: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    margin: 0 12px 4px; padding: 8px 12px;
  }
  html:not(.lock-mobile-layout) .pv-big .pv-section-label { text-transform: none; letter-spacing: 0; font-size: .95rem; }
  html:not(.lock-mobile-layout) .pv-big .pv-section-value,
  html:not(.lock-mobile-layout) .pv-big .pv-member-since { font-size: .95rem; }

  /* pestañas */
  #pvTabs { display: none; }
  html:not(.lock-mobile-layout) .pv-big #pvTabs {
    display: flex; gap: 4px; padding: 0 24px; margin: 6px 0 8px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  #pvTabs button {
    background: none; border: none; border-bottom: 2px solid transparent;
    color: var(--pv-text, #fff); opacity: .75;
    font-size: .92rem; font-weight: 600; font-family: inherit;
    padding: 12px 14px; cursor: pointer; margin-bottom: -1px;
  }
  #pvTabs button:hover { opacity: 1; }
  #pvTabs button.on { opacity: 1; color: #A9A6FF; border-bottom-color: #A9A6FF; }

  .pv-pane { display: none; padding: 8px 24px 16px; color: var(--pv-text, #fff); }
  html:not(.lock-mobile-layout) .pv-big #pvSheet[data-tab="friends"] #pvPaneFriends,
  html:not(.lock-mobile-layout) .pv-big #pvSheet[data-tab="comms"] #pvPaneComms { display: block; }
  html:not(.lock-mobile-layout) .pv-big #pvSheet:not([data-tab="info"]) .pv-section { display: none !important; }
  .pv-pane-empty { opacity: .7; font-size: .92rem; padding: 18px 0; text-align: center; }
  .pv-comm-row {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.07); margin-bottom: 6px;
  }
  .pv-comm-ico {
    width: 36px; height: 36px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
    background: #282C34; color: #fff; font-weight: 700; font-size: .8rem;
    display: flex; align-items: center; justify-content: center;
  }
  .pv-comm-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .pv-comm-name { font-weight: 600; font-size: .95rem; }
}
