@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(20, 20, 32, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --text-muted: #555570;
  --accent: #6c5ce7;
  --accent-glow: rgba(108, 92, 231, 0.3);
  --accent-hover: #7c6cf7;
  --red: #ff4757;
  --red-glow: rgba(255, 71, 87, 0.3);
  --green: #2ed573;
  --green-glow: rgba(46, 213, 115, 0.3);
  --yellow: #ffa502;
  --yellow-glow: rgba(255, 165, 2, 0.2);
  --live-red: #ff0040;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 14px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Background grain/glow ─────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(108, 92, 231, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 100%, rgba(255, 71, 87, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ────────────────────────────────────────────────────────── */
.app {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
  min-height: 100vh;
}

/* ── Header ────────────────────────────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.url-form {
  flex: 1;
  display: flex;
  gap: 8px;
}

.url-input {
  flex: 1;
  height: 42px;
  padding: 0 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.93rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.url-input::placeholder {
  color: var(--text-muted);
}

.url-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn {
  height: 42px;
  padding: 0 20px;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.btn-danger {
  background: rgba(255, 71, 87, 0.15);
  color: var(--red);
  border: 1px solid rgba(255, 71, 87, 0.2);
}

.btn-danger:hover {
  background: rgba(255, 71, 87, 0.25);
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost.active {
  background: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* ── Main Content ──────────────────────────────────────────────────── */
.main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  min-height: 0;
}

/* ── Player Area ───────────────────────────────────────────────────── */
.player-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.player-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 9;
}

.player-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* ── Empty State ───────────────────────────────────────────────────── */
.player-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  background: var(--bg-secondary);
}

.player-empty-icon {
  font-size: 48px;
  opacity: 0.3;
}

.player-empty-text {
  font-size: 0.95rem;
  font-weight: 500;
}

