﻿/* ================================== */
/* ตัวอย่างรายงาน */
/* ================================== */

.layout-rpt-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0px, 1fr));
    gap: 30px;
}

@media (max-width: 991px) {
    .layout-rpt-preview {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
}

@media (min-width: 992px) and (max-width: 1023px) {
    .layout-rpt-preview {
        display: grid;
        grid-template-columns: repeat(2, minmax(0px, 1fr));
        gap: 30px;
    }
}

.layout-rpt-preview .card {
    /*border: 1px solid #dce2e7;*/
    border-radius: 20px;
    border: 0.5px solid rgba(120, 130, 150, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 0 0 0.5px rgba(120, 130, 150, 0.08);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

    .layout-rpt-preview .card:hover {
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.11), 0 0 0 0.5px rgba(120, 130, 150, 0.13);
    }

    .layout-rpt-preview .card .card-body {
        /*border-top: 1px solid #dce2e7;*/
    }

    .layout-rpt-preview .card .card-img {
        /*padding: 0.8rem 0.8rem 1.5rem 0.8rem;*/
        /*padding: 0 0 1.5rem 0;*/
        padding: 0.8rem;
        /*background-color: #f0f2f4;*/
    }

    .layout-rpt-preview .card .card-img-preview {
        background: radial-gradient(circle at bottom left, #dce9ff, transparent 40%), #eef5ff;
        border-radius: 20px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        height: 260px;
    }

    .layout-rpt-preview .card .card-img .card-img-preview a {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        width: auto;
        height: auto;
        max-height: 85%;
        max-width: 80%;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 12px 25px rgba(0, 0, 0, .12);
    }

        .layout-rpt-preview .card .card-img .card-img-preview a img {
            /*box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);*/
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 12px 25px rgba(0,0,0,.12);
        }

    .layout-rpt-preview .card .card-head {
        margin-bottom: 12px;
        display: flex;
        flex-direction: column;
    }

    .layout-rpt-preview .card .card-title {
        margin: 0;
        padding: 0 0 6px 0;
        transition: all 0.3s ease;
        font-family: 'Prompt';
        font-weight: 600;
        font-size: 15px;
        letter-spacing: 0.2px;
        color: #121a35;
    }

    .layout-rpt-preview .card .card-subtitle {
        margin: 0;
        padding: 0;
        transition: all 0.3s ease;
        font-family: 'Prompt';
        font-weight: 500;
        font-size: 12px;
        color: #a3a7aa;
        line-height: 1;
        letter-spacing: 0.2px;
    }

    .layout-rpt-preview .card .card-body .card-text {
        margin-top: 10px;
        font-size: 13px;
        color: #838fa5;
    }

    .layout-rpt-preview .card .card-img-top {
        /*border-radius: 10px;*/
        border-radius: 0;
    }

/* ============================ */
/* BADGE */
/* ============================ */

.badge-group {
    display: flex;
    gap: 8px;
}

.badge {
    padding: 6px 10px;
    border-radius: 99px;
    font-size: 11px;
    letter-spacing: 0.2px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-pdf {
    /*background-color: #FDE2E2;*/
    /*color: #B42318;*/
    background-color: #fdeeef;
    color: #eb3540;
    /*border: 0.5px solid #F1AEB5;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-excel {
    background-color: #DCFCE7;
    color: #166534;
    /*border: 0.5px solid #A3CFBB;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

    .badge-pdf span,
    .badge-excel span {
        line-height: 1;
    }

/* ===================================== */
/* CUSTOM MODAL */
/* ===================================== */
.modal-content {
}

.modal-header {
    padding: 30px;
}

.modal-body {
    padding: 30px;
}




/* ===================================== */
/* DROPZONE (DRAG & DROP) */
/* ===================================== */

#wrap {
    padding: 1.5rem 0;
    /*max-width: 600px;*/
    width: 100%;
    margin: 0 auto;
}

    #wrap p {
        margin: 0;
    }

#dropzone {
    border: 1.5px dashed #cbd5e1;
    border-radius: 24px;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, transform .2s ease, box-shadow .25s ease;
    padding: 2.2rem;
    background: linear-gradient( 145deg, #ffffff, #f8fafc );
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06), inset 0 1px 0 rgba(255,255,255,.8);
}

    #dropzone:hover {
        border-color: #93c5fd;
        box-shadow: 0 14px 40px rgba(59,130,246,.12), inset 0 1px 0 rgba(255,255,255,.9);
        transform: translateY(-2px);
    }

    #dropzone.dragover {
        background: linear-gradient( 145deg, #eff6ff, #dbeafe );
        border-color: #3b82f6;
        box-shadow: 0 0 0 5px rgba(59,130,246,.12), 0 20px 45px rgba(59,130,246,.18);
    }

    #dropzone .icon-wrap {
        width: 64px;
        height: 64px;
        border-radius: 20px;
        background: linear-gradient( 145deg, #ffffff, #eef2ff );
        border: 1px solid #e2e8f0;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 20px rgba(15,23,42,.08);
    }

        #dropzone .icon-wrap i {
            font-size: 28px;
            color: #3b82f6;
        }

        #dropzone .icon-wrap svg {
            font-size: 28px;
            color: #3b82f6;
        }

    #dropzone p.main {
        font-size: 15px;
        font-weight: 600;
        color: #0f172a;
    }

    #dropzone p.sub {
        font-size: 13px;
        color: #64748b;
    }

    #dropzone span.browse {
        font-size: 13px;
        font-weight: 600;
        color: #2563eb;
        background: #eff6ff;
        padding: 6px 16px;
        border-radius: 999px;
        margin-top: 5px;
        border: 1px solid #bfdbfe;
    }

