.annotation-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
  font-family: Arial, Helvetica, sans-serif;
}

.player.tamers-annotation-player:fullscreen,
.player.tamers-annotation-player:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: #000;
}

.player.tamers-annotation-player:fullscreen .video-player,
.player.tamers-annotation-player:-webkit-full-screen .video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player.tamers-annotation-player .video-player::-webkit-media-controls-fullscreen-button {
  display: none !important;
}

.youtube-annotation {
  position: absolute;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
  min-height: 0;
  padding: 0.45em 0.6em;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.2;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72);
  white-space: pre-wrap;
}

.youtube-annotation-popup,
.youtube-annotation-text {
  align-items: center;
  justify-content: center;
}

.youtube-annotation-speech {
  border-radius: 4px;
}

.youtube-annotation-title {
  border-color: transparent;
  box-shadow: none;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.youtube-annotation-highlight {
  background: transparent !important;
  border-width: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
  text-shadow: none;
}

.player .note {
  z-index: 8;
}

.annotation-fullscreen-btn {
  position: absolute;
  right: 12px;
  bottom: 54px;
  z-index: 7;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.64);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  padding: 0;
  transition: opacity 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.annotation-fullscreen-btn::before,
.annotation-fullscreen-btn::after {
  content: "";
  position: absolute;
  inset: 9px;
}

.annotation-fullscreen-btn::before {
  background:
    linear-gradient(currentColor, currentColor) left top / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left top / 2px 10px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 2px 10px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 2px 10px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 2px 10px no-repeat;
}

.annotation-fullscreen-btn::after {
  display: none;
}

.player.tamers-annotation-player:hover .annotation-fullscreen-btn,
.annotation-fullscreen-btn:focus-visible,
.player.tamers-annotation-player:fullscreen .annotation-fullscreen-btn,
.player.tamers-annotation-player:-webkit-full-screen .annotation-fullscreen-btn {
  opacity: 0.92;
}

.annotation-fullscreen-btn:hover,
.annotation-fullscreen-btn:focus-visible {
  background: rgba(0, 0, 0, 0.82);
  border-color: rgba(255, 255, 255, 0.9);
  outline: none;
}

@media (max-width: 640px) {
  .youtube-annotation {
    line-height: 1.12;
    padding: 0.25em 0.4em;
  }

  .annotation-fullscreen-btn {
    right: 8px;
    bottom: 48px;
  }
}
