/* FlickChat v5.1.3: immersive story player based on the supplied mobile example. */
#storyViewer.fc513-story-player{
  box-sizing:border-box; padding:0; border:1px solid #514768; border-radius:22px;
  overflow:hidden; max-width:none; max-height:none;
  width:min(500px, calc(100vw - 28px)); height:min(840px, calc(100dvh - 28px));
  margin:auto; background:#0d1019; color:#fff; box-shadow:0 28px 100px #000e;
}
#storyViewer.fc513-story-player::backdrop{background:rgba(1,3,12,.89);backdrop-filter:blur(10px)}
.fc513-stage{position:relative;width:100%;height:100%;overflow:hidden;isolation:isolate;background:linear-gradient(130deg,#1a122e,#181827 50%,#0d1a23);touch-action:pan-y;user-select:none;-webkit-user-select:none}
.fc513-media{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;background:#11121b}
.fc513-media .story-view-media{position:absolute;inset:0;width:100%;height:100%;max-height:none;border-radius:0;object-fit:contain;display:block;background:transparent}
.fc513-shade{position:absolute;left:0;right:0;pointer-events:none;z-index:1}
.fc513-shade-top{top:0;height:27%;background:linear-gradient(to bottom,rgba(3,5,11,.74),transparent)}
.fc513-shade-bottom{bottom:0;height:46%;background:linear-gradient(to top,rgba(3,4,12,.95) 0%,rgba(3,4,12,.63) 45%,transparent)}
.fc513-story-top{position:absolute;z-index:3;top:0;left:0;right:0;padding:calc(16px + env(safe-area-inset-top,0px)) 15px 10px;display:flex;align-items:center;gap:10px;justify-content:space-between;pointer-events:none}
.fc513-story-top>*{pointer-events:auto}
.fc513-tabs{display:flex;align-items:center;gap:3px;border:1px solid #ffffff45;border-radius:999px;padding:4px;background:#04050c9e;min-width:0;max-width:calc(100% - 48px);box-shadow:0 6px 24px #0007}
.fc513-tab{border:0;border-radius:999px;padding:9px 13px;background:transparent;color:#ebeaf1;white-space:nowrap;font-size:11px;font-weight:750;line-height:1.15;min-height:36px}
.fc513-tab.active,.fc513-tab[aria-pressed="true"]{background:#ffffff3c;color:#fff}
.fc513-tab:focus-visible,.fc513-close:focus-visible,.fc513-action:focus-visible{outline:3px solid #cab1ff;outline-offset:3px}
.fc513-close{flex:none;width:38px;height:38px;border:1px solid #ffffff42;border-radius:50%;background:#04050cbd;color:white;font-size:17px;line-height:1;display:grid;place-items:center;box-shadow:0 6px 24px #0007}
.fc513-story-foot{z-index:3;position:absolute;left:0;right:0;bottom:0;padding:10px 17px calc(16px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:12px;pointer-events:none;text-shadow:0 2px 6px #000b}
.fc513-story-foot>*{pointer-events:auto}
.fc513-story-details{display:flex;gap:11px;align-items:center;min-height:54px}
.fc513-avatar{flex:none;height:44px;width:44px;border-radius:50%;border:2px solid #fff9;display:grid;place-items:center;font-size:19px;font-weight:850;background:linear-gradient(135deg,#8460e5,#15a3b5);box-shadow:0 3px 14px #0008}
.fc513-author-lines{min-width:0;display:flex;flex-direction:column;gap:4px}
#storyViewer .fc513-author-lines strong{font-size:13px;font-weight:800;line-height:1.4;color:#fff;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#storyViewer .story-view-caption{font-size:12px;color:#f1f0fa;line-height:1.4;padding:0;max-height:3.8em;overflow:auto;margin:0;word-break:break-word;white-space:pre-line}
#storyViewer .story-like-hint{color:#e3daef;font-size:10px;padding:0;line-height:1.4;margin:0}
#storyViewer .fc513-story-actions{display:flex;align-items:flex-start;justify-content:center;gap:clamp(9px,4.5vw,25px);padding:0;margin:0;flex-wrap:nowrap}
#storyViewer .fc513-action{border:1px solid #ffffff30;color:#fff;background:#080a11db;width:clamp(55px,14vw,65px);height:clamp(55px,14vw,65px);min-width:0;padding:7px 4px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;border-radius:50%;box-shadow:0 7px 20px #0007;line-height:1;flex:none;text-shadow:none}
#storyViewer .fc513-action span{font-size:27px;line-height:1.1;font-weight:650}
#storyViewer .fc513-action small{font-size:9px;font-weight:650;line-height:1.15;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#storyViewer .fc513-action.fc513-skip{background:#170d22}
#storyViewer .fc513-action.fc513-add{background:#2a185e;border:2px solid #a384ff;color:#fff}
#storyViewer .fc513-action.fc513-like{background:#161d17;border-color:#64a96b}
#storyViewer .fc513-action.fc513-like span{color:#78ed8e}
#storyViewer .fc513-action.fc513-like.is-liked{background:#273d30;border:2px solid #65dca0;box-shadow:0 0 20px #60df9247}
#storyViewer .fc513-action.fc513-more{width:50px;height:50px;align-self:center}
#storyViewer .fc513-action.fc513-more span{font-size:20px}
#storyViewer .fc513-action.fc513-mute{width:50px;height:50px;align-self:center}
#storyViewer .fc513-action:disabled{opacity:.55}
.fc513-swipe-hint{text-align:center;color:#d6c9e9;letter-spacing:.06em;font-size:10px;font-weight:650;opacity:.82}
.fc513-swipe-hint span{padding:0 7px}
.fc513-feedback{z-index:4;position:absolute;top:46%;left:50%;transform:translate(-50%,-50%) scale(.92);max-width:calc(100% - 50px);padding:13px 19px;text-align:center;color:#fff;font-size:15px;font-weight:750;background:#151224da;border:1px solid #a989f1a5;border-radius:14px;box-shadow:0 10px 36px #000b;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s}
.fc513-feedback.visible{opacity:1;transform:translate(-50%,-50%) scale(1)}
@media(max-width:700px){
  #storyViewer.fc513-story-player{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0;margin:0}
  .fc513-story-top{padding-top:calc(13px + env(safe-area-inset-top,0px));padding-left:14px;padding-right:14px}
  .fc513-story-foot{padding-left:16px;padding-right:16px;padding-bottom:calc(23px + env(safe-area-inset-bottom,0px))}
  .fc513-tabs{flex:1;justify-content:space-evenly;max-width:none}
  .fc513-tab{padding:9px 11px}
  #storyViewer .fc513-action{width:clamp(55px,15vw,65px);height:clamp(55px,15vw,65px)}
}
@media(max-width:360px){.fc513-tab{font-size:10px;padding:8px 7px}.fc513-story-foot{gap:9px}#storyViewer .fc513-story-actions{gap:8px}#storyViewer .fc513-action{width:52px;height:52px}#storyViewer .fc513-action small{font-size:8px}}
@media(prefers-reduced-motion:reduce){.fc513-feedback{transition:none}}
