/* ============================================================
   NusaTV — standalone embed player
   Reuses the player chrome from style.css, then fills the viewport.
   ============================================================ */

html,
body.embed-body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #04050a;
}

body.embed-body {
  min-height: 0;
}

.embed-shell {
  width: 100%;
  height: 100%;
}

.embed-body .player {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  background: radial-gradient(ellipse at 50% 0%, #10141f, #04050a 74%);
}

.embed-body .player video {
  object-fit: contain;
}

.embed-body .player.show-ui .player-top {
  pointer-events: auto;
}

/* Top bar actions */

.emb-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
}

.emb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 13, 22, 0.55);
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.emb-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.emb-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.emb-btn svg {
  width: 15px;
  height: 15px;
}

#btnOpenSite {
  border-color: rgba(34, 211, 238, 0.32);
  background: rgba(34, 211, 238, 0.08);
  color: #d3f9ff;
}

#btnOpenSite:hover {
  background: rgba(34, 211, 238, 0.18);
  border-color: rgba(34, 211, 238, 0.5);
}

/* Error overlay links */

.embed-body .player-error .ghost-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Toast */

.embed-body .toast {
  bottom: 74px;
  z-index: 30;
}

/* Compact top bar on narrow embeds */

@media (max-width: 720px) {
  .embed-body .player-top {
    padding: 9px 10px 28px;
    gap: 8px;
  }
  .emb-actions {
    margin-left: 4px;
  }
  .emb-btn {
    width: 30px;
    padding: 0;
    justify-content: center;
  }
  .emb-btn span {
    display: none;
  }
  .embed-body .pt-text small {
    display: none;
  }
  .embed-body .pctl-vol {
    display: none;
  }
  .embed-body .pctl-time {
    display: none;
  }
}

@media (max-width: 460px) {
  .embed-body .pt-live {
    display: none;
  }
  .embed-body .pctl-live {
    display: none;
  }
}
