:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #edf0fa;
  background: #0b0d14;
  font-synthesis: none;
  --muted: #929bb2;
  --line: #2a3043;
  --accent: #a5b0ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 15% 0%, #22274966, transparent 55%);
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
a {
  color: var(--accent);
}
button {
  cursor: pointer;
  border: 1px solid #3a425c;
  background: #242a3e;
  color: #e4e9ff;
  border-radius: 7px;
  padding: 10px 16px;
}
button.primary {
  background: linear-gradient(120deg, #b5beff, #8c9bfa);
  color: #10152d;
  font-weight: 650;
  border-color: var(--accent);
}
button.danger {
  color: #ffad9d;
  border-color: #784b42;
  background: #2e211e;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
header {
  height: 80px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: #10131e;
}
.brand {
  letter-spacing: 0.15em;
  font-size: 14px;
}
.brand b {
  color: var(--accent);
  font-size: 22px;
  letter-spacing: -1px;
  margin-right: 16px;
}
.badge {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--muted);
}
main {
  max-width: 1600px;
  padding: 42px 5vw;
  margin: auto;
}
.eyebrow {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1 {
  font-size: 40px;
  letter-spacing: -1.4px;
  font-weight: 500;
  margin: 10px 0;
}
h2 {
  font-size: 17px;
  font-weight: 550;
  margin: 0;
}
p {
  color: var(--muted);
  line-height: 1.55;
}
section {
  min-width: 0;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.heading p {
  margin-bottom: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.stat,
.panel {
  border: 1px solid var(--line);
  background: #141824;
  border-radius: 16px;
  box-shadow: 0 12px 36px #00000024;
}
.stat {
  padding: 22px;
}
.stat label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stat strong {
  display: block;
  font-size: 31px;
  font-weight: 500;
  margin: 10px 0 3px;
}
.stat small {
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr);
  gap: 24px;
}
.panel {
  padding: 24px;
  margin-bottom: 24px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}
.muted,
small {
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.09em;
  font-weight: 500;
  text-transform: uppercase;
  padding: 0 12px 14px;
}
td {
  border-top: 1px solid var(--line);
  padding: 17px 12px;
  vertical-align: middle;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td small {
  display: block;
  margin-top: 5px;
}
td button {
  padding: 6px 10px;
  font-size: 12px;
}
.status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #bdc5db;
  font-size: 12px;
}
.status:before {
  content: '';
  width: 6px;
  height: 6px;
  background: #929bb2;
  border-radius: 50%;
}
.status.live:before,
.status.connected:before {
  background: var(--accent);
  box-shadow: 0 0 8px #8799ff44;
}
.status.error:before {
  background: #fca58b;
}
form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #b6bfd5;
  margin-bottom: 16px;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  color: #edf0fa;
  background: #0d111c;
  border: 1px solid #333b52;
  padding: 11px 12px;
  border-radius: 6px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
}
input:read-only {
  color: var(--muted);
}
textarea {
  resize: vertical;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.5;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.check {
  flex-direction: row;
  align-items: center;
}
.check input {
  width: auto;
  accent-color: var(--accent);
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin: 8px 0 20px;
}
summary {
  cursor: pointer;
  color: #b6bfd5;
  font-size: 13px;
  margin-bottom: 18px;
}
.message {
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.error {
  color: #ffaf9f;
}
.message.success {
  color: var(--accent);
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #b6bfd5;
  font:
    11px/1.7 ui-monospace,
    monospace;
  max-height: 300px;
  overflow: auto;
  margin: 0;
}
.empty {
  padding: 30px 12px;
  color: var(--muted);
  text-align: center;
}
.notice {
  border-left: 2px solid #6979c5;
  padding-left: 14px;
  font-size: 12px;
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding: 20px 0;
  color: var(--muted);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.endpoint {
  font:
    12px ui-monospace,
    monospace;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.wide {
  grid-column: 1/-1;
}
@media (max-width: 1050px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  main {
    padding: 25px 18px;
  }
  header {
    padding: 0 18px;
  }
  .heading {
    align-items: flex-start;
    gap: 18px;
  }
  h1 {
    font-size: 30px;
  }
  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .stat {
    padding: 15px;
  }
  .panel {
    padding: 18px;
  }
  .badge {
    display: none;
  }
  footer {
    flex-direction: column;
  }
}
.player-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
}
.screen {
  position: relative;
  aspect-ratio: 16/9;
  background: #060810;
  border-radius: 6px;
  overflow: hidden;
}
.screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.screen canvas {
  position: absolute;
  pointer-events: none;
}
.screen:fullscreen {
  width: 100vw;
  height: 100vh;
}
.placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 25px;
  text-align: center;
  background: linear-gradient(135deg, #1b203b, #0b0d17);
}
[hidden] {
  display: none !important;
}
.player-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 18px;
}
.player-toolbar select {
  width: auto;
  flex: 1;
}
.player-toolbar label {
  font-size: 12px;
  color: #a5b0ff;
}
.video-panel {
  padding: 20px;
}
.channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid #2a3043;
  margin-bottom: 10px;
  padding: 14px;
}
.channel:hover {
  border-color: #a5b0ff;
}
.channel.active {
  background: #252e4b;
  border-color: #8193e8;
}
.channel small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}
.channel strong {
  font-weight: 500;
}
.channel .letter {
  background: #29324d;
  color: #a5b0ff;
  padding: 10px;
  border-radius: 7px;
  font-size: 18px;
}
.channel .name {
  flex: 1;
}
.player-grid .stats {
  gap: 10px;
}
.player-grid .stat {
  padding: 16px;
}
.player-grid .stat strong {
  font-size: 25px;
}
@media (max-width: 1100px) {
  .player-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .player-grid .stats {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 850px) {
  .player-grid {
    grid-template-columns: 1fr;
  }
  .player-toolbar {
    gap: 7px;
  }
  .player-toolbar button {
    padding: 9px;
  }
  .heading .badge {
    display: none;
  }
}
/* Live playback chrome: no elapsed time or seek timeline. */
.screen {
  isolation: isolate;
}
.screen:focus-visible {
  outline: 2px solid #a5b0ff;
  outline-offset: 4px;
}
.screen canvas {
  z-index: 1;
}
.placeholder {
  z-index: 2;
}
.video-panel {
  padding: 16px;
}
.video-controls {
  position: absolute;
  z-index: 5;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 32px 14px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  transition: opacity 0.18s;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #fff;
}
.icon-button:hover,
.icon-button:focus-visible {
  background: #ffffff25;
}
.icon-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.icon-button svg .stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-button.selected {
  box-shadow: inset 0 -3px #ff4c56;
}
.control-spacer {
  flex: 1;
}
.volume-slider {
  width: 72px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: white;
}
.live-indicator {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(35, 0, 3, 0.78);
  border: 1px solid #ff535861;
  border-radius: 5px;
  color: #ff5861;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 7px 10px;
  box-shadow: 0 2px 12px #0003;
}
.live-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4651;
  box-shadow: 0 0 8px #ff465180;
}
.controls-hidden .video-controls,
.controls-hidden .live-indicator {
  opacity: 0;
  pointer-events: none;
}
.controls-hidden .video-controls:focus-within,
.controls-hidden:has(.video-controls:focus-within) .live-indicator,
.controls-hidden .live-indicator:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
.video-popup {
  position: absolute;
  z-index: 8;
  background: rgba(19, 23, 35, 0.96);
  border: 1px solid #ffffff25;
  border-radius: 8px;
  box-shadow: 0 8px 24px #0008;
  color: #fff;
}
.cc-menu {
  bottom: 62px;
  right: 18px;
  padding: 16px;
  width: min(270px, calc(100% - 36px));
}
.cc-menu label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.cc-menu select {
  background: #22283b;
  color: #fff;
  font-size: 13px;
}
.context-menu {
  min-width: 190px;
  padding: 6px;
}
.context-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  font-size: 13px;
}
.context-menu button:hover,
.context-menu button:focus-visible {
  background: #ffffff17;
}
.context-menu button[aria-checked='true']:after {
  content: '✓';
  float: right;
  margin-left: 12px;
}
.stats-overlay {
  position: absolute;
  z-index: 6;
  left: 12px;
  top: 12px;
  width: min(470px, calc(100% - 24px));
  max-height: calc(100% - 80px);
  overflow: auto;
  background: rgba(8, 12, 22, 0.78);
  color: #f5f7f5;
  border: 1px solid #ffffff20;
  border-radius: 5px;
  padding: 10px 13px;
  font:
    11px/1.6 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  backdrop-filter: blur(3px);
}
.stats-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ffffff25;
  padding-bottom: 5px;
  margin-bottom: 8px;
  font-size: 12px;
}
.stats-title button {
  padding: 0 6px;
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 24px;
  color: #fff;
}
.stats-overlay dl {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 3px 9px;
  margin: 0;
}
.stats-overlay dt {
  color: #bdc5db;
}
.stats-overlay dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.stats-overlay #buffer-detail {
  color: #bdc5db;
}
.screen:fullscreen .stats-overlay {
  font-size: 13px;
  width: 550px;
}
.screen:fullscreen .video-controls {
  padding: 50px 24px 18px;
}
.screen:fullscreen .cc-menu {
  bottom: 78px;
}
.screen:fullscreen .live-indicator {
  top: 20px;
  right: 24px;
}
body[data-embed] {
  background: #000;
}
body[data-embed] > header,
body[data-embed] .heading,
body[data-embed] footer,
body[data-embed] .player-grid > section:nth-child(2),
body[data-embed] .player-grid > section:first-child > .panel:not(.video-panel),
body[data-embed] .video-panel > .panel-title {
  display: none;
}
body[data-embed] main,
body[data-embed] .video-panel {
  padding: 0;
  margin: 0;
  max-width: none;
  border: 0;
  border-radius: 0;
}
body[data-embed] .player-grid {
  display: block;
}
body[data-embed] .screen {
  height: 100dvh;
  width: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}
