/* ==========================================================================
   VISTARA - TIKTOK & REELS FULLSCREEN VERTICAL SHORTS FEED
   3D Cream Clay Light Mode Aesthetic (Unified with Vistara Theme)
   ========================================================================== */

:root {
    --reel-bg: #090c15;
    --reel-clay: #ffffff;
    --reel-primary: #ea6e56;
    --reel-primary-shadow: 0 4px 0 #c7523c, 0 8px 18px rgba(234, 110, 86, 0.4);
    --reel-green: #5fa887;
    --reel-text: #ffffff;
    --reel-font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--reel-bg);
    font-family: var(--reel-font);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

/* Background Ambient Lighting */
.reels-stage {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #090c15;
    background-image:
        radial-gradient(circle at 50% 10%, rgba(234, 110, 86, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 50% 90%, rgba(95, 168, 135, 0.12) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}

/* Vertical Snapping Container */
.reels-scroller {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    background: #000000;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.reels-scroller::-webkit-scrollbar {
    display: none;
}

/* Individual Reel Slide */
.reel-slide {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    background: #000;
}

/* Floating Gradient Overlays for Readability */
.reel-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 130px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    pointer-events: none;
    z-index: 10;
}

.reel-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 240px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    pointer-events: none;
    z-index: 10;
}

/* Fixed Top Navigation Bar */
.reels-top-nav {
    position: absolute;
    top: env(safe-area-inset-top, 12px);
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 30;
    box-sizing: border-box;
}

.reels-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s;
}

.reels-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.reels-brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.reels-logo-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
}

.reels-brand-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.reels-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    color: #ea6e56;
    background: rgba(255, 255, 255, 0.95);
    padding: 3px 8px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.live-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ea6e56;
    animation: livePulse 1.2s infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.5;
    }

    100% {
        transform: scale(0.9);
        opacity: 1;
    }
}

/* Floating Right Action Column (Instagram/TikTok Style) */
.reel-actions-col {
    position: absolute;
    right: 12px;
    bottom: 78px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 25;
}

.reel-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    outline: none;
    text-decoration: none;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-action-btn:active {
    transform: scale(0.88);
}

