/* Shared YouTube-Player-Modal (Claninfo, Start, …) */

.ui-yt-facade[hidden],
.ui-yt-stage[hidden],
.ui-yt-facade-img[hidden] {
  display: none !important;
}

.ui-yt-modal-open {
  overflow: hidden;
}

.ui-yt-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}

.ui-yt-modal[hidden] {
  display: none !important;
}

.ui-yt-modal-dialog {
  width: min(920px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 0.5rem;
  background: var(--surface, #fff);
  color: var(--text, #1a1a1a);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.ui-yt-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.12));
}

.ui-yt-modal-head h3 {
  margin: 0;
  color: var(--text, inherit);
  font-size: 1.05rem;
  line-height: 1.3;
}

.ui-yt-modal-close {
  border: 0;
  background: transparent;
  color: var(--text, inherit);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
}

.ui-yt-modal-body {
  padding: 1rem;
}

.ui-yt-facade {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0.4rem;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  aspect-ratio: 16 / 9;
  color: #fff;
  font: inherit;
}

.ui-yt-facade-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ui-yt-facade-play {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 4rem;
  height: 4rem;
  margin: -2rem 0 0 -2rem;
  border-radius: 50%;
  background: rgba(255, 0, 51, 0.95);
}

.ui-yt-facade-play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -0.7rem 0 0 -0.35rem;
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent #fff;
}

.ui-yt-facade-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.75rem;
  text-align: center;
  font-size: 0.9rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.ui-yt-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0.4rem;
  overflow: hidden;
}

.ui-yt-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