@media (max-width: 600px) {
  .video-controls {
    gap: 4px;
    padding: 24px 8px 6px;
  }
  .icon-button {
    width: 32px;
    height: 32px;
    padding: 5px;
  }
  .volume-slider {
    width: 46px;
  }
  .stats-overlay {
    top: 6px;
    left: 6px;
    width: calc(100% - 12px);
    max-height: calc(100% - 56px);
    padding: 6px 9px;
    font-size: 10px;
  }
  .stats-overlay dl {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 1px 6px;
  }
  .stats-title {
    margin-bottom: 4px;
  }
  .live-indicator {
    top: 9px;
    right: 9px;
    padding: 5px 8px;
  }
  .cc-menu {
    bottom: 48px;
    padding: 12px;
  }
  .video-panel {
    padding: 8px;
  }
  .video-panel > .panel-title {
    padding: 6px;
    gap: 6px;
  }
  .video-panel #transport-state {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .video-controls {
    transition: none;
  }
}

.live-indicator {
  transition: opacity 0.18s;
}
@media (prefers-reduced-motion: reduce) {
  .live-indicator {
    transition: none;
  }
}

/* Glass track panels: one direct choice, without a native dropdown. */
.video-popup.track-menu {
  right: 48px;
  bottom: 64px;
  width: min(330px, calc(100% - 24px));
  padding: 14px 8px 8px;
  background: rgba(20, 25, 30, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 12px 40px #0005;
  color: #fff;
}
.track-menu > strong {
  display: block;
  padding: 0 14px 10px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: #eee;
}
.track-options {
  max-height: min(300px, 48vh);
  overflow-y: auto;
  scrollbar-width: thin;
}
.track-options button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #eee;
  font-size: 14px;
  cursor: pointer;
}
.track-options button:hover,
.track-options button:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  outline: 1px solid #ffffff40;
}
.track-options button[aria-checked='true'] {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.track-options button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.track-check {
  width: 18px;
  flex-shrink: 0;
  color: #ff5252;
  font-weight: 700;
}
#subtitle-select[hidden] {
  display: none;
}

