.video-section {
  background: var(--surface-color);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: fit-content;
}

.video-section.drag-over {
  outline: 3px dashed var(--primary-color);
  outline-offset: -5px;
  background-color: rgba(0, 86, 179, 0.05);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 48vh;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.controls-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.current-time-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--bg-color);
  border-radius: 6px;
  width: fit-content;
}

.time-jump-btn {
  background: none;
  border: none;
  padding: 2px 6px;
  font: inherit;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.time-jump-btn:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

.time-jump-btn:focus-visible {
  outline: 2px solid #0066cc;
}

/* 焼き付け字幕隠しマスク */
.subtitle-mask {
  position: absolute;
  z-index: 5;
  background: rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  pointer-events: none;
  box-sizing: border-box;
}

.subtitle-mask.hidden {
  display: none;
}

.mask-right {
  bottom: 5%;
  right: 5%;
  width: 20%;
  height: 90%;
  padding: 12px;
}

.mask-bottom {
  bottom: 5%;
  left: 5%;
  width: 90%;
  height: 18%;
  padding: 12px;
  transition: all 0.2s ease;
}

video:hover~.mask-bottom {
  bottom: 15%;
  height: 8%;
}

button.active-mask {
  background-color: #0056b3;
  color: #ffffff;
  border-color: #0056b3;
}

/* シークバープレビュー */
.seekbar-preview-tooltip {
  position: absolute;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.85);
  border: 1px solid #ffffff33;
  border-radius: 6px;
  padding: 4px;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.seekbar-preview-tooltip canvas {
  width: 160px;
  height: auto;
  border-radius: 4px;
  background-color: #000;
}

.seekbar-preview-tooltip span {
  color: #ffffff;
  font-size: 0.75rem;
  font-family: monospace;
  margin-top: 4px;
}

#snapshot-btn>svg {
  width: 1.25rem;
}

.video-title-display {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.current-video-title {
  font-size: 0.85rem;
}