/* Phase 5 Feed CSS */

/* Main Feed Container (Ultra-Smooth 120Hz/60Hz Native Momentum Snapping) */
.feed-container {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    background-color: #000;
    position: relative;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: scroll-position;
    
    /* Hide scrollbar for a cleaner look */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.feed-container::-webkit-scrollbar {
    display: none;
}

/* Single Feed Item */
.feed-item {
    width: 100%;
    height: 100%;
    min-height: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    user-select: none;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    contain: layout paint;
}

/* Video Element */
.feed-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #000;
    cursor: pointer;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.feed-video.feed-image,
img.feed-video {
    object-fit: contain !important;
    object-position: center !important;
    background: #000;
}

/* Video Buffering Spinner */
.video-buffering-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: #00ffcc;
    border-right-color: #ff0050;
    border-radius: 50%;
    animation: viralBufferSpin 0.8s linear infinite;
    pointer-events: none;
    z-index: 18;
    display: none;
}

@keyframes viralBufferSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Center Play/Pause Indicator */
.video-center-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(15, 15, 25, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    pointer-events: none;
    opacity: 0;
    z-index: 20;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 255, 204, 0.35);
    transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.22s ease;
}

.video-center-indicator .indicator-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.video-center-indicator.show-pulse {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
}

.video-center-indicator.fade-out {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.4);
    transition: transform 0.35s ease-out, opacity 0.35s ease-out;
}

/* Double-Tap Heart Pop */
.video-heart-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 25;
    font-size: 5.5rem;
    color: #ff0050;
    filter: drop-shadow(0 0 20px rgba(255, 0, 80, 0.9));
    animation: heartBurstAnim 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes heartBurstAnim {
    0% { transform: translate(-50%, -50%) scale(0) rotate(-15deg); opacity: 0; }
    30% { transform: translate(-50%, -50%) scale(1.3) rotate(0deg); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.1) rotate(5deg); opacity: 1; }
    80% { transform: translate(-50%, -50%) scale(1.2) translateY(-20px); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(1.45) translateY(-45px); opacity: 0; }
}

/* Overlays */
.feed-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    padding-bottom: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    pointer-events: none; /* Let clicks pass through to video to play/pause */
}

/* Ensure interactive elements inside overlay can be clicked */
.feed-overlay * {
    pointer-events: auto;
}

/* Creator Info */
.feed-creator-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}
.feed-creator-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid white;
}
.feed-creator-info .creator-name {
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.feed-follow-badge {
    background: linear-gradient(135deg, #ff1744 0%, #d50000 100%);
    border: 1px solid #ff5252;
    color: #ffffff;
    padding: 3px 12px;
    border-radius: 14px;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    margin-left: 10px;
    box-shadow: 0 3px 10px rgba(255, 23, 68, 0.5), 0 0 12px rgba(255, 23, 68, 0.35);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    user-select: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.feed-follow-badge:hover {
    background: linear-gradient(135deg, #ff3366 0%, #ff1744 100%);
    border-color: #ffffff;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(255, 23, 68, 0.7);
}

.feed-follow-badge.following {
    background: linear-gradient(135deg, rgba(0, 160, 255, 0.28) 0%, rgba(0, 220, 255, 0.22) 50%, rgba(0, 140, 255, 0.32) 100%) !important;
    color: #ffffff !important;
    border: 1.5px solid #00e5ff !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.45), inset 0 0 8px rgba(0, 229, 255, 0.25) !important;
    font-weight: 800 !important;
    border-radius: 9999px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.feed-follow-badge.following:hover {
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.42) 0%, rgba(0, 240, 255, 0.35) 50%, rgba(0, 160, 255, 0.48) 100%) !important;
    border-color: #38ef7d !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.65), inset 0 0 12px rgba(0, 229, 255, 0.35) !important;
    transform: scale(1.05) !important;
}

.feed-follow-badge.motivated-mutual {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    border: 1px solid #38ef7d !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(56, 239, 125, 0.5) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}

.feed-follow-badge.motivated-mutual:hover {
    background: linear-gradient(135deg, #108c82 0%, #34d872 100%) !important;
    box-shadow: 0 6px 18px rgba(56, 239, 125, 0.7) !important;
    transform: scale(1.05) !important;
}

.feed-follow-badge.motivate-back {
    background: rgba(45, 25, 0, 0.7);
    border: 1px solid #ff9900;
    color: #ff9900;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(255, 153, 0, 0.2);
    text-shadow: none;
}

.feed-follow-badge.motivate-back:hover {
    background: rgba(60, 35, 0, 0.85);
    border-color: #ffaa33;
    color: #ffaa33;
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(255, 153, 0, 0.4);
}

.feed-follow-badge.requested {
    background: rgba(80, 60, 0, 0.6);
    color: #ffc107;
    border: 1px solid #ffc107;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.2);
    text-shadow: none;
}

.feed-follow-badge.requested:hover {
    background: rgba(100, 75, 0, 0.75);
    color: #ffca28;
    border-color: #ffca28;
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.35);
    transform: scale(1.05);
}

.feed-follow-badge.accept-btn {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: 1px solid #28a745 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(40, 167, 69, 0.5) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}

.feed-follow-badge.accept-btn:hover {
    background: linear-gradient(135deg, #218838, #17a2b8) !important;
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.7) !important;
    transform: scale(1.05) !important;
}

/* Caption */
.feed-caption {
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 85%;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    display: block;
}

.tv-desc-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.2s ease;
}

.feed-caption.expanded .tv-desc-text {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
    max-height: 25vh;
    overflow-y: auto !important;
}

/* Right side actions */
.feed-actions-right {
    position: absolute;
    right: 12px;
    bottom: 10px;
    top: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 50;
    pointer-events: auto;
}

/* Volume widget override — inside reel right sidebar */
.feed-reel-vol {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin-bottom: 4px;
}
.feed-reel-vol .insta-vol-slider-wrap {
    top: calc(100% + 4px);
    right: 0;
}

@media (max-width: 767px) {
    .feed-actions-right {
        right: 10px;
        bottom: 10px;
        top: auto;
        transform: none;
        gap: 12px;
    }
}
.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    opacity: 0.9;
    transition: transform 0.2s;
}
.action-btn:active {
    transform: scale(0.9);
}
.action-btn i {
    font-size: 2rem;
    margin-bottom: 2px;
}
.action-btn span {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
}
.action-btn .action-sublabel {
    font-size: 0.76rem;
    font-weight: 800;
    margin-bottom: 1px;
}
.action-btn .action-sublabel:empty {
    display: none;
}
.action-btn .action-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    opacity: 0.95;
}

/* Suggested Users Feed Module */
.suggested-feed-item {
    background: linear-gradient(to bottom, #111, #222);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.suggested-title-area {
    position: absolute;
    bottom: 30px;
    left: 20px;
    z-index: 10;
}

.suggested-title-area h2 {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.suggested-title-area p {
    color: #ccc;
    margin: 0;
    font-size: 0.9rem;
}

.suggested-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px;
    width: 100%;
    margin-bottom: 80px; /* space for bottom titles */
}

.suggested-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.suggested-card .close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #fff;
    opacity: 0.6;
    font-size: 1.2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.suggested-card-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.suggested-card-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.suggested-card-mutual {
    color: #aaa;
    font-size: 0.8rem;
    margin-bottom: 16px;
    text-align: center;
}

.suggested-chain-btn {
    background-color: #ff0050; /* Red color as requested */
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 0;
    width: 100%;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.suggested-chain-btn:active {
    background-color: #d00040;
}/* Top Left Floating Profile & Make Chain Pill (Only shown on home screen when users are unrelated) */
/* Top Left Floating Profile (Transparent background, 3-line layout) */
.feed-top-creator-chain-badge {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    left: 14px;
    z-index: 35;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
    transition: all 0.25s ease;
    user-select: none;
    pointer-events: auto;
}

/* 1st Line: Profile Avatar & Name + Make Chain Button in front */
.feed-top-row-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-top-creator-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.feed-top-creator-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #00ffcc;
    display: block;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    transition: transform 0.15s ease;
}

.feed-top-creator-avatar:hover {
    transform: scale(1.08);
}

.feed-top-creator-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0,0,0,0.9);
    cursor: pointer;
    letter-spacing: 0.2px;
}

.feed-top-creator-name:hover {
    color: #00ffcc;
}

/* 2nd Line: Action Icons (Like, Message, Share) */
.feed-top-row-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 2px;
}

