* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Tahoma, sans-serif;
}

body {
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* کانتینر ریلز */
.reel-container {
    width: 380px;
    height: 800px;
    position: relative;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    background: #111;
    border-radius: 20px;
}

/* هر آیتم ریل */
.reel-item {
    scroll-snap-align: start;
    width: 100%;
    height: 800px;
    position: relative;
    background: #000;
}

/* ویدیو و عکس */
.reel-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* گرادینت پایین */
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.25), transparent);
    pointer-events: none;
}

/* ============================================
   هدر جدید (جایگزین لوگو)
   ============================================ */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 110px;

    padding: 24px 28px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    z-index: 50;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.55) 45%,
        transparent 100%
    );

    pointer-events: none;
}


/* =========================
   BRAND
========================= */

.top-bar .brand {
    display: flex;
    align-items: center;

    height: 42px;

    padding: 0 14px;

    border-radius: 13px;

    background: rgba(15, 15, 15, 0.42);

    border: 1px solid rgba(255, 255, 255, 0.09);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.2);

    pointer-events: auto;
}


/* MeMe Irani */

.brand-name {
    color: #fff;

    font-size: 16px;
    font-weight: 750;

    letter-spacing: -0.3px;

    white-space: nowrap;
}


/* Divider */

.brand-divider {
    width: 1px;
    height: 18px;

    margin: 0 12px;

    background: rgba(255, 255, 255, 0.18);
}


/* Explore */

.brand-explore {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 25px;

    padding: 0 10px;

    border-radius: 7px;

    color: #d2f341;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1.2px;

    background: rgba(210, 243, 65, 0.08);

    border: 1px solid rgba(210, 243, 65, 0.3);

    box-shadow:
        0 0 16px rgba(210, 243, 65, 0.05);
}


/* =========================
   BACK BUTTON
========================= */

.top-bar .back-home {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 42px;

    padding: 0 15px;

    gap: 9px;

    color: rgba(255, 255, 255, 0.88);

    text-decoration: none;

    font-size: 12px;
    font-weight: 500;

    border-radius: 13px;

    background: rgba(15, 15, 15, 0.42);

    border: 1px solid rgba(255, 255, 255, 0.11);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.2);

    transition: all 0.25s ease;

    pointer-events: auto;
}


/* Arrow */

.back-arrow {
    font-size: 17px;
    line-height: 1;

    transition: transform 0.25s ease;
}


/* Hover */

.top-bar .back-home:hover {
    color: #d2f341;

    background: rgba(210, 243, 65, 0.07);

    border-color: rgba(210, 243, 65, 0.35);

    transform: translateY(-1px);
}

.top-bar .back-home:hover .back-arrow {
    transform: translateX(-4px);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .top-bar {
        height: 95px;
        padding: 18px 16px;
    }

    .top-bar .brand {
        height: 38px;
        padding: 0 11px;
    }

    .brand-name {
        font-size: 14px;
    }

    .brand-divider {
        margin: 0 9px;
        height: 16px;
    }

    .brand-explore {
        height: 22px;
        padding: 0 8px;
        font-size: 8px;
    }

    .top-bar .back-home {
        height: 38px;
        padding: 0 11px;
        gap: 7px;
        font-size: 11px;
    }

    .back-arrow {
        font-size: 15px;
    }
}

/* اکشن‌ها سمت چپ */
.left-actions {
    position: absolute;
    left: 15px;
    bottom: 130px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
    color: white;
    z-index: 10;
}

.action {
    text-align: center;
    cursor: pointer;
}

.action .icon {
    font-size: 30px;
}

.action span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
}

/* =========================================================
   اطلاعات کاربر - نسخه اولیه (قبل از هر تغییری)
   ========================================================= */
.bottom-info {
    position: absolute;
    right: 15px;
    bottom: 20px;
    width: calc(100% - 30px);
    color: white;
    z-index: 10;
}

