@charset 'utf-8';

html {
  overflow: hidden;
}

.player-wrapper {
  position: relative;
  height: 0;
  padding: 0 0 56.25%;
}

.player-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 10秒送り機能のスタイル */
.skip-overlay {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skip-overlay-left {
  left: 0;
}

.skip-overlay-right {
  right: 0;
}

.skip-overlay.show {
  opacity: 1;
}

.skip-feedback {
  background: rgba(42, 42, 42, 0.7);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  animation: skipPulse 0.8s ease-out;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.skip-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  line-height: 1;
}

.skip-text {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
}

@keyframes skipPulse {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* スマートフォン用の調整 */
@media screen and (max-width: 767px) {
  .skip-feedback {
    width: 100px;
    height: 100px;
  }
  
  .skip-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }
  
  .skip-text {
    font-size: 0.8rem;
  }
}

/* PC用コントロールバーのスキップボタン */
.vjs-skip-backward-button,
.vjs-skip-forward-button {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.vjs-skip-backward-button .vjs-icon-placeholder::before {
  content: "";
  width: 20px;
  height: 20px;
  background-image: url("/static/flumo/icons/replay_10_outlined.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  filter: brightness(0) invert(1);
  margin-top: 5px;
}

.vjs-skip-forward-button .vjs-icon-placeholder::before {
  content: "";
  width: 20px;
  height: 20px;
  background-image: url("/static/flumo/icons/forward_10_outlined.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  filter: brightness(0) invert(1);
  margin-top: 5px;
}

/* SP時はコントロールバーのスキップボタンを非表示（フルスクリーン時を除く） */
@media screen and (max-width: 767px) {
  .vjs-skip-backward-button,
  .vjs-skip-forward-button {
    display: none !important;
  }
  
  /* フルスクリーン時は表示 */
  .video-js.vjs-fullscreen .vjs-skip-backward-button,
  .video-js.vjs-fullscreen .vjs-skip-forward-button {
    display: flex !important;
  }
}

div.error-message {
  background: #080808;
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
}

div.error-message p {
  color: white;
  font-weight: bold;
  font-size: 2.5rem;
}

div.error-message p.small {
  font-size: 1.8rem;
}

.reload img {
  max-width: 32px;
  max-height: 32px;
}

p.reload {
  margin: 0;
  font-size: 1.75rem !important;
}

p.reload a {
  color: white;
}

@media screen and (max-width: 767px) {
  div.error-message p {
    font-size: 4.5vw;
  }

  div.error-message p.small {
    margin: 0;
    font-size: 3.25vw !important;
  }

  p.reload {
    margin: 0;
    font-size: 2.75vw !important;
  }
}
