/* session-player.css
   - UI dock in normal flow
   - Stage-mapped video
   - MUCH more intense hypnotic overlay
   - Flash between clips
*/

.sp-player{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 18px;
}

/* 16:9 stage area */
.sp-shell{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
}

/* Background image layer */
.sp-bg{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.01);
}

/* Stage layer */
.sp-stage{
  position:absolute;
  inset:0;
  pointer-events:none;
}

/* === VIDEO MAPPING AREA (tuned for your raw concert hall background) */
.sp-shell{
  --stage-left: 21.4%;
  --stage-top: 10.0%;
  --stage-width: 57.0%;
  --stage-height: 50.0%;

  /* MUCH stronger overlay */
  --hypno-opacity: 0.92;
  --hypno-scale: 1.25;
  --hypno-rotation-sec: 6s;
  --hypno-pulse-sec: 1.35s;

  /* Flash intensity */
  --flash-opacity: 0.92;
  --flash-ms: 150ms;
}

.sp-videoWrap{
  position:absolute;
  left: var(--stage-left);
  top: var(--stage-top);
  width: var(--stage-width);
  height: var(--stage-height);

  overflow:hidden;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.55);
  background:#000;
}

.sp-video{
  width:100%;
  height:100%;
  object-fit: cover;
  background:#000;
}

/* Hypnotic overlay ON TOP of video — intentionally intense */
.sp-videoWrap::after{
  content:"";
  position:absolute;
  inset:-18%;
  pointer-events:none;

  background:
    /* bright core */
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.55) 0 7%, rgba(255,255,255,0.0) 45%),

    /* hard spiral spokes */
    repeating-conic-gradient(
      from 0deg,
      rgba(255,255,255,0.00) 0deg 8deg,
      rgba(200,170,255,0.95) 8deg 11deg,
      rgba(255,255,255,0.00) 11deg 18deg
    ),

    /* tight rings */
    repeating-radial-gradient(
      circle at 50% 50%,
      rgba(255,255,255,0.00) 0 10px,
      rgba(160,90,255,0.55) 10px 14px,
      rgba(255,255,255,0.00) 14px 22px
    ),

    /* purple bloom */
    radial-gradient(circle at 50% 50%, rgba(80,0,255,0.10) 0 55%, rgba(160,90,255,0.55) 78%, rgba(0,0,0,0.0) 100%);

  opacity: var(--hypno-opacity);
  mix-blend-mode: screen;
  transform: scale(var(--hypno-scale));
  filter: blur(0.15px) contrast(1.35) saturate(1.55) brightness(1.15);
  animation:
    spHypnoRotate var(--hypno-rotation-sec) linear infinite,
    spHypnoPulse var(--hypno-pulse-sec) ease-in-out infinite;
}

@keyframes spHypnoRotate{
  from{ transform: scale(var(--hypno-scale)) rotate(0deg); }
  to  { transform: scale(var(--hypno-scale)) rotate(360deg); }
}

@keyframes spHypnoPulse{
  0%   { opacity: calc(var(--hypno-opacity) * 0.78); }
  50%  { opacity: var(--hypno-opacity); }
  100% { opacity: calc(var(--hypno-opacity) * 0.78); }
}

/* Flash layer */
.sp-videoWrap::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,1) 0%, rgba(210,170,255,0.98) 35%, rgba(0,0,0,0) 75%);
  opacity: 0;
  transition: opacity var(--flash-ms) ease;
  mix-blend-mode: screen;
}

.sp-shell.sp-flash .sp-videoWrap::before{
  opacity: var(--flash-opacity);
}

/* === UI DOCK (normal flow) === */
.sp-uiDock{
  margin-top: 10px;
  display:flex;
  justify-content:center;
  padding: 0 12px;
}

.sp-panel{
  width:min(860px, 96vw);
  border-radius: 14px;
  padding: 12px 12px 10px;
  background: rgba(10,10,12,0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
  color:#fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.sp-title{
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .25px;
  margin-bottom: 6px;
}

.sp-status{
  font-size: 13px;
  opacity: .92;
  margin-bottom: 10px;
  min-height: 18px;
}

.sp-controls{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.sp-btn{
  appearance:none;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor:pointer;
  background: #7b5cff;
  color:#fff;
}

.sp-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.sp-btn--ghost{
  background: rgba(255,255,255,0.12);
}

/* Mobile */
@media (max-width: 600px){
  .sp-shell{ border-radius: 12px; }
  .sp-panel{ padding: 12px; }
}
