/* نوار آواتارها (حالت اسکرول اینستاگرام) */
.testeto-story-tray {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 10px 0;
    direction: rtl;
    scrollbar-width: none; /* مخفی کردن اسکرول بار فایرفاکس */
    -ms-overflow-style: none;  /* مخفی کردن اسکرول بار IE */
}
.testeto-story-tray::-webkit-scrollbar {
    display: none; /* مخفی کردن اسکرول بار کروم و سافاری */
}

/* حباب آواتار */
.t-story-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

/* حلقه دور عکس (دیده نشده = زرد تستتو، دیده شده = طوسی) */
.t-story-ring {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(45deg, #FFC107, #FF9800); /* رنگ زرد تستتو */
    padding: 3px;
    transition: all 0.3s ease;
}
.t-story-bubble.viewed .t-story-ring {
    background: #E5E7EB; /* طوسی برای استوری دیده شده */
}

.t-story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background-color: #fff;
    overflow: hidden;
}
.t-story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t-story-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4B5563;
    max-width: 76px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ------------------------------------- */
/* پلیر تمام صفحه استوری (Fullscreen)   */
/* ------------------------------------- */
#testeto-story-player {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #111;
    z-index: 999999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.t-player-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
}

/* نوار پیشرفت (Progress Bars) */
.t-progress-container {
    position: absolute;
    top: 15px; left: 10px; right: 10px;
    display: flex;
    gap: 4px;
    z-index: 10;
}
.t-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}
.t-progress-fill {
    width: 0%;
    height: 100%;
    background: #ffffff;
}

/* دکمه بستن و هدر */
.t-player-header {
    position: absolute;
    top: 30px; left: 15px; right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}
.t-close-btn {
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* مدیا (عکس/ویدیو) */
.t-media-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.t-media-container img, .t-media-container video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* یا cover بسته به سلیقه */
}

/* منطق کلیک‌های راست و چپ (مرحله بعد/قبل) */
.t-nav-area {
    position: absolute;
    top: 0; bottom: 0;
    width: 35%;
    z-index: 5;
    cursor: pointer;
}
.t-nav-right { right: 0; }
.t-nav-left { left: 0; }