/* NatureNLP Video Player - Green Theme */
.section { margin: 2rem 0; }

/* Player */
.naturenlp-video { 
  user-select: none; 
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.naturenlp-video .video-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0a1f0a;
  border: 1px solid rgba(76, 175, 80, 0.2);
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/9;
  box-sizing: border-box;
}

.naturenlp-video video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  background: #000;
  aspect-ratio: 16/9;
  object-fit: contain;
  box-sizing: border-box;
}

/* Center play overlay */
.naturenlp-video .overlay-play {
  position: absolute; 
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(10, 31, 10, 0.85) 0%, rgba(20, 50, 20, 0.75) 50%, rgba(10, 31, 10, 0.85) 100%);
  background-image: 
    radial-gradient(circle at 30% 30%, rgba(76, 175, 80, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(102, 187, 106, 0.12) 0%, transparent 50%);
  color: #c8e6c9;
  font-weight: 600;
  letter-spacing: .2px;
  border: 0;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.naturenlp-video .overlay-play:hover {
  background: linear-gradient(135deg, rgba(10, 31, 10, 0.9) 0%, rgba(20, 50, 20, 0.8) 50%, rgba(10, 31, 10, 0.9) 100%);
  background-image: 
    radial-gradient(circle at 30% 30%, rgba(76, 175, 80, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(102, 187, 106, 0.15) 0%, transparent 50%);
}

/* Play button wrapper with glow effect */
.naturenlp-video .play-button-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(76, 175, 80, 0.2);
  border-radius: 50%;
  border: 3px solid rgba(76, 175, 80, 0.5);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 
    0 0 30px rgba(76, 175, 80, 0.4),
    inset 0 0 20px rgba(76, 175, 80, 0.1);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 
      0 0 30px rgba(76, 175, 80, 0.4),
      inset 0 0 20px rgba(76, 175, 80, 0.1);
    transform: scale(1);
  }
  50% {
    box-shadow: 
      0 0 50px rgba(76, 175, 80, 0.6),
      inset 0 0 30px rgba(76, 175, 80, 0.15);
    transform: scale(1.05);
  }
}

.naturenlp-video .overlay-play:hover .play-button-wrapper {
  transform: scale(1.15);
  box-shadow: 
    0 0 60px rgba(76, 175, 80, 0.7),
    inset 0 0 30px rgba(76, 175, 80, 0.2);
  animation: none;
  border-color: rgba(102, 187, 106, 0.7);
}

.naturenlp-video .overlay-play:active .play-button-wrapper {
  transform: scale(1.05);
}

.naturenlp-video .overlay-play svg { 
  fill: #66BB6A; 
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.6));
  margin-left: 4px; /* Offset for play triangle visual center */
}

/* Video label styling */
.naturenlp-video .video-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.naturenlp-video .label-badge {
  background: rgba(76, 175, 80, 0.25);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(76, 175, 80, 0.4);
  font-size: 0.875rem;
  font-weight: 700;
  color: #81C784;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.naturenlp-video .label-text {
  font-size: 0.9rem;
  color: #c8e6c9;
  font-weight: 500;
  opacity: 0.9;
}

@media (max-width: 640px) {
  .naturenlp-video .play-button-wrapper {
    width: 80px;
    height: 80px;
  }
  
  .naturenlp-video .overlay-play svg {
    width: 48px;
    height: 48px;
  }
  
  .naturenlp-video .label-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }
  
  .naturenlp-video .label-text {
    font-size: 0.8rem;
  }
}

.naturenlp-video.playing .overlay-play { display: none !important; }

/* Controls bar */
.naturenlp-video .controls {
  display: flex; 
  align-items: center; 
  gap: .6rem;
  margin-top: .75rem;
  padding: .65rem .75rem;
  border-radius: 12px;
  background: rgba(26, 58, 26, 0.72);
  border: 1px solid rgba(76, 175, 80, 0.2);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
  overflow: hidden;
}

.naturenlp-video .btn {
  display: inline-grid; 
  place-items: center;
  width: 36px; 
  height: 36px;
  border-radius: 10px;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.3);
  cursor: pointer; 
  color: #c8e6c9;
  transition: background 0.2s ease;
}

.naturenlp-video .btn:hover { background: rgba(76, 175, 80, 0.25); }

