
/* FLD_MAIN_STORIES_UI_V1 */

.fld-stories {
  margin: 14px 0 18px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg,#20102f,#100a1d);
  border: 1px solid rgba(196,137,255,.24);
  color: #fff;
}

.fld-stories-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.fld-stories-heading strong {
  font-size:17px;
}

.fld-stories-heading span {
  font-size:12px;
  opacity:.7;
}

.fld-stories-rail {
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding:5px 2px 12px;
  scrollbar-width:thin;
}

.fld-story-person {
  appearance:none;
  border:0;
  padding:0;
  background:none;
  color:#fff;
  min-width:72px;
  max-width:82px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  cursor:pointer;
  font:inherit;
}

.fld-story-ring {
  width:67px;
  height:67px;
  border-radius:50%;
  display:grid;
  place-items:center;
  padding:3px;
  background:linear-gradient(135deg,#ff6bdc,#8653ff,#4fa9ff);
  box-sizing:border-box;
}

.fld-story-person.add .fld-story-ring {
  background:rgba(255,255,255,.12);
  border:2px dashed #ad79ff;
}

.fld-story-avatar {
  width:100%;
  height:100%;
  border-radius:50%;
  background:#20112d;
  display:grid;
  place-items:center;
  font-size:25px;
  font-weight:800;
  overflow:hidden;
}

.fld-story-person-label {
  font-size:12px;
  max-width:80px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.fld-story-person:focus-visible,
.fld-story-close:focus-visible,
.fld-story-next:focus-visible,
.fld-story-prev:focus-visible {
  outline:3px solid #c99bff;
  outline-offset:3px;
}

.fld-story-overlay[hidden] {
  display:none !important;
}

.fld-story-overlay {
  position:fixed;
  inset:0;
  z-index:2147483000;
  background:rgba(0,0,0,.97);
  display:flex;
  justify-content:center;
  align-items:center;
  padding:12px;
  box-sizing:border-box;
}

.fld-story-stage {
  width:min(100%,450px);
  height:min(90dvh,800px);
  position:relative;
  background:#160d21;
  border-radius:18px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.fld-story-stage img,
.fld-story-stage video {
  max-width:100%;
  max-height:100%;
  width:100%;
  height:100%;
  object-fit:contain;
}

.fld-story-top {
  position:absolute;
  top:0;
  left:0;
  right:0;
  z-index:2;
  padding:14px;
  background:linear-gradient(#000b,transparent);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.fld-story-close,
.fld-story-next,
.fld-story-prev {
  color:white;
  background:#0009;
  border:1px solid #ffffff44;
  border-radius:50%;
  font-size:21px;
  width:40px;
  height:40px;
  cursor:pointer;
}

.fld-story-next,
.fld-story-prev {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
}

.fld-story-prev { left:10px; }
.fld-story-next { right:10px; }

.fld-story-caption {
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  padding:25px 16px 18px;
  color:white;
  text-align:center;
  background:linear-gradient(transparent,#000c);
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}


/* FLD_STORY_AVATARS_V2 */
.fld-story-avatar {
  position: relative;
}

.fld-story-avatar img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.fld-story-person.add .fld-story-avatar img {
  opacity: 0.65;
}

.fld-story-person.add .fld-story-avatar {
  isolation: isolate;
}

.fld-story-person.add .fld-story-avatar img {
  z-index: -1;
}

.fld-story-person.add .fld-story-avatar {
  color: #fff;
  text-shadow: 0 1px 6px #000;
}


/* FLD_MAIN_STORY_SOCIAL_V1 */

.fld-story-caption {
  bottom:137px;
  max-height:20%;
  overflow:auto;
}

.fld-story-social {
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  z-index:5;
  padding:12px;
  background:linear-gradient(transparent,#09030ff5 25%);
  color:white;
  box-sizing:border-box;
}

.fld-story-social[hidden],
.fld-story-reply-form[hidden],
.fld-story-inbox[hidden],
.fld-story-inbox-list[hidden] {
  display:none !important;
}

.fld-story-reactions {
  display:flex;
  gap:5px;
  justify-content:space-around;
  margin-bottom:9px;
}

.fld-story-react {
  border:1px solid #ffffff44;
  border-radius:20px;
  padding:7px;
  color:white;
  background:#ffffff18;
  font-size:14px;
  cursor:pointer;
}

.fld-story-react[aria-pressed="true"] {
  border-color:#ff79d8;
  background:#a3338255;
}

.fld-story-reply-form {
  display:flex;
  gap:8px;
}

.fld-story-reply-input {
  flex:1;
  min-width:0;
  padding:11px;
  background:#1b1027;
  color:white;
  border:1px solid #ffffff55;
  border-radius:24px;
  font-size:14px;
}

.fld-story-send,
.fld-story-inbox {
  background:#b36af3;
  color:#12051c;
  border:0;
  border-radius:22px;
  padding:9px 14px;
  font-weight:700;
  cursor:pointer;
}

.fld-story-inbox-list {
  max-height:180px;
  overflow:auto;
  margin-top:8px;
  background:#160b21;
  border-radius:12px;
  padding:10px;
}

.fld-story-inbox-item {
  padding:8px 0;
  border-bottom:1px solid #ffffff20;
  overflow-wrap:anywhere;
}

.fld-story-inbox-item p {
  margin:5px 0;
  font-size:13px;
}

.fld-story-social-status {
  font-size:12px;
  margin-top:5px;
  min-height:14px;
}


/* FLD_STORY_VIEWS_INBOX_V1 */

.fld-story-view-count {
  color:#fff;
  font-size:13px;
  font-weight:700;
  text-align:center;
  padding:5px 0;
}

.fld-story-view-count[hidden] {
  display:none !important;
}

.fld-story-inbox-overlay {
  position:fixed;
  inset:0;
  z-index:2147483001;
  background:rgba(0,0,0,.9);
  display:flex;
  justify-content:center;
  align-items:center;
  padding:16px;
  box-sizing:border-box;
}

.fld-story-inbox-panel {
  width:min(100%,540px);
  max-height:88dvh;
  overflow:auto;
  background:#1b1029;
  color:white;
  border:1px solid #ad70e9;
  border-radius:20px;
  padding:20px;
  box-sizing:border-box;
}

.fld-story-inbox-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.fld-story-inbox-head h2 {
  font-size:21px;
  margin:0;
}

.fld-story-inbox-head button {
  background:#ffffff20;
  color:white;
  padding:9px 14px;
  border:1px solid #ffffff44;
  border-radius:12px;
  cursor:pointer;
}

.fld-story-inbox-entry {
  border:1px solid #ffffff24;
  background:#10091c;
  border-radius:14px;
  padding:13px;
  margin:10px 0;
  overflow-wrap:anywhere;
}

.fld-story-inbox-entry p {
  white-space:pre-wrap;
}

.fld-story-inbox-entry small,
.fld-story-inbox-entry time {
  display:block;
  color:#cfc0dd;
  margin-top:7px;
  font-size:12px;
}


/* FLD_STORY_INBOX_SAFETY_V1 */

.fld-story-inbox-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
  align-items:center;
}

.fld-story-action,
.fld-story-report-reason {
  border:1px solid #ffffff45;
  border-radius:10px;
  padding:9px 12px;
  font-size:13px;
  background:#ffffff12;
  color:white;
}

.fld-story-action {
  cursor:pointer;
}

.fld-story-action:disabled {
  opacity:.5;
  cursor:default;
}

.fld-story-action-delete {
  border-color:#e58b8b;
}

.fld-story-action-report {
  border-color:#e8b66c;
}

.fld-story-action-block {
  border-color:#d07cda;
}

.fld-story-report-reason {
  max-width:100%;
  background:#291c39;
}

.fld-story-report-reason option {
  background:#291c39;
  color:white;
}

.fld-story-action-feedback {
  color:#e3caff;
  font-size:12px;
  margin:8px 0 0;
  overflow-wrap:anywhere;
}
