/* /modules/posts/css/rich_input.css */

:root {
    --maxMediaW: 500px;
}

/* RU: базовая обёртка */
.ri__comment{
    display: flex;
    align-items: flex-end;
    gap: 10px;
    width: -webkit-fill-available;
    background: rgb(27 35 55);
    border-radius: var(--br);
    padding: 0 4px 0 0;
}
.ri__post {
    position: relative;
    background: var(--bg-box-modal);
    border: var(--brd-box);
    border-radius: var(--br);
}

/* RU: поле ввода (contenteditable) */
.ri-input__wrap {
    position: relative;
    width: 100%;
}
.ri-input{
    box-sizing: border-box;
    width: 100%;
    border: none;
    outline: none;
    padding: 8px 0px;
    border-radius: var(--br);
    font-size: 14px;
    line-height: 1.3;
    white-space: pre-wrap;
    word-break: break-word;
    cursor: auto;
    overflow: hidden;
}

/* RU: placeholder для contenteditable */
.ri-input:empty:before{
  content: attr(data-placeholder);
  opacity: .55;
  pointer-events: none;
}
.ri-input--post {
    padding: 10px 10px 0;
}

/* RU: comments — компактный */
.ri__comment[data-ri-kind="comment"] .ri-input{ min-height: 30px; }

/* RU: post editor — минимум 100px */
.ri__post[data-ri-kind="post"] .ri-input{ min-height: 100px; }

/* RU: панель кнопок */
.comment-tools, .post-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0 0 10px;
}
.post-tools-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px 2px 10px;
    background: var(--bg-box);
    height: 30px;
}
.post-tools {
    padding: 0;
}

#post-draft-autosave-indicator {
    position: absolute;
    display: flex;
    bottom: 8px;
    right: 10px;
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
    align-items: center;
    justify-content: center;
}
#post-draft-autosave-indicator.show {
    opacity: 1;
}
#post-draft-autosave-indicator .icon {
    position: absolute;
    left: 1px;
    width: 100%;
    height: 100%;
    font-size: 12px;
    line-height: 1;
    opacity: .9;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
