/* Keyword highlighting: yellow background; text is inserted with .text(), never as HTML. */
mark.kw {
  background-color: #ffe066;
  color: #1a1a1a;
  padding: 0 .1em;
  border-radius: .2em;
}

/* 16:9 responsive wrapper for the YouTube IFrame player. */
.yt-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}
.yt-wrapper > div,
.yt-wrapper > iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}
.yt-placeholder {
  position: absolute;
  inset: 0;
}

.result-card .segment-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 1.02rem;
  line-height: 1.6;
}
.result-card .timestamp-badge {
  font-variant-numeric: tabular-nums;
}

/* Small screens: keep a 16px gutter and avoid horizontal scrolling. */
body {
  overflow-x: hidden;
}
.container {
  padding-left: 16px;
  padding-right: 16px;
}
#admin-yt-wrapper .yt-placeholder {
  color: rgba(255, 255, 255, .6);
}
