.player-body {
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 100px;
}

/* —— Vídeo —— */
.vplayer-app,
.aplayer-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.vplayer-top,
.aplayer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.1), transparent);
}

.vplayer-back,
.aplayer-back {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.vplayer-back:hover,
.aplayer-back:hover { color: var(--text); }

.vplayer-brand,
.aplayer-brand {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.vplayer-main,
.aplayer-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 900px) {
  .vplayer-main,
  .aplayer-main { grid-template-columns: 1fr; }
}

.vplayer-stage-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(72vh, calc(100vw * 9 / 16));
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.vplayer-video,
.vplayer-embed-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vplayer-video {
  display: block;
  object-fit: contain;
  background: #000;
}

.vplayer-embed-host iframe,
.vplayer-embed-host > div {
  width: 100%;
  height: 100%;
  border: 0;
}

.vplayer-embed-host .fb-video,
.vplayer-embed-host .fb-video span,
.vplayer-embed-host .fb-video iframe {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
}

.vplayer-stage-wrap--instagram {
  aspect-ratio: auto;
  min-height: min(72vh, 640px);
  max-height: none;
}

.vplayer-instagram-wrap {
  width: 100%;
  min-height: 100%;
  overflow: auto;
  background: #000;
}

.vplayer-instagram-wrap .instagram-media,
.vplayer-instagram-wrap iframe {
  margin: 0 auto !important;
  min-width: 100% !important;
  max-width: 100% !important;
}

.vplayer-stage-wrap--tiktok .vplayer-embed-host iframe {
  border: 0;
  background: #000;
}

.vplayer-meta h1,
.aplayer-meta h1 {
  margin: 0.75rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.vplayer-meta p,
.aplayer-meta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.vplayer-queue-head,
.aplayer-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.vplayer-queue-head h2,
.aplayer-queue-head h2 {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font-display);
}

.vplayer-queue-count,
.aplayer-queue-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.vplayer-tracks,
.aplayer-tracks {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(50vh, 480px);
  overflow-y: auto;
}

.vplayer-track,
.aplayer-track {
  display: grid;
  grid-template-columns: 28px 56px 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  width: 100%;
  text-align: left;
}

.aplayer-track {
  grid-template-columns: 28px 48px 1fr;
}

.vplayer-track:hover,
.aplayer-track:hover { background: var(--bg-card); }

.vplayer-track.is-active,
.aplayer-track.is-active {
  background: rgba(124, 92, 255, 0.15);
}

.vplayer-track-num,
.aplayer-track-num {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.vplayer-track-poster,
.aplayer-track-poster {
  width: 56px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bg-card);
}

.aplayer-track-poster {
  width: 48px;
  height: 48px;
  border-radius: 6px;
}

.vplayer-track-info,
.aplayer-track-info { min-width: 0; }

.vplayer-track-title,
.aplayer-track-title {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.vplayer-track-album,
.aplayer-track-album {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0.1rem 0 0;
}

.vplayer-bar,
.aplayer-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 36, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 0.65rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom));
  z-index: 10;
}

.vplayer-progress-wrap,
.aplayer-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.vplayer-time,
.aplayer-time {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  min-width: 2.75rem;
  text-align: center;
}

.vplayer-progress,
.aplayer-progress {
  flex: 1;
  height: 6px;
  min-height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  user-select: none;
  touch-action: none;
  overflow: hidden;
}

.vplayer-progress:hover,
.aplayer-progress:hover {
  height: 8px;
}

.vplayer-progress-fill,
.aplayer-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: inherit;
  pointer-events: none;
  transition: width 0.1s linear;
}

.vplayer-progress:active .vplayer-progress-fill,
.aplayer-progress:active .aplayer-progress-fill {
  transition: none;
}

.vplayer-bar-row,
.aplayer-bar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.vplayer-btn,
.aplayer-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.15s ease, background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.vplayer-btn svg,
.aplayer-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

.vplayer-btn--secondary,
.aplayer-btn--secondary {
  width: 36px;
  height: 36px;
}

.vplayer-btn--nav,
.aplayer-btn--nav {
  width: 40px;
  height: 40px;
  color: var(--text);
}

.vplayer-btn--nav svg,
.aplayer-btn--nav svg {
  width: 24px;
  height: 24px;
}

.vplayer-btn:hover,
.aplayer-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.vplayer-btn:active,
.aplayer-btn:active {
  transform: scale(0.94);
}

.vplayer-btn--play,
.aplayer-btn--play {
  width: 54px;
  height: 54px;
  margin: 0 0.5rem;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 45%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-btn, 0 4px 20px rgba(139, 107, 255, 0.45));
}

.vplayer-btn--play .player-icon--pause,
.aplayer-btn--play .player-icon--pause {
  display: none;
}

.vplayer-btn--play.is-playing .player-icon--play,
.aplayer-btn--play.is-playing .player-icon--play {
  display: none;
}

.vplayer-btn--play.is-playing .player-icon--pause,
.aplayer-btn--play.is-playing .player-icon--pause {
  display: block;
}

.vplayer-btn--play svg,
.aplayer-btn--play svg {
  width: 26px;
  height: 26px;
}

.vplayer-btn--play:hover,
.aplayer-btn--play:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  color: #fff;
  transform: scale(1.06);
  box-shadow: var(--shadow-glow, 0 6px 24px rgba(139, 107, 255, 0.55));
}

.vplayer-btn--play:active,
.aplayer-btn--play:active {
  transform: scale(0.98);
}

.vplayer-btn.is-active,
.aplayer-btn.is-active {
  color: var(--primary);
  background: rgba(61, 125, 212, 0.12);
}

.vplayer-empty,
.aplayer-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 420px;
  margin: 0 auto;
}

.vplayer-empty h1,
.aplayer-empty h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.vplayer-empty p,
.aplayer-empty p { color: var(--text-muted); }

/* —— Áudio —— */
.aplayer-art-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.aplayer-art {
  width: min(280px, 80vw);
  height: min(280px, 80vw);
  border-radius: var(--radius);
  background: var(--bg-card);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.aplayer-meta {
  text-align: center;
}

.aplayer-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
}

.aplayer-album {
  color: var(--text-muted);
  margin: 0.25rem 0;
}

.aplayer-artist {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.aplayer-track-poster--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--primary);
}

.vplayer-track-poster--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--accent);
}

.aplayer-photo {
  width: min(480px, 90vw);
  max-height: min(60vh, 480px);
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
