/* ==========================================================
   player.css — Overlay de reprodução, controles extras e
   banner de "próximo episódio"
   ========================================================== */

.player-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: none;
  flex-direction: column;
  z-index: 80;
}

.player-overlay.open { display: flex; animation: fade-in 0.2s var(--ease); }

.player-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.35) 70%, transparent);
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
}

.player-topbar #now-playing-title {
  font-size: 13px;
  font-weight: 600;
  font-family: 'Sora', 'Inter', sans-serif;
  color: var(--silver);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-topbar .icon-btn {
  width: 36px;
  height: 36px;
  font-size: 15px;
  background: rgba(15, 18, 26, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.player-topbar .icon-btn:hover {
  background: rgba(62, 143, 224, 0.28);
  border-color: var(--blue);
}

.player-frame {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#video-el {
  width: 100%;
  height: 100%;
  background: #000;
  outline: none;
}

.next-episode-banner {
  position: absolute;
  bottom: 28px;
  right: 28px;
  background: rgba(10, 13, 20, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(126, 200, 245, 0.35);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: none;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
  z-index: 3;
  box-shadow: var(--shadow-pop);
  animation: banner-in 0.3s var(--ease);
}

@keyframes banner-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.next-episode-banner.visible { display: flex; }

.next-episode-banner span {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

.next-episode-banner::before {
  content: "A seguir";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.next-episode-banner button {
  align-self: flex-end;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.next-episode-banner button:hover { color: var(--text); border-color: var(--blue); }

/* Dica de atalhos, mostrada só em telas grandes o suficiente */
.shortcuts-hint {
  position: absolute;
  bottom: 22px;
  left: 22px;
  font-size: 10px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(5, 7, 12, 0.5);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  display: none;
  z-index: 1;
}

@media (min-width: 900px) {
  .shortcuts-hint { display: block; }
}