.feed-top-icon-btn {
    background: rgba(15, 15, 22, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    min-width: 26px;
    height: 26px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.feed-top-icon-btn:hover {
    background: rgba(0, 255, 204, 0.3);
    border-color: #00ffcc;
    color: #00ffcc;
    transform: scale(1.08);
}

.feed-top-icon-btn:active {
    transform: scale(0.92);
}

.feed-top-icon-btn svg {
    display: block;
    flex-shrink: 0;
}

.feed-top-count {
    font-size: 0.68rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.feed-top-count:empty {
    display: none;
}

.feed-top-like-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.feed-top-like-btn.liked {
    background: rgba(0, 0, 0, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

.feed-top-like-btn.liked svg {
    fill: #ff0050 !important;
    stroke: #ff0050 !important;
}


/* 3rd Line: Make Chain Button */
.feed-top-row-chain {
    display: flex;
    align-items: center;
    padding-left: 2px;
}

.feed-top-make-chain-btn {
    background: linear-gradient(135deg, #ff1744 0%, #d50000 100%);
    color: #ffffff;
    border: 1px solid #ff5252;
    border-radius: 20px;
    padding: 3px 11px;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 3px 10px rgba(255, 23, 68, 0.5), 0 0 12px rgba(255, 23, 68, 0.35);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.feed-top-make-chain-btn:hover {
    background: linear-gradient(135deg, #ff3366 0%, #ff1744 100%);
    border-color: #ffffff;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(255, 23, 68, 0.7);
}

.feed-top-make-chain-btn:active {
    transform: scale(0.92);
}

.feed-top-make-chain-btn.following {
    background: linear-gradient(135deg, rgba(0, 160, 255, 0.28) 0%, rgba(0, 220, 255, 0.22) 50%, rgba(0, 140, 255, 0.32) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #ffffff !important;
    border: 1.5px solid #00e5ff !important;
    border-radius: 9999px !important;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.45), inset 0 0 8px rgba(0, 229, 255, 0.25) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.feed-top-make-chain-btn.following:hover {
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.42) 0%, rgba(0, 240, 255, 0.35) 50%, rgba(0, 160, 255, 0.48) 100%) !important;
    border-color: #38ef7d !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.65), inset 0 0 12px rgba(0, 229, 255, 0.35) !important;
    transform: scale(1.05) !important;
}

.feed-top-make-chain-btn.motivate-back {
    background: linear-gradient(135deg, #00f5d4 0%, #00bbf9 100%);
    border: 1px solid #70e000;
    color: #000000;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(0, 245, 212, 0.45), 0 0 12px rgba(0, 187, 249, 0.35);
    text-shadow: none;
}

.feed-top-make-chain-btn.motivate-back:hover {
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
    border-color: #ffffff;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(0, 245, 212, 0.65);
}

.feed-top-make-chain-btn.requested {
    background: rgba(255, 179, 0, 0.2);
    color: #ffb300;
    border: 1px solid rgba(255, 179, 0, 0.5);
    box-shadow: 0 2px 8px rgba(255, 179, 0, 0.2);
    text-shadow: none;
}

.feed-top-make-chain-btn.requested:hover {
    background: rgba(255, 179, 0, 0.3);
    border-color: #ffb300;
    color: #ffd54f;
}

.feed-top-make-chain-btn.accept-btn {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: 1px solid #28a745 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(40, 167, 69, 0.5) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}

.feed-top-make-chain-btn.accept-btn:hover {
    background: linear-gradient(135deg, #218838, #17a2b8) !important;
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.7) !important;
    transform: scale(1.05) !important;
}

/* Explicitly hide in Fullscreen TV Mode (keeping only small 'X' exit button at top-left in TV mode) */
body.tv-fullscreen-mode .feed-top-creator-chain-badge {
    display: none !important;
}

/* Hide top banner when users are chained / connected */
.feed-item.is-chained .feed-top-creator-chain-badge {
    display: none !important;
}

/* In Fullscreen TV Mode: Keep creator profile info, title, description & actions fully visible */
body.tv-fullscreen-mode .feed-overlay,
body.tv-fullscreen-mode .feed-overlay .feed-creator-info,
body.tv-fullscreen-mode .feed-overlay .feed-caption,
body.tv-fullscreen-mode .feed-actions-right {
    display: flex !important;
}

body.tv-fullscreen-mode .feed-creator-avatar-wrap {
    display: block !important;
}

/* Mute Toggle and Volume Slider */
.volume-container {
    position: absolute;
    top: max(20px, env(safe-area-inset-top));
    right: 20px;
    z-index: 10;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

.mute-toggle-btn {
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.volume-slider-wrapper {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease, margin 0.3s ease;
    background: rgba(0,0,0,0.5);
    border-radius: 20px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(5px);
    height: 40px;
}

.volume-container:hover .volume-slider-wrapper {
    width: 100px;
    margin-right: 10px;
}

.volume-slider {
    width: 80px;
    margin-left: 10px;
    cursor: pointer;
}

/* States */
.feed-loading, .feed-empty, .feed-end, .feed-error {
    width: 100%;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    min-height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Make sure bottom nav sits on top */
.bottom-nav {
    z-index: 9999 !important;
}

/* Progress Bar & Interactive Video Scrubber (Hidden on Home feed, Only visible in Fullscreen mode) */
.feed-progress-bar,
.insta-video-progress-bar {
    display: none !important;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px; /* Touch / Click hit target */
    z-index: 1005;
    align-items: flex-end;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    pointer-events: auto;
    background: transparent;
    padding-bottom: 0;
    box-sizing: border-box;
}

.feed-progress-track {
    position: relative;
    width: 100%;
    height: 2px; /* Sleek, ultra-thin video line */
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: height 0.16s cubic-bezier(0.4, 0, 0.2, 1), background 0.16s ease;
}

.feed-progress-bar:hover .feed-progress-track,
.feed-progress-bar.is-scrubbing .feed-progress-track {
    height: 4.5px;
    background: rgba(255, 255, 255, 0.4);
}

.feed-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00ffcc 0%, #00e5ff 50%, #ff007f 100%);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.8), 0 0 16px rgba(255, 0, 127, 0.5);
    transform-origin: left center;
    transform: scaleX(0);
    will-change: transform;
    pointer-events: none;
}

.feed-progress-thumb {
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #00ffcc;
    box-shadow: 0 0 6px #00ffcc, 0 0 12px rgba(0, 255, 204, 0.8);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 2;
}

.feed-progress-bar:hover .feed-progress-thumb,
.feed-progress-bar.is-scrubbing .feed-progress-thumb {
    transform: translate(-50%, -50%) scale(1);
}

.feed-progress-tooltip {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(8, 12, 22, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 204, 0.5);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 255, 204, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
    z-index: 3;
}

.feed-progress-bar.is-scrubbing .feed-progress-tooltip,
.feed-progress-bar:hover .feed-progress-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}


/* --- PHASE 6: SOCIAL UI --- */

/* Follow Button */
.feed-follow-btn {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: 8px;
    font-weight: bold;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}
.feed-follow-btn.following {
    background: white;
    color: black;
    border-color: white;
}

/* Like Button States */
.action-btn.liked i,
.action-btn.liked .icon-container,
.like-btn.liked i,
.like-btn.liked .icon-container {
    color: #ff0050 !important;
    animation: popHeart 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.action-btn.liked svg,
.action-btn.liked svg path,
.like-btn.liked svg,
.like-btn.liked svg path {
    fill: #ff0050 !important;
    stroke: #ff0050 !important;
    color: #ff0050 !important;
    filter: none !important;
}
.action-btn.liked .like-count,
.like-btn.liked .like-count {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}
@keyframes popHeart {
    0% { transform: scale(1); }
    50% { transform: scale(1.45); }
    100% { transform: scale(1); }
}


/* Save Button States */
.action-btn.saved i,
.action-btn.saved .icon-container {
    color: #fbbf24;
    animation: popMedal 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.action-btn.saved i svg,
.action-btn.saved .icon-container svg {
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}
@keyframes popMedal {
    0% { transform: scale(1); }
    50% { transform: scale(1.35) rotate(8deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Floating Hearts Animation */
.floating-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 100;
    color: #ff0050;
    filter: drop-shadow(0 0 8px rgba(255, 0, 80, 0.85));
}
@keyframes floatHeart {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.2);
        opacity: 0;
    }
}

/* Comment Bottom Sheet */
.comment-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2147483646 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.comment-sheet-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.comment-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    background: #111;
    border-radius: 20px 20px 0 0;
    z-index: 2147483647 !important;
    display: flex;
    flex-direction: column;
    transform: translateY(70vh) scale(0.1);
    transform-origin: 90% 100%;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.comment-sheet.active {
    bottom: 0;
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.comment-sheet-drag-handle {
    width: 38px;
    height: 4px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    margin: 8px auto 0 auto;
    cursor: grab;
    touch-action: pan-y;
}

.comment-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: bold;
    position: relative;
}

.comment-sheet-down-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: #e4e4e7;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.comment-sheet-down-btn:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.92);
}

.comment-sheet-close {
    background: none;
    border: none;
    color: #a1a1aa;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.comment-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Comment Item & Layout */
.comment-item {
    display: flex;
    gap: 10px;
    color: white;
    position: relative;
}

.comment-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.comment-bubble {
    background: #22222a;
    padding: 10px 14px;
    border-radius: 14px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.comment-user {
    font-weight: 700;
    font-size: 0.85rem;
    color: #efefef;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.comment-user:hover {
    color: #00ffcc;
}

.comment-text {
    font-size: 0.92rem;
    line-height: 1.4;
    word-break: break-word;
    color: #e4e4e7;
}

.comment-edited-tag {
    font-size: 0.72rem;
    color: #71717a;
    margin-left: 4px;
    font-style: italic;
}

/* Comment Actions Bar (Reply, Edit, Delete, Date) */
.comment-meta-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: #a1a1aa;
    margin-top: 4px;
    padding-left: 2px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.comment-action-btn {
    background: none;
    border: none;
    color: #a1a1aa;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease;
}

.comment-action-btn:hover {
    color: #ffffff;
}

.comment-action-btn.delete-btn:hover {
    color: #ff4d4f;
}

.comment-action-btn.edit-btn:hover {
    color: #00ffcc;
}

.comment-action-btn.reply-btn:hover {
    color: #00ffcc;
}

/* Heart Like Button and Counter */
.comment-like-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 4px;
    padding-left: 2px;
    flex-shrink: 0;
    min-width: 32px;
}

.comment-like-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #71717a;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.15s;
}

.comment-like-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: fill 0.2s, stroke 0.2s;
}

.comment-like-btn:hover {
    transform: scale(1.18);
    color: #ff0050;
}

.comment-like-btn.is-liked {
    color: #ff0050 !important;
}

.comment-like-btn.has-likes {
    color: #ff0050 !important;
}

.comment-like-btn.is-liked svg {
    fill: #ff0050 !important;
    stroke: #ff0050 !important;
    filter: drop-shadow(0 0 6px rgba(255, 0, 80, 0.75)) !important;
    animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.comment-like-btn.has-likes svg {
    fill: #ff0050 !important;
    stroke: #ff0050 !important;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.comment-like-count {
    font-size: 0.7rem;
    color: #a1a1aa;
    font-weight: 600;
    line-height: 1;
    margin-top: 2px;
}

.comment-like-btn.is-liked + .comment-like-count {
    color: #ff2b54;
}

/* Replies section */
.comment-replies-container {
    margin-top: 10px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-reply-item {
    display: flex;
    gap: 8px;
}

.comment-reply-item .comment-avatar img {
    width: 28px;
    height: 28px;
}

.comment-reply-item .comment-bubble {
    padding: 8px 12px;
    background: #181820;
}

.view-replies-toggle {
    background: none;
    border: none;
    color: #00ffcc;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0 2px 24px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: left;
}

.view-replies-toggle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 18px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

/* Replying indicator bar above input */
.replying-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #25252e;
    padding: 6px 16px;
    font-size: 0.8rem;
    color: #00ffcc;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.replying-banner button {
    background: none;
    border: none;
    color: #a1a1aa;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 4px;
}

.replying-banner button:hover {
    color: #ffffff;
}

/* Inline Comment Edit Form */
.comment-edit-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.comment-edit-input {
    width: 100%;
    background: #141418;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    color: #fff;
    padding: 8px 12px;
    font-size: 0.9rem;
    resize: none;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.comment-edit-input:focus {
    border-color: #00ffcc;
}

.comment-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.comment-edit-btn {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.comment-edit-btn.save {
    background: #00ffcc;
    color: #000;
}

.comment-edit-btn.cancel {
    background: #3f3f46;
    color: #fff;
}

/* WhatsApp-style Quick Emoji Bar */
.quick-emoji-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #141419;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.quick-emoji-bar::-webkit-scrollbar {
    display: none;
}

.quick-emoji-btn {
    background: #23232b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    font-size: 1.25rem;
    line-height: 1;
    padding: 5px 9px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease, background 0.15s ease;
    user-select: none;
}

.quick-emoji-btn:hover {
    transform: scale(1.22);
    background: #2f2f3a;
}

.quick-emoji-btn:active {
    transform: scale(0.92);
}

/* Comment Input Area */
.comment-input-area {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #18181f;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 10;
}

.emoji-toggle-btn {
    background: #272731;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffd000;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.15s ease, background 0.15s ease;
}

.emoji-toggle-btn:hover {
    background: #333340;
    transform: scale(1.08);
}

.emoji-toggle-btn.active {
    background: #00ffcc;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
}

.comment-input-area input {
    flex: 1;
    background: #24242d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 22px;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.comment-input-area input:focus {
    border-color: #00ffcc;
    background: #2b2b36;
}

.comment-input-area button#sheet-comment-submit {
    background: #00ffcc;
    color: #000000;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.comment-input-area button#sheet-comment-submit:hover:not(:disabled) {
    transform: scale(1.08);
}

.comment-input-area button#sheet-comment-submit:disabled {
    background: #3a3a46;
    color: #71717a;
    cursor: not-allowed;
    opacity: 0.7;
}

/* WhatsApp-Style Full Emoji Picker Tray */
.emoji-picker-container {
    background: #181820;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    height: 250px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpEmoji 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpEmoji {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emoji-picker-container.hidden {
    display: none;
}

.emoji-picker-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 6px;
    background: #141419;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.emoji-search-input {
    flex: 1;
    background: #262630;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 0.82rem;
    outline: none;
    font-family: inherit;
}

.emoji-search-input:focus {
    border-color: #00ffcc;
}

.emoji-backspace-btn {
    background: #262630;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    border-radius: 16px;
    padding: 5px 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.emoji-backspace-btn:hover {
    color: #ff4d4f;
    background: #333340;
}

.emoji-categories-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #121217;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
}

.emoji-categories-tabs::-webkit-scrollbar {
    display: none;
}

.emoji-tab-btn {
    background: none;
    border: none;
    font-size: 1.15rem;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
}

.emoji-tab-btn:hover {
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.05);
}

.emoji-tab-btn.active {
    opacity: 1;
    background: rgba(0, 255, 204, 0.15);
    border-bottom: 2px solid #00ffcc;
}

.emoji-grid-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 6px;
    align-content: flex-start;
}

.emoji-item-btn {
    background: none;
    border: none;
    font-size: 1.45rem;
    line-height: 1;
    padding: 4px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, background 0.12s ease;
    user-select: none;
}

.emoji-item-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.25);
}

.emoji-item-btn:active {
    transform: scale(0.9);
}

.emoji-no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: #71717a;
    font-size: 0.85rem;
    padding: 30px 10px;
}

.comment-empty {
    text-align: center;
    color: #888;
    padding: 30px;
}

/* ==========================================================================
   VIRAL Direct Video Share Sheet & External Share Modal
   ========================================================================== */
.share-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.share-sheet-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.share-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-height: 85vh;
    background: #141419;
    border-radius: 20px 20px 0 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-sheet.active {
    transform: translateY(0);
}

.share-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.share-sheet-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-sheet-close {
    background: #24242d;
    border: none;
    color: #a1a1aa;
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.share-sheet-close:hover {
    background: #333340;
    color: #ffffff;
}

.share-sheet-body {
    padding: 16px 20px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Share Section: Direct Share to VIRAL Users */
.share-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a1a1aa;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.share-search-bar {
    position: relative;
    margin-bottom: 12px;
}

.share-search-input {
    width: 100%;
    background: #202028;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    padding: 10px 14px 10px 36px;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.share-search-input:focus {
    border-color: #00ffcc;
}

.share-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #71717a;
    font-size: 0.9rem;
    pointer-events: none;
}

.share-note-input {
    width: 100%;
    background: #1a1a22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #e4e4e7;
    padding: 8px 12px;
    font-size: 0.85rem;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 12px;
    font-family: inherit;
}

.share-note-input:focus {
    border-color: #00ffcc;
}

/* User List for Direct Sending */
.share-users-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 2px 12px;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.share-users-list::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.share-user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 76px;
    flex-shrink: 0;
    text-align: center;
    gap: 6px;
}

.share-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #272732;
    transition: transform 0.15s ease, border-color 0.15s ease;
    background: #24242e;
}

.share-user-card:hover .share-user-avatar {
    transform: scale(1.05);
    border-color: #00ffcc;
}

.share-user-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.share-user-handle {
    font-size: 0.68rem;
    color: #71717a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin-top: -4px;
}

.share-send-btn {
    background: #00ffcc;
    color: #000000;
    border: none;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
    width: 100%;
}

.share-send-btn:hover {
    transform: scale(1.04);
}

.share-send-btn.sent {
    background: #22c55e;
    color: #ffffff;
    cursor: default;
}

.share-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.share-empty-users {
    padding: 16px;
    text-align: center;
    color: #71717a;
    font-size: 0.85rem;
    width: 100%;
}

/* External Platforms & Copy Link */
.share-external-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 12px;
    padding-top: 4px;
}

.share-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: #e4e4e7;
    transition: transform 0.15s ease;
    padding: 0;
}

.share-action-btn:hover {
    transform: translateY(-2px);
}

.share-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease;
}

