/* ================================================================
   RETICEO — Audio Documentary Player Styles
   Section wrapper + slideshow + controls + thumbnails
   ================================================================ */

/* ── Section container ─────────────────────────────────────────── */
.adoc-section {
  background: linear-gradient(160deg, #070f1f 0%, #0a1628 55%, #071410 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.adoc-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 70% 30%, rgba(212,151,58,.08) 0%, transparent 65%),
    radial-gradient(ellipse 600px 400px at 15% 75%, rgba(15,145,247,.06) 0%, transparent 60%);
  pointer-events: none;
}
.adoc-section .container {
  position: relative;
  z-index: 1;
}

/* ── Section header ────────────────────────────────────────────── */
.adoc-section-header {
  text-align: center;
  margin-bottom: 2.8rem;
}
.adoc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(212,151,58,.12);
  border: 1px solid rgba(212,151,58,.3);
  color: #d49a3e;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .38rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}
.adoc-section-title {
  font-family: 'DM Serif Display', 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: .7rem;
}
.adoc-section-title em {
  color: #d49a3e;
  font-style: normal;
}
.adoc-section-sub {
  font-size: .95rem;
  color: rgba(255,255,255,.55);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Player card ───────────────────────────────────────────────── */
.adoc-player-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 60px rgba(0,0,0,.45);
  max-width: 700px;
  margin: 0 auto;
}

/* Compact variant for sidebar use */
.adoc-player-card--compact {
  max-width: 100%;
  margin: 0;
}

.adoc-inner {
  display: flex;
  flex-direction: column;
}

/* ── Slideshow area ─────────────────────────────────────────────── */
.adoc-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050d1a;
  cursor: pointer;
}

/* Blurred bg (Ken Burns feel) */
.adoc-slide-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(.5);
  transform: scale(1.15);
  transition: background-image .4s ease;
  animation: adocKenBurns 20s ease-in-out infinite alternate;
}
@keyframes adocKenBurns {
  from { transform: scale(1.15) translate(0, 0); }
  to   { transform: scale(1.22) translate(-2%, 1.5%); }
}

/* Main image */
.adoc-slide-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .4s ease;
}

/* Error band */
.adoc-error-band {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: none;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  background: rgba(20,4,4,.82);
  color: #fca5a5;
  font-size: .88rem;
  font-weight: 500;
  text-align: center;
  padding: 1.5rem;
  line-height: 1.5;
}
.adoc-error-band i {
  font-size: 1.4rem;
  color: #f87171;
  flex-shrink: 0;
}

/* Spinner */
.adoc-spinner {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5,13,26,.6);
}
.adoc-spin-ring {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: #d49a3e;
  border-radius: 50%;
  animation: adocSpin .85s linear infinite;
}
@keyframes adocSpin {
  to { transform: rotate(360deg); }
}

/* Overlay (pre-play) */
.adoc-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(5,13,26,.88), rgba(10,22,40,.82));
  cursor: pointer;
  transition: opacity .3s;
}
.adoc-overlay:hover { opacity: .92; }
.adoc-overlay-inner {
  text-align: center;
  padding: 2rem;
}
.adoc-overlay-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(212,151,58,.15);
  border: 2px solid rgba(212,151,58,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: #d49a3e;
  margin: 0 auto 1rem;
  animation: adocPulse 2.2s ease-in-out infinite;
}
@keyframes adocPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,151,58,.4); }
  50%       { box-shadow: 0 0 0 14px rgba(212,151,58,0); }
}
.adoc-overlay-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #d49a3e;
  margin: 0 0 .4rem;
}
.adoc-overlay-sub {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  line-height: 1.35;
  margin: 0 0 1.5rem;
  max-width: 320px;
  margin-left: auto; margin-right: auto;
}
.adoc-overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: #d49a3e;
  color: #070f1f;
  font-size: .88rem;
  font-weight: 700;
  padding: .65rem 1.4rem;
  border-radius: 100px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.adoc-overlay-btn:hover { background: #e8b04e; transform: scale(1.04); }

/* Chapter badge */
.adoc-chapter-badge {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 5;
  padding: 1.4rem 1.2rem .8rem;
  background: linear-gradient(transparent, rgba(5,13,26,.85));
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.adoc-ch-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #d49a3e;
  transition: opacity .35s ease;
}
.adoc-ch-sub {
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  line-height: 1.35;
  transition: opacity .35s ease;
}

/* ── Controls bar ───────────────────────────────────────────────── */
.adoc-controls {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.1rem;
  background: rgba(5,13,26,.9);
  border-top: 1px solid rgba(255,255,255,.07);
}
.adoc-btn {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.85);
  font-size: .92rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
  padding: 0;
}
.adoc-btn:hover {
  background: rgba(212,151,58,.18);
  border-color: rgba(212,151,58,.45);
  color: #d49a3e;
}
.adoc-play-btn {
  width: 42px; height: 42px;
  background: #d49a3e;
  border-color: #d49a3e;
  color: #070f1f;
  font-size: 1rem;
}
.adoc-play-btn:hover {
  background: #e8b04e;
  border-color: #e8b04e;
  color: #070f1f;
}
.adoc-progress-wrap {
  flex: 1;
}
.adoc-progress {
  width: 100%;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 4px;
  background: rgba(255,255,255,.15);
  outline: none;
  cursor: pointer;
  accent-color: #d49a3e;
}
.adoc-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #d49a3e;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(212,151,58,.25);
}
.adoc-progress::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #d49a3e;
  border: none;
  cursor: pointer;
}
.adoc-time {
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  text-align: right;
}

/* ── Thumbnail strip ────────────────────────────────────────────── */
.adoc-thumbstrip {
  display: flex;
  gap: 3px;
  padding: .5rem .7rem .7rem;
  background: rgba(5,13,26,.95);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,151,58,.3) transparent;
}
.adoc-thumbstrip::-webkit-scrollbar { height: 3px; }
.adoc-thumbstrip::-webkit-scrollbar-thumb { background: rgba(212,151,58,.3); border-radius: 2px; }

.adoc-thumb {
  flex-shrink: 0;
  position: relative;
  width: calc(12.5% - 3px);
  min-width: 52px;
  aspect-ratio: 16 / 9;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: rgba(255,255,255,.05);
  transition: border-color .2s, transform .15s;
}
.adoc-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.adoc-thumb-num {
  position: absolute;
  bottom: 2px; left: 4px;
  font-size: .6rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.adoc-thumb:hover {
  border-color: rgba(212,151,58,.6);
  transform: scale(1.06);
}
.adoc-thumb-active {
  border-color: #d49a3e !important;
  box-shadow: 0 0 0 1px rgba(212,151,58,.4);
}
.adoc-thumb-active .adoc-thumb-num {
  color: #d49a3e;
}

/* ── Inline / sidebar compact ───────────────────────────────────── */
/* Used on investisseurs.html where player is in a side column */
.adoc-player-card--compact .adoc-thumbstrip {
  flex-wrap: wrap;
}
.adoc-player-card--compact .adoc-thumb {
  width: calc(25% - 3px);
  min-width: 44px;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .adoc-section { padding: 3.5rem 0 3rem; }
  .adoc-player-card--compact .adoc-thumb { width: calc(25% - 3px); }
}
@media (max-width: 600px) {
  .adoc-section { padding: 2.8rem 0 2.5rem; }
  .adoc-player-card { border-radius: 14px; }
  .adoc-controls { gap: .5rem; padding: .7rem .8rem; }
  .adoc-time { min-width: 68px; font-size: .68rem; }
  .adoc-thumb { min-width: 44px; }
}