#post-draft-autosave-indicator .spinner {
    position: absolute;
    width: 95%;
    height: 95%;
    border: 2px solid rgb(141 141 141 / 20%);
    border-top: 2px solid #338633;
    border-radius: 50%;
    animation: rotate-indicator 1s linear infinite;
    z-index: 1;
}
@keyframes rotate-indicator {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ri-tools{
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

/* RU: upload menu */
.ri-upload {
  position: relative;
}

.ri-upload-menu {
  position: absolute;
  z-index: 10000;
  left: 0;
  bottom: calc(100%);
  min-width: 150px;
  padding: 8px;
  border-radius: var(--br);
  background: rgb(12 16 28 / 90%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
}

.ri-upload-menu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  padding: 4px 6px;
  border-radius: var(--br);
  font-size: 12px;
  line-height: 1;
  color: rgba(255,255,255,.85);
  transition: background .15s ease, color .15s ease;
}

.ri-upload-menu__item:hover,
.ri-upload-menu__item:focus-visible {
  background: rgba(255,255,255,.10);
  color: #fff;
}

.ri-upload-menu__item.is-disabled {
  opacity: .45;
  pointer-events: none;
}

/* ======= Pickers Panel ======= */
.ri-picker-panel{
  position: absolute;
  z-index: 9999;
  top: calc(100% + 0px);
  left: 0;
  width: min(355px, 95vw);
  height: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(12,16,28,.90);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
  user-select: none;
}

.comment-edit-wrap .ri__comment { position: relative; }
.comment-edit-wrap .ri-picker-panel { top: calc(100% + 5px); }

.ri-picker-head{
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(12,16,28,.5);
}

.ri-picker-tabs{
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
    padding: 6px 3px;
    font-size: 12px;
    letter-spacing: 0.1em;
}

.ri-picker-tab{
  padding: 3px 10px;
  border-radius: var(--br);
  cursor: pointer;
  color: rgba(255,255,255,.75);
  transition: background .15s ease, color .15s ease;
}

.ri-picker-tab.is-active, .ri-picker-tab:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.ri-picker-emoji-nav{
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 3px;
    border-top: 1px solid rgba(255,255,255,.04);
}

.ri-picker-emoji-nav.is-hidden{
  display: none;
}

.ri-picker-emoji-nav__item{
  padding: 4px 5px;
  border-radius: var(--br);
  white-space: nowrap;
  cursor: pointer;
  color: rgba(255,255,255,.75);
  transition: background .15s ease, color .15s ease;
}

.ri-picker-emoji-nav__item.is-active{
  background: rgba(255,255,255,.12);
  color: #fff;
}

.ri-picker-body{
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 6px;
}

.ri-picker-sec{
  margin-bottom: 12px;
}

.ri-picker-sec__title{
  font-size: 12px;
  font-weight: 700;
  opacity: .8;
  margin-bottom: 8px;
}

.ri-picker-grid--emoji{
    display: flex;
    gap: 0px;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;
}

.ri-picker-grid--gif{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    gap: 8px;
}

.emoji-select{
  font-size: 18px;
  line-height: 1;
  text-align: center;
  padding: 6px;
  border-radius: 5px;
  transition: background .15s ease, transform .15s ease;
}

.emoji-select:hover,
.emoji-select:focus-visible{
    transform: scale(1.3);
    background: rgba(255,255,255,.08);
}

.ri-gif-card{
    position: relative;
    width: 150px;
    height: 80px;
    border-radius: var(--br);
    overflow: hidden;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    transition: background .15s ease, border-color .15s ease;
}

.ri-gif-card:hover,
.ri-gif-card:focus-visible{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
}

.ri-gif-card__img{
    display: block;
    width: 150px;
    height: 80px;
    object-fit: cover;
}

.ri-gif-card__title{
    position: absolute;
    bottom: 0;
    font-size: 14px;
    font-weight: 400;
    padding: 4px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ri-picker-empty{
  font-size: 13px;
  opacity: .7;
}
.ri-btn {
    height: 34px;
    display: flex;
    align-items: center;
}
.ri-btn.post-modal {
    height: 24px;
    padding: 5px 0;
}
.ri-btn svg {
    stroke: gray;
    transition: stroke .3s ease;
}
.ri-btn:hover svg {
    stroke: rgb(35 150 255);
}
.svg-icon {
    stroke: rgb(70 120 220);
}
/* ============================= */


.ps-inline-animated {
    position: relative;
    display: block;
    width: fit-content;
    max-width: min(100%, var(--maxMediaW));
    margin: 8px 0;
    border-radius: var(--br);
    overflow: hidden;
}
.ps-inline-animated[data-upload-kind="animated"] {
    background: rgb(128 128 128 / 10%);
}

.ps-inline-animated__media{
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--br);
}

.ps-inline-image__remove,
.ps-inline-animated__remove,
.ps-inline-video__remove,
.ps-inline-upload__remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: rgb(125 0 0);
    box-shadow: 0 0 6px 0px black;
    opacity: .7;
    color: #fff;
    font-size: 18px;
    z-index: 10;
    transition: opacity .3s ease;
}
.ps-inline-image__remove:hover,
.ps-inline-animated__remove:hover,
.ps-inline-video__remove:hover,
.ps-inline-upload__remove:hover {
    opacity: 1;
}
.ps-inline-video__edit {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    z-index: 10;
    background: rgb(35 120 220);
    color: black;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    min-height: 22px;
    padding: 0 12px;
    border-radius: var(--br);
    box-shadow: 0 0 6px 0px black;
    opacity: .7;
    transition: opacity .3s ease;
}
.ps-inline-video__edit:hover {
    opacity: 1;
}


/* ===== Local video custom player ===== */
.ps-inline-animated[data-upload-kind="video"][data-media-kind="video"] {
  width: min(100%, var(--maxMediaW));
  max-width: var(--maxMediaW);
  aspect-ratio: 16 / 9;
  background: #001627;
  overflow: hidden;
}

.ps-inline-animated[data-upload-kind="video"][data-media-kind="video"] .ps-inline-animated__media {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #001627;
  border-radius: var(--br);
}

.ps-local-video {
  position: relative;
  display: block;
  user-select: none;
  outline: none;
}

.ps-local-video__poster {
  position: absolute;
  inset: 0;
  background: #001627 center / cover no-repeat;
  opacity: 1;
  transition: opacity .18s ease, visibility .18s ease;
  pointer-events: none;
}

.ps-local-video.is-started .ps-local-video__poster {
  opacity: 0;
  visibility: hidden;
}

.ps-local-video__top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 15px 20px;
    border-radius: var(--br) var(--br) 0 0;
    font-size: 14px;
    font-weight: 500;
    min-height: 30px;
    color: #fff;
    pointer-events: none;
    background: -webkit-linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,0));
    background: -o-linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,0));
    background: linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,0));
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity .3s ease, transform .3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ps-local-video:not(.is-started) .ps-local-video__top,
.ps-local-video.is-paused .ps-local-video__top,
.ps-local-video.is-user-active .ps-local-video__top {
  opacity: 1;
  transform: translateY(0);
}