.share-action-btn:hover .share-action-icon {
    transform: scale(1.08);
}

.share-action-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: #a1a1aa;
    text-align: center;
    white-space: nowrap;
}

/* Specific Platform Icon Styles */
.share-icon-copylink {
    background: #3f3f46;
    color: #ffffff;
}

.share-icon-whatsapp {
    background: #25D366;
    color: #ffffff;
}

.share-icon-twitter {
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.share-icon-telegram {
    background: #229ED9;
    color: #ffffff;
}

.share-icon-native {
    background: #00ffcc;
    color: #000000;
}

/* Viral Share Toast */
.viral-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: #181822;
    border: 1px solid #00ffcc;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 255, 204, 0.3);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.viral-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Transparent Chain Connection Popup */
.chain-transparent-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    background: rgba(18, 18, 28, 0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    z-index: 10050;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.chain-transparent-toast.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.chain-transparent-toast .chain-toast-icon {
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
}

.chain-transparent-toast .chain-toast-user {
    color: #00ffcc;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
}

.chain-transparent-toast.breaking {
    border-color: rgba(255, 107, 129, 0.35);
}

.chain-transparent-toast.breaking .chain-toast-user.breaking {
    color: #ff6b81;
    text-shadow: 0 0 10px rgba(255, 107, 129, 0.5);
}

/* Share Hyperlink Preview Box */
.share-link-preview-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e1e28;
    border: 1px solid rgba(0, 255, 204, 0.25);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 6px;
    gap: 10px;
}

.share-hyperlink-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00ffcc;
    text-decoration: none;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    font-family: monospace;
    transition: color 0.15s ease;
}

.share-hyperlink-text:hover {
    color: #ffffff;
    text-decoration: underline;
}

.share-hyperlink-text .link-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.share-copy-btn {
    background: #00ffcc;
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease, background 0.15s ease;
}

.share-copy-btn:hover {
    transform: scale(1.05);
    background: #33ffdd;
}

/* Feed Sound Track & Rotating Vinyl Disc */
.feed-sound-track {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    max-width: 270px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 4px 10px 4px 5px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
}

.feed-sound-track:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(0, 242, 254, 0.4);
    transform: scale(1.02);
}

/* Sound Track Mini Player Head & Disc */
.sound-track-mini-head-wrap {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-mini-disc {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle, #2a2a2a 0%, #0c0c0c 70%, #000 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: none !important;
    transform: none !important;
    overflow: hidden;
}

.sound-mini-disc.paused {
    animation-play-state: paused;
}

.sound-mini-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.sound-mini-tonearm {
    position: absolute;
    top: -5px;
    right: -3px;
    width: 12px;
    height: 16px;
    pointer-events: none;
    z-index: 2;
    transform-origin: 80% 15%;
    transition: transform 0.35s ease;
}

.sound-mini-tonearm .mini-tonearm-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8));
}

.sound-disc-icon {
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    animation: none !important;
    transform: none !important;
    flex-shrink: 0;
    color: #00ffcc;
}

.sound-disc-icon svg {
    width: 14px;
    height: 14px;
    display: block;
    fill: currentColor;
}

@keyframes rotateVinylDisc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes soundMarqueeLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.feed-sound-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    max-width: 220px;
    height: 18px;
    line-height: 18px;
    display: flex;
    align-items: center;
    contain: layout style;
    mask-image: linear-gradient(90deg, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent 100%);
}

.sound-title-track {
    display: inline-flex;
    gap: 18px;
    animation: soundMarqueeLoop 12s linear infinite;
    will-change: transform;
}

