/* ═══════════════════════════════════════════════════════════════
   PLAYER ORBITAL — Card branco premium, canvas, vinil, tech-bar
   ═══════════════════════════════════════════════════════════════ */

/* ─── PLAYER CARD BRANCO ─── */
.player-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(14, 165, 233, 0.15);
  box-shadow: 
    0 20px 50px -12px rgba(14, 165, 233, 0.25),
    0 10px 30px -10px rgba(180, 74, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  margin-bottom: 30px;
  animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Linha de brilho animada no topo do card */
.player-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #8b5cf6, #0ea5e9);
  background-size: 300% 100%;
  animation: shimmer 4s infinite linear;
  z-index: 10;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.player-card:hover { 
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 
    0 25px 60px -12px rgba(14, 165, 233, 0.35),
    0 15px 35px -10px rgba(180, 74, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* ─── TOCANDO AGORA (PADRÃO NOTÍCIAS DA CIDADE) ─── */
.now-playing {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 16px 20px !important;
  margin-bottom: 20px !important;
  border-radius: 14px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, var(--cor-cidade-escura, #1e40af) 0%, var(--cor-cidade, #0ea5e9) 50%, var(--cor-cidade-escura, #1e40af) 100%) !important;
  background-size: 200% 100% !important;
  color: #ffffff !important;
  border-bottom: none !important;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  animation: msShimmer 4s linear infinite !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
}

@keyframes msShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Brilho deslizante interno */
.now-playing::before {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: -30% !important;
  width: 60% !important;
  height: 200% !important;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%) !important;
  transform: rotate(20deg) !important;
  animation: msShine 3.5s ease-in-out infinite !important;
  pointer-events: none !important;
}

@keyframes msShine {
  0% { left: -30%; }
  60% { left: 130%; }
  100% { left: 130%; }
}

.now-playing .label {
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  z-index: 1 !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
}

.now-playing #tocando {
  font-size: 18px !important;
  font-weight: 800 !important;
  font-family: 'Inter', sans-serif !important;
  z-index: 1 !important;
  line-height: 1.2 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex-grow: 1 !important;
}

/* ═══ MARESOL ORBITAL ═══ */
.ms-ghost-body,
.ms-ghost-body * { box-sizing: border-box; margin: 0; padding: 0; border: none; outline: none; background: none; }

.ms-ghost-body {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Space Grotesk', 'Segoe UI', Tahoma, sans-serif;
  padding: 0 12px 16px 12px;
  margin: 0 auto;
  background: radial-gradient(ellipse at 50% 0%, #0a0f1a 0%, #04060a 70%);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255,255,255,0.03);
  overflow: hidden;
}
.ms-ghost-body::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.18) 2px, rgba(0,0,0,0.18) 4px);
  opacity: 0.15;
}

