
.file-dnd * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.file-dnd {
    width: 100%;
    height: 250px;
    border: 1px solid rgba(255, 211, 78, .45);
    border-radius: 10px;
    padding: 15px;

    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: auto;

    background:
        linear-gradient(
            145deg,
            #02090b 0%,
            #052f33 55%,
            #063b40 100%
        );

    box-shadow:
        0 0 18px rgba(0, 220, 232, .15),
        inset 0 1px 0 rgba(255, 211, 78, .08);
}

.file-dnd input {
    display: none;
}

/* AREA UPLOAD */
.file-dnd .before-upload {
    border: 1px dashed rgba(0, 220, 232, .70);
    flex: 1;
    border-radius: 7px;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            rgba(0, 220, 232, .06),
            rgba(255, 211, 78, .03)
        );

    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.file-dnd .before-upload:hover {
    border-color: #ffd34e;

    background:
        linear-gradient(
            135deg,
            rgba(0, 220, 232, .12),
            rgba(255, 211, 78, .07)
        );

    box-shadow:
        inset 0 0 20px rgba(0, 220, 232, .08),
        0 0 12px rgba(255, 211, 78, .10);
}

.file-dnd .before-upload > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.file-dnd .before-upload > div h4 {
    width: 150px;
    color: #ffd34e;
    font-weight: 700;

    text-shadow:
        0 0 8px rgba(255, 211, 78, .25);
}

.file-dnd .before-upload > div p {
    font-size: 12px !important;
    color: rgba(255, 255, 255, .72);
}

/* ICON JIKA ADA SVG */
.file-dnd .before-upload svg {
    fill: #00dce8;
    color: #00dce8;

    filter:
        drop-shadow(0 0 5px rgba(0, 220, 232, .45));
}

/* DRAG ACTIVE */
.file-dnd.active .before-upload {
    border: 1px solid #ffd34e;

    background:
        linear-gradient(
            135deg,
            rgba(0, 220, 232, .20),
            rgba(255, 211, 78, .10)
        );

    box-shadow:
        0 0 20px rgba(0, 220, 232, .25),
        inset 0 0 20px rgba(255, 211, 78, .06);
}

/* SETELAH UPLOAD */
.file-dnd .after-upload {
    position: relative;
    display: none;

    background: #02090b;
    border-radius: 7px;

    border:
        1px solid rgba(0, 220, 232, .30);
}

.file-dnd .after-upload img {
    width: 100%;
    border-radius: 5px;
    max-height: 180px;
    object-fit: contain;
    display: block;
}

/* TOMBOL HAPUS */
.file-dnd .after-upload .clear-btn {
    position: absolute;
    top: 10px;
    right: 10px;

    background:
        linear-gradient(
            135deg,
            #02090b,
            #006d75
        );

    width: 22px;
    height: 22px;

    text-align: center;
    line-height: 20px;

    border-radius: 50%;
    border: 1px solid #ffd34e;

    color: #ffd34e;
    cursor: pointer;
    font-size: 14px;

    box-shadow:
        0 0 10px rgba(0, 220, 232, .40);

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.file-dnd .after-upload .clear-btn:hover {
    background: #00aeb8;
    color: #ffffff;

    transform: scale(1.1);

    box-shadow:
        0 0 15px rgba(0, 220, 232, .60),
        0 0 8px rgba(255, 211, 78, .35);
}

/* =========================
   VIDEO BUTTON
   CYAN + GOLD + BLACK
   ========================= */
.view-video {
    display: block;
    margin: auto;
    padding: 7px 16px;
    font-size: 16px;
    font-weight: bold;
    color: #02090b;
    cursor: pointer;

    border: 1px solid #ffd34e;
    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #00dce8 0%,
            #00aeb8 48%,
            #ffd34e 100%
        );

    box-shadow:
        0 0 12px rgba(0, 220, 232, .35),
        0 0 8px rgba(255, 211, 78, .22);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}

.view-video:hover {
    transform: translateY(-2px);

    box-shadow:
        0 0 20px rgba(0, 220, 232, .50),
        0 0 15px rgba(255, 211, 78, .35);

    filter: brightness(1.08);
}

.view-video .icon-play {
    fill: #02090b;
    vertical-align: middle;
}


/* =========================
   VIDEO MODAL
   ========================= */
.video-modal {
    display: none;
    position: fixed;

    background:
        radial-gradient(
            circle at center,
            rgba(0, 220, 232, .12),
            rgba(0, 0, 0, .92) 70%
        );

    width: 100%;
    height: 100%;
    overflow: auto;
    z-index: 9999;
    top: 0;
    left: 0;

    backdrop-filter: blur(5px);
}