.sound-title-text {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* ============================================================
   Action Rail: Spinning Music Record with Vintage Player Head
============================================================ */
.music-disc-action-wrap {
    position: relative;
    width: 46px;
    height: 46px;
    margin-top: 6px;
    margin-bottom: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.music-disc-action-wrap:hover {
    transform: scale(1.1);
}

.music-disc-record {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #383838 0%, #151515 55%, #050505 100%);
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7), inset 0 0 4px rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: rotateVinylDisc 10s linear infinite;
    transform-origin: center center;
}

.music-disc-record.paused {
    animation-play-state: paused;
}

/* Static Simple Disc on Home Page (No Animation / No Flying Notes) */
body:not(.tv-fullscreen-mode) .feed-mode-disc-wrap .music-disc-record,
.music-disc-record.static-disc {
    animation: none !important;
    transform: none !important;
}

body:not(.tv-fullscreen-mode) .feed-mode-disc-wrap .music-disc-notes-emitter {
    display: none !important;
}

.music-disc-grooves {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.music-disc-grooves::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 1px dotted rgba(255, 255, 255, 0.08);
}

.music-disc-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
    background: #110524;
}

/* Floating Music Notes Animation Emitter */
.music-disc-notes-emitter {
    display: none !important;
    position: absolute;
    bottom: 20px;
    right: 18px;
    width: 1px;
    height: 1px;
    pointer-events: none;
    z-index: 6;
}

.music-floating-note {
    position: absolute;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.8));
}

.music-disc-action-wrap:not(.paused) .note-1 {
    animation: floatNote1 5.5s infinite ease-out;
    color: #ff0050; /* TikTok Pink */
    filter: drop-shadow(0 0 4px rgba(255, 0, 80, 0.8));
}

.music-disc-action-wrap:not(.paused) .note-2 {
    animation: floatNote2 6.5s infinite ease-out 1.5s;
    color: #00f2fe; /* Cyan */
    filter: drop-shadow(0 0 4px rgba(0, 242, 254, 0.8));
}

.music-disc-action-wrap:not(.paused) .note-3 {
    animation: floatNote3 6.0s infinite ease-out 3.0s;
    color: #f59e0b; /* Golden Yellow */
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.8));
}

@keyframes floatNote1 {
    0% {
        transform: translate(0, 0) scale(0.6) rotate(0deg);
        opacity: 0;
    }
    30% {
        opacity: 0.9;
        transform: translate(-16px, -18px) scale(1) rotate(-15deg);
    }
    75% {
        opacity: 0.8;
        transform: translate(-28px, -45px) scale(1.1) rotate(15deg);
    }
    100% {
        transform: translate(-38px, -70px) scale(0.7) rotate(-20deg);
        opacity: 0;
    }
}

@keyframes floatNote2 {
    0% {
        transform: translate(0, 0) scale(0.6) rotate(0deg);
        opacity: 0;
    }
    30% {
        opacity: 0.9;
        transform: translate(-10px, -22px) scale(0.95) rotate(20deg);
    }
    75% {
        opacity: 0.8;
        transform: translate(-20px, -50px) scale(1.15) rotate(-10deg);
    }
    100% {
        transform: translate(-26px, -80px) scale(0.6) rotate(25deg);
        opacity: 0;
    }
}

@keyframes floatNote3 {
    0% {
        transform: translate(0, 0) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    35% {
        opacity: 0.85;
        transform: translate(-22px, -20px) scale(1.05) rotate(-25deg);
    }
    80% {
        opacity: 0.75;
        transform: translate(-34px, -52px) scale(1) rotate(10deg);
    }
    100% {
        transform: translate(-42px, -75px) scale(0.5) rotate(-15deg);
        opacity: 0;
    }
}

/* Sound Details Bottom Sheet Modal */
.sound-details-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sound-details-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.sound-details-sheet {
    background: linear-gradient(180deg, #180928 0%, #0c0414 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    padding: 16px 20px calc(80px + env(safe-area-inset-bottom, 0px)) 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.sound-details-backdrop.open .sound-details-sheet {
    transform: translateY(0);
}

.sound-sheet-drag-handle {
    width: 38px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 0 auto 16px auto;
}

.sound-sheet-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.sound-sheet-disc-wrap {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
}

.sound-sheet-disc {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle, #333 0%, #111 70%, #000 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    animation: rotateVinylDisc 5s linear infinite;
}

.sound-sheet-disc img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.sound-sheet-info {
    flex: 1;
    min-width: 0;
}

.sound-sheet-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.sound-sheet-artist {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

.sound-sheet-album {
    font-size: 0.78rem;
    color: #00ffcc;
    margin-top: 2px;
}

.sound-sheet-lyrics {
    font-size: 0.82rem;
    font-style: italic;
    color: #ffd166;
    background: rgba(255, 209, 102, 0.1);
    border: 1px dashed rgba(255, 209, 102, 0.35);
    padding: 6px 10px;
    border-radius: 8px;
    margin-top: 6px;
    display: inline-block;
}

/* Sound Album & Live Lyrics Badges in Feed */
.sound-album-inline {
    font-size: 0.78rem;
    color: #00ffcc;
    font-weight: 600;
    white-space: nowrap;
}

.sound-lyrics-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.22), rgba(0, 242, 254, 0.22));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-top: 3px;
    animation: pulseLyrics 3s ease-in-out infinite;
}

@keyframes pulseLyrics {
    0%, 100% { opacity: 0.95; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

.sound-lyrics-badge.hidden,
.sound-album-inline.hidden {
    display: none !important;
}

.sound-sheet-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-sheet-actions {
    display: flex;
    gap: 10px;
}

.sound-sheet-use-btn {
    flex: 1.2;
    padding: 12px;
    background: linear-gradient(45deg, #ff007f, #00f2fe);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.sound-sheet-copy-btn {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Delete Action Button in Feed */
.feed-delete-action-btn {
    margin-top: 4px;
    color: #ef4444 !important;
}

.feed-delete-action-btn .action-sublabel {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ef4444;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* ============================================================
   VIRAL TV Immersive Fullscreen Reels Mode (Instagram / TikTok style)
============================================================ */
html.tv-fullscreen-mode .home-top-header,
html.tv-fullscreen-mode .status-tray-wrapper,
body.tv-fullscreen-mode .home-top-header,
body.tv-fullscreen-mode .status-tray-wrapper {
    display: none !important;
}

html.tv-fullscreen-mode .feed-item.tv-hidden-prior,
body.tv-fullscreen-mode .feed-item.tv-hidden-prior {
    display: none !important;
}

html.tv-fullscreen-mode .app-main,
body.tv-fullscreen-mode .app-main,
html.tv-fullscreen-mode .home-insta-main,
body.tv-fullscreen-mode .home-insta-main {
    height: 100vh !important;
    height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: var(--max-width, 480px) !important;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 990;
    background: #000;
    overflow: hidden !important;
}

html.tv-fullscreen-mode .feed-container,
body.tv-fullscreen-mode .feed-container {
    height: 100dvh !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-y: scroll !important;
    scroll-snap-type: y mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior-y: contain !important;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
    will-change: scroll-position;
}

html.tv-fullscreen-mode .feed-item,
body.tv-fullscreen-mode .feed-item {
    width: 100% !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: normal !important;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
    contain: layout paint size;
}

body.tv-fullscreen-mode .feed-video,
body.tv-fullscreen-mode .feed-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #000000 !important;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

/* Bottom Nav in TV Mode - All 6 Options Visible & Elevated above Mobile 3 System Buttons */
body.tv-fullscreen-mode .bottom-nav {
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.4) 0%, rgba(5, 5, 10, 0.75) 40%, rgba(0, 0, 0, 0.96) 100%) !important;
    border-top: none !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: var(--max-width, 500px) !important;
    height: 60px !important;
    min-height: 60px !important;
    z-index: 999999 !important;
    padding: 0 4px !important;
    padding-bottom: max(6px, env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.75) !important;
    box-sizing: border-box !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.tv-fullscreen-mode .bottom-nav .nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 100% !important;
    padding: 2px 1px !important;
    color: #ffffff !important;
    opacity: 0.95 !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
}

body.tv-fullscreen-mode .bottom-nav.nav-hidden {
    transform: translate(-50%, 150%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Glossy, Bold, Bright White SVG Icons & Drop Shadows */
body.tv-fullscreen-mode .bottom-nav .nav-item .icon-box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    width: 32px !important;
    height: 28px !important;
    margin-bottom: 2px !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

body.tv-fullscreen-mode .bottom-nav .nav-item .icon-box svg {
    width: 22px !important;
    height: 22px !important;
    stroke-width: 2.4 !important;
    color: #ffffff !important;
    fill: none !important;
    stroke: #ffffff !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.55)) !important;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

body.tv-fullscreen-mode .bottom-nav .nav-item .icon-box svg[fill="currentColor"],
body.tv-fullscreen-mode .bottom-nav .nav-item .icon-box svg path[fill="currentColor"] {
    fill: #ffffff !important;
    stroke: none !important;
}

body.tv-fullscreen-mode .bottom-nav .nav-item .nav-label {
    color: #ffffff !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.25px !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(255, 255, 255, 0.35) !important;
    opacity: 0.95 !important;
    transition: all 0.2s ease !important;
}

/* Glossy Avatar Circle in Fullscreen Footer */
body.tv-fullscreen-mode .bottom-nav .nav-avatar-circle {
    width: 23px !important;
    height: 23px !important;
    border: 1.8px solid #ffffff !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.65), 0 2px 6px rgba(0, 0, 0, 0.8) !important;
    background-color: #000000 !important;
}

/* Glossy Camera Lens Center Button in Fullscreen Footer */
body.tv-fullscreen-mode .bottom-nav .viral-lens-btn {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8)) !important;
}

body.tv-fullscreen-mode .bottom-nav .nav-item:hover,
body.tv-fullscreen-mode .bottom-nav .nav-item:active {
    opacity: 1 !important;
    transform: translateY(-2px) scale(1.05) !important;
}

body.tv-fullscreen-mode .bottom-nav .nav-item:hover .icon-box svg,
body.tv-fullscreen-mode .bottom-nav .nav-item.active .icon-box svg {
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 14px rgba(255, 255, 255, 0.9)) !important;
}

/* Specific Glowing Gloss for Role / TV Tab */
body.tv-fullscreen-mode #nav-item-tv {
    color: #00ffcc !important;
    opacity: 1 !important;
}

body.tv-fullscreen-mode #nav-item-tv .icon-box {
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.25), rgba(0, 187, 249, 0.15)) !important;
    border: 1px solid rgba(0, 255, 204, 0.7) !important;
    border-radius: 9px !important;
    width: 34px !important;
    height: 26px !important;
    box-shadow: 0 0 14px rgba(0, 255, 204, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    margin-bottom: 2px !important;
}