.ms-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 4px 8px 4px;
  border-bottom: 1px solid rgba(0, 242, 255, 0.2);
  margin-bottom: 12px;
  z-index: 5;
  position: relative;
}
.ms-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 5PX;
    color: #8899bb;
    transition: all 0.3s ease;
}
.ms-status-badge .ms-logo-text {
  background: linear-gradient(135deg, #00f2ff 0%, #b44aff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ms-status-badge .ms-separator { color: #445566; -webkit-text-fill-color: #445566; margin: 0 4px; }
.ms-status-badge .ms-status-text { font-weight: 700; -webkit-text-fill-color: #8899bb; }
.ms-status-badge .ms-status-text.live { color: #00f2ff; -webkit-text-fill-color: #00f2ff; text-shadow: 0 0 12px rgba(0,242,255,0.6); }
.ms-status-badge .ms-status-dot {
  width: 10px;
  height: 10px;
  background: #ff1744;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff1744, 0 0 20px rgba(255,23,68,0.6);
  animation: ms-pulsar-red 1.5s infinite;
  flex-shrink: 0;
}
.ms-status-badge.live .ms-status-dot { animation: ms-pulsar-red 0.8s infinite alternate; }
@keyframes ms-pulsar-red {
  0% { transform: scale(1); box-shadow: 0 0 10px #ff1744; }
  100% { transform: scale(1.2); box-shadow: 0 0 25px #ff1744, 0 0 50px rgba(255,23,68,0.8); }
}

.ms-control-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  z-index: 5;
}
.ms-btn-play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 109, 0, 0.08);
  border: 2px solid rgba(255, 109, 0, 0.4);
  color: #ff6d00;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ms-btn-play:hover { border-color: #ff9e40; box-shadow: 0 0 22px rgba(255, 109, 0, 0.5); transform: scale(1.05); }
.ms-btn-play.active {
  background: rgba(255, 23, 68, 0.2);
  border-color: #ff1744;
  color: #fff;
  box-shadow: 0 0 25px rgba(255, 23, 68, 0.7), inset 0 0 15px rgba(255,23,68,0.2);
}
.ms-btn-play.active::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 23, 68, 0.4);
  animation: ms-ring-spin 2.5s linear infinite;
}
@keyframes ms-ring-spin { 0%{transform:rotate(0deg)} 100%{transform:rotate(360deg)} }

.ms-pause-icon { display: flex; gap: 5px; justify-content: center; align-items: center; width: 18px; height: 18px; }
.ms-pause-icon span { display: block; width: 5px; height: 15px; background: currentColor; border-radius: 3px; }

.ms-uv-panel {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  max-width: 150px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 242, 255, 0.3);
  box-shadow: 0 0 18px rgba(0,0,0,0.6), 0 0 8px rgba(0,242,255,0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ms-uv-container {
  width: 100%;
  height: 48px;
  background: rgba(0,0,0,0.6);
  padding: 3px;
  cursor: pointer;
}
#ms-canvas-float { width: 100%; height: 100%; display: block; border-radius: 2px; }

/* ─── BARRA DE PROGRESSO (CRESCENDO DO CENTRO PARA AS PONTAS) ─── */
.ms-progress-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(0,0,0,0.7);
  position: relative;
}

#ms-progress-bar {
  height: 100%;
  width: 100%; /* Ocupa toda a barra */
  background: linear-gradient(90deg, #00f2ff, #b44aff, #ff6d00);
  transition: transform 0.5s linear;
  transform-origin: center; /* Faz crescer do centro para as pontas */
  transform: scaleX(0); /* Começa invisível */
  border-radius: 2px;
}

.ms-vinyl-groove {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 90deg, #1a1a1a, #2a2a2a, #1a1a1a, #0d0d0d, #1a1a1a);
  box-shadow: 0 0 20px rgba(255,109,0,0.5), inset 0 0 6px rgba(0,0,0,0.5);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ms-vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, #1a1a1a 0px, #1a1a1a 2px, #0d0d0d 3px, #0d0d0d 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ms-vinyl-disc.playing { animation: ms-vinyl-spin 2.5s linear infinite; }
@keyframes ms-vinyl-spin { to { transform: rotate(360deg); } }
.ms-vinyl-inner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6d00, #ffb74d);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ms-vinyl-label { font-size: 4.5px; font-weight: 900; color: #1a0a00; letter-spacing: 0.3px; text-align: center; line-height: 1; }
.ms-vinyl-hole { position: absolute; width: 5px; height: 5px; background: #04060a; border-radius: 50%; }

/* ═══ DESCRIÇÕES (TECH BAR) — DESIGN PREMIUM ═══ */
.ms-tech-bar {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid rgba(0, 242, 255, 0.2);
  border-radius: 10px;
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 10px;
  color: #cbd5e1;
  z-index: 5;
  flex-wrap: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 15px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}
.ms-tech-bar > div,
.ms-tech-bar > span {
  flex-shrink: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ms-tech-bar .ms-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #333;
  transition: 0.3s;
  flex-shrink: 0;
}
.on-sync .ms-dot { background: #00f2ff; box-shadow: 0 0 10px #00f2ff, 0 0 20px rgba(0,242,255,0.4); }
.ritmo-on { background: #ff6d00!important; box-shadow: 0 0 10px #ff6d00!important; }
.vivo-on { background: #ff1744!important; box-shadow: 0 0 10px #ff1744!important; }
#ms-status-label { 
  color: #ff9e40; 
  font-weight: 800; 
  letter-spacing: 1.5px; 
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 158, 64, 0.4);
}
.ms-tech-data {
  display: inline-flex;
  align-items: center;
  min-width: 130px;
  max-width: 130px;
  justify-content: flex-start;
  color: #0befc7;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex-shrink: 0;
  font-weight: 600;
}
#ms-data-panel { 
  transition: opacity 0.4s; 
  color: #b44aff; 
  overflow: hidden; 
  text-overflow: ellipsis; 
  width: 100%; 
  text-align: left;
  font-weight: 500;
}
#ms-data-panel b { 
  font-weight: 800; 
  color: #0befc7; 
  text-shadow: 0 0 8px rgba(11, 239, 199, 0.4);
}
#ms-l-sync {
  color: #cbd5e1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ═══ VOLUME ═══ */
.ms-vol-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 280px;
  z-index: 5;
}
.ms-vol-icon { color: #b44aff; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(180, 74, 255, 0.5)); }
.ms-vol-slider {
  flex-grow: 1;
  -webkit-appearance: none;
  height: 8px;
  background: linear-gradient(90deg, #1a1a2e, #2a2a4a);
  border-radius: 10px;
  outline: none;
}
.ms-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: radial-gradient(circle at 30% 30%, #fff, #00f2ff 60%, #006466);
  border: 2px solid #b44aff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}
.ms-vol-txt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #0befc7;
  min-width: 44px;
  font-weight: 800;
  background: rgba(0, 242, 255, 0.08);
  border: 1px solid rgba(0, 242, 255, 0.3);
  padding: 4px 8px;
  border-radius: 6px;
  text-align: center;
  text-shadow: 0 0 8px rgba(11, 239, 199, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE (Ajuste do card branco no modo escuro)
   ═══════════════════════════════════════════════════════════════ */
body.dark-mode .player-card {
  background: rgba(30, 41, 59, 0.98);
  border-color: rgba(0, 242, 255, 0.3);
  box-shadow: 
    0 20px 50px -12px rgba(0, 242, 255, 0.3),
    0 10px 30px -10px rgba(180, 74, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body.dark-mode .player-card:hover {
  box-shadow: 
    0 25px 60px -12px rgba(0, 242, 255, 0.4),
    0 15px 35px -10px rgba(180, 74, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}