.user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    flex-shrink: 0;
    object-fit: cover;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.username {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.follow-btn {
    background: transparent;
    border: 1px solid #d2f341;
    border-radius: 8px;
    padding: 4px 10px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.follow-btn:hover {
    background: rgba(210, 243, 65, 0.1);
}

.follow-btn.following {
    background: rgba(210, 243, 65, 0.1);
    border-color: #ff4757;
    color: #ff4757;
}

/* کپشن */
.caption {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* موزیک */
.music {
    font-size: 13px;
    opacity: .9;
}

.music h4 {
    color: #d2f341;
    font-size: 14px;
    margin-bottom: 2px;
}

/* دکمه صدا */
.sound-btn {
    position: absolute;
    bottom: 20px;
    left: 15px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    z-index: 10;
}

/* مخفی کردن اسکرول */
.reel-container::-webkit-scrollbar {
    display: none;
}

/* غیرفعال کردن کلیک راست */
img, video {
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    -webkit-touch-callout: none;
}

video::-internal-media-controls-download-button {
    display: none;
}

video::-webkit-media-controls-enclosure {
    overflow: hidden;
}

video::-webkit-media-controls-panel {
    width: calc(100% + 30px);
}

.intro-item {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background:
        radial-gradient(circle at top, #d2f34122 0%, transparent 40%),
        linear-gradient(135deg, #0f172a, #111827);
    padding: 30px;
}

.intro-content p {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    color: #e5e7eb;
    padding: 18px;
    border-radius: 18px;
    line-height: 2;
    font-size: 15px;
}

.intro-content h4 {
    color: #d2f341;
    font-size: 19px;
    margin-bottom: 15px;
    margin-top: -60px;
}

.intro-content p {
    color: #ddd;
    line-height: 1.9;
    font-size: 16px;
    margin-bottom: 25px;
}

.intro-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.intro-features span {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    color: white;
    padding: 10px 15px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.scroll-indicator {
    color: white;
    font-weight: 600;
}

.arrow {
    font-size: 32px;
    margin-top: 10px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%,100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(12px);
    }
}

.sound-notice {
    margin-top: 20px;
    color: #facc15 !important;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    letter-spacing: .3px;
    animation: pulseNotice 2s infinite;
}

@keyframes pulseNotice {
    0%,100% {
        opacity: .7;
    }
    50% {
        opacity: 1;
    }
}

/* ============================================
   ریسپانسیو برای گوشی‌های کوچیک
   ============================================ */
@media (max-height: 700px) {
    .top-bar {
        padding: 14px 18px 30px 18px;
    }
    
    .top-bar .brand {
        font-size: 15px;
    }
    
    .top-bar .back-home {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    .bottom-info {
        bottom: 10px;
    }
    
    .left-actions {
        bottom: 110px;
        gap: 16px;
    }
    
    .left-actions .action .icon {
        font-size: 24px;
    }
    
    .caption {
        font-size: 13px;
    }
    
    .username {
        font-size: 13px;
    }
    
    .avatar {
        width: 34px;
        height: 34px;
    }
    
    .follow-btn {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .sound-btn {
        bottom: 10px;
        left: 10px;
        padding: 6px;
        font-size: 14px;
    }
}

/* ============================================
   ریسپانسیو برای گوشی‌های بسیار کوچیک
   ============================================ */
@media (max-height: 600px) {
    .top-bar {
        padding: 10px 14px 25px 14px;
    }
    
    .top-bar .brand {
        font-size: 13px;
    }
    
    .top-bar .back-home {
        font-size: 10px;
        padding: 3px 10px;
    }
    
    .left-actions {
        bottom: 90px;
        gap: 12px;
        left: 10px;
    }
    
    .left-actions .action .icon {
        font-size: 20px;
    }
    
    .left-actions .action span {
        font-size: 10px;
    }
    
    .bottom-info {
        bottom: 8px;
        right: 10px;
        width: calc(100% - 20px);
    }
    
    .user {
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .avatar {
        width: 28px;
        height: 28px;
    }
    
    .username {
        font-size: 11px;
    }
    
    .follow-btn {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .caption {
        font-size: 11px;
        line-height: 1.5;
    }
    
    .music h4 {
        font-size: 12px;
    }
    
    .sound-btn {
        bottom: 8px;
        left: 8px;
        padding: 4px;
        font-size: 12px;
    }
}