.subtitle-cues {
  width: 100%;
}

.subtitle-cues input {
  width: 100%;
}

.subtitle-cue-highlight {
  font-weight: bold;
}

.subtitle-cues > tbody > tr > td:first-child {
  color: var(--fg);
  font-weight: bold;
}

.subtitle-cues > tbody > tr > td:nth-child(1) {
  width: 40px;
}

.subtitle-cues > tbody > tr > td:nth-child(2) {
  width: 110px;
}

.subtitle-cues > tbody > tr > td:nth-child(3) {
  width: 110px;
}

.subtitle-cues > tbody > tr > td:nth-child(4) {
  cursor: pointer;
}

.subtitle-cues > tbody > tr:nth-child(2n+1) {
  background-color: var(--bg-secondary);
}

.subtitle-cues > tbody > tr > td, .subtitle-cues > thead > tr > th {
  padding-left: 6px;
  padding-right: 6px;
}

.subtitle-editor {
  position: sticky;
  top: 50px;
  padding-top: 26px;
}

.subtitle-editor-overflow {
  overflow-y: scroll;
  height: 100vh;
  padding-bottom: 320px;
}

#subtitle-video-viewer {
  position: relative;
  height: 0;
  width: 100%;
  padding-top: 56.25%;
}

#subtitle-video-viewer iframe {
  position: absolute;
  inset: 0px;
}

#subtitle-preview {
  background-color: #000000;
  color: #ffffff;
  text-align: center;
  min-height: 50px;
  white-space: pre-line;
}

#subtitle-cue-input {
  padding-bottom: 1em;
}

.action-bubble {
  float: left;
  background: #cecece;
  padding: 4px;
  border-radius: 8px;
  margin-right: 8px;
}

.subtitle-head {
  padding-top: 1em;
}

.subtitle-main {
  padding-bottom: 220px;
}

#bottom-controls {
  position: fixed;
  bottom: 0px;
  min-height: 220px;
  background-color: var(--bg);
  width: 100%;
  padding-top: 0.5em;
}

.subtitle-cue-italic {
  font-style: italic;
}

.subtitle-cue-bold {
  font-weight: bold;
}

.subtitle-cue-underline {
  text-decoration: underline;
}

.loader {
  display: inline-block;
  width: 12px;
  padding: 2px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #25b09b;
  --_m:
    conic-gradient(#0000 10%,#000),
    linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
  mask: var(--_m);
  -webkit-mask-composite: source-out;
  mask-composite: subtract;
  animation: l3 1s infinite linear;
}

@keyframes l3 {
  to {
    transform: rotate(1turn);
  }
}
.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
  background-color: #fff;
  border-radius: 5px;
  padding: 20px;
  max-width: 400px;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
