/* Eigener Video Player (wird per JS ergänzt, ohne JS gelten die Standard Steuerungen) */

.p-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: #fff;
}
.p-big {
  pointer-events: auto;
  width: clamp(64px, 7vw, 88px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: var(--lemon);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55);
  --mx: 0px;
  --my: 0px;
  --bs: 1;
  transform: translate3d(var(--mx), var(--my), 0) scale(var(--bs));
  transition: transform .5s var(--out), opacity .3s ease, background .25s ease;
}
.p-big::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(230, 223, 159, .6);
  animation: ring 2.4s var(--out) infinite;
  pointer-events: none;
}
@keyframes ring {
  0% { transform: scale(.85); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}
.p-big { position: relative; }
.p-big svg { width: 38%; height: 38%; margin-left: 6%; }
.p-big:hover { --bs: 1.07; background: #efe9b0; }
.is-playing .p-big { opacity: 0; --bs: .8; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .p-big::before { animation: none; opacity: 0; } }

.p-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 36px 6px 6px;
  background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0));
  pointer-events: auto;
  transition: opacity .35s ease, transform .35s var(--out);
}
.is-playing.is-idle .p-bar { opacity: 0; transform: translateY(10px); pointer-events: none; }

.p-btn {
  appearance: none;
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
}
.p-btn:hover { background: rgba(255, 255, 255, .16); }
.p-btn svg { width: 22px; height: 22px; }
.p-btn[hidden] { display: none; }
.p-btn:focus-visible, .p-big:focus-visible, .p-seek:focus-visible { outline: 2px solid var(--lemon); outline-offset: 2px; }

.p-time {
  flex: none;
  min-width: 2.6rem;
  padding-inline: 4px;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .88);
  text-align: center;
}

.p-seek {
  --p: 0%;
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  margin: 0 6px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.p-seek::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--lemon) var(--p), rgba(255, 255, 255, .32) var(--p));
}
.p-seek::-moz-range-track {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--lemon) var(--p), rgba(255, 255, 255, .32) var(--p));
}
.p-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5.5px;
  border-radius: 50%;
  border: 0;
  background: var(--lemon);
  box-shadow: 0 0 0 4px rgba(230, 223, 159, .25);
}
.p-seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 0;
  background: var(--lemon);
}

@container (max-width: 330px) {
  .p-time { display: none; }
}

/* Ton Chip, solange ein Video stumm automatisch läuft */
.p-sound {
  position: absolute;
  top: 14px;
  left: 14px;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px 0 16px;
  font: inherit;
  font-size: .82rem;
  color: var(--ink);
  background: rgba(243, 240, 232, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  pointer-events: auto;
}
.is-playing.is-muted .p-sound { display: inline-flex; animation: chip-in .5s var(--out); }
.p-sound .sound-bars i { animation: eq .9s ease-in-out infinite; }
.p-sound .sound-bars i:nth-child(2) { animation-delay: -.3s; }
.p-sound .sound-bars i:nth-child(3) { animation-delay: -.6s; }
@keyframes chip-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .p-sound .sound-bars i { animation: none; height: 8px; } }
