/**
 * TikTok LIVE — rechte Icon-Säule (Herz, Coins, Geschenk).
 */

#ansicht-video.video-tiktok-layout .video-live-rail {
  position: absolute;
  top: calc(var(--vt-kopf-hoehe, 52px) + 8px);
  bottom: calc(var(--vt-boden-reserviert, 58px) + 8px);
  right: var(--vt-rechts-rand, max(4px, env(safe-area-inset-right, 0px)));
  width: var(--vt-rail-breite, 48px);
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 18px;
  pointer-events: none;
  box-sizing: border-box;
}

#ansicht-video.video-tiktok-layout .video-live-rail[hidden] {
  display: none !important;
}

#ansicht-video.video-tiktok-layout .video-live-rail-knopf,
#ansicht-video.video-tiktok-layout .video-live-rail-eintrag {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 48px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#ansicht-video.video-tiktok-layout .video-live-rail-eintrag {
  cursor: default;
}

#ansicht-video.video-tiktok-layout .video-live-rail-icon-kreis {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#ansicht-video.video-tiktok-layout .video-live-rail-knopf:active .video-live-rail-icon-kreis {
  transform: scale(0.92);
}

#ansicht-video.video-tiktok-layout .video-live-rail-icon {
  display: block;
  width: 28px;
  height: 28px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

#ansicht-video.video-tiktok-layout .video-live-rail-icon--herz {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 21s-6.7-4.4-9.2-8.6C1.2 9.2 2.4 5 6.5 5c2.1 0 3.9 1.1 5 2.8C12.6 6.1 14.4 5 16.5 5 20.6 5 21.8 9.2 21.2 12.4 18.7 16.6 12 21 12 21z'/%3E%3C/svg%3E");
}

#ansicht-video.video-tiktok-layout .video-live-rail-icon--muenze {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='9' stroke='%23fff' stroke-width='1.8'/%3E%3Cpath d='M12 7v10M9 9.5h4.5a2 2 0 1 1 0 5H9' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

#ansicht-video.video-tiktok-layout .video-live-rail-zaehler {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  font-variant-numeric: tabular-nums;
}

#ansicht-video.video-tiktok-layout .geschenk-rail-knopf {
  position: static;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  background: linear-gradient(145deg, #ff4d6d 0%, #ff2d55 45%, #e91e63 100%);
  box-shadow: 0 4px 14px rgba(255, 45, 85, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

#ansicht-video.video-tiktok-layout .geschenk-rail-knopf::after {
  width: 28px;
  height: 28px;
  background-size: contain;
}

#ansicht-video.video-tiktok-layout .geschenk-rail-knopf:active {
  transform: scale(0.92);
}

#ansicht-video.video-tiktok-layout .video-live-rail-icon-kreis--landung,
#ansicht-video.video-tiktok-layout .video-recht-rail-symbol-wrap--landung {
  animation: video-live-rail-pop 0.45s ease-out;
}

#ansicht-video.video-tiktok-layout .video-recht-rail-zaehler--landung {
  animation: video-live-rail-zaehler-pop 0.52s ease-out;
}

@keyframes video-live-rail-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes video-live-rail-zaehler-pop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1);
  }
}

#ansicht-video.video-tiktok-layout .video-recht-rail-landung-chip {
  position: absolute;
  top: -6px;
  right: -4px;
  font-size: 11px;
  font-weight: 700;
  color: #fe2c55;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  animation: video-live-rail-chip 0.65s ease-out forwards;
}

@keyframes video-live-rail-chip {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-14px);
  }
}
