/* ==========================================================================
   BSB Ecosystem Video Showcase - Dedicated Blue YouTube-Style Interface
   ========================================================================== */

:root {
  /* Primary Blue Theme Colors */
  --color-primary: #064E8D;
  --color-primary-hover: #003767;
  --color-primary-light: rgba(6, 78, 141, 0.20);
  --color-primary-half: rgba(6, 78, 141, 0.50);
  --color-blue-vibrant: #0077FF;
  --color-blue-bright: #38BDF8;

  /* Background Dark Blue Gradients */
  --color-bg-dark-start: #00072B;
  --color-bg-dark-end: #06103D;

  /* Neutral & Text Colors */
  --color-slate: #8C909F;
  --color-dark-neutral: #191C20;
  --color-muted-text: #424750;
  --color-subtext: #B0B2BD;
  --color-card-bg: #E6E6EA;
  --color-light-bg: #F8FAFC;
  --color-powder-blue: #DFE8F5;
  --color-border-light: #E1E1E1;

  /* Layout & Utility Specs */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-blue-glow: 0 0 35px rgba(6, 78, 141, 0.5);
  --shadow-blue-vibrant: 0 0 30px rgba(0, 119, 255, 0.4);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at 50% 30%, var(--color-bg-dark-end) 0%, var(--color-bg-dark-start) 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 1.25rem 1.5rem 2.5rem 1.5rem;
  overflow-x: hidden;
}

/* Background Ambient Blue Glow */
.ambient-glow {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
  opacity: 0.4;
}

.ambient-glow-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--color-primary) 0%, var(--color-blue-vibrant) 100%);
}

/* Main Container centered */
.yt-player-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* YouTube Video Player Wrapper */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-blue-glow), 0 25px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(6, 78, 141, 0.4);
  user-select: none;
}

/* Main Video */
.yt-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: pointer;
  background: #000000;
}

/* Poster Image Overlay */
.poster-overlay {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.poster-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Big Blue YouTube Play Button */
.yt-play-btn {
  width: 86px;
  height: 86px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-blue-vibrant) 100%);
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 2.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), var(--shadow-blue-vibrant);
  transition: transform 0.25s ease, background 0.25s ease;
}

.poster-overlay:hover .yt-play-btn {
  transform: scale(1.12);
  background: linear-gradient(135deg, var(--color-blue-vibrant) 0%, var(--color-primary-hover) 100%);
}

/* YouTube Bottom Control Bar */
.yt-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 1rem 1.25rem 0.75rem 1.25rem;
  background: linear-gradient(0deg, rgba(0, 7, 43, 0.95) 0%, rgba(0, 7, 43, 0.65) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.video-wrapper:hover .yt-controls-bar,
.video-wrapper.paused .yt-controls-bar,
.yt-controls-bar:focus-within {
  opacity: 1;
}

/* Progress Scrubber Bar - PURE BLUE ONLY */
.yt-progress-bar-container {
  position: relative;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  transition: height 0.15s ease;
}

.video-wrapper:hover .yt-progress-bar-container {
  height: 8px;
}

.yt-progress-filled {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-blue-vibrant) 100%);
  border-radius: 3px;
  position: relative;
}

.yt-progress-scrubber-head {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 14px;
  height: 14px;
  background: var(--color-blue-vibrant);
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-blue-vibrant);
  transition: transform 0.15s ease;
}

.yt-progress-bar-container:hover .yt-progress-scrubber-head {
  transform: translateY(-50%) scale(1);
}

/* Controls row */
.yt-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.yt-controls-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.yt-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
}

.yt-btn:hover {
  color: var(--color-blue-bright);
  background: rgba(6, 78, 141, 0.35);
}

/* Volume Slider */
.volume-group {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.volume-slider {
  width: 0;
  opacity: 0;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  transition: width 0.25s ease, opacity 0.25s ease;
  cursor: pointer;
}

.volume-group:hover .volume-slider,
.volume-slider:focus {
  width: 65px;
  opacity: 1;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-blue-vibrant);
  cursor: pointer;
}

/* Time Display */
.yt-time {
  font-size: 0.85rem;
  font-family: monospace, sans-serif;
  color: var(--color-powder-blue);
  margin-left: 0.2rem;
}

/* Speed Dropdown Menu */
.speed-menu-container {
  position: relative;
}

.speed-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 0.5rem;
  background: rgba(0, 7, 43, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-primary-half);
  border-radius: var(--radius-md);
  padding: 0.4rem 0;
  display: flex;
  flex-direction: column;
  min-width: 110px;
  box-shadow: var(--shadow-blue-glow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.speed-menu.active {
  opacity: 1;
  visibility: visible;
}

.speed-opt {
  background: transparent;
  border: none;
  color: #FFFFFF;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.speed-opt:hover, .speed-opt.selected {
  background: var(--color-primary-light);
  color: var(--color-blue-bright);
}

/* Top Header Spacer */
.site-header {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1040px;
  padding: 1.25rem 0 0.5rem 0;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-blue-vibrant) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #FFFFFF;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-powder-blue);
  background: rgba(6, 78, 141, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-primary-half);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--color-blue-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-blue-bright);
}