body.tv-fullscreen-mode #nav-item-tv .icon-box svg {
    stroke: #00ffcc !important;
    filter: drop-shadow(0 0 8px rgba(0, 255, 204, 0.95)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9)) !important;
}

body.tv-fullscreen-mode #nav-item-tv .nav-label {
    color: #00ffcc !important;
    font-weight: 800 !important;
    letter-spacing: 0.35px !important;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.8) !important;
}

body.tv-fullscreen-mode .feed-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px calc(96px + env(safe-area-inset-bottom, 0px)) 16px !important;
    z-index: 950 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    pointer-events: none !important;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 60%, transparent 100%) !important;
}

body.tv-fullscreen-mode .feed-overlay .feed-creator-info,
body.tv-fullscreen-mode .feed-overlay .feed-creator-row,
body.tv-fullscreen-mode .feed-overlay .feed-sound-track,
body.tv-fullscreen-mode .feed-overlay .feed-caption {
    pointer-events: auto !important;
    display: flex !important;
}

body.tv-fullscreen-mode .quick-reply-bar-tv {
    display: flex !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.tv-fullscreen-mode .comment-sheet-overlay {
    z-index: 2147483646 !important;
}

body.tv-fullscreen-mode .comment-sheet {
    z-index: 2147483647 !important;
}

body.tv-fullscreen-mode .feed-overlay .feed-creator-info {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 80% !important;
    gap: 8px !important;
    margin-bottom: 4px !important;
}

body.tv-fullscreen-mode .feed-overlay .feed-caption {
    flex-direction: column !important;
    width: 100% !important;
    margin-top: 4px !important;
    margin-bottom: 2px !important;
}

/* TV / Fullscreen Mode: Sleek Light Green Single Thin Video Playing Progress Line flush directly on top of Footer */
body.tv-fullscreen-mode .feed-progress-bar {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    bottom: 60px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: var(--max-width, 500px) !important;
    height: 14px !important;
    z-index: 1001 !important;
    align-items: flex-end !important;
    pointer-events: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.tv-fullscreen-mode .feed-item:not(.active) .feed-progress-bar,
body.tv-fullscreen-mode .insta-card:not(.active) .feed-progress-bar {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

body.tv-fullscreen-mode .feed-item.active .feed-progress-bar,
body.tv-fullscreen-mode .insta-card.active .feed-progress-bar,
body.tv-fullscreen-mode .single-feed-item .feed-progress-bar {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.tv-fullscreen-mode .feed-progress-bar .feed-progress-track {
    position: relative !important;
    width: 100% !important;
    height: 2.5px !important;
    background: rgba(0, 0, 0, 0.65) !important;
    border-top: 0.5px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border-radius: 0 !important;
    overflow: visible !important;
    transition: height 0.16s ease, background 0.16s ease !important;
}

body.tv-fullscreen-mode .feed-progress-bar:hover .feed-progress-track,
body.tv-fullscreen-mode .feed-progress-bar.is-scrubbing .feed-progress-track {
    height: 4.5px !important;
    background: rgba(0, 0, 0, 0.8) !important;
}

body.tv-fullscreen-mode .feed-progress-bar .feed-progress-fill {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 100% !important;
    background: linear-gradient(90deg, #00c853 0%, #00e676 50%, #69f0ae 100%) !important;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.95), 0 0 18px rgba(0, 200, 83, 0.8) !important;
    border-radius: 0 !important;
    transform-origin: left center !important;
    will-change: transform !important;
    pointer-events: none !important;
}

body.tv-fullscreen-mode .feed-progress-bar .feed-progress-thumb {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 2px solid #00e676 !important;
    box-shadow: 0 0 8px #00e676, 0 0 14px rgba(0, 200, 83, 0.9) !important;
    transform: translate(-50%, -50%) scale(0) !important;
    transition: transform 0.15s ease !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

body.tv-fullscreen-mode .feed-progress-bar:hover .feed-progress-thumb,
body.tv-fullscreen-mode .feed-progress-bar.is-scrubbing .feed-progress-thumb {
    transform: translate(-50%, -50%) scale(1) !important;
}

body.tv-fullscreen-mode .feed-progress-bar .feed-progress-tooltip {
    position: absolute !important;
    bottom: 22px !important;
    left: 50% !important;
    transform: translateX(-50%) scale(0.9) !important;
    background: rgba(10, 15, 25, 0.94) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1.5px solid #00e676 !important;
    color: #ffffff !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    padding: 3px 9px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 230, 118, 0.4) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.15s ease, transform 0.15s ease !important;
    white-space: nowrap !important;
    z-index: 10006 !important;
}

body.tv-fullscreen-mode .feed-progress-bar.is-scrubbing .feed-progress-tooltip,
body.tv-fullscreen-mode .feed-progress-bar:hover .feed-progress-tooltip {
    opacity: 1 !important;
    transform: translateX(-50%) scale(1) !important;
}

/* TV Mode Actions: Anchored to bottom right - positioned cleanly above footer */
body.tv-fullscreen-mode .feed-actions-right,
body.tv-fullscreen-mode .feed-sidebar {
    position: absolute !important;
    right: 10px !important;
    bottom: calc(65px + 2.5rem + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    z-index: 100 !important;
    pointer-events: auto !important;
}

body.tv-fullscreen-mode .feed-actions-right .action-btn,
body.tv-fullscreen-mode .feed-sidebar .action-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    opacity: 0.95 !important;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    padding: 0 !important;
}

body.tv-fullscreen-mode .feed-actions-right .action-btn:active,
body.tv-fullscreen-mode .feed-sidebar .action-btn:active {
    transform: scale(0.85) !important;
}

body.tv-fullscreen-mode .feed-actions-right .action-btn .icon-container,
body.tv-fullscreen-mode .feed-sidebar .action-btn .icon-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 2px !important;
    box-shadow: none !important;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

body.tv-fullscreen-mode .feed-actions-right .action-btn .icon-container svg,
body.tv-fullscreen-mode .feed-sidebar .action-btn .icon-container svg {
    width: 28px !important;
    height: 28px !important;
    filter: none !important;
    display: block !important;
}

body.tv-fullscreen-mode .feed-actions-right .action-btn:hover .icon-container,
body.tv-fullscreen-mode .feed-sidebar .action-btn:hover .icon-container {
    background: transparent !important;
    border: none !important;
    transform: scale(1.1) !important;
}

body.tv-fullscreen-mode .feed-actions-right .action-btn.liked .icon-container,
body.tv-fullscreen-mode .feed-sidebar .action-btn.liked .icon-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.tv-fullscreen-mode .feed-actions-right .action-btn.liked .icon-container svg,
body.tv-fullscreen-mode .feed-sidebar .action-btn.liked .icon-container svg,
body.tv-fullscreen-mode .feed-actions-right .action-btn.liked .icon-container svg path,
body.tv-fullscreen-mode .feed-sidebar .action-btn.liked .icon-container svg path {
    color: #ff0050 !important;
    fill: #ff0050 !important;
    stroke: #ff0050 !important;
    filter: none !important;
}

body.tv-fullscreen-mode .feed-actions-right .action-btn.saved .icon-container,
body.tv-fullscreen-mode .feed-sidebar .action-btn.saved .icon-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.tv-fullscreen-mode .feed-actions-right .action-btn.saved .icon-container svg,
body.tv-fullscreen-mode .feed-sidebar .action-btn.saved .icon-container svg {
    color: #fbbf24 !important;
    fill: #fbbf24 !important;
    stroke: #f59e0b !important;
    filter: none !important;
}

body.tv-fullscreen-mode .feed-actions-right .action-btn.reposted .icon-container svg,
body.tv-fullscreen-mode .feed-sidebar .action-btn.reposted .icon-container svg,
.insta-btn.repost-btn.reposted .icon-container svg,
.action-btn.repost-btn.reposted .icon-container svg {
    color: #00ffcc !important;
    stroke: #00ffcc !important;
    filter: drop-shadow(0 0 8px rgba(0, 255, 204, 0.75)) !important;
}

.reposted .icon-container svg polyline {
    stroke: #ffffff !important;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8)) !important;
}

body.tv-fullscreen-mode .feed-actions-right .action-btn span,
body.tv-fullscreen-mode .feed-sidebar .action-btn span {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.9) !important;
    color: #ffffff !important;
    line-height: 1.1 !important;
}

body.tv-fullscreen-mode .feed-actions-right .action-btn .action-sublabel,
body.tv-fullscreen-mode .feed-sidebar .action-btn .action-sublabel {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
}

body.tv-fullscreen-mode .feed-actions-right .action-btn .action-sublabel:empty,
body.tv-fullscreen-mode .feed-sidebar .action-btn .action-sublabel:empty {
    display: none !important;
}

body.tv-fullscreen-mode .feed-actions-right .action-btn .action-label,
body.tv-fullscreen-mode .feed-sidebar .action-btn .action-label {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    opacity: 0.95 !important;
}

/* Wide Desktop Screens (≥ 1024px): Dock above bottom navigation */
@media (min-width: 1024px) {
    body.tv-fullscreen-mode .feed-actions-right,
    body.tv-fullscreen-mode .feed-sidebar {
        right: 15px !important;
        bottom: calc(65px + 8rem + env(safe-area-inset-bottom, 0px)) !important;
        top: auto !important;
        transform: none !important;
        gap: 16px !important;
    }

    body.tv-fullscreen-mode .feed-actions-right .action-btn .icon-container,
    body.tv-fullscreen-mode .feed-sidebar .action-btn .icon-container {
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        margin-bottom: 3px !important;
    }

    body.tv-fullscreen-mode .feed-actions-right .action-btn .icon-container svg,
    body.tv-fullscreen-mode .feed-sidebar .action-btn .icon-container svg {
        width: 32px !important;
        height: 32px !important;
        filter: none !important;
    }

    body.tv-fullscreen-mode .feed-actions-right .action-btn span,
    body.tv-fullscreen-mode .feed-sidebar .action-btn span {
        font-size: 0.74rem !important;
    }
}

/* ==========================================================================
   INSTAGRAM-STYLE FEED LAYOUT (Mobile Home Screen)
   ========================================================================== */

.home-insta-main {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000000;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Continuous Scrollable Instagram Feed Container */
.insta-feed-container {
    width: 100%;
    height: 100%;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scroll-snap-type: none !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    position: relative;
    background-color: #000000;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.insta-feed-container::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Single Instagram Post Card */
.insta-card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    flex-shrink: 0 !important;
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    background-color: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 6px;
    padding-bottom: 4px;
    user-select: none;
    overflow: visible !important;
}

/* 1. Post Header & On-Video Overlay */
.insta-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 8px 14px;
    width: 100%;
    background: #000000;
}

.insta-card-header.insta-card-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 15;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
    padding: 12px 14px 20px 14px;
    pointer-events: none;
}

.insta-card-header.insta-card-header-overlay .insta-creator-profile,
.insta-card-header.insta-card-header-overlay .insta-header-actions {
    pointer-events: auto;
}

.insta-creator-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    min-width: 0;
    max-width: calc(100% - 44px);
}

.insta-creator-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.insta-avatar-ring {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.insta-creator-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #000000;
    background: #18181b;
    display: block;
}

.insta-creator-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    justify-content: center;
}

.insta-username-row {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.insta-username-row .feed-follow-badge {
    margin-left: 0;
    padding: 3px 10px;
    font-size: 0.72rem;
    line-height: 1.2;
}

.insta-username {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.15px;
    line-height: 1.2;
}

.insta-dot-sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    user-select: none;
}

.insta-follow-link {
    background: transparent;
    border: none;
    padding: 0;
    color: #0095f6;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.insta-follow-link.following {
    color: #a1a1aa;
    font-weight: 500;
}

.insta-sound-subtitle {
    font-size: 0.72rem;
    color: #a1a1aa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    margin-top: 1px;
    cursor: pointer;
}

.insta-sound-subtitle:hover {
    color: #e4e4e7;
}

/* Post Header Top Left Sound Track */
.insta-creator-meta .feed-sound-track.insta-sound-track {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    padding: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-radius: 0;
    max-width: 220px;
    cursor: pointer;
}

.insta-creator-meta .feed-sound-track.insta-sound-track:hover {
    background: transparent;
    border: none;
    transform: none;
}

.insta-creator-meta .feed-sound-track.insta-sound-track .sound-disc-icon {
    font-size: 0.72rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    color: #00ffcc;
    flex-shrink: 0;
}

.insta-creator-meta .feed-sound-track.insta-sound-track .feed-sound-marquee {
    max-width: 190px;
}

.insta-card-header.insta-card-header-overlay .insta-username {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.7);
}

.insta-card-header.insta-card-header-overlay .sound-title-text {
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

.insta-creator-meta .feed-sound-track.insta-sound-track:hover .sound-title-text {
    color: #ffffff;
}

.insta-header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.insta-more-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.92;
    transition: all 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.85));
}

