#video-options .video-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
}

#video-options .video-option-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  padding: 8px 10px;
  font-size: 12px;
  color: #e2e8f0;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

#video-options .video-option-btn:hover {
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-1px);
}

#video-options .video-option-btn.active {
  border-color: rgba(245,183,91,0.8);
  box-shadow: 0 0 0 1px rgba(245,183,91,0.3);
}

#video-options .video-option-tier {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
}

#video-options .video-option-tier.free {
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.3);
}

#video-options .video-option-tier.premium {
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.3);
}

#video-options .video-meta-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  #video-options .video-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#video-options .video-preview-card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  padding: 12px;
}

.video-preview-shell {
  margin-top: 10px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
}

.video-preview-shell.vertical {
  aspect-ratio: 9 / 16;
  max-height: 60vh;
}

.video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#video-options .video-track {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

#video-options .video-track-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(226, 232, 240, 0.7);
}

#video-options .video-track-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}

#video-options .video-track,
#video-options .video-range-wrap,
#video-options .video-preview-shell {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

#video-options .video-track--audio .video-track-bar {
  background: rgba(56, 189, 248, 0.2);
}

#video-options .video-track--video .video-track-bar {
  background: rgba(245, 158, 11, 0.2);
}

#video-options .video-range-wrap {
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
}

#video-options .video-range-wrap input[type="range"] {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  pointer-events: auto;
  -webkit-appearance: none;
  background: transparent;
  touch-action: none;
  height: 26px;
  cursor: ew-resize;
}

#video-options .video-range-wrap input[type="range"]:first-of-type {
  z-index: 3;
}

#video-options .video-range-wrap input[type="range"]:last-of-type {
  z-index: 4;
}

#video-options #video-start-range {
  z-index: 3;
}

#video-options #video-end-range {
  z-index: 4;
}

#video-options .video-range-wrap input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #f5b75b;
  border: 2px solid #1f2937;
  box-shadow: 0 0 0 6px rgba(245, 183, 91, 0.15);
}

#video-options .video-range-wrap input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  cursor: ew-resize;
}

#video-options .video-range-wrap input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #f5b75b;
  border: 2px solid #1f2937;
  box-shadow: 0 0 0 6px rgba(245, 183, 91, 0.15);
}

#video-options #video-start-range::-webkit-slider-thumb {
  background: #34d399;
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.18);
}

#video-options #video-end-range::-webkit-slider-thumb {
  background: #f59e0b;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.18);
}

#video-options #video-start-range::-moz-range-thumb {
  background: #34d399;
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.18);
}

#video-options #video-end-range::-moz-range-thumb {
  background: #f59e0b;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.18);
}

#video-options .video-range-wrap input[type="range"]::-moz-range-track {
  height: 8px;
  cursor: ew-resize;
}

#video-options .video-range-highlight {
  position: absolute;
  height: 6px;
  border-radius: 999px;
  background: rgba(245, 183, 91, 0.6);
  left: 0;
  right: 0;
  pointer-events: none;
}

#video-options .video-playhead {
  position: absolute;
  top: -6px;
  width: 2px;
  height: 22px;
  background: rgba(148, 163, 184, 0.9);
  left: 0;
  pointer-events: none;
}
