/* ============================================

   CLIPS.CSS - FULL SCREEN REELS

   Instagram/TikTok Style - COMPLETE

   ============================================ */



/* ---------- RESET OVERRIDES ---------- */

body.clips-page {

    background: #000 !important;

    overflow: hidden !important;

    height: 100% !important;

    margin: 0 !important;

    padding: 0 !important;

}



/* Hide ALL layout wrappers that interfere */

body.clips-page .hybrid-layout,

body.clips-page .main-content,

body.clips-page .content-wrapper,

body.clips-page .container-fluid,

body.clips-page .row,

body.clips-page .col,

body.clips-page .col-12 {

    padding: 0 !important;

    margin: 0 !important;



    min-height: 100% !important;

    max-height: 100% !important;

    overflow: hidden !important;

    max-width: 100% !important;

    width: 100% !important;

}



/* ---------- CLIPS CONTAINER ---------- */

.clips-container {

    position: fixed !important;
    top: 0;
    bottom: 0;
    overflow-y: scroll !important;

    scroll-snap-type: y mandatory !important;

    scroll-behavior: smooth !important;

    -webkit-overflow-scrolling: touch !important;

    background: #0d0d0d !important;

    padding: 0 !important;

    margin: 0 !important;

    z-index: 1 !important;

    scrollbar-width: none !important;

    -ms-overflow-style: none !important;

}



.clips-container::-webkit-scrollbar {

    display: none !important;

}



/* Desktop and Tablet sidebar offsets */

@media (min-width: 1195px) {

    .clips-container {

        left: 240px !important;

        width: calc(100vw - 240px) !important;

        margin-left: 0 !important;

    }



    .clip-wrapper {

        width: calc(100vw - 240px) !important;

    }

}



@media (min-width: 768px) and (max-width: 1194px) {

    .clips-container {

        left: 72px !important;

        width: calc(100vw - 72px) !important;

        margin-left: 0 !important;

    }



    .clip-wrapper {

        width: calc(100vw - 72px) !important;

    }

}



@media (max-width: 767px) {

    .clips-container {

        left: 0 !important;

        width: 100vw !important;
        height: 100vh;
        margin-left: 0 !important;

    }



    .clip-wrapper {

        width: 100vw !important;
        height: 100vh;

    }

}



/* ---------- CLIP WRAPPER ---------- */

.clip-wrapper {



    height: 100vh;
    scroll-snap-align: start !important;

    position: relative !important;

    background: #0d0d0d !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    padding: 0 !important;

    margin: 0 !important;

    overflow: hidden !important;

    will-change: transform !important;

}



/* ---------- VIDEO PLAYER CARD ---------- */

.clip-player {

    background: #000 !important;

    position: relative !important;

    overflow: hidden !important;

}



@media (min-width: 768px) {

    .clip-player {

        height: 85vh !important;

        aspect-ratio: 9/16 !important;

        border-radius: 12px !important;

        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8) !important;

        max-width: 480px !important;

    }



    .clip-player video {

        border-radius: 12px !important;

    }

}



@media (max-width: 767px) {

    .clip-player {

        width: 100% !important;

        height: 100% !important;

        border-radius: 0 !important;

        max-width: 100% !important;

        aspect-ratio: auto !important;

    }



    .clip-player video {

        border-radius: 0 !important;

    }

}



.clip-player video {

    width: 100% !important;

    height: 100% !important;

    object-fit: cover !important;

    background: #000 !important;

    display: block !important;

    will-change: transform !important;

}



.clip-duration {

    position: absolute !important;

    bottom: 20px !important;

    right: 20px !important;

    background: rgba(0, 0, 0, 0.7) !important;

    color: white !important;

    padding: 2px 8px !important;

    border-radius: 4px !important;

    font-size: 11px !important;

    font-weight: 500 !important;

    z-index: 2 !important;

}



/* ---------- CLIP OVERLAY ---------- */

.clip-overlay {

    position: absolute !important;

    background: transparent !important;

    pointer-events: none !important;

    z-index: 10 !important;

}



@media (min-width: 768px) {

    .clip-overlay {

        height: 85vh !important;

        aspect-ratio: 9/16 !important;

        max-width: 480px !important;

        top: 50% !important;

        left: 50% !important;

        transform: translate(-50%, -50%) !important;

    }

}



