/* =========================================================
   BASE
========================================================= */
.nsl-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nsl-video {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 24px;
    font-family: inherit;
    overflow: hidden;
}
.nsl-video__wrap {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
    border-radius: 12px;
}

/* =========================================================
   TÍTULO
========================================================= */
.nsl-video__header {
    position: absolute;
    inset: 0 auto auto 0;
    right: 0;
    z-index: 20;
    padding: 12px 16px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    border-radius: 12px 12px 0 0;
}
.nsl-video__titletext {
    font-size: 25px;
    font-weight: 500;
    color: #fff;
    line-height: 1.3;
    max-width: 90%;
    display: block;
}



/* =========================================================
   VÍDEO
========================================================= */
.nsl-video__el {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
    border-radius: 12px;
}

/* =========================================================
   BIG PLAY
========================================================= */
.nsl-video__bigplay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    border: none;
    outline: none;
}
.nsl-video__bigplay::before {
    content: "";
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    display: block;
    mask-repeat: no-repeat;
    mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M8 5v14l11-7z"/></svg>')
        center/100%;
}

/* =========================================================
   CONTROLES
========================================================= */
.nsl-player_box {
    padding: 15px;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 15;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.75));
}
.nsl-timeline {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nsl-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 12px;
}
.nsl-controls_play-time, .nsl-controls_options{
  display: flex;
  align-items: center;
}

.nsl-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: background 0.25s ease;
    padding: 0;
}
.nsl-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}
.nsl-icon {
    width: 22px;
    height: 22px;
    fill: #fff;
    pointer-events: none;
    transition: transform 0.2s ease;
}

/* tempo / seek */


/* ============================== */
/* SEEKBAR ESTILO G1 / GLOBOPLAY  */
/* ============================== */

.nsl-bar-container {
    position: relative;
    width: 100%;
    height: 28px;
    cursor: pointer;
}