.action-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-icon-circle svg {
    width: 18px;
    height: 18px;
    display: block;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

.reel-action-btn:hover .action-icon-circle {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px) scale(1.06);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Like Active State (Vibrant Neon Heart Pop) */
.reel-action-btn.is-liked .action-icon-circle.action-like-circle {
    background: linear-gradient(135deg, #ff2a6d, #ff758c);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 42, 109, 0.7), 0 4px 14px rgba(0, 0, 0, 0.4);
    animation: heartPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-action-btn.is-liked .action-icon-circle.action-like-circle .heart-svg {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

@keyframes heartPop {
    0% {
        transform: scale(0.7);
    }

    50% {
        transform: scale(1.35);
    }

    100% {
        transform: scale(1);
    }
}

.action-label {
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
    line-height: 1.15;
}

/* Bottom Media Info & Compact Right CTA Bar */
.reel-bottom-wrap {
    position: absolute;
    bottom: 26px;
    bottom: calc(26px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    right: 14px;
    z-index: 25;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

.reel-info-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
    pointer-events: auto;
    margin-bottom: 2px;
}

.reel-author-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.reel-avatar-wrapper {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.reel-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

.reel-author-avatar:hover {
    transform: scale(1.08);
}

.avatar-verified-mini {
    display: none !important;
}

.reel-author-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.reel-author-name-row {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
}

.reel-author-name {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 2px 10px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
}

.reel-author-name:hover {
    color: #38bdf8 !important;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

/* Official Creator Verification Badges (Blue Tick, Gold, Pro, Diamond, Ruby) */
.v-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    flex-shrink: 0;
    user-select: none;
    position: relative;
    cursor: pointer;
    line-height: 1;
    margin-left: 2px;
    margin-right: 4px;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.25s ease;
}

.v-badge:hover {
    transform: scale(1.18);
}

.v-badge svg {
    display: block;
    width: 100%;
    height: 100%;
}

.v-badge-blue {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 2px 5px rgba(0, 100, 224, 0.7));
}
.v-badge-blue:hover {
    filter: drop-shadow(0 3px 10px rgba(0, 100, 224, 0.9));
    transform: scale(1.16);
}

.v-badge-gold {
    width: 17px;
    height: 17px;
    filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.65));
    animation: vbadgeGoldSweep 3.2s infinite ease-in-out;
}
.v-badge-gold:hover {
    transform: scale(1.2);
}
@keyframes vbadgeGoldSweep {
    0%, 100% {
        filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.65));
    }
    50% {
        filter: drop-shadow(0 0 13px rgba(251, 191, 36, 0.95)) drop-shadow(0 2px 4px rgba(180, 83, 9, 0.5));
        transform: scale(1.06);
    }
}

.v-badge-pro {
    width: 17px;
    height: 17px;
    filter: drop-shadow(0 2px 7px rgba(147, 51, 234, 0.6));
    animation: vbadgeProPulse 2.8s infinite ease-in-out;
}
.v-badge-pro:hover {
    transform: scale(1.2);
}
@keyframes vbadgeProPulse {
    0%, 100% {
        filter: drop-shadow(0 2px 6px rgba(147, 51, 234, 0.6));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.9)) drop-shadow(0 0 5px rgba(192, 132, 252, 0.8));
        transform: scale(1.08);
    }
}
.v-badge-pro .v-badge-corona {
    animation: vbadgeCoronaSpin 6s linear infinite;
    transform-origin: 12px 12px;
}
@keyframes vbadgeCoronaSpin {
    100% { transform: rotate(360deg); }
}

.v-badge-diamond {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.75));
    animation: vbadgeDiamondTwinkle 2.5s ease-in-out infinite;
}
.v-badge-diamond:hover {
    transform: scale(1.22);
}
@keyframes vbadgeDiamondTwinkle {
    0%, 100% {
        filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.65));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(14, 165, 233, 0.95)) drop-shadow(0 0 5px #ffffff);
        transform: scale(1.09) rotate(2deg);
    }
}
.v-badge-diamond .v-badge-star-glint {
    animation: vbadgeGlintFlash 2s infinite ease-in-out;
    transform-origin: 19px 6px;
}
@keyframes vbadgeGlintFlash {
    0%, 100% { opacity: 0.3; transform: scale(0.7); }
    50% { opacity: 1; transform: scale(1.3); }
}

