/* ==========================================================================
   🔥 CORE MATRIX SYSTEM VARIABLES & GLOBAL RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 🚫 Disable Browser Long-Press Preview & Context Menu Globally on Feed */
#feed-wrapper, 
#feed-wrapper *,
.shorts-container, 
.shorts-container * {
    -webkit-touch-callout: none !important; /* iOS Safari link/image preview popup block */
    -webkit-user-select: none !important;   /* Text highlight disable */
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;     /* Images / Links drag disable */
}

button, a, .spark-video, .action-btn, .inline-follow-btn {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
    touch-action: manipulation;
}

button:focus, a:focus, .spark-video:focus, .action-btn:focus, .inline-follow-btn:focus {
    outline: none;
}

/* 🔥 FIX 1: Body strictly locked with fixed screen */
html, body {
    width: 100%;
    height: 100%;
    position: fixed; 
    overflow: hidden;
    background: #000000;
    font-family: 'Inter', sans-serif;
}

:root {
    --bottom-nav-height: 60px;
}

/* ==========================================================================
   🧩 VIEWPORT WRAPPERS & CONTAINER LAYOUT SYSTEM
   ========================================================================== */
.app-layout-wrapper {
    width: 100%;
    height: 100%;
    display: block; 
    background: #000000;
}

#feed-wrapper {
    width: 100%;
    height: calc(100% - var(--bottom-nav-height));
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    background: #000000; 
    scrollbar-width: none;
}
#feed-wrapper::-webkit-scrollbar {
    display: none;
}

/* Base Viewport Container */
.shorts-container {
    position: relative;
    width: 100%;
    max-width: 460px;
    height: 100%;
    margin: auto;
    background: #000000;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}

/* 🪐 YT STYLE MEDIA WRAPPER */
.spark-media-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spark-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000000 !important;
    z-index: 1;
}

/* ==========================================================================
   ⚡ 2X SPEED BADGE & DOUBLE TAP SEEK OVERLAYS
   ========================================================================== */

/* 2X Speed Floating Pill (Top Center) */
.spark-speed-badge {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.spark-speed-badge i {
    color: #FF6B35;
    font-size: 14px;
}

.spark-speed-badge.active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Seek Overlays (Left & Right Halves) */
.spark-seek-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
}

.spark-seek-overlay.seek-left {
    left: 0;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
}

.spark-seek-overlay.seek-right {
    right: 0;
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
}

.seek-anim-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transform: scale(0.6);
    transition: transform 0.2s ease;
}

.seek-anim-circle i {
    font-size: 26px;
}

.seek-seconds-text {
    font-size: 12px;
    font-weight: 800;
    margin-top: 2px;
}

.spark-seek-overlay.active {
    animation: seekFlashPulse 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.spark-seek-overlay.active .seek-anim-circle {
    transform: scale(1);
}

@keyframes seekFlashPulse {
    0% { opacity: 0; background-color: rgba(255, 255, 255, 0); }
    30% { opacity: 1; background-color: rgba(255, 255, 255, 0.08); }
    100% { opacity: 0; background-color: rgba(255, 255, 255, 0); }
}

/* ==========================================================================
   🎬 REAL YT STYLE OVERLAY: Dynamic absolute layering
   ========================================================================== */
.video-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 40%, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: #ffffff;
    pointer-events: none;
    z-index: 10;
    padding: 24px 16px 28px 16px;
    box-sizing: border-box;
}

.creator-details {
    max-width: 75%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
    margin-bottom: 12px;
}

.creator-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.creator-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F13423, #FF6B35);
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
}