.nsl-seekbar {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Faixa de fundo */
.nsl-bar-background {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background: rgba(255,255,255,.25);
    border-radius: 2px;
}

/* Buffer (opcional) */
.nsl-bar-buffer {
    position: absolute;
    height: 4px;
    background: rgba(255,255,255,.35);
    border-radius: 2px;
    width: 0%;
}

/* Progresso */
.nsl-bar-progress {
    position: absolute;
    height: 4px;
    background: #FFFFFF;
    border-radius: 2px;
    width: 0%;
}

/* Hover */
.nsl-bar-hover {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    width: 4px;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity .15s;
}

/* Scrubber (bolinha) */
.nsl-bar-scrubber {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    pointer-events: none; 
}

.nsl-bar-scrubber-icon {
    width: 14px;
    height: 14px;
    background: #FFFFFF;
    border-radius: 50%;
}

/* Hover ativa o preview */
.nsl-bar-container:hover .nsl-bar-hover {
    opacity: 1;
}


.nsl-time {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}


/* ============================================
   POPUP DE VOLUME — SIMPLES
============================================ */
.nsl-volume-wrap {
    position: relative;
}

.nsl-volume-popup {
    position: absolute;
    bottom: 46px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(0,0,0,0.85);
    padding: 12px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 200;
}

.nsl-volume-popup.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   BARRA VERTICAL — SIMPLES
============================================ */
.nsl-vol-container {
    width: 24px;
    height: 110px;
    position: relative;
    cursor: pointer;
}

/* fundo */
.nsl-vol-bg {
    position: absolute;
    left: 50%;
    top: 0;
    width: 6px;
    height: 100%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
}

/* barra preenchida */
.nsl-vol-level {
    position: absolute;
    left: 12px;
    bottom: 0;
    width: 6px;
    background: #fff;
    transform: translateX(-50%);
    height: 0%; /* controlado via JS */
    border-radius: 4px;
}

/* scrubber (bolinha) */
.nsl-vol-scrubber {
    position: absolute;
    left: 50%;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transform: translateX(-50%) translateY(50%);
    bottom: 0;
    pointer-events: none;
}

/* opcional: highlight no hover */
.nsl-volume-popup:hover .nsl-vol-bg {
    background: rgba(255,255,255,0.35);
}


/* =========================================================
   POPUP DE VELOCIDADE
========================================================= */
.nsl-btn--speed.active{
  background: var(--color-primary);
}
.nsl-speed-wrap {
    position: relative;
}
.nsl-speed-popup {
    position: absolute;
    bottom: 42px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.85);
    padding: 10px 0;
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    min-width: 80px;
    backdrop-filter: blur(6px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
    z-index: 30;
}
.nsl-speed-popup.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nsl-speed-option {
    padding: 8px 14px;
    text-align: center;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.nsl-speed-option:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* =========================================================
   UNMUTE
========================================================= */
.nsl-unmute {
        align-items: center;
        cursor: pointer;
        position: absolute;
        top: 0px;
        left: 0px;
        width: 134px;
        height: 48px;
        z-index: 998;
        background-color: #eeeeee;
        box-sizing: border-box;
        margin-top: 17px;
        margin-left: 20px;
        border-radius: 8px;
        display: flex;
        opacity: 0;
        pointer-events: none;
        transition: width 0.5s ease, opacity 0.3s ease;
}

.nsl-unmute.active {
    opacity: 1;
    pointer-events: auto;
}

.nsl-unmute.no-label{
  width: 56px;
}
.nsl-unmute.no-label span{
  display: none;
}
.nsl-unmute__btn {
    width: 100%;
    display: flex;
    gap: 10px;
    border: none;
    background: none;
    align-items: center;
    padding: 0 14px;
}

.nsl-unmute__icon{
  height: 24px;
  width: 24px;
  fill: #151613;
}
.nsl-unmute__btn span{
  font-size: 13px;
  font-weight: 400;
}



/* =========================================================
   FULLSCREEN / PIP
========================================================= */
.nsl-btn--fullscreen .nsl-icon,
.nsl-btn--pip .nsl-icon {
    width: 20px;
    height: 20px;

}

/* ================================
   AUTO-HIDE PARA HEADER E CONTROLES
================================ */
.nsl-player_box.nsl-controls-hidden,
.nsl-video__header.nsl-controls-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.nsl-player_box,
.nsl-video__header {
    opacity: 1;
    transition: opacity 0.35s ease;
}


@media screen and (max-width: 800px){
  .nsl-video__titletext {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
    max-width: 90%;
    display: block;

  }
}

/* =========================================================
   PREVIEW DO CANVAS
========================================================= */
.nsl-preview-tooltip {
    position: absolute;
    bottom: 80px;
    left: 0;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0,0,0,0.85);
    padding: 6px;
    border-radius: 8px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    pointer-events: none;
    z-index: 50;
    transition: transform .15s ease, opacity .15s ease;
}

.nsl-preview-tooltip.active {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nsl-preview-canvas {
    width: 140px;
    height: 78px;
    object-fit: cover;
    border-radius: 6px;
    background: #111;
}

.nsl-preview-time {
    font-size: 12px;
    color: #fff;
}

/* Container fixo do mini (aplicado no .nsl-video__wrap) */
.nsl-video__wrap.is-mini{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(360px, 46vw);
  aspect-ratio: 16/9;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

/* UI do mini (botões no canto) */
.nsl-mini-ui{
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  z-index: 50;
}
.nsl-mini-btn{
  background: rgba(0,0,0,.15);
  width: 30px;
  height: 30px;
  color: #fff;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  place-items: center;
}
.nsl-mini-btn:hover{ background: rgba(0,0,0,.8); }

.nsl-mini-btn svg{
    width: 20px;
    height: 20px;
}

/* Placeholder que preserva espaço no fluxo e mostra indicador */
.nsl-mini-placeholder {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.nsl-mini-indicator{
  position: absolute;
  inset: auto 12px 12px 12px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font: 600 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: 8px 10px;
  border-radius: 8px;
}

/* Host com mini ativo (apenas estilização descritiva; o bloco continua visível) */
.nsl-host--mini{
  position: relative;
}
.nsl-host--mini::after{
  content: "Mini-player ativo";
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font: 600 11px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: 6px 8px;
  border-radius: 8px;
  pointer-events: none;
}

/* (Opcional) body flag para temas */
.nsl--mini-active { /* ganchos globais se precisar */ }

/* A UI só aparece quando o wrap está em modo mini */
/* Antes estava SEM condição → aparecia também no player original */
.nsl-video__wrap .nsl-mini-ui {
  display: none !important;
}

.nsl-video__wrap.is-mini .nsl-mini-ui {
  display: flex !important;
}

.nsl-mini-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.55;
}

.nsl-mini-indicator {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,.65);
  padding: 6px 12px;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
}


.nsl-video__wrap.is-mini .nsl-video__header{
    display: none;
}

.nsl-video__wrap.is-mini {
  position: fixed !important;
  right: 16px;
  bottom: 16px;
  z-index: 999999;
  cursor: grab;
  transition: none !important;
}

.nsl-video__wrap.is-mini:active {
  cursor: grabbing;
}


/* AUDIO NSL AUDIO */

/* CONTAINER */
.nsl-audio {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f2f2f2;
    border-radius: 12px;
    max-width: 850px;
    margin: 20px auto;
}

/* CAPA */
.nsl-audio-cover img,
.nsl-no-cover {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    object-fit: cover;
    background: #ccc;
}

/* TÍTULO */
.nsl-audio-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #111;
}

.nsl-audio-subtitle {
    margin: 2px 0 14px;
    font-size: 14px;
    color: #666;
}

/* CONTROLES */
.nsl-audio-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* BOTÃO PLAY */
.nsl-audio-play {
    width: 48px;
    height: 48px;
    background: #c01616;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: 0.2s;
}

.nsl-audio-play:hover {
    background: #a50f0f;
}

/* ÍCONES */
.nsl-icon-play {
    width: 0;
    height: 0;
    border-left: 15px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.nsl-icon-pause {
    width: 14px;
    height: 14px;
    border-left: 4px solid white;
    border-right: 4px solid white;
}

/* TEMPOS */
.nsl-time-current,
.nsl-time-total {
    font-size: 14px;
    color: #555;
    width: 50px;
    text-align: center;
}

/* PROGRESS BAR */
.nsl-progress-wrap {
    width: 100%;
    height: 4px;
    background: #ccc;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.nsl-progress {
    height: 100%;
    width: 0%;
    background: #444;
    border-radius: 3px;
}


/* =============================================================
   ✅ NSL AUDIO PLAYER — ESTILO COMPLETO
   ============================================================= */

.nsl-audio-player{
    padding: 8px;
    min-width: 320px;
    background: #f2f2f2;
    display: flex;
    border-radius: 12px;
    gap: 12px;
    margin-bottom: 1em;
}

/* ============================
   THUMBNAIL
============================ */
.nsl-left {
    flex-shrink: 0;
    width: 144px;
    height: 144px;
    border-radius: 10px;
    margin: 8px 8px 10px 8px;
    overflow: hidden;
}

.nsl-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    margin: 0 !important;
}

/* ============================
   LADO DIREITO DO PLAYER
============================ */

.nsl-right{
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    
}
.nsl-header {
    margin-bottom: 5px;
    overflow: hidden;
    width: 100%;
    position: relative;
    white-space: nowrap;
}
.nsl-title_box{
    overflow: hidden;
    height: 25px;
    width: 100%;
}
.nsl-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    min-width: 100%;
    animation: marquee 7s 1s linear infinite;
    animation-play-state: running;
    will-change: contents;
    padding-right: 60px;
    position: absolute;
    white-space: nowrap;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }

  30% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.nsl-header .nsl-subtitle {
    font-size: 14px;
    opacity: .6;
}