@media (max-width: 767px) {

    .clip-overlay {

        top: 0 !important;

        left: 0 !important;

        width: 100% !important;

        height: 100% !important;

        aspect-ratio: auto !important;

        padding: 16px 12px 80px !important;

    }

}



.clip-overlay>* {

    pointer-events: auto !important;

}



/* ---------- CLIP USER INFO (Bottom Left) ---------- */

.clip-info-bottom {
    position: absolute !important;
    left: 16px !important;
    bottom: 16px !important;
    right: 80px !important;
    z-index: 12 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%) !important;
    padding: 24px 16px 16px !important;
    border-radius: 0 0 12px 12px !important;
    max-width: calc(100% - 96px) !important;
}



@media (max-width: 767px) {

    .clip-info-bottom {

        bottom: 90px !important;

        max-width: calc(100% - 80px) !important;

        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%) !important;

    }

}



.clip-user {

    display: flex !important;

    align-items: center !important;

    gap: 8px !important;

    margin-bottom: 8px !important;

}



.clip-user-link {

    display: flex !important;

    align-items: center !important;

    gap: 8px !important;

    text-decoration: none !important;

    color: white !important;

}



.clip-user-link img {

    width: 36px !important;

    height: 36px !important;

    border-radius: 50% !important;

    object-fit: cover !important;

    border: 1.5px solid rgba(255, 255, 255, 0.6) !important;

}



.clip-name {

    font-weight: 600 !important;

    font-size: 13.5px !important;

    color: white !important;

}



.clip-username {

    font-size: 11.5px !important;

    color: rgba(255, 255, 255, 0.7) !important;

}



.clip-follow-btn {

    background: transparent !important;

    color: white !important;

    border: 1px solid rgba(255, 255, 255, 0.6) !important;

    padding: 3px 10px !important;

    border-radius: 4px !important;

    font-size: 11px !important;

    font-weight: 600 !important;

    cursor: pointer !important;

    transition: all 0.2s !important;

}



.clip-follow-btn:hover {

    background: rgba(255, 255, 255, 0.1) !important;

    border-color: white !important;

}



.clip-caption {

    color: white !important;

    font-size: 13px !important;

    margin: 4px 0 0 0 !important;

    line-height: 1.4 !important;

    display: -webkit-box !important;

    -webkit-line-clamp: 2 !important;

    -webkit-box-orient: vertical !important;

    overflow: hidden !important;

}



/* ---------- CLIP ACTIONS ---------- */

.clip-actions-side {

    z-index: 12 !important;

}



@media (min-width: 768px) {
    .clip-actions-side {
        position: absolute !important;
        right: 16px !important;
        bottom: 90px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }
}



@media (max-width: 767px) {

    .clip-actions-side {

        position: absolute !important;

        right: 12px !important;

        bottom: 100px !important;

        display: flex !important;

        flex-direction: column !important;

        align-items: center !important;

        gap: 14px !important;

        padding-bottom: 10px !important;

    }

}



.clip-actions-side button {

    background: none !important;

    border: none !important;

    color: white !important;

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;

    cursor: pointer !important;

    transition: transform 0.2s !important;

    padding: 4px !important;

}



.clip-actions-side button:active {

    transform: scale(0.9) !important;

}



.clip-actions-side button i {

    font-size: 26px !important;

    color: white !important;

    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) !important;

    transition: color 0.2s, transform 0.2s !important;

}



.clip-actions-side button:hover i {

    transform: scale(1.1) !important;

}



.clip-actions-side .action-count {

    font-size: 11px !important;

    font-weight: 500 !important;

    margin-top: 4px !important;

    color: white !important;

    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) !important;

}



.clip-like-btn.liked i {

    color: #ff3040 !important;

    text-shadow: 0 2px 8px rgba(255, 48, 64, 0.4) !important;

}



/* ---------- COMMENTS PANEL ---------- */