/* file list */

#file-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 6px 18px rgba(15,23,42,.05);
    transition: .2s ease;
}

    .file-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 28px rgba(15,23,42,.09);
    }

.file-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.file-thumb {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .file-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .file-thumb i {
        font-size: 22px;
        color: #64748b;
    }

.file-meta {
    flex: 1;
    min-width: 0;
}

    .file-meta .name {
        font-size: 14px;
        font-weight: 600;
        color: #0f172a;
    }

    .file-meta .size {
        font-size: 12px;
        color: #64748b;
    }

/* status */

.file-status {
    font-size: 12px;
    font-weight: 600;
}

    .file-status.done {
        color: #16a34a;
    }

    .file-status.progress {
        color: #64748b;
    }

/* remove */

.btn-remove {
    background: #f8fafc;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: .2s;
    font-size: 14px;
}

    .btn-remove:hover {
        background: #fee2e2;
        color: #ef4444;
    }

/* progress */

.track {
    height: 5px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient( 90deg, #60a5fa, #2563eb );
    transition: width .3s ease;
}

    .bar.done {
        background: linear-gradient( 90deg, #34d399, #16a34a );
    }

/* empty */

#empty-hint {
    margin-top: .8rem;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}

/* ================================== */
/* modal-dialog-scrollable  */
/* ================================== */

.modal-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}


    /* scrollbar */
    .modal-body::-webkit-scrollbar {
        width: 6px;
    }

    .modal-body::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }

    .modal-body::-webkit-scrollbar-track {
        background: transparent;
    }

@media (min-width: 992px) {
    .modal.show .modal-dialog {
        -webkit-transform: translate(0);
        transform: translate(0);
    }
}

/* ================================== */
/* CUSTOM SCROLL  */
/* ================================== */

/* --- custom scroll ของ modal --- */
.custom-scroll {
    scrollbar-width: thin;
    scrollbar-color: #EFF2F6 #FFFFFF;
}

    .custom-scroll::-webkit-scrollbar {
        width: 6px;
    }

    .custom-scroll::-webkit-scrollbar-track {
        background: #F4F6F9;
        border-radius: 10px;
    }

    .custom-scroll::-webkit-scrollbar-thumb {
        background-color: #B8C5D6;
        border-radius: 10px;
        border: 1px solid #F4F6F9;
    }

        .custom-scroll::-webkit-scrollbar-thumb:hover {
            background-color: #9AACBF;
        }

