* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #0e0e12;
  color: #eee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  height: 100%;
}

#app {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hidden { display: none !important; }

.status {
  padding: 16px;
  text-align: center;
  font-size: 15px;
  color: #aaa;
}

.player-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a1a20;
  border-radius: 8px;
  padding: 10px 14px;
}

.btn {
  background: #2a2a33;
  color: #fff;
  border: none;
  border-radius: 6px;
  width: 40px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
}
.btn:disabled { opacity: .4; cursor: default; }
.btn:not(:disabled):hover { background: #3a3a45; }

#seekBar { flex: 1; }

.time-label {
  font-variant-numeric: tabular-nums;
  color: #ccc;
  font-size: 13px;
  min-width: 44px;
}

.quality-select {
  background: #2a2a33;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 8px;
}

.volume-icon { font-size: 18px; }

#volumeBar { flex: 1; max-width: 240px; }