.ps-local-video__big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(24,24,24,.60);
  color: #fff;
  font-size: 40px;
  line-height: 1;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
  box-shadow: 0 0 20px rgba(0,0,0,0.50);
  transition:
    background .3s ease,
    opacity .22s ease,
    visibility .22s ease,
    transform .22s ease;
}

.ps-local-video__big-play::before,
.ps-local-video__play-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: conic-gradient(#2378dc calc(var(--lv-load-progress, 0) * 1%), rgba(255, 255, 255, .16) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
  transition: opacity .18s ease;
}

.ps-local-video__play-btn::before {
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
}

.ps-local-video.is-loading .ps-local-video__big-play::before,
.ps-local-video.is-loading .ps-local-video__play-btn::before {
  opacity: 1;
}

.ps-local-video.is-loading .ps-local-video__big-play,
.ps-local-video.is-loading .ps-local-video__play-btn {
  pointer-events: none;
}

.ps-local-video__big-play svg,
.ps-local-video__play-btn svg {
  position: relative;
  z-index: 1;
}

.ps-local-video__big-play:hover,
.ps-local-video__big-play:focus-visible {
  background: rgba(24,24,24,.80);
}

.ps-local-video.is-playing .ps-local-video__big-play {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(.80);
  pointer-events: none;
}

.ps-local-video__duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 30px;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .3);
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    height: 13px;
    text-align: center;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity .2s ease, visibility .2s ease;
}

.ps-local-video.is-started .ps-local-video__duration,
.ps-local-video__duration[hidden] {
  opacity: 0;
  visibility: hidden;
}

.ps-local-video__controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 10px 10px;
    border-radius: 0 0 var(--br) var(--br);
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, .86), rgba(0, 0, 0, 0));
    pointer-events: none;
    opacity: 0; 
    transform: translateY(40px); 
    transition: opacity .3s ease, transform .3s ease;
}

.ps-local-video.is-started.is-user-active .ps-local-video__controls,
.ps-local-video.is-paused .ps-local-video__controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ps-local-video.is-playing.is-idle {
  cursor: none;
}

.ps-local-video.is-playing.is-idle * {
  cursor: none;
}

