/* ═══════════════════════════════════════════════════════
   PLAYER.CSS — Pagina player video BigBag Smart
   Greenplast S.r.l.s.
═══════════════════════════════════════════════════════ */

/* ── Layout pagina ── */
.player-main {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--banner-h, 0px) + 70px);
}



/* ── Area video ── */
.player-video-wrap {
  flex: 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-video-inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* Video nativo — occupa tutto il contenitore */
.player-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
  outline: none;
}

/* Stile della barra controlli nativa (cross-browser) */
.player-video::-webkit-media-controls-panel {
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.player-video:focus-visible {
  outline: 2px solid var(--verde, #2ecc71);
  outline-offset: 2px;
}

/* Overlay play iniziale — scompare dopo il primo click */
.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 5;
}
.player-overlay.nascosto {
  opacity: 0;
  pointer-events: none;
}

.player-play-btn {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(46,204,113,0.9);
  border: 3px solid rgba(255,255,255,0.3);
  color: #000;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), background 0.2s;
  box-shadow: 0 8px 40px rgba(46,204,113,0.4);
}
.player-play-btn:hover { transform: scale(1.12); background: var(--verde, #2ecc71); }
.player-play-ico { font-size: 1.8rem; margin-left: 5px; line-height: 1; }

/* ── Metadati sotto il video ── */
.player-meta {
  background: var(--scuro, #111);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.8rem 2rem;
}
.player-meta-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.player-badge {
  display: inline-block;
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--verde, #2ecc71);
  border: 1px solid rgba(46,204,113,0.35);
  padding: 0.2rem 0.7rem; border-radius: 999px;
  margin-bottom: 0.6rem;
}
.player-desc {
  font-size: 0.88rem;
  color: rgba(245,245,240,0.55);
  line-height: 1.6;
  max-width: 560px;
  margin: 0;
}

/* Bottone torna indietro */
.player-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--bianco, #f5f5f0);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.player-back-btn:hover {
  border-color: var(--verde, #2ecc71);
  color: var(--verde, #2ecc71);
  transform: translateX(-3px);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .player-header-inner { flex-direction: column; align-items: flex-start; }
  .player-lang-switch  { margin-left: 0; }
  .player-meta-inner   { flex-direction: column; }
  .player-play-btn     { width: 64px; height: 64px; }
  .player-play-ico     { font-size: 1.4rem; }
}

/* Schermo molto grande: limita altezza video per non tagliare header/footer */
@media (min-height: 900px) and (min-width: 1024px) {
  .player-video-inner { max-height: calc(100vh - 280px); }
}
