html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

#player,
#player iframe {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

#subtitle {
  position: fixed;
  left: 16px;
  bottom: 12px;
  transform: none;
  z-index: 100;
  font-family: monospace;
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.25;
  color: #ffe35a;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 227, 90, 0.35);
  padding: 14px 18px;
  border-radius: 8px;
  max-width: min(70vw, 980px);
  white-space: pre-line;
  text-align: left;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.85s ease;
}

@media (max-width: 900px) {
  #subtitle {
    left: 10px;
    right: 10px;
    max-width: none;
    bottom: 12px;
    font-size: clamp(18px, 5vw, 26px);
  }
}

#subtitle.fade {
  opacity: 0;
}

#subtitle.hidden {
  display: none;
}

#meta-controls {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 101;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

#corner-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  max-width: min(62vw, 760px);
}

#corner-title,
#video-date {
  font-family: monospace;
  font-size: 14px;
  color: #f1f1f1;
  background: rgba(0, 0, 0, 0.65);
  padding: 8px 10px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#corner-title {
  color: #ffeeb0;
  max-width: min(44vw, 620px);
}

#skippa {
  border: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #ffe35a;
  padding: 8px 12px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 14px;
  cursor: pointer;
}

#skippa:hover {
  background: rgba(25, 25, 25, 0.92);
}

#skippa:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#audio-controls {
  position: fixed;
  right: 12px;
  bottom: 56px;
  z-index: 101;
  display: flex;
  align-items: center;
  gap: 8px;
}

#mute-toggle {
  border: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-family: monospace;
  cursor: pointer;
}

#mute-toggle:hover {
  background: rgba(25, 25, 25, 0.92);
}

#volume-slider {
  width: 140px;
}
