* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0d0f12;
  color: #edeef0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* image area */
.stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0f12;
}

.media {
  width: 97%;
  height: 97%;
  object-fit: contain;
  display: none;
}

.media.visible {
  display: block;
}

.status {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 28px);
  color: #9a9ea6;
}

.status.hidden {
  display: none;
}

/* controls */
.controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px;
  background: #15171c;
  border-top: 1px solid #22252b;
}

.btn {
  min-width: 100px;
  padding: 8px 16px;
  font-size: clamp(13px, 1.2vw, 16px);
  font-family: inherit;
  color: #edeef0;
  background: #23262e;
  border: 2px solid #33363f;
  border-radius: 8px;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: #33363f;
  border-color: #3fa9a0;
  outline: none;
}

.btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.btn-accent {
  background: #2c7c74;
  border-color: #3fa9a0;
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: #3fa9a0;
  color: #0d0f12;
}

.category-select {
  margin-right: auto;
  padding: 8px 12px;
  font-size: clamp(13px, 1.2vw, 16px);
  font-family: inherit;
  color: #edeef0;
  background: #23262e;
  border: 2px solid #33363f;
  border-radius: 8px;
  cursor: pointer;
}

.category-select:hover,
.category-select:focus-visible {
  border-color: #3fa9a0;
  outline: none;
}

/* lower third: placeholder only, for now */
.lower-third {
  flex: 0 0 13vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    #4a3418,
    #4a3418 22px,
    #573d1c 22px,
    #573d1c 44px
  );
}

.lower-third-label {
  font-size: clamp(11px, 1.1vw, 14px);
  color: #f1d9ad;
}