.story-bar-wrapper {   padding:15px 0; position: relative;  }
.story-bar { display: flex; gap: 16px;cursor: grab; overflow-x: auto; overflow-y: hidden; padding: 4px 16px; scrollbar-width: none; -ms-overflow-style: none; direction: rtl; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.story-bar::-webkit-scrollbar { display: none; }
.story-bar:active { cursor: grabbing; }
.story-circle-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; flex-shrink: 0; }
.story-circle { width: 75px; height: 75px; border-radius: 50%; padding: 3px; background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); transition: transform 0.2s ease; }
.story-circle-wrap:hover .story-circle, .story-circle-wrap:focus .story-circle { transform: scale(1.05); }
.story-circle img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--fff-color); display: block; }
.story-circle-wrap.seen .story-circle { background: var(--ddd-color); }
.story-cat-name { font-size: 14px; color: var(--222-color); max-width: 70px; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.story-modal { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; }
.story-modal.active { display: flex; }
.story-modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.85); }
.story-modal-content { position: relative; width: 100%; max-width: 400px; height: 90vh; max-height: 700px; border-radius: 12px; overflow: hidden; background: #000; z-index: 1; }
.story-progress-bar { position: absolute; top: 10px; left: 10px; right: 10px; height: 3px; display: flex; flex-direction: row-reverse; gap: 4px; z-index: 10; }
.story-progress-segment { flex: 1; height: 100%; background: rgba(255, 255, 255, 0.35); border-radius: 3px; overflow: hidden; position: relative; }
.story-progress-fill { position: absolute; top: 0; right: 0; height: 100%; width: 0%; background: #fff; border-radius: 3px; }
.story-progress-segment.completed .story-progress-fill { width: 100%; transition: none; }
.story-progress-segment.active .story-progress-fill { transition: width linear; }
.story-close { position: absolute; top: 20px; right: 14px; background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; z-index: 10; line-height: 1; }
.story-prev, .story-next { position: absolute; top: 50%; transform: translateY(-50%);  background: rgba(255,255,255,0.1);backdrop-filter: blur(10px);border: 1px solid rgba(255,255,255,0.2);color: #fff; font-size: 18px; width: 40px; height: 40px;padding: 0; cursor: pointer; z-index: 10; border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.story-prev:hover, .story-next:hover { background: rgba(255,255,255,0.3); }
.story-prev { right: 8px; }
.story-next { left: 8px; }
.story-slide { width: 100%; height: 100%; position: relative; }
.story-slide-img { width: 100%; height:100% !important; object-fit: cover; display: block; }
.story-slide-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 16px; background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: #fff; direction: rtl; text-align: right; }
.story-slide-title { margin: 0 0 6px; font-size: 14px;  background: rgba(190, 3, 21, 0.81);backdrop-filter: blur(10px);padding: 3px 10px;width: auto;line-height: 1.7;border-radius: 4px;}
.story-slide-text { margin: 0 0 10px; font-size: 13px; line-height: 1.6; opacity: 0.9;backdrop-filter: blur(10px); background: rgba(6, 6, 6, 0.56);padding: 10px;border-radius: 4px;}
.story-slide-link { display: inline-block; background: rgba(255,255,255,0.1);backdrop-filter: blur(10px);border: 1px solid rgba(255,255,255,0.2);color: #fff; padding: 2px 10px; border-radius: 4px; font-size: 12px; text-decoration: none;  float: left;}
.story-slide-link:hover{background: rgba(255, 255, 255, 0.42); border: 1px solid rgba(255, 255, 255, 0.42);}
.story-slide-link:empty { display: none; }
@media (max-width: 480px) { .story-modal-content { max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; } }