/* --- custom scroll ของ modal (ถ้าไม่อยากให้แสดง scrollbar) --- */
.custom-scroll-none {
    -ms-overflow-style: none; /*IE/Edge */
    scrollbar-width: none; /*Firefox */
}

.custom-scroll::-webkit-scrollbar {
    display: none;
}

/* =================================== */

button.close {
    padding: 0;
    cursor: pointer;
    background: 0 0;
    border: 0;
    font-size: 16px;
    -webkit-appearance: none;
    /* position: absolute; */
    /* right: 15px; */
    z-index: 55;
}

/* ================================== */

.hidden {
    display: none;
}


/* =================================== */

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    width: 28px;
    border: 0;
    background: none;
}

    .btn-action svg {
        /*width: 24px;
        height: 24px;*/
        width: 22px;
        height: 22px;
    }

.btn-action-edit {
    /*color: #3F78B5;*/
    color: rgba(10, 132, 255, 0.85);
    transition: all 0.2s ease;
}

    .btn-action-edit:hover {
        /*color: #2F5F96;*/
        color: #0a84ff;
        transform: scale(1.1);
    }

.btn-action-delete {
    /*color: #C94A4A;*/
    color: rgba(255, 69, 58, 0.85);
    transition: all 0.2s ease;
}

    .btn-action-delete:hover {
        /*color: #A83A3A;*/
        color: #ff453a;
        transform: scale(1.1);
    }

/* ==================================== */

table {
    border: none;
    border-width: 0;
    border-collapse: collapse;
    border-spacing: 0;
}

    table td,
    table th {
        border: none;
    }