/* =========================
   CLOSE BUTTON
   ========================= */
.close-video {
    position: absolute;
    right: 9px;
    top: 8%;
    z-index: 2;
    padding: 6px;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #052f33,
            #02090b
        );

    border: 1px solid #ffd34e;
    border-radius: 50%;

    box-shadow:
        0 0 12px rgba(0, 220, 232, .35),
        0 0 8px rgba(255, 211, 78, .25);

    transition: all .2s ease;
}

.close-video:hover {
    background:
        linear-gradient(
            135deg,
            #00aeb8,
            #052f33
        );

    transform: scale(1.08);

    box-shadow:
        0 0 18px rgba(0, 220, 232, .55),
        0 0 12px rgba(255, 211, 78, .35);
}

.close-video .icon {
    width: 30px;
    height: 30px;
    fill: #ffd34e;
    color: #ffd34e;
}


/* =========================
   RESPONSIVE IFRAME
   ========================= */
.video-container {
    position: relative;
    padding-bottom: 48.25%;
    padding-top: 35px;
    height: 0;

    background: #02090b;

    border:
        1px solid rgba(255, 211, 78, .45);

    border-radius: 12px;

    box-shadow:
        0 0 25px rgba(0, 220, 232, .20),
        0 0 12px rgba(255, 211, 78, .12),
        0 10px 30px rgba(0, 0, 0, .55);

    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 60%;
    left: 0;
    width: 100%;
    height: 100%;
}


/* =========================
   YOUTUBE THUMBNAIL
   ========================= */
.youtube {
    background:
        linear-gradient(
            145deg,
            #02090b,
            #052f33
        );

    margin-bottom: 30px;
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    cursor: pointer;
    width: 100%;

    border:
        1px solid rgba(255, 211, 78, .38);

    border-radius: 12px;

    box-shadow:
        0 0 18px rgba(0, 220, 232, .15),
        0 8px 25px rgba(0, 0, 0, .40);
}

.swiper-slide .youtube {
    max-width: 480px;
}


/* =========================
   THUMBNAIL IMAGE
   ========================= */
.youtube img {
    width: 100%;
    top: -16.82%;
    left: 0;
    opacity: .78;

    transition:
        opacity .3s ease,
        transform .4s ease,
        filter .3s ease;

    filter:
        brightness(.75)
        saturate(1.08);
}

.youtube:hover img {
    opacity: .92;
    transform: scale(1.025);

    filter:
        brightness(.85)
        saturate(1.15);
}


/* =========================
   PLAY BUTTON
   ========================= */
.youtube .play-button {
    width: 90px;
    height: 60px;

    background:
        linear-gradient(
            135deg,
            #02090b 0%,
            #006d75 55%,
            #00dce8 100%
        );

    border:
        1px solid #ffd34e;

    box-shadow:
        0 0 25px rgba(0, 220, 232, .55),
        0 0 12px rgba(255, 211, 78, .30),
        0 8px 25px rgba(0, 0, 0, .55);

    z-index: 1;
    opacity: .95;
    border-radius: 10px;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


/* PLAY TRIANGLE */
.youtube .play-button:before {
    content: "";

    border-style: solid;
    border-width:
        15px
        0
        15px
        26px;

    border-color:
        transparent
        transparent
        transparent
        #ffd34e;

    filter:
        drop-shadow(
            0 0 5px rgba(255, 211, 78, .55)
        );
}


/* =========================
   HOVER PLAY BUTTON
   ========================= */
.youtube:hover .play-button {
    background:
        linear-gradient(
            135deg,
            #006d75,
            #00dce8
        );

    box-shadow:
        0 0 35px rgba(0, 220, 232, .70),
        0 0 18px rgba(255, 211, 78, .45),
        0 10px 30px rgba(0, 0, 0, .60);
}


/* =========================
   POSITIONING
   ========================= */
.youtube img,
.youtube .play-button {
    cursor: pointer;
}

.youtube img,
.youtube iframe,
.youtube .play-button,
.youtube .play-button:before {
    position: absolute;
}

.youtube .play-button,
.youtube .play-button:before {
    top: 50%;
    left: 50%;
    transform:
        translate3d(
            -50%,
            -50%,
            0
        );
}

.youtube iframe {
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}


/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px) {

    .view-video {
        font-size: 14px;
        padding: 6px 13px;
    }

    .youtube .play-button {
        width: 72px;
        height: 48px;
    }

    .youtube .play-button:before {
        border-width:
            12px
            0
            12px
            21px;
    }

    .close-video {
        right: 12px;
    }
}
