﻿body {
    background: #000;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: sans-serif;
}

.reels-wrapper {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    z-index: 1;
}

    .reels-wrapper::-webkit-scrollbar {
        display: none;
    }

.reel {
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    position: relative;
}

.video-box {
    width: 100%;
    max-width: 430px;
    height: 92vh;
    background-color: #000;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: visible;
    border-radius: 12px;
    transition: all .3s ease;
}

/* ⏱️ VIDEO TIMER BADGE */
.video-timer {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 40;
    background: rgba(0,0,0,.5);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    backdrop-filter: blur(5px);
    pointer-events: none;
}

/* 🎵 ATTRACTIVE NEON PLAYLIST BUTTON */
.playlist-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(138,43,226,.2);
    border: 1.5px solid #a020f0;
    padding: 6px 14px;
    border-radius: 30px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 15px rgba(160,32,240,.4);
    transition: all .3s ease;
    text-transform: uppercase;
    letter-spacing: .5px;
}

    .playlist-btn:hover {
        background: rgba(160,32,240,.6);
        box-shadow: 0 0 25px rgba(160,32,240,.8);
        transform: scale(1.05);
    }

    .playlist-btn i {
        font-size: 14px;
        color: #d8b4fe;
    }

/* DESKTOP */
@media (min-width:992px) {

    .video-box {
        max-width: 370px;
        height: 90vh;
        margin-right: 100px;
        box-shadow: 0 0 30px rgba(255,255,255,.05);
    }

    .side-bar {
        position: absolute !important;
        right: -90px !important;
        bottom: 40px !important;
        display: flex !important;
        flex-direction: column;
        gap: 20px;
    }
}

/* MOBILE */
@media (max-width:768px) {

    .video-box {
        height: 88vh;
        max-width: 100%;
        border-radius: 0;
        overflow: hidden;
    }

    .side-bar {
        position: absolute !important;
        right: 12px !important;
        bottom: 100px !important;
        z-index: 100;
    }
}

.yt-player-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    border-radius: inherit;
}

    .yt-player-container iframe {
        width: 100% !important;
        height: 100% !important;
        transform: scale(1.15);
        transform-origin: center;
    }

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pause-icon {
    font-size: 60px;
    color: rgba(255,255,255,.7);
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
}

    .sidebar-item i {
        width: 54px;
        height: 54px;
        background: rgba(30,30,30,.8);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: #fff;
        border: 2px solid #ff2a2a;
        box-shadow: 0 0 15px rgba(255,42,42,.3);
        transition: .3s;
    }

    .sidebar-item:hover i {
        transform: scale(1.1);
        background: rgba(50,50,50,.9);
    }

    .sidebar-item.mute-btn i {
        border-color: #a020f0;
        box-shadow: 0 0 15px rgba(160,32,240,.3);
    }

    .sidebar-item span {
        color: #fff;
        font-size: 11px;
        font-weight: bold;
        margin-top: 5px;
        text-shadow: 0 1px 3px #000;
    }

    .sidebar-item.liked i {
        background: #ff2a2a;
        border-color: #fff;
    }

.info-section {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 35px;
    z-index: 20;
}

.btn-sub-inline {
    padding: 6px 16px;
    border-radius: 20px;
    border: none;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: .3s;
}

/* SEEK BAR */
.seek-bar-container {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,.1);
    z-index: 100;
    cursor: pointer;
    transition: height .3s ease;
}

/* MOBILE SEEK BAR */
@media (max-width:768px) {

    .seek-bar-container {
        top: 12px;
    }
}

/* DESKTOP SEEK BAR */
@media (min-width:769px) {

    .seek-bar-container {
        bottom: 0;
        border-radius: 0 0 12px 12px;
    }
}

.seek-bar-container:hover {
    height: 8px;
}