.table-header {
    height: 52px;
    background: linear-gradient( 180deg, #F3F6FB 0%, #E6ECF7 100% );
    border-bottom: 1px solid #D6DEEE;
}

    .table-header > th {
        text-align: center;
        vertical-align: middle;
        font-size: 14.5px;
        font-weight: 600;
        color: #2F3E4E;
        letter-spacing: 0.3px;
        padding: 12px 10px;
        white-space: nowrap;
    }

    .table-header a {
        color: #2F3E4E;
        font-size: 14.5px;
    }

/* ตัวตาราง */
.table-modern {
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(63, 120, 181, 0.12);
}

    /* Header */
    .table-modern thead {
        background: linear-gradient(180deg, #F3F6FB, #E6ECF7);
    }

        .table-modern thead th {
            font-size: 14px;
            font-weight: 600;
            color: #2F3E4E;
            text-align: center;
            padding: 14px 12px;
            border-bottom: 1px solid #D6DEEE;
            white-space: nowrap;
        }

    /* Body */
    .table-modern tbody td {
        font-size: 14px;
        color: #2F3E4E;
        /*padding: 12px;*/
        padding: 8px;
        vertical-align: middle;
        border-top: 1px solid #EEF2F8;
    }

    /* Zebra */
    .table-modern tbody tr:nth-child(even) {
        background: #F9FBFF;
    }

    /* Hover */
    .table-modern tbody tr:hover {
        background: #EDF3FF;
        transition: background .15s ease;
    }

.table-header-sub {
    height: 50px;
    /*background: linear-gradient( 180deg, #F3F6FB 0%, #E6ECF7 100% );*/
    /*background: linear-gradient(180deg, #FAFCFF 0%, #EEF3FB 100%);*/
    /*background: linear-gradient(180deg, #F5F9FF 0%, #E8EFF9 100%);*/
    background: linear-gradient(180deg, #F6F7F9 0%, #ECEFF3 100%);
    border-bottom: 1px solid #D6DEEE;
}

    .table-header-sub > th {
        text-align: center;
        vertical-align: middle;
        font-size: 13.2px;
        font-weight: 600;
        /*color: #2F3E4E;*/
        /*color: #6a7282;*/
        color: #64686B;
        letter-spacing: 0.3px;
        padding: 12px 10px;
        white-space: nowrap;
    }

    .table-header-sub a {
        /*color: #2F3E4E;*/
        /*color: #6a7282;*/
        color: #64686B;
        font-size: 13.2px;
    }

/* ตัวตารางย่อย */
.table-modern-sub {
    border-collapse: separate;
    border-spacing: 0;
    background: #FBFCFE;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

    /* Header ตารางย่อย */
    .table-modern-sub thead {
        background: linear-gradient(180deg, #F6F7F9, #ECEFF3);
    }

        .table-modern-sub thead th {
            font-size: 13px;
            font-weight: 600;
            color: #3B4652;
            text-align: center;
            padding: 10px 10px;
            border-bottom: 1px solid #E2E6ED;
            white-space: nowrap;
        }

    /* Body */
    .table-modern-sub tbody td {
        font-size: 13.5px;
        color: #3B4652;
        padding: 7px;
        vertical-align: middle;
        border-top: 1px solid #F0F2F6;
    }

    /* Zebra */
    .table-modern-sub tbody tr:nth-child(even) {
        background: #F7F8FA;
    }

    /* Hover */
    .table-modern-sub tbody tr:hover {
        background: #EEF1F5;
        transition: background .15s ease;
    }

/* ======================================= */

/* MIN-WIDTH เอาไปใช้แบบ So EZ */

.mn-w-40 {
    min-width: 40px;
}

.mn-w-50 {
    min-width: 50px;
}

.mn-w-60 {
    min-width: 60px;
}

.mn-w-70 {
    min-width: 70px;
}

.mn-w-80 {
    min-width: 80px;
}

.mn-w-90 {
    min-width: 90px;
}

.mn-w-100 {
    min-width: 100px;
}

.mn-w-110 {
    min-width: 110px;
}

.mn-w-120 {
    min-width: 120px;
}

.mn-w-130 {
    min-width: 130px;
}

.mn-w-140 {
    min-width: 140px;
}

.mn-w-160 {
    min-width: 160px;
}

.mn-w-180 {
    min-width: 180px;
}

.mn-w-200 {
    min-width: 200px;
}

.mn-w-220 {
    min-width: 220px;
}

.mn-w-240 {
    min-width: 240px;
}

.mn-w-260 {
    min-width: 260px;
}

.mn-w-280 {
    min-width: 280px;
}

.mn-w-300 {
    min-width: 300px;
}

/* ---------------------------------- */


/* MAX-WIDTH เอาไปใช้แบบ So EZ */

.mx-w-50 {
    max-width: 50px;
}

.mx-w-60 {
    max-width: 60px;
}

.mx-w-70 {
    max-width: 70px;
}

.mx-w-80 {
    max-width: 80px;
}

.mx-w-90 {
    max-width: 90px;
}

.mx-w-100 {
    max-width: 100px;
}

.mx-w-110 {
    max-width: 110px;
}

.mx-w-120 {
    max-width: 120px;
}

.mx-w-130 {
    max-width: 130px;
}

.mx-w-140 {
    max-width: 140px;
}

.mx-w-160 {
    max-width: 160px;
}

.mx-w-180 {
    max-width: 180px;
}

.mx-w-200 {
    max-width: 200px;
}

/* ======================================== */

.zoom-btn {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #3e71e1;
    font-size: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,.15), inset 0 1px 1px rgba(255,255,255,.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s cubic-bezier(.4,0,.2,1), background .25s ease, color .25s ease, box-shadow .25s ease;
    overflow: hidden;
}

    .zoom-btn i {
        transition: transform .25s ease;
    }

    .zoom-btn:hover {
        background: linear-gradient( 135deg, #3e71e1, #6d8ff5 );
        color: white;
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 10px 24px rgba(62,113,225,.25);
    }

        .zoom-btn:hover i {
            transform: scale(1.02) rotate(3deg);
        }

    .zoom-btn:active {
        transform: scale(.88);
        box-shadow: 0 5px 15px rgba(62,113,225,.25);
    }

    .zoom-btn:focus {
        outline: none !important;
        box-shadow: none !important;
    }

    .zoom-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(62,113,225,.25), 0 10px 24px rgba(62,113,225,.25);
    }

    .zoom-btn::after {
        content: "";
        position: absolute;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255,255,255,.45);
        transform: translate(-50%,-50%);
        left: 50%;
        top: 50%;
        opacity: 0;
        transition: width .35s ease, height .35s ease, opacity .35s ease;
    }


    .zoom-btn:active::after {
        width: 80px;
        height: 80px;
        opacity: 1;
    }

/* ================================== */

.custom-footer {
    padding: 60px 50px;
    background: radial-gradient(130% 130% at 80% 0%, #325373 0%, #102b47 35%, #0a233b 100%);
}

    .custom-footer h4 {
        color: #ffffff;
        font-size: 14px;
        margin-bottom: 20px;
        font-weight: 500;
        letter-spacing: 0.2px;
    }

    .custom-footer p {
        color: #9f9fa9;
        font-size: 13px;
        margin: 0;
        font-weight: 500;
    }

.footer-bg {
    background: linear-gradient(to bottom, rgba(35, 6, 15, 0) 28%, rgba(35, 6, 15, 0.35) 64%, rgba(35, 6, 15, 0.62) 100%);
}

.red-glow {
    pointer-events: none;
    position: absolute;
    left: -64px;
    bottom: 0;
    width: 18rem;
    height: 18rem;
    border-radius: 9999px;
    opacity: 0.5;
    filter: blur(64px);
    /*background: radial-gradient( circle, #ef4444 0%, transparent 70% );*/
    background: radial-gradient(circle, #9f8c8c 0%, transparent 70%);
}

.img-logo {
    width: 80px;
}

.footer-layout {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-title {
}

.footer-menu-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0px, auto));
    gap: 70px;
}

.footer-menu {
    display: flex;
    flex-direction: column;
}

    .footer-menu a:hover {
        font-weight: 500;
    }

.footer-icon-layout {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    border: 1px solid #ffffff1a;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #d4d4d8;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .footer-icon:hover i {
        color: #d4d4d8;
    }


    .footer-icon:hover {
        background-color: rgba(255, 255, 255, 0.22);
        border-color: rgba(255,255,255,0.35);
        transform: translateY(-3px);
        box-shadow: 0 8px 18px rgba(0,0,0,0.25), 0 0 12px rgba(255,255,255,0.15);
    }

    .footer-icon:active {
        transform: scale(0.92);
        background-color: rgba(255,255,255,0.3);
        box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    }

    .footer-icon:focus i {
        color: #d4d4d8;
    }

    .footer-icon,
    .footer-icon:hover {
        text-decoration: none;
    }

.custom-footer hr {
    background-color: #ffffff;
    opacity: 0.2;
}

.copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    width: 100%;
}

    .copyright p {
        padding: 0;
    }

/* ==================================== */

@media (min-width: 1024px) and (max-width: 1200px) {
    .custom-footer {
        width: 100%;
    }

        .custom-footer .container {
            padding: 0 30px
        }
}

@media (max-width: 1023px) {
    .footer-layout {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .copyright {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        width: 100%;
        flex-direction: column-reverse;
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .footer-layout {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .footer-menu-group {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
}

/* ==================================== */

.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.video-box {
    width: 800px;
    max-width: 90%;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

    .video-box video {
        width: 100%;
        display: block;
    }

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    font-size: 25px;
    cursor: pointer;
}

.video-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 300px;
    z-index: 999;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
}


    .video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

.custom-modal {
    margin-top: 120px;
}

/* ============================= */

.video-card {
    position: fixed;
    top: 120px;
    right: 20px;
    width: 360px;
    height: auto;
    background: #ffffff8c;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    z-index: 9999;
    transition: .35s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

    /* ซ่อนออกข้าง */
    .video-card.hide {
        right: -400px;
    }

    /* iframe */

    .video-card iframe {
        width: 100%;
        aspect-ratio: 16 / 9;
        height: 180px;
        border: 0;
        border-radius: 14px;
        object-fit: cover;      
    }

.video-header {
    display: flex;
    align-items: center;
    padding: 15px;
    font-weight: 500;
    justify-content: space-between;
}

    .video-header g {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .video-header span {
        color: #0a0a0ab3;
        font-size: 12px
    }

    .video-header .dot {
        height: 6px;
        width: 6px;
        background-color: #FF0000;
        border-radius: 50%;
        display: inline-block;
        box-shadow: 0 0 10px rgba(255,0,0,.8);
        animation: dotBlink 1.2s infinite ease-in-out;
    }

/* animation */
@keyframes dotBlink {

    0% {
        opacity: .4;
        transform: scale(.8);
        box-shadow: 0 0 5px rgba(255,0,0,.5);
    }


    50% {
        opacity: 1;
        transform: scale(1.25);
        box-shadow: 0 0 14px rgba(255,0,0,1);
    }


    100% {
        opacity: .4;
        transform: scale(.8);
        box-shadow: 0 0 5px rgba(255,0,0,.5);
    }
}

.video-title {
    display: flex;
    flex-direction: column;
    padding: 15px;
    font-weight: 600;
}

    .video-title h3 {
        font-size: 14px;
        color: #0a0a0a;
        font-weight: 500;
    }

    .video-title p {
        font-size: 11px;
        color: #0a0a0a8c;
        margin: 0;
    }

.video-content {
    padding: 0 12px;
}

/* ปุ่มปิด */
.video-close {
    /*position: absolute;
    right: 8px;
    top: 8px;*/
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgb(225 225 225 / 60%);
    color: rgba(10, 10, 10, 0.6);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

/* ปุ่มเรียกกลับ */

/*.video-open {
    position: fixed;
    top: 120px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #111;
    color: white;
    display: none;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}*/

.video-open {
    position: fixed;
    top: 120px;
    right: 20px;
    width: 44px;
    height: 44px;
    z-index: 9999;
    border-radius: 50%;
    /*border: 1px solid rgba(255,255,255,.22);*/
    border: 0;
    background: linear-gradient( 145deg, #ff8d8d, #ff0033 );
    color: #e6f7ff;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    font-size: 13px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 45px rgba(0,0,0,.45), inset 0 1px 2px rgba(255,255,255,.3);
    transition: .35s cubic-bezier(.2,.8,.2,1);
}


    /* glow */
    .video-open::before {
        content: "";
        position: absolute;
        inset: -8px;
        border-radius: inherit;
        opacity: 0;
        transition: .35s ease;
        background: radial-gradient( circle, rgba(139,92,246,.45), transparent 65% );
    }


    /* icon */
    .video-open i {
        transition: .35s ease;
    }


    /* hover */
    .video-open:hover {
        transform: translateY(-6px) scale(1.08);
        color: #ffffff;
        background: linear-gradient( 145deg, #818cf8, #312e81 );
        box-shadow: 0 20px 55px rgba(99,102,241,.55), 0 0 30px rgba(139,92,246,.45), inset 0 1px 3px rgba(255,255,255,.45);
    }


        .video-open:hover::before {
            opacity: 1;
            filter: blur(10px);
            /*background: radial-gradient( circle, rgba(147,197,253,.4), transparent 65% );*/
        }


    /* click */
    .video-open:active {
        transform: scale(.94);
    }


/* mobile */
@media(max-width:576px) {

    .video-open {
        width: 40px;
        height: 40px;
        right: 20px;
        bottom: 40px;
        font-size: 14px;
    }
}

    .video-open.show {
        display: flex;
    }

.icon-rotate {
    rotate: 90deg;
}


@media (min-width: 576px) and (max-width: 1023px) {
    .video-card {
        position: fixed;
        top: 120px;
        right: 20px;
        width: 300px;
        height: auto;
    }
}


@media (max-width: 575px) {
    .video-card {
        position: fixed;
        top: 120px;
        right: unset;
        width: 360px;
        height: auto;
        background: #ffffff8c;
        border-radius: 28px;
        overflow: hidden;
        box-shadow: 0 20px 50px rgba(0,0,0,.25);
        z-index: 9999;
        transition: .35s ease;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}