.v-badge-ruby {
    width: 19px;
    height: 21px;
    filter: drop-shadow(0 0 4px #e11d48) drop-shadow(0 -3px 8px #ff4500) drop-shadow(0 -6px 14px rgba(255, 180, 0, 0.85));
    animation: vbadgeRealFire 1.6s infinite alternate ease-in-out;
}
.v-badge-ruby:hover {
    transform: scale(1.24) translateY(-1px);
}
@keyframes vbadgeRealFire {
    0% {
        filter: drop-shadow(0 0 4px #e11d48) drop-shadow(0 -3px 8px #ff4500) drop-shadow(0 -6px 13px rgba(255, 180, 0, 0.8));
        transform: translateY(0) scale(1);
    }
    33% {
        filter: drop-shadow(0 0 6px #ff003c) drop-shadow(0 -5px 12px #ff5a00) drop-shadow(0 -9px 18px rgba(255, 210, 40, 0.95));
        transform: translateY(-0.5px) scale(1.04) rotate(1deg);
    }
    66% {
        filter: drop-shadow(0 0 5px #e11d48) drop-shadow(0 -4px 10px #ff3700) drop-shadow(0 -7px 15px rgba(255, 170, 0, 0.85));
        transform: translateY(0) scale(1.02) rotate(-1deg);
    }
    100% {
        filter: drop-shadow(0 0 7px #ff1e00) drop-shadow(0 -6px 14px #ff7700) drop-shadow(0 -10px 22px rgba(255, 235, 60, 1));
        transform: translateY(-1px) scale(1.06) rotate(1.5deg);
    }
}
.v-badge-ruby .flame-center {
    animation: vbadgeFlameCenter 1.1s infinite ease-in-out alternate;
    transform-origin: 12px 9px;
}
.v-badge-ruby .flame-left {
    animation: vbadgeFlameLeft 1.4s infinite ease-in-out alternate;
    transform-origin: 6px 10px;
}
.v-badge-ruby .flame-right {
    animation: vbadgeFlameRight 1.3s infinite ease-in-out alternate;
    transform-origin: 18px 10px;
}
@keyframes vbadgeFlameCenter {
    0% { transform: scaleY(1) scaleX(1); opacity: 0.9; }
    50% { transform: scaleY(1.3) scaleX(0.88) skewX(3deg); opacity: 1; }
    100% { transform: scaleY(1.15) scaleX(1.15) skewX(-3deg); opacity: 0.95; }
}
@keyframes vbadgeFlameLeft {
    0% { transform: scale(1) rotate(0deg); opacity: 0.85; }
    50% { transform: scale(1.22) rotate(-6deg); opacity: 1; }
    100% { transform: scale(0.92) rotate(4deg); opacity: 0.8; }
}
@keyframes vbadgeFlameRight {
    0% { transform: scale(1) rotate(0deg); opacity: 0.85; }
    50% { transform: scale(1.18) rotate(6deg); opacity: 1; }
    100% { transform: scale(0.88) rotate(-4deg); opacity: 0.8; }
}

/* Sizing Modifiers */
.v-badge-sm.v-badge-blue { width: 15px; height: 15px; }
.v-badge-sm.v-badge-gold { width: 16px; height: 16px; }
.v-badge-sm.v-badge-pro { width: 16px; height: 16px; }
.v-badge-sm.v-badge-diamond { width: 17px; height: 17px; }
.v-badge-sm.v-badge-ruby { width: 18px; height: 19px; }

.reel-views-pill {
    display: none !important;
}

.reel-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
    padding-left: 2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.2px;
}

/* Signature Compact Right-Aligned CTA Button */
.reel-btn-telegram-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff5e62, #ff9966);
    color: #ffffff !important;
    border: 1.5px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 2px 0 #d94145, 0 4px 14px rgba(255, 94, 98, 0.5);
    font-family: var(--reel-font, 'Outfit', sans-serif);
    font-size: 12px;
    font-weight: 800;
    padding: 7px 14px;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
    pointer-events: auto;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    margin-bottom: 2px;
}

.reel-btn-telegram-full:active {
    transform: scale(0.93);
}

.reel-btn-telegram-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg);
    animation: ctaShine 3.2s infinite ease-in-out;
}

@keyframes ctaShine {

    0%,
    40% {
        left: -100%;
    }

    70%,
    100% {
        left: 160%;
    }
}

.reel-btn-telegram-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #d94145, 0 12px 26px rgba(255, 94, 98, 0.65);
}

.reel-btn-telegram-full:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #d94145;
}

/* Floating Glass Toast Notification */
.reels-toast {
    position: fixed;
    top: calc(75px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(-20px) scale(0.95);
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.reels-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Play/Pause Central Flash Feedback */
.reel-center-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    pointer-events: none;
    opacity: 0;
    z-index: 20;
    transition: opacity 0.2s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-center-feedback.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Floating Heart Tap Animation */
.tap-heart-anim {
    position: absolute;
    width: 90px;
    height: 90px;
    color: #ea6e56;
    pointer-events: none;
    z-index: 22;
    transform: translate(-50%, -50%) scale(0);
    animation: tapHeartExplode 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tapHeartExplode {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-15deg);
        opacity: 0;
    }

    40% {
        transform: translate(-50%, -50%) scale(1.4) rotate(0deg);
        opacity: 1;
    }

    80% {
        transform: translate(-50%, -70px) scale(1.2) rotate(10deg);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -100px) scale(1) rotate(15deg);
        opacity: 0;
    }
}