.video-popup.track-menu {
  display: flex;
  flex-direction: column;
  max-height: calc(100% - 80px);
}
.track-options {
  min-height: 0;
}
.screen:fullscreen .track-menu {
  bottom: 78px;
  max-height: calc(100% - 100px);
}
@media (max-width: 600px) {
  .video-popup.track-menu {
    right: 8px;
    bottom: 48px;
    max-height: calc(100% - 56px);
    padding: 8px 6px 6px;
  }
  .track-menu > strong {
    padding-bottom: 6px;
    font-size: 12px;
  }
  .track-options button {
    padding: 8px 10px;
    font-size: 13px;
  }
}

.video-popup.track-menu {
  width: max-content;
  max-width: calc(100% - 24px);
  min-width: 160px;
}
.track-options button > span:nth-child(2) {
  flex: 1;
  white-space: nowrap;
}
.caption-format {
  width: 30px;
  height: 22px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.72;
  margin-left: 8px;
}
.caption-format svg {
  width: 30px;
  height: 22px;
}
@media (max-width: 600px) {
  .video-popup.track-menu {
    max-width: calc(100% - 16px);
  }
}

.seek-bar {
  /* Range controls must not inherit text-field padding or borders. */
  padding: 0;
  margin: 0;
  border: 0;
  height: 24px;
  background: transparent;
  cursor: pointer;
  flex: 1;
  min-width: 40px;
  width: 100px;
  accent-color: #a5b0ff;
}
.timeline-markers {
  position: absolute;
  height: 4px;
  transform: translateY(-50%);
  pointer-events: none;
}
.timeline-marker {
  position: absolute;
  height: 4px;
  width: 3px;
  border-radius: 2px;
  background: #ffd66e;
}
.timeline-marker.primary {
  background: #a5b0ff;
}
.playback-time {
  color: #e8eef6;
  font-size: 11px;
  white-space: nowrap;
}
#source-form select {
  width: 100%;
  padding: 10px;
  color: inherit;
  background: #101521;
  border: 1px solid #344151;
  border-radius: 8px;
}
@media (max-width: 600px) {
  .playback-time {
    display: none;
  }
  .seek-bar {
    width: 50px;
  }
}