.clip-comments-panel {

    position: absolute !important;

    bottom: 0 !important;

    left: 50% !important;

    transform: translateX(-50%) !important;

    width: 100% !important;

    max-width: 480px !important;

    background: rgba(0, 0, 0, 0.95) !important;

    backdrop-filter: blur(10px) !important;

    -webkit-backdrop-filter: blur(10px) !important;

    border-radius: 16px 16px 0 0 !important;

    padding: 16px !important;

    max-height: 50% !important;

    display: none !important;

    flex-direction: column !important;

    z-index: 20 !important;

    animation: slideUp 0.3s ease !important;

}



@media (max-width: 767px) {

    .clip-comments-panel {

        max-width: 100% !important;

        left: 0 !important;

        transform: none !important;

    }

}



@keyframes slideUp {

    from {

        transform: translateY(100% - 50%);

        opacity: 0;

    }



    to {

        transform: translateY(0);

        opacity: 1;

    }

}



.comments-header {

    display: flex !important;

    justify-content: space-between !important;

    align-items: center !important;

    color: white !important;

    padding-bottom: 12px !important;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;

}



.comments-header h4 {

    margin: 0 !important;

    font-size: 16px !important;

}



.close-comments {

    background: none !important;

    border: none !important;

    color: white !important;

    font-size: 20px !important;

    cursor: pointer !important;

    padding: 4px 8px !important;

}



.clip-comment-list {

    flex: 1 !important;

    overflow-y: auto !important;

    padding: 12px 0 !important;

    max-height: 200px !important;

}



.clip-comment-list::-webkit-scrollbar {

    width: 4px !important;

}



.clip-comment-list::-webkit-scrollbar-thumb {

    background: rgba(255, 255, 255, 0.3) !important;

    border-radius: 4px !important;

}



.clip-comment-item {

    display: flex !important;

    gap: 10px !important;

    padding: 8px 0 !important;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;

    color: white !important;

}



.clip-comment-item img {

    width: 28px !important;

    height: 28px !important;

    border-radius: 50% !important;

    object-fit: cover !important;

    flex-shrink: 0 !important;

}



.clip-comment-item strong {

    font-size: 13px !important;

    margin-right: 6px !important;

}



.clip-comment-item span {

    font-size: 13px !important;

    color: rgba(255, 255, 255, 0.9) !important;

    word-break: break-word !important;

}



.clip-comment-item small {

    font-size: 10px !important;

    color: rgba(255, 255, 255, 0.5) !important;

    display: block !important;

    margin-top: 2px !important;

}



.clip-comment-input {

    display: flex !important;

    gap: 8px !important;

    padding-top: 12px !important;

    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;

}



.clip-comment-input input {

    flex: 1 !important;

    padding: 10px 14px !important;

    border: none !important;

    border-radius: 20px !important;

    background: rgba(255, 255, 255, 0.1) !important;

    color: white !important;

    font-size: 14px !important;

    outline: none !important;

}



.clip-comment-input input::placeholder {

    color: rgba(255, 255, 255, 0.5) !important;

}



.clip-comment-input input:focus {

    background: rgba(255, 255, 255, 0.15) !important;

}



.clip-comment-input button {

    background: #4a6cf7 !important;

    color: white !important;

    border: none !important;

    padding: 10px 16px !important;

    border-radius: 20px !important;

    font-size: 14px !important;

    cursor: pointer !important;

    transition: background 0.2s !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    min-width: 44px !important;

}



.clip-comment-input button:hover {

    background: #3a5bd9 !important;

}



/* ---------- NO CLIPS ---------- */

.no-clips {

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;

    justify-content: center !important;



    color: white !important;

    text-align: center !important;

    padding: 20px !important;

    background: #000 !important;

}



.no-clips i {

    font-size: 64px !important;

    color: rgba(255, 255, 255, 0.3) !important;

    margin-bottom: 16px !important;

}



/* ---------- SHARE MODAL ---------- */

.share-modal {

    display: none !important;

    position: fixed !important;

    top: 0 !important;

    left: 0 !important;

    width: 100% !important;

    height: 100% !important;

    background: rgba(0, 0, 0, 0.7) !important;

    backdrop-filter: blur(5px) !important;

    z-index: 9999 !important;

    justify-content: center !important;

    align-items: center !important;

}



.share-modal.active {

    display: flex !important;

}



