/* YouTube Timestamp Link Generator - Compact Layout */

.yt-result-card {
  background: var(--mk-bg-secondary);
  border: 1px solid var(--mk-border);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.yt-result-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--mk-border);
}

.yt-video-id {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  background: var(--mk-bg);
  border: 1px solid var(--mk-border);
  border-radius: 0.25rem;
}

.yt-timestamp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  background: var(--mk-primary);
  color: white;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
}

.yt-link-group {
  margin-bottom: 0.75rem;
}

.yt-link-group:last-child {
  margin-bottom: 0;
}

.yt-link-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mk-text-muted);
  margin-bottom: 0.375rem;
}

.yt-link-input-group {
  display: flex;
  gap: 0.5rem;
}

.yt-link-input {
  flex: 1;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  background: var(--mk-bg);
  border: 1px solid var(--mk-border);
  border-radius: 0.375rem;
  color: var(--mk-text);
}

.yt-link-input:focus {
  outline: none;
  border-color: var(--mk-primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.yt-btn-copy {
  padding: 0.5rem 1rem;
  background: var(--mk-bg);
  border: 1px solid var(--mk-border);
  border-radius: 0.375rem;
  color: var(--mk-text);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.yt-btn-copy:hover {
  background: var(--mk-bg-secondary);
  border-color: var(--mk-primary);
}

.yt-btn-copy.copied {
  background: var(--mk-success);
  border-color: var(--mk-success);
  color: white;
}

.yt-btn-open {
  padding: 0.5rem 1rem;
  background: var(--mk-primary);
  border: 1px solid var(--mk-primary);
  border-radius: 0.375rem;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.yt-btn-open:hover {
  background: #0b5ed7;
  border-color: #0b5ed7;
  color: white;
}

.yt-time-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.yt-time-input {
  width: 80px;
  text-align: center;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
  font-size: 1.125rem;
  font-weight: 500;
}

.yt-time-separator {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--mk-text-muted);
}

.yt-embed-hint {
  font-size: 0.75rem;
  color: var(--mk-text-muted);
  margin-top: 0.375rem;
}


/* YouTube Player */
.yt-player-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 0.5rem;
}

.yt-player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0.5rem;
}

/* Timeline Slider */
.yt-timeline-wrapper {
  padding: 0.75rem;
  background: var(--mk-bg-secondary);
  border: 1px solid var(--mk-border);
  border-radius: 0.5rem;
}

.yt-timeline-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e9ecef, #f8f9fa);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.yt-timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mk-primary);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.yt-timeline-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mk-primary);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.yt-timeline-slider::-webkit-slider-thumb:hover {
  background: #0b5ed7;
  transform: scale(1.1);
}

.yt-timeline-slider::-moz-range-thumb:hover {
  background: #0b5ed7;
  transform: scale(1.1);
}

.yt-timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.yt-timeline-time {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mk-text-muted);
}