.video_controls_wrap {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

.video_control_left, .video_control_right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.ps-local-video__btn {
    position: relative;
    width: 30px;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: rgba(255, 255, 255, .10);
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    transition: background .15s ease;
}

.ps-local-video__btn:hover,
.ps-local-video__volume-wrap:hover,
.ps-local-video__btn:focus-visible {
  background: rgba(255,255,255,.18);
}

.ps-local-video__time {
    font-size: 12px;
    font-weight: 500;
    padding: 0 5px;
    line-height: 1;
    opacity: 1;
    white-space: nowrap;
}
.video_range_wrap {
    display: flex;
    flex-direction: column;
}
.ps-local-video__range-body {
    display: flex;
    height: 20px;
    align-items: center;
}

.ps-local-video__range,
.ps-local-video__volume {
    width: 100%;
    max-width: none;
    accent-color: rgb(35 120 255 / 90%);
    box-shadow: none !important;
    height: 4px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 5px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,.22);
    cursor: pointer;
    transition: height .15s;
}
.ps-local-video__range-body:hover .ps-local-video__range {
    height: 8px;
}

/* RU: timeline: белый = просмотрено, серый = буфер, тёмный = ещё не загружено */
.ps-local-video__range {
  min-width: 80px;
  background:
  linear-gradient(
    to right,
    rgb(35 120 255 / 90%) 0%,
    rgb(35 120 255 / 90%) var(--lv-played, 0%),
    rgb(120 160 210 / 40%) var(--lv-played, 0%),
    rgb(120 160 210 / 40%) var(--lv-buffered, 0%),
    rgba(255,255,255,.18) var(--lv-buffered, 0%),
    rgba(255,255,255,.18) 100%
  ) !important;
}

.ps-local-video__volume {
    height: 6px;
  max-width: 100px;
  min-width: 54px;
  background:
    linear-gradient(
      to right,
      rgb(35 120 255 / 90%) 0%,
      rgb(35 120 255 / 90%) var(--lv-volume, 100%),
      rgba(255,255,255,.22) var(--lv-volume, 100%),
      rgba(255,255,255,.22) 100%
    ) !important;
}

