/* ── Player container ──────────────────────────────────────────────────────── */

.nvp-player {
    position: relative;
    background: #000;
    display: block;
    width: 100%;
}

/* ── Video wrapper — overlay sits exactly over the video ───────────────────── */

.nvp-video-wrap {
    position: relative;
    background: #000;
    line-height: 0;
    cursor: pointer;
}

.nvp-video {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Play overlay ──────────────────────────────────────────────────────────── */

.nvp-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.nvp-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.nvp-overlay-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.nvp-overlay-btn .material-symbols-outlined {
    font-size: 44px;
    color: #000;
    font-variation-settings: 'opsz' 44, 'wght' 400, 'FILL' 1, 'GRAD' 0;
    margin-left: 4px; /* optical center for play arrow shape */
}

/* ── Controls bar ──────────────────────────────────────────────────────────── */

.nvp-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #000;
    box-sizing: border-box;
    transition: opacity 0.3s;
}

/* ── Icon buttons ──────────────────────────────────────────────────────────── */

.nvp-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    line-height: 1;
    flex-shrink: 0;
}

.nvp-btn .material-symbols-outlined {
    font-size: 28px;
    color: #000;
    user-select: none;
    font-variation-settings: 'opsz' 28, 'wght' 400, 'FILL' 0, 'GRAD' 0;
}

/* ── Range base (shared by progress + volume) ─────────────────────────────── */

.nvp-progress,
.nvp-volume {
    -webkit-appearance: none;
    appearance: none;
    height: 1px;
    background: linear-gradient(to right, #000 0%, #000 0%, #ccc 0%, #ccc 100%);
    outline: none;
    border: none;
    cursor: pointer;
    margin: 9px 0;
    padding: 0;
    flex-shrink: 0;
}

.nvp-progress {
    flex: 1;
}

.nvp-volume {
    width: 72px;
}

/* Webkit track */
.nvp-progress::-webkit-slider-runnable-track,
.nvp-volume::-webkit-slider-runnable-track {
    height: 1px;
    background: transparent;
}

/* Firefox track */
.nvp-progress::-moz-range-track,
.nvp-volume::-moz-range-track {
    height: 1px;
    background: transparent;
    border: none;
}

/* Webkit thumb — randale style */
.nvp-progress::-webkit-slider-thumb,
.nvp-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #000;
    cursor: pointer;
    margin-top: -7px;
    box-sizing: border-box;
}

/* Firefox thumb */
.nvp-progress::-moz-range-thumb,
.nvp-volume::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #000;
    cursor: pointer;
    box-sizing: border-box;
}

/* ── Time display ──────────────────────────────────────────────────────────── */

.nvp-time {
    font-size: 11px;
    font-family: 'Space Grotesk', monospace;
    color: #000;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
    min-width: 3.2em;
    text-align: right;
}

/* ── Fullscreen ──────────────────────────────────────────────────────────── */

.nvp-is-fullscreen .nvp-video-wrap {
    height: 100%;
}

.nvp-is-fullscreen .nvp-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nvp-is-fullscreen .nvp-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    padding: 40px 20px 20px;
}

.nvp-is-fullscreen .nvp-btn .material-symbols-outlined {
    color: #fff;
}

.nvp-is-fullscreen .nvp-time {
    color: #fff;
}

/* Fullscreen thumbs — white */
.nvp-is-fullscreen .nvp-progress::-webkit-slider-thumb,
.nvp-is-fullscreen .nvp-volume::-webkit-slider-thumb {
    background: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.nvp-is-fullscreen .nvp-progress::-moz-range-thumb,
.nvp-is-fullscreen .nvp-volume::-moz-range-thumb {
    background: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* ── Auto-hide (fullscreen only) ─────────────────────────────────────────── */

.nvp-controls--hidden {
    opacity: 0;
    pointer-events: none;
}

.nvp-cursor-hidden,
.nvp-cursor-hidden .nvp-video-wrap {
    cursor: none !important;
}
