/* News feed playlist controls — no full-bleed overlay (it ate clicks on Play) */
.news-video-wrap {
    --nvp-accent: #13c45c;
    position: relative;
}

/* Autoplay chip ~30% smaller, top center — never covers play icon */
.nvp-autoplay {
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%) scale(0.7);
    transform-origin: top center;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px 0 6px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(0, 0, 0, .75);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    user-select: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    pointer-events: auto;
}

.nvp-autoplay:hover { border-color: rgba(19, 196, 92, .65); }

.nvp-switch {
    position: relative;
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
    flex-shrink: 0;
    transition: background .2s ease;
}
.nvp-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s ease;
}
.nvp-autoplay.is-on .nvp-switch { background: var(--nvp-accent); }
.nvp-autoplay.is-on .nvp-switch::after { transform: translateX(14px); }

.nvp-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, background .15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.news-video-wrap:hover .nvp-btn,
.news-video-wrap.nvp-show-ui .nvp-btn {
    opacity: 1;
    pointer-events: auto;
}
.nvp-btn:hover { background: rgba(19, 196, 92, .85); }
.nvp-btn:disabled {
    opacity: .3 !important;
    cursor: default;
    pointer-events: none !important;
}
.nvp-prev { left: 10px; }
.nvp-next { right: 10px; }

.nvp-btn .nvp-btn-label {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
@media (min-width: 900px) {
    .nvp-btn .nvp-btn-label { display: block; }
    .nvp-btn { width: 52px; height: 52px; font-size: 32px; }
}

/* Fullscreen open — always clearly clickable */
.nvp-fs-open {
    position: absolute;
    right: 10px;
    bottom: 48px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 10px;
    background: rgba(0,0,0,.72);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    pointer-events: auto;
    opacity: 1;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.nvp-fs-open:hover {
    background: rgba(19, 196, 92, .85);
    border-color: rgba(19, 196, 92, .65);
}

@media (max-width: 767px) {
    .nvp-prev,
    .nvp-next { display: none; }
    .nvp-fs-open { bottom: 44px; }
}

.nvp-endcard {
    pointer-events: none;
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.4);
    z-index: 4;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.news-video-wrap.nvp-ending .nvp-endcard { display: flex; }

/* Play icon must stay above our chrome for hits… actually icon is pointer-events:none;
   video must remain the hit target — keep our controls as small absolute islands only. */
.news-video-wrap > video {
    position: relative;
    z-index: 1;
}
.news-video-wrap > .news-play-icon {
    z-index: 2;
    pointer-events: auto !important;
    cursor: pointer;
}

/* ===== Custom fullscreen ===== */
.nvp-fs {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.nvp-fs.is-open { display: flex; }

/* True browser fullscreen (covers whole monitor, hides Chrome UI) */
.nvp-fs:fullscreen,
.nvp-fs:-webkit-full-screen,
.nvp-fs:-moz-full-screen,
.nvp-fs:-ms-fullscreen {
    display: flex !important;
    width: 100vw;
    height: 100vh;
    background: #000;
}

.nvp-fs-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    outline: none;
}

.nvp-fs-bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 56px 12px 12px;
    background: linear-gradient(to bottom, rgba(0,0,0,.65), transparent);
    pointer-events: none;
    opacity: 1;
    transition: opacity .35s ease;
}
.nvp-fs-bar > * { pointer-events: auto; }

.nvp-fs .nvp-autoplay {
    position: static;
    transform: scale(0.7);
    top: auto;
    left: auto;
}

.nvp-fs-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

/* Custom exit-fullscreen — native <video> ⛶ does nothing while shell is :fullscreen */
.nvp-fs-exitfs {
    position: absolute;
    right: 14px;
    bottom: 58px;
    z-index: 6;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 10px;
    background: rgba(0,0,0,.72);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.nvp-fs-exitfs:hover {
    background: rgba(19, 196, 92, .85);
    border-color: rgba(19, 196, 92, .65);
}

.nvp-fs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: 1;
    transition: opacity .35s ease, background .15s ease;
}
.nvp-fs-nav:hover { background: rgba(19, 196, 92, .85); }
.nvp-fs-nav:disabled { opacity: .3; pointer-events: none; }
.nvp-fs-nav-prev { left: 12px; }
.nvp-fs-nav-next { right: 12px; }

/* Hide Autoplay / Prev / Next after idle (close × stays) */
.nvp-fs.nvp-fs-idle .nvp-fs-bar,
.nvp-fs.nvp-fs-idle .nvp-fs-nav {
    opacity: 0;
    pointer-events: none;
}

.nvp-fs-nav-label {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.7);
}

body.nvp-fs-lock {
    overflow: hidden !important;
}

@media (max-width: 767px) {
    .nvp-fs-nav { width: 44px; height: 44px; font-size: 28px; }
}