/* Chrome/Safari/Edge */
.ps-local-video__range::-webkit-slider-runnable-track,
.ps-local-video__volume::-webkit-slider-runnable-track {
  height: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ps-local-video__range::-webkit-slider-thumb,
.ps-local-video__volume::-webkit-slider-thumb {
  width: 0;
  height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

/* Firefox */
.ps-local-video__range::-moz-range-track,
.ps-local-video__volume::-moz-range-track {
  height: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ps-local-video__range::-moz-range-progress,
.ps-local-video__volume::-moz-range-progress {
  height: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ps-local-video__range::-moz-range-thumb,
.ps-local-video__volume::-moz-range-thumb {
  width: 0;
  height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ps-local-video__future {
  opacity: .75;
  text-align: center;
  font-size: 18px;
  line-height: 1;
}

.ps-local-video__pip,
.ps-local-video__fullscreen {
  padding: 0;
}

/*.ps-local-video__pip svg,
.ps-local-video__fullscreen svg {
  width: 24px;
  height: 24px;
  display: block;
  stroke: currentColor;
}*/

.ps-local-video__play-btn svg,
.ps-local-video__volume-btn svg,
.ps-local-video__pip svg,
.ps-local-video__fullscreen svg {
  width: 24px;
  height: 24px;
  display: block;
  stroke: currentColor;
}
.ps-local-video__volume-btn svg path {
    transition: transform .3s ease;
}

.ps-local-video__big-play svg {
  width: 50px;
  height: 50px;
  display: block;
  stroke: currentColor;
}


.ps-local-video.is-fullscreen {
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  background: #000;
}

.ps-local-video.is-fullscreen .ps-inline-animated__media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.ps-local-video.is-fullscreen .ps-local-video__controls {
  padding-bottom: 18px;
}

.ps-local-video.is-fullscreen .ps-local-video__top {
    padding: 20px 20px 40px;
    font-size: 24px;
}
.ps-local-video.is-fullscreen .ps-local-video__big-play {
    width: 140px;
    height: 140px;
}
.ps-local-video.is-fullscreen .ps-local-video__big-play svg {
    width: 90px;
    height: 90px;
}
/* ======================= */



/* RU: attachments */
.ri-attachments{ margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.ri-att{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}
.ri-att__thumb{ width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.ri-att__name{ font-size: 12px; opacity: .9; }
.ri-att__rm{ cursor: pointer; opacity: .75; }
.ri-att__rm:hover{ opacity: 1; }

/* RU: link preview */
a[data-role="rich-link-card"], a.ri-linkpreview__card {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    width: -webkit-fill-available;
}
.ri-linkpreview {
    margin-bottom: 10px;
    padding: 0 10px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgb(255 255 255 / 8%);
    border-radius: var(--br);
    transition: background .3s ease;
}
.ri__post .ri-linkpreview, .ri__comment .ri-linkpreview {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: var(--br);
}
.ri-linkpreview__img {
    max-width: 100px;
    /*height: 50px;*/
    object-fit: cover;
    flex: 0 0 auto;
}
.ri-linkpreview__body{
    padding: 10px 0;
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ri-linkpreview.ps-linkpreview-static .ri-linkpreview__body.link-publish {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}
.ri-linkpreview.ps-linkpreview-static.ps-linkpreview-embed {
    max-width: var(--maxMediaW);
    background: transparent;
    padding: 0;
}
.ri-linkpreview.ps-linkpreview-static.ps-linkpreview-embed .ri-linkpreview__body.link-publish {
    padding: 10px;
    margin-bottom: 0;
    border-radius: 0 0 var(--br) var(--br);
    border-top: none;
}
.ri-linkpreview.ps-linkpreview-static:hover {background: rgb(0 0 0 / 5%);}
.ri-linkpreview__title {
    font-size: 14px;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ri-linkpreview__body.link-publish .ri-linkpreview__title {
    color: #fff;
    text-decoration: none;
}
.ri-linkpreview__desc{
  font-size: 12px;
  color: #fff;
  opacity: .9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ri-linkpreview__url {
    font-size: 11px;
    opacity: .7;
    color: #fff;
    width: fit-content;
    text-decoration: none;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
    transition: opacity .3s ease;
}
.ri-linkpreview__url:hover { opacity: 1; text-decoration: underline; }
.ri-linkpreview__x{
    position: absolute;
    top: 2px;
    right: 8px;
    color: tomato;
    font-size: 20px;
    line-height: 1;
    opacity: .7;
    transition: opacity .3s ease;
}
.ri-linkpreview__x:hover{ opacity: 1; }

.ps-inline-upload {
  position: relative;
  display: block;
  max-width: 300px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  margin: 8px 0;
}

.ps-inline-upload__body {
  padding-right: 34px;
}

.ps-inline-upload__title {
  font-size: 13px;
  line-height: 1.3;
  opacity: .95;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-inline-upload__bar {
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.12);
  margin-top: 8px;
}

.ps-inline-upload__bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: currentColor;
  opacity: .75;
  transition: width .15s ease;
}

.ps-inline-upload__status {
  margin-top: 6px;
  font-size: 12px;
  opacity: .72;
}

.ps-inline-upload.is-error {
  border-color: rgba(255,80,80,.55);
}


/* ===== Rich video upload modal ===== */
.ri-video-upload-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.ri-video-upload-modal[hidden] {
  display: none !important;
}

.ri-video-upload-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(2px);
}

.ri-video-upload-modal__body {
    z-index: 1;
    width: min(100%, 460px);
    max-height: min(90vh, 680px);
    padding: 6px;
    position: relative;
    background: rgb(24 24 24 / .8);
    border-radius: var(--br);
    box-shadow: 0 0 8px #000;
}
.ri-video-upload-modal__body h4 {
    margin-bottom: 0;
    font-size: 12px;
}
.ri-video-upload-modal__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #222;
    color: #fff;
    padding: 20px;
    border-radius: var(--br);
    max-height: 85vh;
    overflow-y: auto;
}

.ri-video-upload-modal__section_body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ri-video-upload-modal__section {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 15px;
}

.ri-video-upload-modal__title {
    font-size: 16px;
    margin: 0;
}

.ri-video-upload-modal__close {
    padding: 3px;
    background: #333;
    position: absolute;
    top: 5px;
    right: 5px;
    border: none;
    border-radius: var(--br);
    box-shadow: 0 1px 3px #0000008c;
    cursor: pointer;
    transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.ri-video-upload-modal__close:hover,
.ri-video-upload-modal__close:focus-visible {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.ri-video-upload-modal__label {
  font-size: 13px;
  opacity: 1;
}

.ri-video-upload-modal__pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: var(--br);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.9);
  font-size: 12px;
  line-height: 1;
  transition: background .2s ease, color .2s ease;
}

.ri-video-upload-modal__pick:hover,
.ri-video-upload-modal__pick:focus-visible {
  background: rgba(35,120,255,.22);
  color: #fff;
}

.ri-video-upload-modal__file {
  font-size: 12px;
  line-height: 1;
  opacity: .8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ri-video-upload-modal__input {
    box-sizing: border-box;
    width: 100%;
    min-height: 30px;
    max-width: none;
    padding: 6px 10px;
    border-radius: var(--br);
    border: 1px solid rgba(255, 255, 255, .08);
    outline: none;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 14px;
    transition: border-color .2s ease, background .2s ease;
}

/*.ri-video-upload-modal__input:focus {
  border-color: rgba(35,120,255,.65);
  background: rgba(255,255,255,.08);
}*/

.ri-video-upload-modal__error {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: var(--br);
  background: rgba(180, 20, 20, .18);
  border: 1px solid rgba(255,80,80,.35);
  color: #ffb2b2;
  font-size: 12px;
  line-height: 1.35;
}

.ri-video-upload-modal__actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.ri-video-upload-modal__cancel,
.ri-video-upload-modal__submit {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: var(--br);
  font-size: 12px;
  line-height: 1;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}

.ri-video-upload-modal__cancel {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
}

.ri-video-upload-modal__cancel:hover,
.ri-video-upload-modal__cancel:focus-visible {
  background: rgba(255,255,255,.13);
  color: #fff;
}

.ri-video-upload-modal__submit {
  background: rgb(35 120 255 / 90%);
  color: #fff;
}

.ri-video-upload-modal__submit:hover,
.ri-video-upload-modal__submit:focus-visible {
  background: rgb(35 150 255 / 95%);
}

.ri-video-upload-modal__submit.is-loading,
.ri-video-upload-modal__submit.is-disabled {
  opacity: .55;
  pointer-events: none;
}

@media (max-width: 520px) {
  .ri-video-upload-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .ri-video-upload-modal__body {
    width: 100%;
    max-height: 88vh;
    padding: 14px;
  }

  .ri-video-upload-modal__actions {
    flex-direction: column-reverse;
  }

  .ri-video-upload-modal__cancel,
  .ri-video-upload-modal__submit {
    width: 100%;
  }
}
/* ===== /Rich video upload modal ===== */


/* ===== Local video volume control ===== */
.ps-local-video__volume-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .10);
    border-radius: var(--br);
}

.ps-local-video__volume-btn {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.ps-local-video__volume-pop {
    display: flex;
    align-items: center;
    width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-4px);
    transition: width .22s ease, opacity .22s ease, transform .22s ease;
}

.ps-local-video.is-volume-open .ps-local-video__volume-pop,
.ps-local-video__volume-wrap.is-open .ps-local-video__volume-pop {
    width: 86px;
    padding: 0 8px 0 5px;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
.ps-local-video__volume-wrap .ps-local-video__btn:hover {
    background: transparent;
}

.ps-local-video__volume-pop .ps-local-video__volume {
  width: 86px;
  min-width: 86px;
  max-width: 86px;
}
/* ===== /Local video volume control ===== */


@media (max-width: 415px) {
    .ri-picker-panel {
        left: 50%;
        transform: translateX(-50%);
    }
}