.share-modal-content {

    background: white !important;

    border-radius: 16px !important;

    max-width: 450px !important;

    width: 90% !important;

    max-height: 80vh !important;

    overflow-y: auto !important;

    animation: slideUp 0.3s ease !important;

}



.share-modal-header {

    display: flex !important;

    justify-content: space-between !important;

    align-items: center !important;

    padding: 16px 20px !important;

    border-bottom: 1px solid #e5e5e5 !important;

}



.share-modal-header h3 {

    margin: 0 !important;

    font-size: 18px !important;

}



.share-modal-close {

    background: none !important;

    border: none !important;

    font-size: 24px !important;

    cursor: pointer !important;

    color: #666 !important;

}



.share-modal-body {

    padding: 20px !important;

}



.share-options {

    display: grid !important;

    grid-template-columns: repeat(2, 1fr) !important;

    gap: 10px !important;

    margin-bottom: 20px !important;

}



.share-option {

    display: flex !important;

    align-items: center !important;

    gap: 10px !important;

    padding: 12px !important;

    border: 1px solid #e5e5e5 !important;

    border-radius: 10px !important;

    background: white !important;

    cursor: pointer !important;

    transition: all 0.2s !important;

    font-size: 14px !important;

}



.share-option:hover {

    background: #f5f5f5 !important;

    border-color: #4a6cf7 !important;

}



.share-link-container {

    display: flex !important;

    gap: 10px !important;

    margin-top: 10px !important;

}



.share-link-container input {

    flex: 1 !important;

    padding: 10px !important;

    border: 1px solid #ddd !important;

    border-radius: 8px !important;

    font-size: 13px !important;

    background: #f9f9f9 !important;

    outline: none !important;

}



.copy-link-btn {

    padding: 10px 16px !important;

    background: #4a6cf7 !important;

    color: white !important;

    border: none !important;

    border-radius: 8px !important;

    cursor: pointer !important;

    font-size: 13px !important;

    white-space: nowrap !important;

}



/* ============================================

   MOBILE (max-width: 768px)

   ============================================ */

@media (max-width: 767px) {

    body.clips-page .left-sidebar {

        display: none !important;

    }







    .clip-actions-side button i {

        font-size: 24px !important;

    }



    .clip-duration {

        bottom: 70px !important;

    }



    /* Mobile Bottom Nav */

    .mobile-bottom-nav {

        background: rgba(0, 0, 0, 0.85) !important;

        backdrop-filter: blur(10px) !important;

        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;

        position: fixed !important;

        bottom: 0 !important;

        left: 0 !important;

        right: 0 !important;

        z-index: 99999 !important;

        height: 45px !important;

        display: flex !important;

    }



    .mobile-bottom-nav .nav-item {

        color: rgba(255, 255, 255, 0.5) !important;

    }



    .mobile-bottom-nav .nav-item i {

        color: rgba(255, 255, 255, 0.5) !important;

    }



    .mobile-bottom-nav .nav-item.active {

        color: #ffffff !important;

    }



    .mobile-bottom-nav .nav-item.active i {

        color: #ffffff !important;

    }



    .mobile-bottom-nav .nav-add {

        background: #4a6cf7 !important;

        box-shadow: 0 2px 12px rgba(74, 108, 247, 0.4) !important;

    }

}



/* ============================================

   DESKTOP (min-width: 769px)

   ============================================ */

@media (min-width: 768px) {

    .mobile-bottom-nav {

        display: none !important;

    }



    body.clips-page .left-sidebar {

        display: flex !important;

        position: fixed !important;

        top: 0 !important;

        left: 0 !important;

        width: 240px !important;



        z-index: 100 !important;

    }



    body.clips-page .clips-container {

        position: fixed !important;



        width: calc(100vw - 240px) !important;

        left: 240px !important;

        margin-left: 0 !important;

    }



    body.clips-page .clip-wrapper {



        width: 100% !important;

    }



    body.clips-page .clip-overlay {

        padding: 20px 24px calc(100px + env(safe-area-inset-bottom, 20px)) !important;

    }



    body.clips-page .clip-actions-side {

        padding-bottom: 30px !important;

    }



    body.clips-page .clip-duration {

        bottom: 100px !important;

    }

}



/* ============================================

   TABLET (769px - 1024px)

   ============================================ */