/* Desktop Arrow Key Navigation Indicators */
@media (min-width: 769px) {
    .reels-desktop-controls {
        position: absolute;
        right: calc(50% - 310px);
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 14px;
        z-index: 30;
    }

    .desktop-nav-arrow {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.3);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        backdrop-filter: blur(10px);
        transition: all 0.2s;
    }

    .desktop-nav-arrow:hover {
        background: #ea6e56;
        border-color: #ffffff;
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .reels-desktop-controls {
        display: none !important;
    }
}

/* ==========================================================================
   YouTube Shorts & TikTok Style In-App Comments Slide-Up Bottom Sheet
   ========================================================================== */
.reels-comments-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.reels-comments-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.reels-comments-drawer {
    width: 100%;
    max-width: 480px;
    height: 72vh;
    max-height: 72vh;
    background: #121624;
    border-top: 1.5px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.reels-comments-overlay.is-open .reels-comments-drawer {
    transform: translateY(0);
}

.drawer-drag-notch-wrap {
    width: 100%;
    padding: 10px 0 4px;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.drawer-drag-notch {
    width: 44px;
    height: 4.5px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    transition: background 0.2s;
}

.drawer-drag-notch-wrap:hover .drawer-drag-notch {
    background: rgba(255, 255, 255, 0.5);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.drawer-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    font-family: var(--reel-font);
}

.drawer-count-badge {
    background: rgba(234, 110, 86, 0.18);
    color: #ff9985;
    font-size: 12px;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid rgba(234, 110, 86, 0.4);
}

.drawer-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.08);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.drawer-body::-webkit-scrollbar {
    width: 5px;
}

.drawer-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Comment Item */
.drawer-comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    animation: drawerCommentFade 0.3s ease;
}

@keyframes drawerCommentFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.drawer-comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7a63, #ea6e56);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(234, 110, 86, 0.3);
}

.drawer-comment-body {
    flex: 1;
    min-width: 0;
}

.drawer-comment-author-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 3px;
}

.drawer-comment-author {
    font-size: 12.5px;
    font-weight: 700;
    color: #f1f5f9;
}

.drawer-comment-time {
    font-size: 11px;
    color: #94a3b8;
}

.drawer-comment-text {
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.45;
    word-break: break-word;
}

/* Loading Skeleton & Empty State */
.drawer-loading-skeleton,
.drawer-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    text-align: center;
    color: #94a3b8;
}

.drawer-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #ea6e56;
    border-radius: 50%;
    animation: drawerSpin 0.7s linear infinite;
    margin-bottom: 12px;
}

@keyframes drawerSpin {
    to {
        transform: rotate(360deg);
    }
}