.seek-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,#ff00ff,#a020f0);
    box-shadow: 0 0 15px #a020f0,0 0 5px #fff;
    transition: width .1s linear;
    pointer-events: none;
    position: relative;
}

    .seek-bar-fill::after {
        content: '';
        position: absolute;
        right: -5px;
        top: 50%;
        transform: translateY(-50%);
        width: 10px;
        height: 10px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 0 20px #ff00ff;
    }
/* ===============================
   COMMENT MODAL (MAIN CONTAINER)
================================ */

.comment-modal {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 440px;
    height: 85dvh;
    background: linear-gradient(180deg,#0b0b0b,#111);
    border-top: 2px solid #a020f0;
    z-index: 3000;
    border-radius: 22px 22px 0 0;
    display: flex;
    flex-direction: column;
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -10px 40px rgba(0,0,0,.8);
    overflow: hidden;
}

    /* MODAL OPEN */
    .comment-modal.active {
        transform: translateX(-50%) translateY(0);
    }


/* ===============================
   COMMENT HEADER
================================ */

.comment-modal-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #222;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: .3px;
    background: linear-gradient(90deg,#111,#0a0a0a);
}

.comment-close {
    cursor: pointer;
    font-size: 22px;
    transition: .25s;
}

    .comment-close:hover {
        color: #ff00ff;
        transform: rotate(90deg);
    }


/* ===============================
   COMMENT BODY (SCROLL AREA)
================================ */

#commentBody {
    flex: 1;
    overflow-y: auto;
    padding: 14px 15px 20px 15px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

    /* SCROLLBAR */
    #commentBody::-webkit-scrollbar {
        width: 6px;
    }

    #commentBody::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg,#a020f0,#ff00ff);
        border-radius: 10px;
    }

    #commentBody::-webkit-scrollbar-track {
        background: #111;
    }


/* ===============================
   COMMENT CARD
================================ */

.comment-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(180deg,#161616,#121212);
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid #1f1f1f;
    box-shadow: 0 0 15px rgba(0,0,0,.4);
    transition: .25s;
}

    .comment-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 18px rgba(160,32,240,.35);
    }


/* AVATAR */

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg,#ff3b3b,#ff006a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(255,0,0,.6);
}


/* COMMENT CONTENT */

.comment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-user {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

.comment-time {
    color: #999;
    font-size: 11px;
    margin-left: auto;
}

.comment-text {
    color: #ddd;
    font-size: 13px;
    line-height: 1.4;
}


/* ===============================
   COMMENT INPUT AREA
================================ */

.comment-input-area {
    padding: 12px 15px 70px 15px;
    background: #141414;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #222;
    position: sticky;
    bottom: 0;
    backdrop-filter: blur(8px);
}

    /* INPUT */

    .comment-input-area input {
        flex: 1;
        background: #000;
        border: 1px solid #333;
        border-radius: 25px;
        padding: 12px 18px;
        color: #fff;
        outline: none;
        font-size: 14px;
        transition: .25s;
    }

        .comment-input-area input:focus {
            border-color: #a020f0;
            box-shadow: 0 0 10px rgba(160,32,240,.4);
        }


    /* SEND BUTTON */

    .comment-input-area button {
        background: linear-gradient(135deg,#a020f0,#ff00ff);
        box-shadow: 0 0 10px rgba(160,32,240,.5);
        border: none;
        color: white;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: .25s;
    }

        .comment-input-area button:hover {
            transform: scale(1.1);
            box-shadow: 0 0 18px rgba(255,0,255,.8);
        }


/* ===============================
   MOBILE RESPONSIVE
================================ */

@media (max-width:768px) {

    .comment-modal {
        height: 90dvh;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }

    .comment-input-area {
        padding: 12px 15px 80px 15px;
    }
}


/* ===============================
   SMALL PHONE FIX
================================ */

@media (max-width:420px) {

    .comment-user {
        font-size: 12px;
    }

    .comment-text {
        font-size: 12px;
    }

    .comment-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}