@media (min-width: 768px) and (max-width: 1194px) {

    body.clips-page .left-sidebar {

        width: 72px !important;

    }



    body.clips-page .left-sidebar .sidebar-brand span,

    body.clips-page .left-sidebar .sidebar-nav a span,

    body.clips-page .left-sidebar .sidebar-user div {

        display: none !important;

    }



    body.clips-page .left-sidebar .sidebar-nav a {

        justify-content: center !important;

        padding: 14px !important;

    }



    body.clips-page .left-sidebar .sidebar-nav a i {

        font-size: 22px !important;

        margin: 0 !important;

    }



    body.clips-page .clips-container {

        margin-left: 0 !important;

    }

}



/* ============================================

   SMALL PHONES (max-width: 480px)

   ============================================ */

@media (max-width: 480px) {

    .clip-overlay {

        padding: 12px 10px calc(80px + env(safe-area-inset-bottom, 20px)) !important;

    }



    .clip-actions-side {

        gap: 12px !important;

        padding-bottom: 5px !important;

    }



    .clip-actions-side button i {

        font-size: 22px !important;

    }



    .clip-duration {

        bottom: 60px !important;

        font-size: 10px !important;

    }



    .clip-user-link img {

        width: 30px !important;

        height: 30px !important;

    }



    .clip-name {

        font-size: 13px !important;

    }



    .clip-username {

        font-size: 11px !important;

    }

}



/* ============================================

   SAFE AREA FOR NOTCH PHONES

   ============================================ */




/* ============================================
   SAFE AREA FOR NOTCH PHONES
   ============================================ */
@supports (padding: max(0px)) {
    .clip-overlay {
        padding-bottom: max(90px, env(safe-area-inset-bottom)) !important;
    }

    .mobile-bottom-nav {
        padding-bottom: max(0px, env(safe-area-inset-bottom)) !important;
    }
}

/* ---------- SOUND OVERLAY ICON ---------- */
.sound-overlay-icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.8) !important;
    background: rgba(0, 0, 0, 0.6) !important;
    color: white !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 20 !important;
    transition: all 0.3s ease !important;
}

.sound-overlay-icon.show {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1.2) !important;
}

/* ---------- CLIPS LOADING SPINNER ---------- */
.clips-loading-spinner {
    text-align: center !important;
    padding: 20px !important;
    color: #999 !important;
    font-size: 14px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #0d0d0d !important;
}

/* ---------- CLIP COMMENTS PANEL ---------- */
.clip-comments-panel {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #1e1e24 !important;
    height: 60vh !important;
    border-radius: 16px 16px 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 100 !important;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.8) !important;
    animation: slideUp 0.3s ease-out forwards !important;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.comments-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.comments-header h4 {
    margin: 0 !important;
    color: white !important;
    font-size: 16px !important;
}

.close-comments {
    background: transparent !important;
    border: none !important;
    color: white !important;
    font-size: 20px !important;
    cursor: pointer !important;
}

.clip-comment-list {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 16px 20px !important;
}

.clip-comment-item {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}

.clip-comment-item img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.clip-comment-item div {
    display: flex !important;
    flex-direction: column !important;
}

.clip-comment-item div strong {
    color: white !important;
    font-size: 13px !important;
    margin-bottom: 2px !important;
}

.clip-comment-item div span {
    color: rgba(255,255,255,0.8) !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.clip-comment-item div small {
    color: #888 !important;
    font-size: 11px !important;
    margin-top: 4px !important;
}

.clip-comment-input {
    display: flex !important;
    padding: 16px 20px !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    background: #15151a !important;
    gap: 12px !important;
}

.clip-comment-field {
    flex: 1 !important;
    background: rgba(255,255,255,0.1) !important;
    border: none !important;
    padding: 12px 16px !important;
    border-radius: 20px !important;
    color: white !important;
    font-size: 14px !important;
    outline: none !important;
}

.clip-comment-field::placeholder {
    color: #888 !important;
}

.clip-comment-submit {
    background: #4a6cf7 !important;
    color: white !important;
    border: none !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 16px !important;
    transition: 0.2s !important;
}

.clip-comment-submit:hover {
    background: #3655d4 !important;
}