body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 10px;
}

video::-webkit-media-controls,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-timeline {
  display: none !important;
}

video {
  pointer-events: none;
}

.progress-bar {
  height: 4px;
  background-color: #4caf50;
  width: 0%;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: width 0.2s linear;
}

#videoStatus {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
  font-style: italic;
  min-height: 1em;
  transition: opacity 0.3s ease;
}

#logoutBtn {
  color: orangered;
  border: 1px solid orangered;
}

#progress {
  font-weight: bold;
  /* margin-bottom: 10px; */
}

#description {
  margin-top: 20px;
  margin-bottom: 5px;
  /* font-style: italic; */
}

#notes {
  margin-top: 10px;
}

#instructions {
  color: #555;
  margin: 4px 0;
  font-size: 12px;
}

#topbar-left,
#topbar-center,
#topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

#topbar-right button,
#topbar-center button {
  font-size: 12px;
  padding: 5px 10px;
}

:root {
  --header: 42px;
  --footer: 64px;
  --gap: 10px;
  --text-height: 90px;
}

#topbar {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  height: var(--header);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #ccc;
  background: #fff;
  z-index: 100;
}

#buttons {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  height: var(--footer);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 10px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  z-index: 100;
}

#app {
  padding-top: var(--header);
  padding-bottom: var(--footer);
  /* min-height: 100vh; */
}

#videos {
  height: calc(100vh - var(--header) - var(--footer) - var(--text-height) - 20px);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  max-width: 1280px; margin: 0 auto;
}

#videos > .video-container {
  height: calc((100% - var(--gap)) / 2);
  min-height: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  position: relative;
}

#videos > .video-container video {
  max-height: 100%;
  max-width: 100%;
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

#buttons button {
  margin: 0;
  padding: 10px 20px;
  font-size: 16px;
}