/* ============================
   CONTROLS
============================ */
.nsl-controls_play-pause {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 10px 0 14px 0;
}

.nsl-audio-btn {
    border: none;
    background: none;
    padding: 0;
}

.nsl-audio-btn:hover {
    
}

.nsl-audio-btn:active {
    
}

/* Play button maior */
.nsl-play {
    box-sizing: border-box;
    display: inline-block;
    border: none;
    border-radius: 50%;
    background-color: var(--color-primary);
    width: 48px;
    height: 48px;
    transition: transform .1s;
    position: relative;
    text-align: center;
    padding: 0;
}
.nsl-play svg{
    fill: #FFFFFF;
    width: 20px;
    height: 20px;
    justify-content: center;
}

.nsl-loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

.nsl-loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: nsl-spin .6s linear infinite;
}

@keyframes nsl-spin {
    to { transform: rotate(360deg); }
}


.nsl-timeline-box{
    width: 100%;
    display: block;
    position: relative;
    flex: 1;
}

/* ============================
   TIMELINE + HANDLE + WAVE
============================ */


.nsl-current,
.nsl-duration {
    font-size: 13px;
    display: block;
    color: #979797;
    text-align: center;
    padding: 0;
}

/* Timeline container */

.nsl-box{
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.nsl-box span{
    display: block;
}

.nsl-timeline_audio {
    position: relative;
    flex: 1;
    height: 34px;
    cursor: pointer;
    width: 100%;
}

.nsl-progressbar{
    background: #eee;
    width: 100%;
    border-radius: 2px;
    height: 4px;
    position: absolute;
    bottom: 10px;
    left: 0;
    z-index: 1;
}

/* Waveform */
.nsl-waveform {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 32px;
    transform: translateY(-50%);
    opacity: 0.25;
    pointer-events: none;
}

/* BUFFER + PROGRESS */
.nsl-buffer,
.nsl-progress {
    position: absolute;
    bottom: 10px;
    left: 0;
    height: 4px;
    border-radius: 2px;
}

.nsl-buffer {
    background: #bcbcbc;
    width: 0%;
    opacity: 0.7;
    z-index: 2;
}

.nsl-progress {
    background: var(--color-primary);
    width: 0%;
    transition: width 0.1s linear;
    z-index: 3;
}

/* HANDLE estilo Spotify */
.nsl-handle {
    position: absolute;
    bottom: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    transform: translateX(-50%);
    left: 0%;
    opacity: 0;
    transition: opacity .25s, transform .1s;
    pointer-events: none;
     z-index: 4;
}

/* Mostra handle no hover */
.nsl-timeline_audio:hover .nsl-handle,
.nsl-timeline_audio.dragging .nsl-handle {
    opacity: 1;
}

/* Handle cresce ao arrastar */
.nsl-timeline_audio.dragging .nsl-handle {
    transform: translateX(-50%) scale(1.25);
}

/* ============================
   HIDDEN AUDIO
============================ */
.nsl-hidden-audio {
    display: none !important;
}

.nsl-controls_box{
    display: flex;
    gap: 12px;
}
.nsl-controls_box .nsl-audio-btn svg{
    fill: #151613;
    width: 24px;
    height: 24px;
}
.nsl-controls_box .nsl-audio-btn.nsl-speed{
    background: #444;
    padding: 2px 10px;
    border-radius: 24px;
    color: #FFF;
    font-size: 14px;
}

.nsl-audio-player[data-ui="adaptive"]{
    background: var(--nsl-bg);
}

.nsl-audio-player[data-ui="adaptive"] .nsl-header h3,
.nsl-audio-player[data-ui="adaptive"] .nsl-header .nsl-subtitle,
.nsl-audio-player[data-ui="adaptive"] .nsl-current, .nsl-audio-player[data-ui="adaptive"] .nsl-duration
{
    color: var(--nsl-fg);
}
.nsl-audio-player[data-ui="adaptive"] button.nsl-play{
    background: var(--nsl-accent);
}
.nsl-audio-player[data-ui="adaptive"] button.nsl-play svg{
    fill: var(--nsl-bg);
}
.nsl-audio-player[data-ui="adaptive"] .nsl-controls_box .nsl-audio-btn svg{
   fill: var(--nsl-fg);
}

.nsl-audio-player[data-ui="adaptive"] .nsl-controls_box .nsl-audio-btn.nsl-speed{
    background: var(--nsl-fg);
    color: var(--nsl-bg);
}
.nsl-audio-player[data-ui="adaptive"] .nsl-progress, .nsl-audio-player[data-ui="adaptive"] .nsl-handle{
    background: var(--nsl-accent);
}


.nsl-video__wrap.is-fullscreen {
  display: flex !important;
  justify-content: center;
  align-items: center;
  background-color: #000;
  width: 100vw !important;
  height: 100vh !important;
  position: fixed !important;
  top: 0;
  left: 0;
  z-index: 99999;
}

.nsl-video__wrap.is-fullscreen video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: auto;
  border-radius: 0;
}

