/* =========================================
   YOUTUBE SUBSCRIBE POPUP
========================================= */

.youtube-popup-overlay {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(10, 10, 15, 0.68);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .35s ease,
        visibility .35s ease;

}


/* =========================================
   OPEN
========================================= */

.youtube-popup-overlay.show {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}


/* =========================================
   POPUP
========================================= */

.youtube-popup {

    position: relative;

    width: min(450px, 100%);

    padding: 42px 32px 25px;

    text-align: center;

    background:
        linear-gradient(180deg,
            #ffffff 0%,
            #ffffff 75%,
            #fffafa 100%);

    border: 1px solid rgba(255, 255, 255, .8);

    border-radius: 28px;

    box-shadow:
        0 35px 90px rgba(0, 0, 0, .32);

    overflow: hidden;

    transform:
        translateY(35px) scale(.92);

    transition:
        transform .45s cubic-bezier(.2, .8, .2, 1);

}


.youtube-popup-overlay.show .youtube-popup {

    transform:
        translateY(0) scale(1);

}


/* =========================================
   TOP RED LINE
========================================= */

.youtube-popup::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(90deg,
            #ff0000,
            #ff4b4b,
            #ff0000);

}


/* =========================================
   DECORATIONS
========================================= */

.youtube-popup-decoration {

    position: absolute;

    border-radius: 50%;

    pointer-events: none;

}


.decoration-one {

    width: 150px;
    height: 150px;

    top: -85px;
    right: -70px;

    background:
        rgba(255, 0, 0, .06);

}


.decoration-two {

    width: 120px;
    height: 120px;

    bottom: -70px;
    left: -60px;

    background:
        rgba(255, 0, 0, .045);

}


/* =========================================
   CLOSE BUTTON
========================================= */

.youtube-popup-close {

    position: absolute;

    top: 14px;
    right: 14px;

    width: 38px;
    height: 38px;

    border: none;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f5f5f5;

    color: #555;

    font-size: 17px;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;

}


.youtube-popup-close:hover {

    background: #ff0000;

    color: #fff;

    transform: rotate(90deg);

}


/* =========================================
   YOUTUBE ICON
========================================= */

.youtube-popup-icon-wrap {

    position: relative;

    width: fit-content;

    margin: 0 auto 17px;

}


.youtube-popup-icon {

    width: 78px;
    height: 78px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 23px;

    background:
        linear-gradient(145deg,
            #ff0000,
            #d90000);

    color: #fff;

    font-size: 40px;

    box-shadow:
        0 13px 32px rgba(255, 0, 0, .25);

    animation:
        youtubeIconFloat 3s ease-in-out infinite;

}


@keyframes youtubeIconFloat {

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

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

}


/* =========================================
   LIVE DOT
========================================= */

.youtube-live-dot {

    position: absolute;

    right: -3px;
    bottom: -3px;

    width: 17px;
    height: 17px;

    border-radius: 50%;

    background: #19b65a;

    border: 3px solid #fff;

    box-shadow:
        0 0 0 4px rgba(25, 182, 90, .12);

}


/* =========================================
   BADGE
========================================= */

.youtube-popup-badge {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 11px;

    padding: 6px 13px;

    border-radius: 50px;

    background:
        #fff0f0;

    color:
        #dc0000;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;

}


.youtube-popup-badge i {

    font-size: 12px;

}


/* =========================================
   TITLE
========================================= */

.youtube-popup h2 {

    margin: 0 0 12px;

    color: #18202a;

    font-family: 'Poppins', sans-serif;

    font-size: 27px;

    font-weight: 700;

    line-height: 1.25;

}


.youtube-popup h2 span {

    color: #e00000;

}


/* =========================================
   DESCRIPTION
========================================= */

.youtube-popup-description {

    max-width: 365px;

    margin:
        0 auto 20px;

    color: #6c6c6c;

    font-family: 'Poppins', sans-serif;

    font-size: 13px;

    line-height: 1.7;

}


/* =========================================
   CHANNEL STATISTICS
========================================= */

.youtube-channel-stats {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;

    margin:
        0 0 18px;

}


.youtube-stat {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px;

    text-align: left;

    background: #fafafa;

    border:
        1px solid #eeeeee;

    border-radius: 15px;

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}


.youtube-stat:hover {

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, .07);

}


/* =========================================
   STAT ICON
========================================= */

.youtube-stat-icon {

    flex-shrink: 0;

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #fff0f0;

    color: #e00000;

    font-size: 14px;

}


.youtube-stat-icon.views-icon {

    background: #fff7e9;

    color: #e58a00;

}


/* =========================================
   STAT CONTENT
========================================= */

.youtube-stat-content {

    min-width: 0;

    display: flex;

    flex-direction: column;

}


.youtube-stat-number {

    min-height: 21px;

    color: #202020;

    font-size: 16px;

    font-weight: 700;

    line-height: 1.3;

}


.youtube-stat-content span {

    color: #888;

    font-size: 10px;

    font-weight: 500;

}


/* =========================================
   SUBSCRIBE BUTTON
========================================= */

.youtube-subscribe-btn {

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 100%;

    min-height: 53px;

    padding: 13px 18px;

    border-radius: 14px;

    background:
        linear-gradient(135deg,
            #ff0000,
            #e00000);

    color: #fff;

    text-decoration: none;

    font-family: 'Poppins', sans-serif;

    font-size: 14px;

    font-weight: 600;

    box-shadow:
        0 12px 27px rgba(255, 0, 0, .22);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;

}


.youtube-subscribe-btn:hover {

    background:
        linear-gradient(135deg,
            #e00000,
            #c90000);

    color: #fff;

    transform:
        translateY(-2px);

    box-shadow:
        0 16px 32px rgba(255, 0, 0, .28);

}


.youtube-subscribe-btn>i:first-child {

    font-size: 20px;

}


.youtube-btn-arrow {

    position: absolute;

    right: 17px;

    font-size: 11px !important;

    opacity: .8;

}


/* =========================================
   MAYBE LATER
========================================= */

.youtube-popup-later {

    margin-top: 13px;

    padding: 5px 12px;

    border: none;

    background: transparent;

    color: #888;

    font-family: 'Poppins', sans-serif;

    font-size: 12px;

    cursor: pointer;

    transition:
        color .2s ease;

}


.youtube-popup-later:hover {

    color: #222;

}


/* =========================================
   FOOTER MESSAGE
========================================= */

.youtube-popup-footer {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 9px;

    color: #999;

    font-size: 10px;

}


.youtube-popup-footer i {

    color: #ff0000;

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {

    .youtube-popup-overlay {

        padding: 13px;

    }


    .youtube-popup {

        width: 100%;

        padding:
            37px 20px 21px;

        border-radius: 23px;

    }


    .youtube-popup-icon {

        width: 65px;
        height: 65px;

        border-radius: 19px;

        font-size: 33px;

    }


    .youtube-popup-badge {

        font-size: 9px;

        padding:
            5px 10px;

    }


    .youtube-popup h2 {

        font-size: 22px;

    }


    .youtube-popup-description {

        font-size: 12px;

        line-height: 1.65;

        margin-bottom: 17px;

    }


    .youtube-channel-stats {

        gap: 7px;

    }


    .youtube-stat {

        padding: 9px;

        gap: 7px;

        border-radius: 12px;

    }


    .youtube-stat-icon {

        width: 31px;
        height: 31px;

        border-radius: 9px;

        font-size: 12px;

    }


    .youtube-stat-number {

        font-size: 14px;

    }


    .youtube-stat-content span {

        font-size: 9px;

    }


    .youtube-subscribe-btn {

        min-height: 49px;

        font-size: 13px;

    }


    .youtube-popup-footer {

        font-size: 9px;

    }

}


/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 350px) {

    .youtube-popup {

        padding-left: 15px;
        padding-right: 15px;

    }


    .youtube-popup h2 {

        font-size: 20px;

    }


    .youtube-stat {

        padding: 8px;

    }


    .youtube-stat-icon {

        display: none;

    }

}