* {
  box-sizing: border-box;
  user-select: none;
}
html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #000;
  overflow: hidden;
}
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
}
.input-area {
  width: min(92vw, 560px);
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.input-area.hide {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
}
#youtubeInput {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #090909;
  outline: none;
  background: #000;
  color: rgb(85, 28, 28);
  caret-color: transparent;
  font-size: 15px;
  user-select: text;
  transition: background-color 0.3s ease, color 0.3s ease;
}
#youtubeInput::placeholder {
  color: #242027;
  opacity: 1;
}
#youtubeInput::selection {
  color: #000;
  background: #551c1c;
}
.video-wrapper {
  position: absolute;
  width: min(92vw, 960px);
  aspect-ratio: 16 / 9;
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.video-wrapper.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
#youtubePlayer {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.close-video {
  position: absolute;
  top: -30px;
  right: 0;
  padding: 4px 0 4px 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #8d8790;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  transition: color 0.25s ease, opacity 0.45s ease, transform 0.45s ease;
}
.video-wrapper.show .close-video {
  opacity: 1;
  transform: translateY(0);
}
.close-video:hover {
  color: rgb(232, 224, 245);
}
@media (max-width: 600px) {
  #youtubeInput {
    height: 44px;
    font-size: 14px;
  }
  .video-wrapper {
    width: 94vw;
  }
  .close-video {
    top: -28px;
    font-size: 13px;
  }
}