.insta-more-btn:hover {
    opacity: 1;
    transform: scale(1.08);
}

.insta-more-btn:active {
    opacity: 0.6;
    transform: scale(0.95);
}

/* 2. Media Frame (Responsive 4:5 Aspect Ratio) */
.insta-media-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 360px;
    max-height: 75vh;
    background: #000000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Instagram Post Card Video Progress Bar (Thin Light Green Line at Bottom of Post Video) */
.insta-video-progress-bar {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 12px !important;
    z-index: 30 !important;
    display: flex !important;
    align-items: flex-end !important;
    pointer-events: auto !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
}

.insta-video-progress-bar .feed-progress-track {
    position: relative !important;
    width: 100% !important;
    height: 2.5px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    transition: height 0.16s ease !important;
}

.insta-video-progress-bar:hover .feed-progress-track,
.insta-video-progress-bar.is-scrubbing .feed-progress-track {
    height: 4.5px !important;
    background: rgba(255, 255, 255, 0.35) !important;
}

.insta-video-progress-bar .feed-progress-fill {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 100% !important;
    background: linear-gradient(90deg, #25f4a5 0%, #00ff88 50%, #70ff94 100%) !important;
    box-shadow: 0 0 10px rgba(37, 244, 165, 0.9), 0 0 16px rgba(112, 255, 148, 0.6) !important;
    transform-origin: left center !important;
    will-change: transform !important;
    pointer-events: none !important;
}

.insta-video-progress-bar .feed-progress-thumb {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    width: 9px !important;
    height: 9px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1.5px solid #00ff88 !important;
    box-shadow: 0 0 8px #00ff88, 0 0 14px rgba(0, 255, 136, 0.9) !important;
    transform: translate(-50%, -50%) scale(0) !important;
    transition: transform 0.15s ease !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.insta-video-progress-bar:hover .feed-progress-thumb,
.insta-video-progress-bar.is-scrubbing .feed-progress-thumb {
    transform: translate(-50%, -50%) scale(1) !important;
}

.insta-video {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    background: #000000;
    cursor: pointer;
    display: block;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.insta-image, .feed-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #000000;
    cursor: pointer;
    display: block;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Multi-Item Carousel Slider Component */
.feed-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.feed-carousel-track::-webkit-scrollbar {
    display: none;
}

.feed-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.feed-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #000;
}

.feed-carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carousel Page Counter Badge (e.g. 1/4) - positioned clearly on image below header elements */
.feed-carousel-counter {
    position: absolute;
    top: 56px;
    right: 14px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    z-index: 12;
    pointer-events: none;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
    .feed-carousel-counter {
        top: 52px;
        right: 10px;
        font-size: 0.7rem;
        padding: 2px 8px;
    }
}

/* Carousel Navigation Arrows */
.feed-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 16;
    transition: all 0.2s ease;
    padding: 0;
    opacity: 0.85;
}

.feed-carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.88);
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}

.feed-carousel-arrow-prev {
    left: 10px;
}

.feed-carousel-arrow-next {
    right: 10px;
}

/* Carousel Pagination Dots Indicator */
.feed-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 15;
    pointer-events: auto;
    background: rgba(18, 18, 24, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.feed-carousel-dot {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.feed-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.2);
}

.feed-carousel-dot.active {
    background: #00ffcc;
    width: 8px;
    height: 8px;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.95);
}

/* Instagram Double-Tap Heart Burst Animation */
.insta-heart-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 25;
    opacity: 0;
}

.insta-heart-burst.animate-pop {
    animation: instaHeartPop 0.85s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes instaHeartPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.35);
        opacity: 1;
    }
    45% {
        transform: translate(-50%, -50%) scale(1.0);
        opacity: 1;
    }
    75% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.95;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0;
    }
}

/* Sound Mute/Unmute Floating Button */
.insta-sound-pill {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    font-size: 0.85rem;
    padding: 0;
    transition: transform 0.15s ease, background 0.15s ease;
}

.insta-sound-pill:active {
    transform: scale(0.9);
}

.insta-sound-pill .mute-toggle-btn {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Volume Control Widget — top-right of video */
.insta-vol-widget {
    position: absolute;
    top: 44px;
    right: 10px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
}

/* Small circular speaker icon button */
.insta-vol-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    border: none;
    /* Thin multicolor VIROL ring */
    box-shadow:
        0 0 0 1px #ff0050,
        0 0 0 2px #7c3aed,
        0 0 0 3px #00ffcc;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}
.insta-vol-btn:active { transform: scale(0.85); }
.insta-vol-icon path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Slider panel — drops downward from icon */
.insta-vol-slider-wrap {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 0;
    overflow: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: height 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.20s ease;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.50);
}

/* Expanded state */
.insta-vol-widget.open .insta-vol-slider-wrap {
    height: 80px;
    opacity: 1;
    pointer-events: auto;
}

/* Vertical range slider — thin multicolor track */
.insta-vol-slider {
    width: 20px;
    height: 68px;
    cursor: pointer;
    accent-color: #00ffcc;
    background: transparent;
    outline: none;
    border: none;
    padding: 0;
    margin: 0 auto;
}
.insta-vol-slider::-webkit-slider-container {
    align-items: center;
}
/* No visible thumb — hidden */
.insta-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}
/* Track — 1px thin light green line */
.insta-vol-slider::-webkit-slider-runnable-track {
    width: 1px;
    background: #80ffb0;
    border-radius: 2px;
    opacity: 0.85;
}
/* Firefox */
.insta-vol-slider::-moz-range-track {
    width: 1px;
    background: #80ffb0;
    border-radius: 2px;
    opacity: 0.85;
}
.insta-vol-slider::-moz-range-thumb {
    width: 0;
    height: 0;
    opacity: 0;
    border: none;
    background: transparent;
}

/* 3. Action Bar (Like, Comment, Direct Share, Save) */
.insta-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 6px 14px;
    width: 100%;
}

.insta-actions-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.insta-actions-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.insta-btn {
    background: transparent;
    border: none;
    padding: 0;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.insta-btn:active {
    transform: scale(0.85);
}

.insta-btn .icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.insta-action-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
    line-height: 1;
    display: inline-block;
}

.insta-action-count:empty {
    display: none;
}

.insta-action-label {
    display: none;
}

.insta-like-btn.liked svg {
    fill: #ff0050 !important;
    stroke: #ff0050 !important;
    animation: heartBounce 0.35s ease;
}