.player-empty-sub {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ── Stream Info Bar ───────────────────────────────────────────────── */
.stream-info {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

.stream-info.active {
  display: flex;
}

.stream-info .live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(255, 0, 64, 0.15);
  color: var(--live-red);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stream-info .live-badge.dvr {
  background: rgba(136, 136, 160, 0.15);
  color: var(--text-secondary);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-red);
  animation: pulse-live 1.5s ease-in-out infinite;
}

.live-badge.dvr .live-dot {
  background: var(--text-secondary);
  animation: none;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.stream-title {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stream-channel {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ── Timeline ──────────────────────────────────────────────────────── */
.timeline-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  backdrop-filter: blur(12px);
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.timeline-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.timeline-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.btn-zoom {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.btn-zoom:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.btn-zoom-reset {
  width: auto;
  padding: 0 6px;
  font-size: 0.75rem;
}

.zoom-level {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--accent);
  padding: 0 4px;
  min-width: 32px;
  text-align: center;
}

.timeline-times {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.time-current {
  color: var(--text-primary);
}

.time-separator {
  color: var(--text-muted);
}

.time-duration {
  color: var(--text-secondary);
}

/* ── Scrubber ──────────────────────────────────────────────────────── */
.scrubber {
  position: relative;
  height: 40px;
  cursor: pointer;
  margin-bottom: 8px;
}

/* ── Minimap ───────────────────────────────────────────────────────── */
.timeline-minimap {
  position: relative;
  height: 12px;
  margin-bottom: 14px;
  cursor: pointer;
  user-select: none;
}

.minimap-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.minimap-played {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(108, 92, 231, 0.4);
  width: 0%;
}

.minimap-viewport {
  position: absolute;
  top: -4px;
  height: 12px;
  left: 0%;
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--accent);
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(108, 92, 231, 0.4);
  cursor: grab;
}

.minimap-viewport:active {
  cursor: grabbing;
  background: rgba(255, 255, 255, 0.25);
}

.scrubber-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: visible;
}

.scrubber-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.scrubber-played {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 100ms linear;
}

.scrubber-selection {
  position: absolute;
  top: -4px;
  height: calc(100% + 8px);
  background: rgba(108, 92, 231, 0.15);
  border-radius: 2px;
  border-left: 2px solid var(--green);
  border-right: 2px solid var(--red);
  pointer-events: none;
  display: none;
}

.scrubber-selection.visible {
  display: block;
}

.scrubber-handle {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  transition: transform 100ms ease;
  z-index: 3;
}

.scrubber:hover .scrubber-handle {
  transform: translate(-50%, -50%) scale(1.3);
}

/* Markers */
.marker {
  position: absolute;
  top: -12px;
  bottom: -12px;
  width: 3px;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 4;
}

.marker::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 2px solid;
}

.marker-in {
  background: var(--green);
}

.marker-in::after {
  border-color: var(--green);
  background: var(--green);
}

.marker-out {
  background: var(--red);
}

.marker-out::after {
  border-color: var(--red);
  background: var(--red);
}

.scrubber-hover-time {
  position: absolute;
  top: -28px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.7rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms;
  white-space: nowrap;
}

.scrubber:hover .scrubber-hover-time {
  opacity: 1;
}

/* ── Controls Row ──────────────────────────────────────────────────── */
.controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.controls-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.speed-select {
  height: 34px;
  padding: 0 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all var(--transition);
}

.speed-select:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
}

.speed-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-live {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  font-weight: 700;
  width: auto;
  padding: 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all var(--transition);
}

.btn-live:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-live.active {
  background: rgba(255, 0, 64, 0.15);
  color: var(--live-red);
  border-color: rgba(255, 0, 64, 0.3);
  box-shadow: 0 0 12px rgba(255, 0, 64, 0.2);
}

.btn-live.active:hover {
  background: rgba(255, 0, 64, 0.25);
}

/* ── Clip Panel ────────────────────────────────────────────────────── */
.clip-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

.clip-point {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.clip-point-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.clip-point-label.in { color: var(--green); }
.clip-point-label.out { color: var(--red); }

.clip-point-time {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.clip-point-time.unset {
  color: var(--text-muted);
  font-style: italic;
}

.clip-duration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
}

.clip-duration-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.clip-duration-value {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.clip-name-input {
  flex: 1;
  height: 34px;
  padding: 0 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
  transition: border-color var(--transition);
}

.clip-name-input:focus {
  border-color: var(--accent);
}

.btn-clip {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  font-weight: 600;
  padding: 0 18px;
  height: 36px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.btn-clip:hover {
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-clip:disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Sidebar ───────────────────────────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Keyboard Shortcuts Card ───────────────────────────────────────── */
.shortcuts-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  backdrop-filter: blur(12px);
}

.shortcuts-card h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.shortcut-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
}

.shortcut-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Clips List ────────────────────────────────────────────────────── */
.clips-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.clips-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.clips-header h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.clips-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 10px;
}

.clips-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.clips-list::-webkit-scrollbar {
  width: 4px;
}

.clips-list::-webkit-scrollbar-track {
  background: transparent;
}

.clips-list::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 2px;
}

.clip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.clip-item:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
}

.clip-item-info {
  flex: 1;
  min-width: 0;
}

.clip-item-name {
  font-size: 0.8rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clip-item-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.clip-item-actions {
  display: flex;
  gap: 4px;
}

/* ── Progress Item ─────────────────────────────────────────────────── */
.clip-item.in-progress {
  border-color: rgba(108, 92, 231, 0.3);
}

.clip-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.clip-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  border-radius: 2px;
  transition: width 300ms ease;
}

/* ── Loading spinner ───────────────────────────────────────────────── */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Toast Notifications ───────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  z-index: 1000;
}

.toast {
  padding: 10px 16px;
  background: rgba(20, 20, 32, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  font-size: 0.82rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  animation: toast-in 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 340px;
}

.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--accent); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(10px) scale(0.96); }
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .main {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .shortcuts-card {
    flex: 1;
    min-width: 200px;
  }

  .clips-card {
    flex: 2;
    min-width: 280px;
    max-height: 300px;
  }
}

@media (max-width: 640px) {
  .app {
    padding: 12px;
  }

  .header {
    flex-wrap: wrap;
  }

  .url-form {
    width: 100%;
  }

  .clip-panel {
    flex-wrap: wrap;
  }
}

/* ── Disable state ─────────────────────────────────────────────────── */
.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ── Volume slider ─────────────────────────────────────────────────── */
.volume-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-primary);
  cursor: pointer;
}

/* ── Fullscreen ────────────────────────────────────────────────────── */
.player-wrapper:fullscreen video,
.player-wrapper:-webkit-full-screen video {
  width: 100%;
  height: 100%;
}
