.ytaf-ui-container {
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;

  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 20px;
  padding: 20px;
  font-size: 1.5rem;
  z-index: 1000;
}

.ytaf-ui-container :focus {
  outline: 4px red solid;
}

.ytaf-ui-container h1 {
  margin: 0;
  margin-bottom: 0.5em;
  text-align: center;
}

.ytaf-ui-container input[type='checkbox'] {
  width: 1.4rem;
  height: 1.4rem;
}

.ytaf-ui-container input[type='radio'] {
  width: 1.4rem;
  height: 1.4rem;
}

.ytaf-ui-container label {
  display: block;
  font-size: 1.4rem;
}

.ytaf-notification-container {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 16pt;
  z-index: 1200;
}

.ytaf-notification-container .message {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 1em;
  margin: 0.5em;
  transition: all 0.3s ease-in-out;
  opacity: 1;
  line-height: 1;
  border-right: 10px solid rgba(50, 255, 50, 0.3);
  display: inline-block;
  float: right;
}

.ytaf-notification-container .message-hidden {
  opacity: 0;
  margin: 0 0.5em;
  padding: 0 1em;
  line-height: 0;
}

/* Fixes transparency effect for the video player */

.ytLrWatchDefaultShadow,
div[idomkey="shadow"] {
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.8) 90%) !important;
  background-color: rgba(0, 0, 0, 0.3) !important;
  display: block !important;
  height: 100% !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 100% !important;
}

/* https://github.com/webosbrew/youtube-webos/commit/4fbe38a18df31ddd62b6cf15f141dd58e1d1a71d */
.ytLrWatchDefault2025Shadow {
  background-color: rgba(11, 11, 11, 0.5) !important;
}

/* Fixes shorts having a black background */

.ytLrTileHeaderRendererShorts {
  background-image: none !important;
}

/* Multiline support for strings in the UI */

.ytLrOverlayPanelHeaderRendererSubtitle {
  white-space: pre-wrap !important;
}

/* Fixes SponsorBlock segments overlapping with the playhead */

.ytLrProgressBarPlayhead {
  z-index: 1 !important;
}

.ytLrProgressBarPlayed {
  z-index: 1 !important;
}

.ytLrSearchBarSearchVoice {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: auto
}

.ytLrSearchVoiceHost {
    font-size: 3rem;
}

.ytLrSearchVoiceMicButtonHost {
    color: rgba(255, 255, 255, 0.7);
}

.ytLrSearchVoiceMicButtonHost {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #f1f1f1;
    display: block;
    text-align: center;
    width: 1em;
    height: 1em;
}

.ytLrSearchVoiceMicButtonIcon {
    display: inline-block;
    font-size: .5em;
    height: .5em;
    width: .5em;
    height: 1em;
    width: 1em;
    margin-top: .5em;
    vertical-align: top !important;
}

.ytContribIconHost {
    display: inline-block;
    vertical-align: middle;
}

.ytContribIconTvArrowLeft::before {
    content: "\e822";
}

.ytContribIconHost::before {
    font-family: "YouTube Icons Outlined";
}