/* CENTER "KNOW MORE" BUTTON - CLEAN & SOFT SHADOW */
.cta-center-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn-know-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 3.25rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0055A5 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(6, 78, 141, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-know-more::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary), var(--color-blue-vibrant), var(--color-primary));
  z-index: -1;
  opacity: 0.2;
  filter: blur(4px);
  transition: opacity 0.25s ease;
}

.btn-know-more:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, var(--color-blue-vibrant) 0%, var(--color-primary) 100%);
  box-shadow: 0 6px 18px rgba(0, 119, 255, 0.35);
}

.btn-know-more:hover::before {
  opacity: 0.5;
}

.btn-icon-sparkle {
  color: #FFFFFF;
  font-size: 1.1rem;
}

/* Modal Popup Dialog */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 7, 43, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--color-dark-neutral);
  border: 1px solid var(--color-primary-half);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-blue-glow), 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--color-primary);
  color: var(--color-blue-bright);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #FFFFFF;
}

.modal-body {
  color: var(--color-subtext);
  font-size: 1rem;
  line-height: 1.7;
}

.modal-body ul {
  margin-top: 1rem;
  padding-left: 1.25rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

/* Comprehensive Mobile & Responsive Adjustments */
@media (max-width: 768px) {
  body {
    padding: 1rem 0.75rem 2rem 0.75rem;
    justify-content: center;
  }

  .site-header {
    padding: 0.75rem 0 0.25rem 0;
  }

  .yt-player-container {
    gap: 1.5rem;
    max-width: 100%;
  }

  .video-wrapper {
    border-radius: var(--radius-md);
  }

  .yt-play-btn {
    width: 68px;
    height: 68px;
    font-size: 1.75rem;
  }

  .yt-controls-bar {
    padding: 0.75rem 0.85rem 0.5rem 0.85rem;
    gap: 0.4rem;
  }

  .yt-controls-group {
    gap: 0.4rem;
  }

  .yt-btn {
    font-size: 1rem;
    padding: 0.25rem 0.35rem;
  }

  .yt-time {
    font-size: 0.78rem;
  }

  .btn-know-more {
    width: 100%;
    max-width: 290px;
    padding: 0.9rem 2.25rem;
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.75rem 0.5rem 1.5rem 0.5rem;
  }

  .yt-player-container {
    gap: 1.25rem;
  }

  .yt-play-btn {
    width: 58px;
    height: 58px;
    font-size: 1.5rem;
  }

  .yt-controls-bar {
    padding: 0.5rem 0.6rem 0.4rem 0.6rem;
  }

  .yt-controls-group {
    gap: 0.25rem;
  }

  /* Hide PiP on small mobile screens to keep controls clean */
  #btnPip {
    display: none;
  }

  /* Hide inline slider on small mobile touch devices */
  .volume-slider {
    display: none;
  }

  .yt-btn {
    font-size: 0.95rem;
    padding: 0.2rem 0.3rem;
  }

  .yt-time {
    font-size: 0.72rem;
    letter-spacing: -0.02em;
  }

  .speed-menu {
    min-width: 95px;
  }

  .speed-opt {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }

  .btn-know-more {
    max-width: 260px;
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }
}

/* ==========================================================================
   Full Screen Engine Support (All Browsers & Mobile Viewports)
   ========================================================================== */

.video-wrapper:fullscreen,
.video-wrapper:-webkit-full-screen,
.video-wrapper:-moz-full-screen,
.video-wrapper:-ms-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000000 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.video-wrapper:fullscreen .yt-video,
.video-wrapper:-webkit-full-screen .yt-video,
.video-wrapper:-moz-full-screen .yt-video,
.video-wrapper:-ms-fullscreen .yt-video {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important;
  margin: auto !important;
}

video:fullscreen,
video:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain !important;
  background: #000000 !important;
}

.video-wrapper:fullscreen .yt-controls-bar,
.video-wrapper:-webkit-full-screen .yt-controls-bar,
.video-wrapper:-moz-full-screen .yt-controls-bar,
.video-wrapper:-ms-fullscreen .yt-controls-bar {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 1.25rem 2rem 1rem 2rem !important;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%) !important;
  z-index: 2147483647 !important;
  opacity: 1 !important;
}

.video-wrapper:fullscreen .poster-overlay.hidden,
.video-wrapper:-webkit-full-screen .poster-overlay.hidden {
  display: none !important;
}