.creator-name {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.inline-follow-btn {
    position: relative;
    border: none;
    background: #F3F4F6;
    color: #111827;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.inline-follow-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #F13423, #FF6B35, #ff0055, #F13423);
    background-size: 300% 300%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.inline-follow-btn:hover::before { opacity: 1; animation: followDiscoShift 2.5s infinite linear; }
.inline-follow-btn:hover { color: #ffffff; transform: scale(1.05); }
.inline-follow-btn:active { transform: scale(0.95); }

@keyframes followDiscoShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.spark-title {
    font-size: 14px;
    line-height: 1.45;
    color: #f3f4f6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    pointer-events: auto;
    margin-bottom: 12px;
}

.action-item-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.action-btn {
    border: none;
    background: transparent; 
    color: #ffffff;
    font-size: 26px; 
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.9));
    transition: transform 0.15s ease;
}
.action-btn:active { transform: scale(0.9); }

.action-item-wrap span {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   🚨 INTERACTIVE DRAGGABLE TIMELINE / SEEKBAR
   ========================================================================== */
.spark-seekbar-container {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 18px; /* Touch hitting area */
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    z-index: 15;
    touch-action: none;
}

.spark-seekbar-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    position: relative;
    transition: height 0.15s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.spark-seekbar-progress {
    width: 0%;
    height: 100%;
    background: #F13423;
    position: relative;
}

.spark-seekbar-thumb {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 12px;
    height: 12px;
    background: #F13423;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0,0,0,0.6);
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover or Active Scrubbing State */
.spark-seekbar-container:hover .spark-seekbar-track,
.spark-seekbar-container.scrubbing .spark-seekbar-track {
    height: 5px;
}

.spark-seekbar-container:hover .spark-seekbar-thumb,
.spark-seekbar-container.scrubbing .spark-seekbar-thumb {
    transform: translateY(-50%) scale(1);
}

/* Play/Pause Center Flash Animation */
.play-status-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: rgba(255, 255, 255, 0.6);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
}
.play-status-icon.flash { animation: flashIcon 0.4s ease-out; }

/* ==========================================================================
   🔝 TOP NAVIGATION CONTROLS
   ========================================================================== */
.sparks-top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(16px + env(safe-area-inset-top)) 16px 16px 16px;
    z-index: 9999;
    pointer-events: none;
}

.top-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
}

.spark-top-btn {
    pointer-events: auto; 
    width: 42px;
    height: 42px;
    background: transparent; 
    border: none; 
    color: #ffffff;
    font-size: 24px; 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.spark-top-btn:active {
    transform: scale(0.85); 
}

@keyframes flashIcon {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
}

/* ==========================================================================
   🔥 SPARKS EXACT ARTICLE-STYLE GLOWING NEON GRADIENT
   ========================================================================== */
.fire-like-pop {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 85px !important;
    z-index: 999999 !important;
    pointer-events: none;
    color: transparent !important;
    background: linear-gradient(135deg, #FF5A1F 0%, #FF007F 35%, #7000FF 70%, #00D2FF 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 12px rgba(255, 0, 127, 0.6)) 
            drop-shadow(0 0 25px rgba(112, 0, 255, 0.4)) !important;
    transform: translate(-50%, -50%) scale(0);
    animation: thumbPopEffect 0.95s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards !important;
}

.fire-like-sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    z-index: 999998 !important;
    pointer-events: none;
    background: linear-gradient(135deg, #FF5A1F, #FF007F, #7000FF, #00D2FF) !important;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.9), 0 0 15px rgba(0, 210, 255, 0.6) !important;
    transform: translate(-50%, -50%) scale(0);
    animation: sparkleExplodeEffect 1.1s cubic-bezier(0.1, 0.8, 0.2, 1) forwards !important;
}

@keyframes thumbPopEffect {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    20% { transform: translate(-50%, -50%) scale(1.3) rotate(-12deg); opacity: 1; }
    75% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(0deg); }
    100% { transform: translate(-50%, -50%) scale(0.6) translateY(-20px); opacity: 0; }
}

@keyframes sparkleExplodeEffect {
    0% { transform: translate(-50%, -50%) translate(0, 0) scale(1); opacity: 1; }
    25% { opacity: 1; }
    100% { transform: translate(-50%, -50%) translate(var(--spark-x), var(--spark-y)) scale(0); opacity: 0; }
}

#followCelebrationCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 10000;
    transform: translateZ(0);
}