/* PLAYER DE AUDIO AO VIVO */

.nsl-audio-player[data-ui="adaptive"] .nsl-live-tag{
    background: var(--nsl-accent);
    color: var(--nsl-bg);
}
.nsl-live-tag {
  background: #ef0101;
  color: #FFF;
  padding: 2px 8px;
  border-radius: 15px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 10px;
}

.nsl-audio-player.is-live .nsl-speed,
.nsl-audio-player.is-live .nsl-prev10,
.nsl-audio-player.is-live .nsl-next10 {
  opacity: 0.3;
  pointer-events: none;
}

.nsl-audio-player.is-live .nsl-timeline_audio.disabled {
  opacity: .4;
}


/* ============================
   RESPONSIVIDADE
============================ */

@media (max-width: 650px) {

    .nsl-video__wrap.is-mini{
        width: min(360px, 70vw);
    }
    .nsl-audio-player{
        position: relative;
        margin-bottom: 1em;
    }
    .nsl-left{
        position: absolute;
        top: 8px;
        left: 8px;
        width: 62px;
        height: 62px;
        margin: 0;

    }
    .nsl-right{
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        align-items: end;
    }
    .nsl-header{
        height: 62px;
        width: calc(100% - 68px);
        overflow: hidden;
    }
    .nsl-controls_play-pause{
        width: 100%;
        margin: ;
        padding-bottom: 0;
        gap: 5px;
    }
    .nsl-controls_box{
        width: 100%;
        margin-top: 0;
        padding-bottom: 0;
    }
    .nsl-play{
        width: 40px;
        height: 40px;
    }
    .nsl-play svg{
        width: 20px;
        height: 20px;
    }
    .nsl-controls_box .nsl-audio-btn svg{
        width: 20px;
    }
    .nsl-controls_box .nsl-audio-btn.nsl-speed{
        font-size: 12px;
    }
}