.drawer-empty-state .empty-icon {
    font-size: 36px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.drawer-empty-state .empty-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.drawer-empty-state .empty-desc {
    font-size: 12.5px;
    color: #94a3b8;
    max-width: 260px;
}

/* Comment Form */
.drawer-comment-form {
    padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: #0b0e18;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.drawer-input-row {
    margin-bottom: 6px;
}

.drawer-input-author {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 12px;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.drawer-input-author:focus {
    border-color: #ea6e56;
}

.drawer-textarea-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    padding: 4px 6px 4px 14px;
    box-sizing: border-box;
}

.drawer-textarea-row:focus-within {
    border-color: #ea6e56;
    box-shadow: 0 0 0 2px rgba(234, 110, 86, 0.25);
}

.drawer-input-text {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 13px;
    resize: none;
    outline: none;
    max-height: 80px;
    padding: 4px 0;
    font-family: inherit;
}

.drawer-btn-send {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7a63, #ea6e56);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s, opacity 0.15s;
    box-shadow: 0 2px 8px rgba(234, 110, 86, 0.35);
}

.drawer-btn-send:hover {
    transform: scale(1.08);
}

.drawer-btn-send:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* --------------------------------------------------------------------------
   SPONSORED AD REEL SLIDE AESTHETICS (3D CLAY & TIKTOK STYLE)
   -------------------------------------------------------------------------- */
.reel-ad-slide {
    background: #090c15;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 70px 18px 50px 18px;
    box-sizing: border-box;
    overflow: hidden;
    user-select: auto;
    -webkit-user-select: auto;
}

.reel-ad-bg-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 28%, rgba(234, 110, 86, 0.22) 0%, transparent 65%),
        radial-gradient(circle at 50% 75%, rgba(95, 168, 135, 0.18) 0%, #090c15 80%);
    pointer-events: none;
    z-index: 1;
}

/* Top Sponsored Header Pill */
.reel-ad-top-pill {
    position: absolute;
    top: calc(env(safe-area-inset-top, 12px) + 54px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(234, 110, 86, 0.16);
    border: 1.5px solid rgba(234, 110, 86, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 999px;
    padding: 6px 14px;
    z-index: 15;
    box-shadow: 0 4px 16px rgba(234, 110, 86, 0.2);
}

.reel-ad-sparkle {
    font-size: 13px;
    color: #f78d78;
}

.reel-ad-pill-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
}

/* 3D Clay Ad Showcase Card */
.reel-ad-card {
    position: relative;
    z-index: 12;
    width: 100%;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22px;
    padding: 16px 12px;
    box-sizing: border-box;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: auto 0;
}

.reel-ad-card-header {
    width: 100%;
    margin-bottom: 10px;
}

.reel-ad-sponsor-info {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    width: 100%;
}

.reel-ad-avatar-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.reel-ad-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ea6e56;
}

.reel-ad-verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #0064E0;
    color: #ffffff;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #090c15;
}

.reel-ad-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.reel-ad-brand-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reel-ad-brand-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reel-ad-tag {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.reel-ad-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

/* Adsterra Banner Container inside Reel */
.reel-ad-body {
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 4px 0 12px 0;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.3);
}

.reel-ad-body .ad-placement-wrap,
.reel-ad-body .reel-ad-frame {
    margin: 0 !important;
    max-width: 100% !important;
}

/* Fallback Promo Card */
.reel-ad-fallback-promo {
    padding: 24px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.promo-icon-ring {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(234, 110, 86, 0.2);
    border: 2px solid #ea6e56;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.promo-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}

.promo-desc {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* 3D Clay Smartlink CTA Button */
.reel-ad-cta-row {
    width: 100%;
}

.reel-ad-cta-btn {
    position: relative;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, #f78d78, #ea6e56);
    color: #ffffff !important;
    border: 2px solid #ffffff;
    border-radius: 999px;
    padding: 12px 20px;
    box-sizing: border-box;
    font-family: var(--reel-font);
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 0 #c7523c, 0 10px 22px rgba(234, 110, 86, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.reel-ad-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #c7523c, 0 14px 26px rgba(234, 110, 86, 0.55);
}

.reel-ad-cta-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #c7523c, 0 4px 10px rgba(234, 110, 86, 0.35);
}

/* Bottom Swipe Hint */
.reel-ad-bottom-hint {
    position: absolute;
    bottom: calc(env(safe-area-inset-bottom, 12px) + 16px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    z-index: 15;
    cursor: pointer;
    opacity: 0.85;
    animation: hintBounce 2s infinite ease-in-out;
}

.reel-ad-bottom-hint .hint-arrow {
    font-size: 14px;
    color: #ea6e56;
}

.reel-ad-bottom-hint .hint-text {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.6px;
}

@keyframes hintBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}