/* Social Media: Kontaktbogen auf der breiten Bühne (js/pages/social.js, js/social/). Je Kunde ein
   Band, der Name steht oben in der Pille (css/pages/social-pill.css); die schwebende Karte im
   Originalformat liegt über der gezeigten Arbeit. Lasche, Reels und Einblenden in eigenen
   Dateien (social-panel.css, social-reel.css, social-intro.css). */

/* Hintergrund G5 (Runde 29): Licht in der Mitte hinter den Arbeiten, dunkle Ränder, kräftigeres
   Korn. Die Tönung je Kunde liegt weiter darüber (css/components/stage.css). */
.stage[data-social] {
  --grain-opacity: 0.85;
  --flow-scrim: 0.5;
}

.stage[data-social] .wave::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 50% 52%, rgb(255 255 255 / 0.28), transparent 70%),
    radial-gradient(ellipse at center, transparent 45%, rgb(0 0 0 / 0.55));
  content: '';
}

.sheet {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 4.4rem 0 0.6rem;
}

.sheet__line {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.sheet__band {
  position: relative;
  display: grid;
  grid-template-rows: repeat(var(--rows, 3), var(--cell, 6rem));
  grid-auto-columns: max-content;
  grid-auto-flow: column;
  gap: 6px;
}

.sheet__cell {
  position: relative;
  width: calc(var(--cell, 6rem) * 0.8);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  /* Ruhiges Abblenden (S2, Runde 30) */
  transition: opacity 650ms var(--ease-in-out);
}

.sheet__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.06);
  box-shadow: 0 0.6rem 1.2rem -0.8rem rgb(0 0 0 / 0.7);
}

.sheet__frame :is(picture, img, video),
.lift__media :is(picture, img, video, canvas) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fokus-Abstufung: gezeigt 100 %, gleicher Kunde 50 %, Rest 10 % */
.sheet.has-focus .sheet__cell {
  opacity: 0.1;
}

.sheet.has-focus .sheet__cell.is-sibling {
  opacity: 0.5;
}

.sheet.has-focus .sheet__cell.is-focus {
  opacity: 1;
}

/* Schwebende Karte und ihr Schatten (js/social/floating-card.js) */
.lift,
.lift__shadow {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transform-origin: 50% 50%;
  transition: opacity 520ms var(--ease-in-out);
}

.lift {
  overflow: hidden;
  background: rgb(255 255 255 / 0.06);
}

.lift__shadow {
  z-index: 19;
  border-radius: 6px;
  box-shadow: 0 2.4rem 4rem -1.4rem rgb(0 0 0 / 0.75);
}

.lift.is-on,
.lift__shadow.is-on {
  opacity: 1;
}

.lift__media,
.lift__reel {
  position: absolute;
  inset: 0;
}

.lift__reel > * {
  position: absolute;
  inset: 0;
}

/* Reels vorn als eigene hohe Spalte über alle Zeilen, 9:16 (Runde 20); Lücke 6px wie im Band.
   Runde Ecken und oben ein Fortschrittsbalken wie bei Reels (R3) */
.sheet__cell.is-reel {
  grid-row: 1 / -1;
  width: calc((var(--cell, 6rem) * var(--rows, 3) + 6px * (var(--rows, 3) - 1)) * 0.5625);
}

.sheet__cell.is-reel .sheet__frame {
  border-radius: 9px;
}

.sheet__reel-bar {
  position: absolute;
  top: 5px;
  right: 6px;
  left: 6px;
  display: flex;
  gap: 3px;
}

.sheet__reel-bar i {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.5);
}

.sheet__reel-bar i:first-child {
  background: #fff;
}