.naturenlp-video .btn svg { width: 18px; height: 18px; fill: currentColor; }

.naturenlp-video .btn .speed-text {
  font-size: 13px;
  font-weight: 600;
  color: #c8e6c9;
}

.naturenlp-video .time { font-variant-numeric: tabular-nums; opacity: .85; min-width: 42px; text-align: center; font-size: 14px; }

.naturenlp-video .seek {
  -webkit-appearance: none; 
  appearance: none;
  flex: 1 1 auto; 
  height: 6px; 
  border-radius: 999px; 
  background: rgba(76, 175, 80, 0.2); 
  outline: none;
  cursor: pointer;
}

.naturenlp-video .seek::-webkit-slider-thumb {
  -webkit-appearance: none; 
  width: 14px; 
  height: 14px; 
  border-radius: 50%;
  background: #81c784; 
  border: 2px solid rgba(0,0,0,.35);
  cursor: pointer;
}

.naturenlp-video .seek::-moz-range-thumb {
  width: 14px; 
  height: 14px; 
  border-radius: 50%;
  background: #81c784; 
  border: 2px solid rgba(0,0,0,.35);
  cursor: pointer;
}

.naturenlp-video .volume {
  width: 96px;
  -webkit-appearance: none; 
  appearance: none;
  height: 6px; 
  border-radius: 999px; 
  background: rgba(76, 175, 80, 0.2); 
  outline: none;
  cursor: pointer;
}

.naturenlp-video .volume::-webkit-slider-thumb {
  -webkit-appearance: none; 
  width: 14px; 
  height: 14px; 
  border-radius: 50%;
  background: #66bb6a; 
  border: 2px solid rgba(0,0,0,.35);
  cursor: pointer;
}

.naturenlp-video .volume::-moz-range-thumb {
  width: 14px; 
  height: 14px; 
  border-radius: 50%;
  background: #66bb6a; 
  border: 2px solid rgba(0,0,0,.35);
  cursor: pointer;
}

.naturenlp-video .spacer { flex: 1 1 auto; }

/* Icon swap rules */
.naturenlp-video.paused .icon-play { display: block; }
.naturenlp-video.paused .icon-pause { display: none; }
.naturenlp-video.playing .icon-play { display: none; }
.naturenlp-video.playing .icon-pause { display: block; }

/* Mute state */
.naturenlp-video.muted .icon-vol { display: none; }
.naturenlp-video.muted .icon-vol-mute { display: block; }
.naturenlp-video .icon-vol-mute { display: none; }

/* Fullscreen */
:fullscreen .naturenlp-video .controls { background: rgba(10, 31, 10, 0.78); }
:-webkit-full-screen .naturenlp-video .controls { background: rgba(10, 31, 10, 0.78); }
:-moz-full-screen .naturenlp-video .controls { background: rgba(10, 31, 10, 0.78); }
:-ms-fullscreen .naturenlp-video .controls { background: rgba(10, 31, 10, 0.78); }

/* Mobile adjustments */
@media (max-width: 640px) {
  .naturenlp-video {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  .naturenlp-video .video-frame {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
  }
  
  .naturenlp-video video {
    width: 100%;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
  }
  
  .naturenlp-video .volume {
    width: 50px;
    flex-shrink: 1;
    min-width: 40px;
  }
  
  .naturenlp-video .time {
    font-size: 11px;
    min-width: 32px;
    flex-shrink: 0;
  }
  
  .naturenlp-video .btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  .naturenlp-video .btn svg {
    width: 14px;
    height: 14px;
  }
  
  .naturenlp-video .seek {
    flex: 1 1 auto;
    min-width: 40px;
    max-width: 100%;
  }
  
  .naturenlp-video .controls {
    margin-bottom: env(safe-area-inset-bottom, 0px);
    padding: 0.5rem 0.4rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    position: relative !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  
  .naturenlp-video .controls::-webkit-scrollbar {
    height: 2px;
  }
  
  .naturenlp-video .controls::-webkit-scrollbar-thumb {
    background: rgba(76, 175, 80, 0.3);
    border-radius: 1px;
  }
  
  .naturenlp-video {
    margin-bottom: env(safe-area-inset-bottom, 0px);
  }
}

