/* Players Sin Ads By Sans — Frontend Player Styles */

.psa-player-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  z-index: 10;
}

.psa-player-wrapper video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.psa-inline-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #0f0f13;
  color: #94a3b8;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  z-index: 11;
}

.psa-inline-error {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1a0f0f;
  color: #fca5a5;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  z-index: 11;
  text-align: center;
}

.psa-spin {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(99, 102, 241, .2);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: psa-spin .75s linear infinite;
  flex-shrink: 0;
}

@keyframes psa-spin {
  to { transform: rotate(360deg); }
}

.psa-error {
  background: #fee2e2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin: 12px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.psa-source-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.psa-source-tab {
  padding: 5px 14px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .15s, color .15s;
}

.psa-source-tab.active,
.psa-source-tab:hover {
  background: #6366f1;
  color: #fff;
}
