/* ============================================================
   SHOWREEL PLAYER — player.css
   ============================================================ */

/* ── Overlay ── */
.sr-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.sr-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ── Wrapper & Player ── */
.sr-wrapper {
  width: min(92vw, 1100px);
}

.sr-player {
  position: relative;
  aspect-ratio: 16/9;
  background: #0d0d0d;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.85);
  font-family: 'Courier New', Courier, monospace;
}

.sr-player.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  z-index: 9999 !important;
}

/* ── Video ── */
.sr-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Close ── */
.sr-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,.75);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s, background .2s;
}
.sr-close:hover { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(0,0,0,.7); }

/* ── Big play ── */
.sr-bigplay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  transition: opacity .25s;
}
.sr-bigplay.is-hidden { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

.sr-bigplay svg {
  filter: drop-shadow(0 0 24px rgba(255,255,255,.4));
  transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1), filter .4s ease;
}
.sr-bigplay:hover svg {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 35px rgba(0, 229, 255, 0.6));
}

/* ── Controls ── */
.sr-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.25rem .9rem;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, transparent 100%);
  display: flex;
  align-items: center;
  gap: .75rem;
  z-index: 6;
}

/* ── Generic Button ── */
.sr-btn {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.sr-btn:hover { background: rgba(255,255,255,.2); transform: scale(1.08); }

/* ── Timeline ── */
.sr-timeline-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.sr-timeline {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,.15);
  border-radius: 99px;
  cursor: pointer;
  transition: height .3s cubic-bezier(.25,.46,.45,.94), background .3s, box-shadow .3s;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.sr-timeline:hover,
.sr-timeline.is-scrubbing {
  height: 14px;
  background: rgba(255,255,255,.25);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.sr-progress {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: rgba(255,255,255,.65);
  border-radius: 99px;
  pointer-events: none;
  width: 0%;
  transition: width .1s linear;
}

/* ── Curseur cyan fluo ── */
.sr-cursor {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #00e5ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00e5ff;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.sr-timeline:hover .sr-cursor,
.sr-timeline.is-scrubbing .sr-cursor { opacity: 1; }

/* ── Tooltip ── */
.sr-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0%;
  transform: translateX(-50%);
  background: #0d0d0d;
  color: #00e5ff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s;
}
.sr-timeline:hover .sr-tooltip { opacity: 1; }

/* ── Time ── */
.sr-time {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Volume ── */
.sr-volume-group {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
}

.sr-vol-slider-wrap {
  max-width: 0;
  overflow: hidden;
  transition: max-width .35s ease;
}

.sr-volume-group:hover .sr-vol-slider-wrap { max-width: 80px; }

.sr-vol-slider {
  width: 70px;
  height: 3px;
  accent-color: #00e5ff;
  cursor: pointer;
}

/* ── Fullscreen ── */
.sr-fs { flex-shrink: 0; }

/* ── Mobile ── */
@media (max-width: 600px) {
  .sr-wrapper { width: 96vw; }
  .sr-controls { padding: .75rem .75rem .65rem; gap: .4rem; }
  .sr-btn { width: 32px; height: 32px; }
  .sr-time { display: none; }
}