.player-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #edf7ff;
  font:
    600 13px/1.3 system-ui,
    sans-serif;
}
.player-brand svg {
  width: 25px;
  height: 25px;
  color: #a5b0ff;
  flex: none;
}
.context-brand {
  padding: 5px 8px 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid #ffffff25;
}
.stats-title {
  gap: 6px;
}
.stats-title > span:not(.player-brand) {
  margin-left: auto;
  color: #b9c6d2;
}
/* Quality shares the audio/CC icon style, with a compact two-line readout. */
#quality-toggle {
  display: flex;
  width: auto;
  min-width: 76px;
  gap: 6px;
  padding: 5px 7px;
  white-space: nowrap;
}
.quality-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
#quality-mode,
.quality-mode {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #9fb6bb;
}
#quality-resolution,
.quality-resolution {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  color: #f3f8fa;
}
.quality-option-label {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  justify-content: space-between;
  width: 100%;
}
.quality-option-label .quality-mode {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #f3f8fa;
}
.quality-bitrate {
  font-size: 10px;
  font-weight: 450;
  color: #a8b6bf;
  font-variant-numeric: tabular-nums;
}
.screen .icon-button:disabled {
  cursor: default;
}
.screen .icon-button:disabled:hover {
  background: transparent;
}
.center-controls {
  position: absolute;
  z-index: 4;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 24px;
  pointer-events: none;
  transition:
    opacity 0.18s,
    visibility 0.18s;
}
.center-controls .center-button {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #0b101844;
  border: 1px solid #ffffff20;
  backdrop-filter: blur(7px);
  color: #f5faff;
  box-shadow: 0 4px 20px #0003;
  pointer-events: auto;
}
.center-controls .center-button:hover,
.center-controls .center-button:focus-visible {
  background: #263640bb;
  border-color: #ffffff60;
}
.center-controls .center-play {
  width: 80px;
  height: 80px;
  background: #111b2699;
}
.center-controls .center-button svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.center-controls .center-play svg {
  width: 40px;
  height: 40px;
}
.skip-number {
  font:
    600 8px Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  fill: currentColor;
  stroke: none;
}
.seek-feedback {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  transform: translateX(-50%);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  background: #0b101899;
  font:
    600 12px/1.4 system-ui,
    sans-serif;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.12s;
}
.seek-feedback.visible {
  opacity: 1;
}
.controls-hidden .center-controls {
  opacity: 0;
  visibility: hidden;
}
.controls-hidden .center-controls:focus-within {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 600px) {
  .center-controls {
    gap: 16px;
  }
  .center-controls .center-button {
    width: 48px;
    height: 48px;
  }
  .center-controls .center-play {
    width: 64px;
    height: 64px;
  }
  #quality-toggle {
    min-width: 67px;
    gap: 4px;
    padding-inline: 4px;
  }
  .video-controls .volume-slider {
    display: none;
  }
  .video-controls .seek-bar {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 44px;
    width: calc(100% - 20px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .center-controls,
  .seek-feedback {
    transition: none;
  }
}

#quality-toggle.unavailable {
  min-width: 38px;
  justify-content: center;
}
#quality-toggle.unavailable .quality-copy {
  display: none;
}
@media (max-width: 600px) {
  #quality-toggle.unavailable {
    min-width: 32px;
  }
}

