.nsd-pvg-thumb-wrap {
    position: relative;
}
.nsd-pvg-thumb {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}
.nsd-pvg-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nsd-pvg-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #e60000;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0,0,0,.28);
    padding-left: 3px;
}
.nsd-pvg-label {
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: 5px;
    padding: 3px 5px;
    border-radius: 4px;
    background: rgba(0,0,0,.72);
    color: #fff;
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
}
.nsd-pvg-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.nsd-pvg-modal.is-open { display: flex; }
.nsd-pvg-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.82);
}
.nsd-pvg-dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 96vw);
    background: #000;
    border-radius: 10px;
    box-shadow: 0 18px 60px rgba(0,0,0,.55);
    overflow: visible;
}
.nsd-pvg-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}
.nsd-pvg-player iframe,
.nsd-pvg-player video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    background: #000;
}
.nsd-pvg-close {
    position: absolute;
    z-index: 2;
    right: -12px;
    top: -12px;
    width: 38px;
    height: 38px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #e60000;
    color: #fff;
    font-size: 27px;
    line-height: 30px;
    cursor: pointer;
}
body.nsd-pvg-modal-open { overflow: hidden; }
.nsd-pvg-header-link > a {
    white-space: nowrap;
}
.nsd-pvg-footer-link {
    text-align: center;
    padding: 12px 15px;
}
.nsd-pvg-footer-link a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 6px;
    background: #e60000;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
}
@media (max-width: 600px) {
    .nsd-pvg-dialog { width: 98vw; }
    .nsd-pvg-close { right: 2px; top: -46px; }
    .nsd-pvg-label { display: none; }
    .nsd-pvg-play { width: 36px; height: 36px; font-size: 16px; }
}

/* V1.0.3 – professional glossy YouTube channel buttons */
.nsd-pvg-header-link {
    display: flex !important;
    align-items: stretch !important;
    margin: 0 5px !important;
}
.nsd-pvg-header-link > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    min-width: 126px !important;
    min-height: 42px !important;
    padding: 8px 16px !important;
    margin: 0 !important;
    border: 1px solid #b90000 !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg,#ff4a4a 0%,#f01414 48%,#cf0000 100%) !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.46), inset 0 -2px 0 rgba(120,0,0,.28), 0 3px 9px rgba(204,0,0,.28) !important;
    text-shadow: 0 1px 1px rgba(0,0,0,.24) !important;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease !important;
}
.nsd-pvg-header-link > a:hover,
.nsd-pvg-header-link > a:focus {
    color: #fff !important;
    filter: brightness(.94) !important;
    transform: translateY(-1px) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(100,0,0,.3), 0 5px 13px rgba(204,0,0,.36) !important;
}
.nsd-pvg-yt-icon {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: 34px !important;
    height: 24px !important;
    border-radius: 7px !important;
    background: linear-gradient(180deg,#fff 0%,#f4f4f4 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 2px 5px rgba(90,0,0,.28) !important;
}
.nsd-pvg-yt-icon > span {
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    margin-left: 3px !important;
    border-top: 6px solid transparent !important;
    border-bottom: 6px solid transparent !important;
    border-left: 10px solid #e00000 !important;
}
.nsd-pvg-yt-text { display: inline-block !important; }
.nsd-pvg-footer-link {
    text-align: center !important;
    padding: 18px 15px !important;
}
.nsd-pvg-footer-link a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 11px !important;
    min-height: 48px !important;
    padding: 10px 20px !important;
    border: 1px solid #b90000 !important;
    border-radius: 11px !important;
    background: linear-gradient(180deg,#ff4a4a 0%,#ef1111 50%,#c90000 100%) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(100,0,0,.3), 0 5px 14px rgba(204,0,0,.3) !important;
}
.nsd-pvg-footer-link a:hover { color:#fff !important; filter:brightness(.94) !important; transform:translateY(-1px) !important; }
.nsd-pvg-footer-link .nsd-pvg-yt-icon { width: 39px !important; height: 28px !important; border-radius: 8px !important; }

@media (max-width: 900px) {
    .nsd-pvg-header-link > a {
        min-width: 112px !important;
        min-height: 39px !important;
        padding: 7px 12px !important;
        font-size: 14px !important;
    }
    .nsd-pvg-yt-icon { width: 31px !important; height: 22px !important; }
}
@media (max-width: 600px) {
    .nsd-pvg-header-link { margin: 4px !important; }
    .nsd-pvg-header-link > a { min-width: 108px !important; width: auto !important; }
}

/* V1.0.4 – exact NSD MART theme placement, site-wide */
.nsd-pvg-channel-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    border: 1px solid #a90000 !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg,#ff4d4d 0%,#ee1515 48%,#c90000 100%) !important;
    color: #fff !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.52), inset 0 -2px 0 rgba(100,0,0,.3), 0 4px 12px rgba(200,0,0,.3) !important;
    text-shadow: 0 1px 1px rgba(0,0,0,.24) !important;
    transition: transform .18s ease, filter .18s ease !important;
}
.nsd-pvg-channel-btn:hover,
.nsd-pvg-channel-btn:focus { color:#fff !important; filter:brightness(.94); transform:translateY(-1px); }
.nsd-pvg-header-button {
    flex: 0 0 auto !important;
    min-height: 42px !important;
    min-width: 132px !important;
    padding: 8px 16px !important;
    margin: 0 7px 0 5px !important;
    font-size: 15px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}
.nsd-pvg-footer-button-wrap { margin-top: 16px !important; }
.nsd-pvg-footer-button {
    min-height: 48px !important;
    padding: 10px 18px !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
}
.nsd-pvg-channel-btn .nsd-pvg-yt-icon {
    width: 36px !important;
    height: 25px !important;
    border-radius: 7px !important;
}
.nsd-pvg-footer-button .nsd-pvg-yt-icon { width:40px !important; height:28px !important; }
@media (max-width: 1050px) {
    .nsd-pvg-header-button { min-width:112px !important; padding:7px 11px !important; font-size:14px !important; }
}
@media (max-width: 760px) {
    .nsd-pvg-header-button { width:calc(100% - 16px) !important; margin:6px 8px !important; }
}

/* Header YouTube button compact width fix — height unchanged */
.nsd-pvg-header-button {
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    min-height: 42px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    gap: 5px !important;
    box-sizing: border-box !important;
}
@media (max-width: 1050px) and (min-width: 761px) {
    .nsd-pvg-header-button {
        width: 112px !important;
        min-width: 112px !important;
        max-width: 112px !important;
        min-height: 42px !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        gap: 4px !important;
    }
}
