@font-face {
  font-family: "iransans";
  font-style: normal;
  font-weight: bold;
  src: url("fonts/IRANSansWeb.eot");
  src: url("fonts/IRANSansWeb.eot?#iefix") format("embedded-opentype"),
         url("fonts/IRANSansWeb.woff2") format("woff2"),
         url("fonts/IRANSansWeb.woff") format("woff"),
         url("fonts/IRANSansWeb.ttf") format("truetype");
}
@font-face {
  font-family: "iransans_bold";
  font-style: normal;
  font-weight: bold;
  src: url("fonts/IRANSansWeb_Bold.eot");
  src: url("fonts/IRANSansWeb_Bold.eot?#iefix") format("embedded-opentype"),
         url("fonts/IRANSansWeb_Bold.woff2") format("woff2"),
         url("fonts/IRANSansWeb_Bold.woff") format("woff"),
         url("fonts/IRANSansWeb_Bold.ttf") format("truetype");
}
.rolfa-stories {
  direction: rtl;
  width: 100%;
  font-family: iransans_Bold;
  margin: 15px 0;
}
.rolfa-stories-track {
     font-family: iransans;
  display: flex;
  gap: var(--rs-gap);
  overflow-x: auto;
  padding: 8px 4px 14px;
  scrollbar-width: none;
}
.rolfa-stories-track::-webkit-scrollbar {
  display: none;
}
.rolfa-story-item {
     font-family: iransans;
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  min-width: var(--rs-size);
  cursor: pointer;
  text-align: center;
  color: inherit;
  font: inherit;
}
.rolfa-story-avatar {
  display: block;
  width: var(--rs-size);
  height: var(--rs-size);
  border-radius: 50%;
  padding: var(--rs-border);
  background: linear-gradient(135deg,var(--rs-color),#ff8a00,#a100ff);
  box-sizing: border-box;
}
.rolfa-story-avatar img,.rolfa-story-avatar video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: #eee;
}
.rolfa-story-name {
     font-family: iransans_Bold;
  display: block;
  font-size: 12px;
  margin-top: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rolfa-stories-empty {
  padding: 20px;
  border: 1px dashed #ddd;
  border-radius: 12px;
  text-align: center;
  color: #777;
}
.rolfa-story-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
}
.rolfa-story-shell {
  position: relative;
  width: min(430px,100vw);
  height: min(760px,100vh);
  background: #111;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 20px 80px rgba(0,0,0,.45);
}
.rolfa-story-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}
.rolfa-story-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(0,0,0,.5),transparent 25%,transparent 65%,rgba(0,0,0,.75));
  pointer-events: none;
}
.rolfa-story-progress {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  z-index: 5;
}
.rolfa-story-progress span {
  height: 3px;
  background: rgba(255,255,255,.4);
  flex: 1;
  border-radius: 3px;
  overflow: hidden;
}
.rolfa-story-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
}
.rolfa-story-top {
  position: absolute;
  top: 24px;
  left: 16px;
  right: 16px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.rolfa-story-title {
     font-family: iransans;
  font-weight: 700;
}
.rolfa-story-close {
  background: none;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.rolfa-story-bottom {
font-family: 'iransans_bold';
  position: absolute;
  bottom: 18px;
  left: 16px;
  right: 16px;
  z-index: 7;
  color: #fff;
}
.rolfa-story-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rolfa-story-actions button {
     font-family: iransans;
  border: 0;
  background: rgba(255,255,255,.14);
  color: #fff;
  border-radius: 25px;
  padding: 9px 13px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.rolfa-story-like.liked {
  background: #ff3157;
}
.rolfa-story-comment-box {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.rolfa-story-comment-box input {
     font-family: iransans;
  flex: 1;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.3);
  color: #fff;
  border-radius: 22px;
  padding: 10px 14px;
  outline: 0;
}
.rolfa-story-comment-box button {
     font-family: iransans;
  border: 0;
  border-radius: 22px;
  padding: 0 15px;
  cursor: pointer;
}
.rolfa-story-link {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
  background: rgba(255,255,255,.14);
  padding: 8px 13px;
  border-radius: 20px;
}
.rolfa-story-toast {
  position: absolute;
  bottom: 85px;
  left: 16px;
  right: 16px;
  background: #fff;
  color: #111;
  border-radius: 10px;
  padding: 10px;
  z-index: 10;
  text-align: center;
  display: none;
}
@media (max-width:600px) {
  .rolfa-story-shell {
    height: 100vh;
    border-radius: 0;
  }
  .rolfa-story-modal {
    align-items: stretch;
  }
}
.rolfa-story-comments-panel {
  display: none;
  margin-top: 10px;
  max-height: 190px;
  overflow: auto;
  background: rgba(0,0,0,.42);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 10px;
  backdrop-filter: blur(12px);
}
.rolfa-story-comments-panel.open {
        font-family: 'iransans';
  display: block;
}
.rolfa-comment-row {
  padding: 9px 2px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #fff;
}
.rolfa-comment-row:last-child {
  border-bottom: 0;
}
.rolfa-comment-row strong {
  display: block;
  font-size: 12px;
}
.rolfa-comment-row p {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.6;
}
.rolfa-comment-row small {
  opacity: .6;
  font-size: 10px;
}
.rolfa-comments-loading,.rolfa-comments-empty {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  text-align: center;
  padding: 12px;
}
.rolfa-story-comment-box input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.12);
}
.rolfa-comment-row p {
  margin: 0;
  line-height: 1.7;
}
/* Category-based story circles and RTL navigation */
.rolfa-story-item {
  flex: 0 0 auto;
}
.rolfa-story-avatar {
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}
.rolfa-story-shell:hover @media(max-width:600px) {
}
/* v1.0.8 - invisible navigation zones */
.rolfa-story-hitzone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  z-index: 20;
  cursor: pointer;
  background: transparent;
}
.rolfa-story-hitzone-right {
  right: 0;
}
.rolfa-story-hitzone-left {
  left: 0;
}
.rolfa-story-hitzone:hover {
  background: transparent;
}
.rolfa-story-hitzone:focus {
  outline: none;
}
/* Professional category circles */
.rolfa-stories-categories {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 8px 2px 18px;
}
.rolfa-story-category {
  width: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  transition: transform .2s ease;
}
.rolfa-story-category:hover {
  transform: translateY(-3px);
}
.rolfa-story-category-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg,#feda75,#fa7e1e,#d62976,#962fbf,#4f5bd5);
  box-shadow: 0 7px 22px rgba(0,0,0,.14);
}
.rolfa-story-category-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  background: #f5f5f7;
}
.rolfa-story-category-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rolfa-story-category-name {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #202124;
}
.rolfa-story-category-count {
  margin-top: -5px;
  font-size: 10px;
  color: #8a8f98;
  font-weight: 500;
}
@media (max-width:600px) {
  .rolfa-stories-categories {
    gap: 15px;
  }
  .rolfa-story-category {
    width: 70px;
  }
  .rolfa-story-category-avatar {
    width: 66px;
    height: 66px;
  }
}
