/* ==========================================================================
   UAI PLAYER — DESIGN SYSTEM (MÍDIA INDOOR SAAS)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --uai-font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --uai-font-mono: 'JetBrains Mono', monospace;

  --uai-emerald: #10B981;
  --uai-emerald-dark: #059669;
  --uai-cyan: #06B6D4;
  --uai-amber: #F59E0B;
  --uai-rose: #EF4444;

  --uai-bg-dark: #080C14;
  --uai-bg-surface: #0E1422;
  --uai-bg-card: rgba(18, 25, 41, 0.8);

  --uai-border-subtle: rgba(255, 255, 255, 0.08);
  --uai-border-glow: rgba(16, 185, 129, 0.4);

  --uai-text-heading: #F8FAFC;
  --uai-text-body: #CBD5E1;
  --uai-text-muted: #94A3B8;
  --uai-text-dim: #64748B;

  --uai-radius-sm: 8px;
  --uai-radius-md: 14px;
  --uai-radius-lg: 20px;
  --uai-radius-full: 9999px;

  --uai-shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--uai-font-main);
  background-color: var(--uai-bg-dark);
  color: var(--uai-text-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.glass-panel {
  background: var(--uai-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--uai-border-subtle);
  border-radius: var(--uai-radius-lg);
  box-shadow: var(--uai-shadow-card);
}

.badge-emerald {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--uai-radius-full);
}

.btn-luxury {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: var(--uai-radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  text-decoration: none;
}

.btn-luxury:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--uai-text-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--uai-radius-md);
  border: 1px solid var(--uai-border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.input-luxury {
  width: 100%;
  background: rgba(14, 20, 34, 0.85);
  border: 1px solid var(--uai-border-subtle);
  border-radius: var(--uai-radius-md);
  padding: 11px 14px;
  color: var(--uai-text-heading);
  font-family: var(--uai-font-main);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-luxury:focus {
  border-color: var(--uai-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

/* ==========================================================================
   PLAYER VIEWPORT COM ROTAÇÃO 0° / 90° / 180° / 270°
   ========================================================================== */
.player-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  transform-origin: center center;
}

.player-stage.rot-0 {
  width: 100vw;
  height: 100vh;
  transform: none;
}

.player-stage.rot-180 {
  width: 100vw;
  height: 100vh;
  transform: rotate(180deg);
}

.player-stage.rot-90 {
  width: 100vh;
  height: 100vw;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%) rotate(90deg);
}

.player-stage.rot-270 {
  width: 100vh;
  height: 100vw;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.player-header {
  height: 58px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 12, 20, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  z-index: 10;
}

.player-canvas {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-media-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-media-el.fit-contain {
  object-fit: contain;
}

.player-ticker-bar {
  height: 46px;
  background: #080C14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 18px;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 10;
}

.marquee-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: marquee-scroll 30s linear infinite;
  font-size: 0.95rem;
  font-weight: 600;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
