/* Hokay — Réels : signature visuelle propre au site + un vrai mode PC.
   Chargé après reel.css. Aucune logique JS modifiée : le panneau latéral
   PC est un doublon serveur du contenu déjà présent dans le cadre vidéo. */

/* ── Pochette "en écoute" : carré Hokay (comme les avatars) plutôt qu'un
   vinyle circulaire qui tournait en boucle — moins "clone de réseau
   grand public", et cohérent avec .ar-avatar juste au-dessus. ── */
.ar-vinyl {
  border-radius: 4px;
  animation: none !important;
  transition: box-shadow .2s;
}
.ar-vinyl.playing {
  box-shadow: 0 0 0 2px rgba(224,123,53,.55), 0 0 14px rgba(224,123,53,.25);
  animation: sp-pulse 1.8s ease-in-out infinite !important;
}
@keyframes sp-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(224,123,53,.55), 0 0 10px rgba(224,123,53,.18); }
  50%      { box-shadow: 0 0 0 2px rgba(224,123,53,.75), 0 0 18px rgba(224,123,53,.35); }
}

/* ── Panneau latéral : masqué par défaut, activé au format PC ── */
.side-panel { display: none; }

@media (min-width: 1024px) {
  /* Trois colonnes posées côte à côte : actions · vidéo · détails.
     C'est ce qui distingue le plus une "appli desktop" d'un lecteur
     de vidéos verticales simplement recentré au milieu de l'écran. */
  /* Le fond placeholder de la vidéo (position:absolute; z-index:0) couvrirait
     sinon ces deux blocs, qui sont maintenant des enfants "normaux" du flex :
     on leur donne z-index pour qu'ils passent au-dessus, comme prévu. */
  .actions-rail {
    position: relative;
    top: auto; right: auto;
    z-index: 1;
    transform: none;
    margin-right: 20px;
  }
  .video-frame { margin: 0 4px; }

  .side-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 320px;
    max-height: min(640px, calc(100dvh - 100px));
    margin-left: 24px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
  }

  /* La légende superposée sur la vidéo devient inutile : tout est dans le panneau */
  .frame-desc { display: none; }

  .sp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .sp-avatar { width: 46px; height: 46px; border-radius: 4px; overflow: hidden; border: 2px solid rgba(224,123,53,.6); flex-shrink: 0; }
  .sp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .sp-id { min-width: 0; flex: 1; }
  .sp-username { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; color: #fff; text-decoration: none; }
  .sp-username:hover { color: var(--accent); }
  .sp-spec { font-size: 11px; color: var(--text2); margin-top: 1px; }
  .sp-follow {
    background: rgba(224,123,53,.15); color: var(--accent); border: 1.5px solid rgba(224,123,53,.5);
    padding: 5px 12px; border-radius: 4px; font-size: 11.5px; font-weight: 700; cursor: pointer;
    font-family: 'DM Sans', sans-serif; flex-shrink: 0; transition: background .15s;
  }
  .sp-follow:hover { background: rgba(224,123,53,.28); }
  .sp-follow.on { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.65); }

  .sp-proof {
    display: block; font-size: 12px; font-weight: 700; color: #0c0a08; background: var(--accent2);
    padding: 6px 10px; border-radius: 4px; text-decoration: none; margin-bottom: 12px;
  }
  .sp-proof.pending { color: var(--accent2); background: rgba(224,123,53,.14); border: 1px solid rgba(224,123,53,.5); }

  .sp-text { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.9); margin-bottom: 10px; overflow-y: auto; }
  .sp-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: auto; }
  .sp-tag { color: var(--accent); font-size: 12.5px; font-weight: 600; }

  .sp-hint {
    font-family: var(--mono); font-size: 10.5px; color: var(--text3); letter-spacing: .02em;
    padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border);
  }

  /* Le panneau commentaires devient un tiroir latéral plutôt qu'une
     feuille remontant du bas (pattern mobile qui ne fait pas sens sur grand écran). */
  .sheet { flex-direction: row; justify-content: flex-end; }
  .sheet-box {
    width: 380px; max-width: 92vw; height: 100%; max-height: 100%;
    border-radius: 0; border-top: none; border-left: 1px solid var(--border);
    transform: translateX(100%);
  }
  .sheet.open .sheet-box { transform: translateX(0); }
  #shr-sheet .sheet-box { height: auto; max-height: 78dvh; align-self: flex-end; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .side-panel { width: 280px; }
}