.quality-badge {
  font:
    700 7px Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  fill: currentColor;
  stroke: none;
  letter-spacing: -0.2px;
}
@media (max-width: 600px) {
  .center-controls .center-button svg {
    width: 32px;
    height: 32px;
  }
  .center-controls .center-play svg {
    width: 36px;
    height: 36px;
  }
}

.player-version {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.65;
  white-space: nowrap;
}
.context-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.audio-only-label {
  position: absolute;
  top: 30%;
  width: 100%;
  text-align: center;
  color: #a8bbcd;
  font-size: 18px;
  letter-spacing: 0.08em;
  pointer-events: none;
}

video::cue(.cea608) {
  font-family: monospace;
}

.interstitial-skip,
.interstitial-label {
  position: absolute;
  z-index: 5;
  color: #fff;
  background: #12151dcc;
  backdrop-filter: blur(12px);
  border: 1px solid #ffffff40;
  border-radius: 8px;
  padding: 10px 16px;
  font:
    600 14px / 1.2 system-ui,
    sans-serif;
}
.interstitial-skip {
  right: 20px;
  bottom: 92px;
  cursor: pointer;
}
.interstitial-skip:hover {
  background: #303747ee;
}
.interstitial-label {
  top: 16px;
  left: 16px;
  pointer-events: none;
}
.interstitial-skip[hidden],
.interstitial-label[hidden] {
  display: none;
}

.seek-preview {
  position: absolute;
  bottom: 76px;
  z-index: 6;
  pointer-events: none;
  padding: 4px;
  border: 1px solid #ffffff40;
  border-radius: 8px;
  background: #12151de8;
  box-shadow: 0 8px 30px #0008;
  color: white;
  text-align: center;
  font:
    600 12px / 1.5 system-ui,
    sans-serif;
}
.screen .seek-preview canvas {
  position: static;
  display: block;
  border-radius: 4px;
}
.seek-preview[hidden] {
  display: none;
}

.track-section-label {
  margin-top: 0.35rem;
  padding: 0.5rem 0.75rem 0.25rem;
  border-top: 1px solid #ffffff24;
  color: #b7c3d4;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.03em;
  font-size: 21px;
  font-weight: 700;
}
button {
  transition:
    background 150ms,
    border-color 150ms;
}
button:not(:disabled):hover {
  border-color: var(--accent);
}
.drm-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #101421;
}
.drm-panel > summary {
  color: #c7cfff;
  font-weight: 600;
  margin-bottom: 0;
}
.drm-panel[open] > summary {
  margin-bottom: 18px;
}
.drm-panel .notice {
  line-height: 1.65;
}
.drm-panel label {
  line-height: 1.5;
}
.drm-panel details {
  margin-bottom: 12px;
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
}

.screen:has(.placeholder:not([hidden])) .center-controls {
  visibility: hidden;
  pointer-events: none;
}