.insta-save-btn.saved svg {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* 4. Post Details (Likes, Caption, Comments, Time) */
.insta-post-details {
    padding: 2px 14px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    text-align: left;
}

.insta-likes-row {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    line-height: 1.3;
}

.insta-likes-text {
    color: #ffffff;
}

.insta-caption-row {
    font-size: 0.88rem;
    color: #f4f4f5;
    line-height: 1.4;
    word-break: break-word;
}

.insta-caption-username {
    font-weight: 700;
    color: #ffffff;
    margin-right: 6px;
    cursor: pointer;
    display: inline;
}

.insta-caption-username:hover {
    text-decoration: underline;
}

.insta-caption-text {
    display: inline;
    color: #f4f4f5;
    font-weight: 400;
}

.insta-comments-btn {
    font-size: 0.84rem;
    color: #a1a1aa;
    cursor: pointer;
    margin-top: 1px;
    width: fit-content;
    font-weight: 400;
    transition: color 0.15s ease;
}

.insta-comments-btn:hover {
    color: #d4d4d8;
}

.insta-add-comment-btn {
    font-size: 0.82rem;
    color: #71717a;
}

.insta-time-row {
    font-size: 0.68rem;
    font-weight: 500;
    color: #71717a;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Instagram-Style Inline Comment Field on Home Screen */
.insta-inline-comment-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 6px;
    margin-bottom: 4px;
    padding: 2px 0;
    position: relative;
    width: 100%;
}

.insta-inline-comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
}

.insta-inline-comment-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 0 12px 0 14px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}

.insta-inline-comment-input-wrap:focus-within {
    border-color: #00ffcc;
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.25);
}

.insta-inline-comment-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.86rem;
    font-family: inherit;
    padding: 7px 0;
    min-width: 0;
}

.insta-inline-comment-input::placeholder {
    color: #8e8e93;
}

.insta-inline-comment-post-btn {
    background: none;
    border: none;
    color: #00ffcc;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0 0 0 8px;
    display: inline-block;
    transition: opacity 0.15s ease, transform 0.15s ease;
    letter-spacing: 0.2px;
}

.insta-inline-comment-post-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.insta-inline-comment-post-btn:not(:disabled):hover {
    opacity: 0.85;
    transform: scale(1.05);
}

/* Latest comment snippet preview on card */
.insta-card-comments-preview {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.insta-latest-comment-snippet {
    font-size: 0.85rem;
    color: #e4e4e7;
    line-height: 1.35;
    word-break: break-word;
    animation: fadeInComment 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.insta-latest-comment-snippet .commenter-name {
    font-weight: 700;
    color: #ffffff;
    margin-right: 6px;
    cursor: pointer;
}

.insta-latest-comment-snippet .commenter-name:hover {
    text-decoration: underline;
    color: #00ffcc;
}

@keyframes fadeInComment {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Post Options Bottom Sheet Modal */
.insta-options-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.insta-options-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.insta-options-sheet {
    width: 100%;
    max-width: 480px;
    background: #262626;
    border-radius: 16px 16px 0 0;
    padding: 12px 16px calc(18px + env(safe-area-inset-bottom, 0px)) 16px;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

.insta-options-backdrop.show .insta-options-sheet {
    transform: translateY(0);
}

.insta-options-drag-bar {
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    margin: 4px auto 14px auto;
}

.insta-option-item {
    width: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 13px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.insta-option-item:active {
    background: rgba(255, 255, 255, 0.1);
}

.insta-option-item.insta-option-danger {
    color: #ef4444;
    font-weight: 600;
}

.insta-option-item.insta-option-cancel {
    justify-content: center;
    color: #a1a1aa;
    font-weight: 600;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
}

/* ==========================================================================
   VIROL NOT INTERESTED TRANSPARENT POPUP BOX
   ========================================================================== */
.virol-not-interested-backdrop {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    padding: 20px;
}

.virol-not-interested-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.virol-not-interested-box {
    position: relative;
    background: rgba(18, 18, 26, 0.72);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 71, 87, 0.18);
    border-radius: 26px;
    padding: 28px 24px 22px;
    width: 100%;
    max-width: 340px;
    text-align: center;
    color: #ffffff;
    transform: scale(0.88) translateY(12px);
    transition: transform 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.virol-not-interested-backdrop.show .virol-not-interested-box {
    transform: scale(1) translateY(0);
}

.virol-not-interested-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px rgba(255, 71, 87, 0.22);
}

.virol-not-interested-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #ffffff;
    margin-bottom: 8px;
}

.virol-not-interested-user {
    display: inline-block;
    font-size: 1.02rem;
    font-weight: 700;
    color: #ff6b81;
    background: rgba(255, 107, 129, 0.12);
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 107, 129, 0.25);
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.virol-not-interested-msg {
    font-size: 0.94rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
    margin: 0 0 22px;
}

.virol-not-interested-actions {
    display: flex;
    gap: 10px;
}

.virol-not-interested-ok-btn {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.9), rgba(255, 107, 129, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.35);
    transition: opacity 0.2s, transform 0.15s;
}

.virol-not-interested-ok-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* Responsive Tablet & Laptop optimization for Instagram Feed */
@media (min-width: 600px) {
    .home-insta-main {
        align-items: center;
        background: #000000;
    }
    .insta-feed-container {
        max-width: 500px;
        margin: 0 auto;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* ==========================================================================
   ROLE FULLSCREEN MODE (Instagram Reels Fullscreen Experience on Role click)
   ========================================================================== */
body.tv-fullscreen-mode .home-top-header,
body.tv-fullscreen-mode .status-tray-wrapper {
    display: none !important;
}

body.tv-fullscreen-mode .home-insta-main {
    height: 100vh !important;
    height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    position: fixed;
    inset: 0;
    z-index: 990;
    background: #000000;
}

body.tv-fullscreen-mode .insta-feed-container {
    height: 100dvh !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-y: scroll !important;
    scroll-snap-type: y mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior-y: contain !important;
    border-left: none !important;
    border-right: none !important;
}

body.tv-fullscreen-mode .insta-card {
    width: 100% !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: none !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: normal !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    overflow: hidden !important;
}

/* Fullscreen Media Frame */
body.tv-fullscreen-mode .insta-media-wrap {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    aspect-ratio: unset !important;
    z-index: 1 !important;
}

body.tv-fullscreen-mode .insta-video,
body.tv-fullscreen-mode .insta-image,
body.tv-fullscreen-mode .feed-video,
body.tv-fullscreen-mode .feed-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #000000 !important;
}

/* Header in Fullscreen Mode: User info and music down at bottom */
html.tv-fullscreen-mode .insta-card-header,
body.tv-fullscreen-mode .insta-card-header {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 35 !important;
    background: transparent !important;
    padding: 0 !important;
    pointer-events: none !important;
}

html.tv-fullscreen-mode .insta-creator-profile,
body.tv-fullscreen-mode .insta-creator-profile {
    position: absolute !important;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    left: 14px !important;
    right: 70px !important;
    max-width: calc(100% - 84px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    pointer-events: auto !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.9) !important;
    z-index: 36 !important;
}

body.tv-fullscreen-mode .insta-creator-user-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
}

body.tv-fullscreen-mode .insta-avatar-ring {
    width: 34px !important;
    height: 34px !important;
    margin-top: 0 !important;
    flex-shrink: 0 !important;
}

body.tv-fullscreen-mode .insta-creator-meta {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    min-width: 0 !important;
    gap: 0 !important;
}

body.tv-fullscreen-mode .insta-username-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

body.tv-fullscreen-mode .insta-username {
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95) !important;
    line-height: 1.2 !important;
}

body.tv-fullscreen-mode .insta-follow-link {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #00ffcc !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95) !important;
}

body.tv-fullscreen-mode .insta-sound-subtitle {
    display: none !important;
}

.insta-tv-post-title,
.insta-tv-post-description {
    display: none;
}

body.tv-fullscreen-mode .feed-sound-track.tv-sound-track,
body.tv-fullscreen-mode .feed-sound-track.insta-sound-track {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 1px !important;
    max-width: 100% !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

body.tv-fullscreen-mode .feed-sound-track.tv-sound-track:hover,
body.tv-fullscreen-mode .feed-sound-track.insta-sound-track:hover {
    background: transparent !important;
    border: none !important;
    transform: none !important;
}

body.tv-fullscreen-mode .feed-sound-track.tv-sound-track .sound-disc-icon,
body.tv-fullscreen-mode .feed-sound-track.insta-sound-track .sound-disc-icon {
    font-size: 0.88rem !important;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.95)) !important;
}

body.tv-fullscreen-mode .feed-sound-track.tv-sound-track .sound-title-text,
body.tv-fullscreen-mode .feed-sound-track.insta-sound-track .sound-title-text {
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95) !important;
}

body.tv-fullscreen-mode .insta-tv-post-title {
    display: block !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-top: 2px !important;
    line-height: 1.3 !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.9) !important;
    max-width: 100% !important;
    word-break: break-word !important;
}

body.tv-fullscreen-mode .insta-tv-post-description {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.84rem !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-top: 1px !important;
    line-height: 1.35 !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.95) !important;
    max-width: 100% !important;
    word-break: break-word !important;
    cursor: pointer !important;
    max-height: 2.8em !important;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    z-index: 38 !important;
    pointer-events: auto !important;
}

body.tv-fullscreen-mode .insta-tv-post-description.expanded {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-height: 22vh !important;
    padding: 6px 8px !important;
    background: rgba(0, 0, 0, 0.75) !important;
    border-radius: 8px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7) !important;
}

body.tv-fullscreen-mode .insta-tv-post-description::-webkit-scrollbar {
    width: 3px;
}
body.tv-fullscreen-mode .insta-tv-post-description::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 204, 0.5);
    border-radius: 3px;
}

body.tv-fullscreen-mode .insta-header-actions {
    position: absolute !important;
    top: max(14px, env(safe-area-inset-top, 14px)) !important;
    right: 14px !important;
    pointer-events: auto !important;
}

body.tv-fullscreen-mode .insta-more-btn {
    color: #ffffff !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.85)) !important;
}

/* Floating Vertical Actions on Right Side - Cleanly lifted above footer */
body.tv-fullscreen-mode .insta-action-bar {
    position: absolute !important;
    right: 12px !important;
    bottom: calc(62px + 2.5rem + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
    z-index: 35 !important;
    background: transparent !important;
}

body.tv-fullscreen-mode .insta-actions-left {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    align-items: center !important;
}

body.tv-fullscreen-mode .insta-actions-right {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    align-items: center !important;
}

body.tv-fullscreen-mode .insta-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    min-height: 42px !important;
    padding: 0 !important;
}