.follow-thanks-toast-alert {
    position: fixed;
    top: -80px; left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #111827;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.35);
    z-index: 10001;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.follow-thanks-toast-alert.show-toast { top: 24px; opacity: 1; transform: translateX(-50%) scale(1); }
.thanks-toast-content { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.thanks-toast-content b { color: #FF6B35; }
.fire-pulse-icon { color: #FF6B35; animation: firePulseNode 0.8s infinite alternate ease-in-out; }
@keyframes firePulseNode { 0% { transform: scale(1); } 100% { transform: scale(1.2); } }

/* ==========================================================================
   🪐 COMMENTS MODAL & CORE LEAF ARCHITECTURE
   ========================================================================== */
.comments-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000000 !important; 
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}
.comments-modal.show { 
    opacity: 1; 
    pointer-events: auto; 
}

.comments-sheet {
    width: 100%;
    max-width: 460px;
    height: 72vh;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}
.comments-modal.show .comments-sheet { 
    transform: translateY(0); 
}

.sheet-drag-handle { 
    width: 40px; 
    height: 4px; 
    background: #D1D5DB; 
    border-radius: 10px; 
    margin: 10px auto 4px auto; 
    flex-shrink: 0; 
    cursor: grab;
}

.comments-header { 
    padding: 10px 20px 14px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid #E5E7EB; 
    flex-shrink: 0;
}
.comments-header h3 { 
    font-size: 15px; 
    font-weight: 700; 
    color: #0F0F0F; 
}
.comments-header h3 span { 
    color: #606060; 
    font-weight: 500; 
    font-size: 13.5px; 
}
#closeComments { 
    background: #F2F2F2; 
    border: none; 
    width: 28px; 
    height: 28px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    color: #606060; 
    font-size: 18px; 
}

.comments-list { 
    flex: 1; 
    overflow-y: auto; 
    padding: 8px 16px; 
    -webkit-overflow-scrolling: touch; 
    overscroll-behavior: contain; 
}
.comment-row { 
    display: flex; 
    gap: 12px; 
    padding: 12px 0; 
    border-bottom: 1px solid #F9FAFB; 
    position: relative; 
}
.comment-avatar-fallback { 
    width: 34px; 
    height: 34px; 
    border-radius: 50%; 
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB); 
    color: #374151; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 700; 
    font-size: 12px; 
    text-transform: uppercase; 
    flex-shrink: 0; 
}
.comment-body-content { flex: 1; }
.comment-user-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.comment-user { font-weight: 700; font-size: 13px; color: #0F0F0F; }
.comment-time-stamp { font-size: 11px; color: #9CA3AF; }
.comment-text { font-size: 13.5px; color: #374151; line-height: 1.45; word-break: break-word; }

.comment-actions-dropdown-wrapper { position: absolute; right: 0; top: 10px; }
.comment-dots-trigger-btn { background: transparent; border: none; color: #9CA3AF; padding: 4px 8px; cursor: pointer; font-size: 14px; }
.comment-context-dropdown-menu { position: absolute; right: 0; top: 26px; background: #ffffff; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.12); display: none; flex-direction: column; overflow: hidden; z-index: 100; min-width: 110px; }
.comment-context-dropdown-menu.visible-flex { display: flex; }
.dropdown-action-item { background: transparent; border: none; padding: 10px 14px; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; color: #374151; display: flex; align-items: center; gap: 8px; width: 100%; }
.dropdown-action-item.delete-color { color: #EF4444; }

.comment-inline-edit-box { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; background: #F9FAFB; padding: 10px; border-radius: 12px; border: 1px solid #E5E7EB; }
.comment-inline-edit-box input { width: 100%; padding: 8px 12px; border: 1px solid #D1D5DB; border-radius: 8px; font-size: 13px; }
.edit-actions-row { display: flex; justify-content: flex-end; gap: 8px; }
.edit-actions-row button { padding: 6px 12px; font-size: 11px; font-weight: 700; border-radius: 6px; cursor: pointer; border: none; }
.btn-save-edit { background: #0F0F0F; color: #ffffff; }
.btn-cancel-edit { background: #E5E7EB; color: #374151; }

.comments-loading, .comments-empty-message { text-align: center; padding: 40px 0; color: #9CA3AF; font-size: 13px; }

.comments-input-wrap { 
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)) 16px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    border-top: 1px solid #E5E7EB; 
    background: #ffffff; 
    flex-shrink: 0; 
}
.comments-input-wrap input { 
    flex: 1; 
    padding: 10px 14px; 
    border-radius: 20px; 
    border: 1px solid #E5E7EB; 
    background: #F8F9FA; 
    font-size: 13.5px; 
    outline: none; 
    color: #0F0F0F; 
}
.comments-input-wrap input:focus { 
    border-color: #0F0F0F; 
    background: #FFFFFF; 
}
#sendCommentBtn { 
    background: #F13423; 
    color: #ffffff; 
    border: none; 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    flex-shrink: 0; 
}
#sendCommentBtn:disabled { background: #E5E7EB; color: #9CA3AF; cursor: not-allowed; }

.delete-confirm-modal { 
    position: fixed; 
    inset: 0; 
    z-index: 100000001 !important; 
    background: rgba(0, 0, 0, 0.45); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 18px; 
    opacity: 0; 
    pointer-events: none; 
    backdrop-filter: blur(8px); 
    transition: opacity 0.2s ease; 
}
.delete-confirm-modal.show { opacity: 1; pointer-events: auto; }
.delete-confirm-card { width: min(100%, 360px); background: #ffffff; border-radius: 20px; box-shadow: 0 24px 70px rgba(0,0,0,0.25); padding: 22px; transform: translateY(12px) scale(0.96); transition: transform 0.2s ease; }
.delete-confirm-modal.show .delete-confirm-card { transform: translateY(0) scale(1); }
.delete-confirm-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #FEF2F2; color: #DC2626; font-size: 20px; margin-bottom: 14px; }
.delete-confirm-copy h3 { font-size: 18px; margin: 0 0 6px; color: #0F0F0F; }
.delete-confirm-copy p { margin: 0; color: #6B7280; font-size: 13.5px; }
.delete-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.delete-confirm-actions button { border: none; border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 13px; cursor: pointer; }
.delete-confirm-cancel { background: #F3F4F6; color: #374151; }
.delete-confirm-danger { background: #EF4444; color: #ffffff; }

.arrow-spinner-active { animation: spinArrowCircle 0.8s linear infinite; }
@keyframes spinArrowCircle { to { transform: rotate(360deg); } }

/* ==========================================================================
   🎵 ORIGINAL AUDIO TICKER & SPINNING TRACK BOX
   ========================================================================== */
.music-ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 310px;
    margin-top: 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.music-ticker-wrapper i {
    font-size: 14px;
    animation: pulseMusicIcon 1.5s infinite alternate;
}

.marquee-container {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.marquee-text {
    display: inline-block;
    animation: scrollMarquee 6s linear infinite;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes pulseMusicIcon {
    0% { opacity: 0.6; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

.audio-track-container {
    position: relative;
    margin-top: 14px;
}

.audio-square-box {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.audio-square-box::before {
    content: '';
    position: absolute;
    width: 150%; 
    height: 150%;
    background: conic-gradient(from 0deg, #222, #555, #222, #555, #222); 
    animation: spinTrackBox 4s linear infinite;
    z-index: 0;
}

.audio-dp {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

@keyframes spinTrackBox {
    100% { transform: rotate(360deg); }
}

.float-note {
    position: absolute;
    bottom: 50%;
    left: 50%;
    font-size: 15px;
    color: #ffffff;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8));
    z-index: -1;
}

.note-1 { animation: floatMusicLeft 3s linear infinite; }
.note-2 { animation: floatMusicRight 3s linear infinite 1.5s; }

@keyframes floatMusicLeft {
    0% { transform: translate(-50%, 0) scale(0.7) rotate(0deg); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translate(-150%, -45px) scale(1.2) rotate(-20deg); opacity: 0; }
}

@keyframes floatMusicRight {
    0% { transform: translate(-50%, 0) scale(0.7) rotate(0deg); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translate(50%, -50px) scale(1.1) rotate(15deg); opacity: 0; }
}

/* ==========================================================================
   💻 DESKTOP & SCALABILITY VIEW CONSTRAINT SYSTEM
   ========================================================================== */
@media (min-width: 992px) {
    :root {
        --bottom-nav-height: 0px;
    }
    .app-layout-wrapper { display: block; width: 100%; max-width: 100%; background: #FAFAFB; position: relative; }
    #feed-wrapper { background: #FAFAFB; margin-left: 260px; width: calc(100% - 260px); height: 100vh; }
    
    .shorts-container { 
        max-width: 410px; 
        height: calc(100vh - 32px); 
        margin: 16px auto; 
        scroll-snap-align: center; 
        border-radius: 16px; 
        border: 1px solid rgba(255, 255, 255, 0.08); 
        box-shadow: 0 12px 32px rgba(0,0,0,0.5); 
    }
    
    .spark-media-wrapper { border-radius: 16px; overflow: hidden; }
    
    .video-overlay { padding: 40px 20px 24px 20px; }
    
    .comments-modal { background: rgba(0,0,0,0.28); align-items: stretch; justify-content: flex-start; backdrop-filter: blur(10px); }
    .comments-sheet { position: fixed; top: 16px; right: max(16px, calc((100vw - 260px - 410px - 430px - 24px) / 2)); width: min(430px, calc(100vw - 300px)); max-width: 430px; height: calc(100vh - 32px); margin: 0; border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,0.24); transform: translateX(24px); }
    .comments-modal.show .comments-sheet { transform: translateX(0); }
    .sheet-drag-handle { display: none; }
    .comments-header { padding: 18px 20px; }
    .comments-list { padding: 10px 20px; }
    .comments-input-wrap { padding: 14px 20px; border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; }

    .sparks-top-nav {
        left: 50%;
        transform: translateX(calc(-50% + 130px)); 
        max-width: 410px;
        padding: 24px 16px 0 16px;
    }
}