/**
 * TikTok-Rechte-Rail: Like + Geschenk-Zähler (Rose, Krone, Stern), Lande-Effekt.
 */

#ansicht-video .video-recht-rail,
body.video-seite-live .video-recht-rail {
  position: absolute;
  right: max(10px, env(safe-area-inset-right, 0px));
  top: 28%;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  z-index: 43;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 0 2px;
  pointer-events: none;
}

#ansicht-video .video-recht-rail[hidden],
body.video-seite-live .video-recht-rail[hidden] {
  display: none !important;
}

#ansicht-video .video-recht-rail > *,
body.video-seite-live .video-recht-rail > * {
  pointer-events: auto;
}

#ansicht-video .video-recht-rail-item,
body.video-seite-live .video-recht-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 48px;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  color: #fff;
  font: inherit;
  cursor: default;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#ansicht-video .video-recht-rail-item--like,
body.video-seite-live .video-recht-rail-item--like {
  cursor: pointer;
}

#ansicht-video .video-recht-rail-symbol-wrap,
body.video-seite-live .video-recht-rail-symbol-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(8, 10, 16, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

#ansicht-video .video-recht-rail-item--like:active .video-recht-rail-symbol-wrap,
body.video-seite-live .video-recht-rail-item--like:active .video-recht-rail-symbol-wrap {
  transform: scale(0.9);
  background: rgba(255, 45, 85, 0.35);
}

#ansicht-video .video-recht-rail-symbol,
body.video-seite-live .video-recht-rail-symbol {
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
}

#ansicht-video .video-recht-rail-zaehler,
body.video-seite-live .video-recht-rail-zaehler {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  min-width: 1.5em;
  color: #f8fafc;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  font-variant-numeric: tabular-nums;
}

#ansicht-video .video-recht-rail-zaehler--landung,
body.video-seite-live .video-recht-rail-zaehler--landung {
  animation: video-recht-rail-zaehler-pop 0.5s cubic-bezier(0.2, 0.9, 0.2, 1);
}

#ansicht-video .video-recht-rail-symbol-wrap--landung,
body.video-seite-live .video-recht-rail-symbol-wrap--landung {
  animation: video-recht-rail-symbol-pop 0.45s ease-out;
}

@keyframes video-recht-rail-zaehler-pop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.45);
    color: #fef08a;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes video-recht-rail-symbol-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

#ansicht-video .video-recht-rail-landung-chip,
body.video-seite-live .video-recht-rail-landung-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: 800;
  color: #fef08a;
  text-shadow: 0 0 8px rgba(255, 200, 50, 0.8);
  pointer-events: none;
  opacity: 0;
  animation: video-recht-rail-chip-flug 0.65s ease-out forwards;
}

@keyframes video-recht-rail-chip-flug {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.6);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -28px) scale(1.1);
  }
}

/* Geschenk-Icon unten in der Rail (nicht mehr frei schwebend) */
#ansicht-video .video-recht-rail .geschenk-rail-knopf,
body.video-seite-live .video-recht-rail .geschenk-rail-knopf {
  position: static;
  right: auto;
  bottom: auto;
  flex-shrink: 0;
}