body.tv-fullscreen-mode .insta-btn .icon-container {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.tv-fullscreen-mode .insta-btn .icon-container svg {
    width: 28px !important;
    height: 28px !important;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.9)) !important;
}

body.tv-fullscreen-mode .insta-btn .insta-action-count {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.9) !important;
    letter-spacing: 0.2px !important;
    margin-top: 0 !important;
    line-height: 1 !important;
    display: block !important;
}

body.tv-fullscreen-mode .insta-btn .insta-action-count:empty {
    display: none !important;
}

body.tv-fullscreen-mode .insta-btn .insta-action-label {
    display: block !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.9) !important;
    opacity: 0.95 !important;
    line-height: 1.1 !important;
}

body.tv-fullscreen-mode .insta-more-btn .insta-action-label,
body.tv-fullscreen-mode .insta-more-btn .action-label,
.insta-more-btn .insta-action-label,
.insta-more-btn .action-label {
    display: none !important;
}

/* Floating Bottom Details on Left Side */
body.tv-fullscreen-mode .insta-post-details {
    display: none !important;
}

body.tv-fullscreen-mode .feed-mode-disc-wrap {
    margin: 0 !important;
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
}

body.tv-fullscreen-mode .feed-mode-disc-wrap .music-disc-record {
    width: 34px !important;
    height: 34px !important;
    animation: rotateVinylDisc 10s linear infinite !important;
    transform: none; /* Reset any static transform to allow animation */
}

/* Let the music notes emit normally in fullscreen */

body.tv-fullscreen-mode .insta-sound-track .not-in-tv-mode {
    display: none !important;
}

body.tv-fullscreen-mode .insta-caption-row {
    font-size: 0.92rem !important;
}

body.tv-fullscreen-mode .insta-sound-pill {
    bottom: calc(75px + 5rem + env(safe-area-inset-bottom, 0px)) !important;
    right: 14px !important;
}

/* Tablet & Laptop Fullscreen Role Mode Centering */
@media (min-width: 600px) {
    body.tv-fullscreen-mode .home-insta-main {
        align-items: center !important;
        background: #000000 !important;
    }
    body.tv-fullscreen-mode .insta-feed-container {
        max-width: 480px !important;
        margin: 0 auto !important;
        border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    body.tv-fullscreen-mode .insta-card {
        max-width: 480px !important;
    }
}

/* ==========================================================================
   REPOST BANNERS & BADGES (Feed & Fullscreen)
   ========================================================================== */
.insta-card-repost-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 2px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #00f5d4;
    letter-spacing: 0.1px;
}

.insta-card-repost-bar.hidden {
    display: none !important;
}

.insta-card-repost-bar svg {
    color: #00f5d4;
    flex-shrink: 0;
}

.feed-fullscreen-repost-badge {
    position: absolute;
    top: max(16px, env(safe-area-inset-top, 16px));
    left: 14px;
    z-index: 40;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 245, 212, 0.35);
    color: #00f5d4;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.feed-fullscreen-repost-badge.hidden {
    display: none !important;
}

/* Conditional visibility for TV Fullscreen Mode actions */
.tv-only-actions {
    display: none !important;
}

body.tv-fullscreen-mode .tv-only-actions {
    display: flex !important;
}

/* TV Fullscreen Top-Left Clean '+' Upload Button (No background/shades) */
.tv-fullscreen-upload-btn {
    display: none !important;
    position: absolute !important;
    top: max(16px, env(safe-area-inset-top, 16px)) !important;
    left: 14px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 50 !important;
    pointer-events: auto !important;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease !important;
    padding: 0 !important;
}

body.tv-fullscreen-mode .tv-fullscreen-upload-btn {
    display: flex !important;
}

.tv-fullscreen-upload-btn:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: scale(1.12) !important;
    opacity: 0.9 !important;
}

.tv-fullscreen-upload-btn:active {
    transform: scale(0.9) !important;
}

.tv-fullscreen-upload-btn svg {
    width: 30px !important;
    height: 30px !important;
    stroke: #ffffff !important;
    stroke-width: 2.8 !important;
    filter: none !important;
}

/* TV Fullscreen Top 3-4 Friends Overlapping Circles with Clean Username Distance */
.tv-fullscreen-friends-bar {
    display: none !important;
    position: absolute !important;
    top: max(12px, env(safe-area-inset-top, 12px)) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 8px !important;
    z-index: 50 !important;
    pointer-events: auto !important;
}

body.tv-fullscreen-mode .tv-fullscreen-friends-bar {
    display: none !important;
}

.tv-friend-pill {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    cursor: pointer !important;
    margin-left: -18px !important;
    transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    user-select: none !important;
    padding: 0 4px !important;
    min-width: 50px !important;
}

.tv-friend-pill:first-child {
    margin-left: 0 !important;
}

.tv-friend-pill:hover {
    transform: translateY(-2px) scale(1.1) !important;
    z-index: 20 !important;
}

.tv-friend-pill:active {
    transform: scale(0.92) !important;
}

.tv-friend-avatar-wrap {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    overflow: visible !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.85) !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    position: relative !important;
}

.tv-friend-pill:hover .tv-friend-avatar-wrap {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 255, 204, 0.75) !important;
}

.tv-friend-avatar-img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

.tv-friend-online-dot {
    position: absolute !important;
    bottom: 2px !important;
    right: 2px !important;
    width: 9px !important;
    height: 9px !important;
    background: #00ff88 !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 0 6px #00ff88, 0 0 10px rgba(0, 255, 136, 0.9) !important;
    z-index: 10 !important;
    pointer-events: none !important;
    animation: livePulseDot 2s infinite ease-in-out !important;
}

@keyframes livePulseDot {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 6px #00ff88, 0 0 10px rgba(0, 255, 136, 0.8);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 10px #00ff88, 0 0 16px rgba(0, 255, 136, 1);
    }
}

.tv-friend-username-label {
    display: block !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: 0.35px !important;
    margin-top: 4px !important;
    padding: 1px 4px !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.95) !important;
    line-height: 1.1 !important;
    max-width: 58px !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

/* When repost badge is present in fullscreen, offset repost badge next to '+' button */
body.tv-fullscreen-mode .feed-fullscreen-repost-badge:not(.hidden) {
    left: 56px !important;
}

/* ============================================================
   Interactive Zoom & Pinch-to-Zoom for Photos & Carousels
============================================================ */
.feed-carousel-slide img,
.insta-media-wrap img,
.feed-image {
    touch-action: pan-x pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    transform-origin: center center;
    will-change: transform;
}

.feed-carousel-slide.is-zoomed {
    z-index: 100 !important;
    overflow: visible !important;
}

.feed-carousel-slide img.is-zoomed,
.insta-media-wrap img.is-zoomed,
.feed-image.is-zoomed {
    position: relative;
    z-index: 100 !important;
}

/* Diminished Comment / Message Button when author disabled comments */
.comment-btn.is-disabled,
.insta-comment-btn.is-disabled,
.feed-top-msg-btn.is-disabled {
    opacity: 0.38 !important;
    filter: grayscale(0.8) !important;
    cursor: pointer !important;
}

.comment-btn.is-disabled:hover,
.insta-comment-btn.is-disabled:hover {
    opacity: 0.55 !important;
}

/* Center Toast Notice Modal for Limits & Disabled Messages */
.virol-center-notice-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(18, 18, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 255, 204, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #ffffff;
    padding: 16px 22px;
    border-radius: 18px;
    z-index: 10000;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 85vw;
    width: 320px;
    pointer-events: none;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.virol-center-notice-toast.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.virol-center-notice-toast .toast-icon {
    font-size: 1.8rem;
    margin-bottom: 2px;
}

/* ============================================================
   Fullscreen / TV Mode: Bottom-Left User Like Profile Emitter
   ============================================================ */
.tv-like-user-emitter {
    position: absolute;
    left: 0;
    bottom: -6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    pointer-events: auto;
    cursor: pointer;
    z-index: 99999;
    --emitter-drift-x: 0px;
    animation: tvLikeFloatDissolveUp 2.8s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}

.tv-like-emitter-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #ff007a, #9b51e0, #00f2fe);
    box-shadow: 0 4px 18px rgba(255, 0, 122, 0.55), 0 0 10px rgba(0, 242, 254, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-like-emitter-avatar img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    background: #111;
}

.tv-like-emitter-heart-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    font-size: 1.05rem;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.85));
    animation: tvHeartPulse 1.2s ease-in-out infinite alternate;
}

.tv-like-emitter-name-badge {
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    padding: 2px 8px;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
    letter-spacing: 0.3px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    display: inline-block;
    pointer-events: auto;
    cursor: pointer;
}

@keyframes tvLikeFloatDissolveUp {
    0% {
        opacity: 0;
        transform: translate3d(0, 6px, 0) scale(0.6);
    }
    15% {
        opacity: 1;
        transform: translate3d(calc(var(--emitter-drift-x) * 0.3), -12px, 0) scale(1.08);
    }
    35% {
        transform: translate3d(var(--emitter-drift-x), -55px, 0) scale(1.05);
    }
    70% {
        opacity: 0.9;
        transform: translate3d(calc(var(--emitter-drift-x) * 1.4), -105px, 0) scale(0.95);
    }
    100% {
        opacity: 0;
        transform: translate3d(calc(var(--emitter-drift-x) * 1.8), -155px, 0) scale(0.7);
    }
}

@keyframes tvHeartPulse {
    0% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1.2);
    }
}

/* Comment Direct Jump & Flash Target Highlight */
.comment-item.comment-target-highlight,
.comment-reply-item.comment-target-highlight {
    animation: commentFlashHighlight 3.5s cubic-bezier(0.2, 0.8, 0.25, 1) forwards !important;
    border-radius: 8px !important;
}

@keyframes commentFlashHighlight {
    0% {
        background-color: rgba(0, 245, 212, 0.45);
        box-shadow: 0 0 16px rgba(0, 245, 212, 0.5);
    }
    30% {
        background-color: rgba(0, 245, 212, 0.35);
        box-shadow: 0 0 12px rgba(0, 245, 212, 0.35);
    }
    70% {
        background-color: rgba(0, 245, 212, 0.15);
    }
    100% {
        background-color: transparent;
        box-shadow: none;
    }
}



