/* ===== HEADER REDESIGN ===== */
#header {
  background: linear-gradient(135deg, rgba(10,10,26,0.98) 0%, rgba(17,17,40,0.98) 100%);
  border-bottom: 2px solid rgba(233,30,140,0.5);
  padding: 0;
  position: relative;
  box-shadow: 0 4px 30px rgba(233,30,140,0.2);
}

.header-main {
  display: grid;
  grid-template-columns: 280px 1fr 200px;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
}

/* LOGO 3D */
.logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}

.logo-3d {
  max-height: 150px;
  width: auto;
  max-width: 280px;
  animation: logo3d 6s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(233,30,140,0.7)) drop-shadow(0 0 30px rgba(0,212,255,0.3));
  transform-style: preserve-3d;
}

@keyframes logo3d {
  0%   { transform: rotateY(0deg) scale(1); }
  25%  { transform: rotateY(15deg) scale(1.05); }
  50%  { transform: rotateY(0deg) scale(1); }
  75%  { transform: rotateY(-15deg) scale(1.05); }
  100% { transform: rotateY(0deg) scale(1); }
}

.logo-3d:hover {
  animation: logo3d-hover 0.6s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(233,30,140,1)) drop-shadow(0 0 40px rgba(0,212,255,0.6));
}

@keyframes logo3d-hover {
  0%   { transform: rotateY(-20deg) scale(1.1); }
  50%  { transform: rotateY(20deg) scale(1.1); }
  100% { transform: rotateY(-20deg) scale(1.1); }
}

/* CARROSSEL 738x270 */
.header-carousel {
  width: 100%;
  max-width: 738px;
  height: 135px;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  border: 1px solid rgba(233,30,140,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  margin: 0 auto;
}

.header-carousel .slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
  height: 100%;
}

.header-carousel .slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.header-carousel .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.header-carousel .slide .placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(233,30,140,0.15), rgba(0,212,255,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border-radius: 12px;
}

.header-carousel .slide .placeholder span {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

.header-carousel .slide .placeholder strong {
  color: var(--primary);
  font-size: 15px;
  font-family: 'Rajdhani', sans-serif;
}

/* DOTS carrossel */
.carousel-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  background: var(--primary);
  width: 18px;
  border-radius: 3px;
}

/* CONTADORES */
.counters-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.counter-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(233,30,140,0.35);
  border-radius: 10px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text2);
  white-space: nowrap;
  transition: all 0.3s;
}

.counter-box:hover {
  background: rgba(233,30,140,0.1);
  border-color: var(--primary);
}

.counter-box span {
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  font-family: 'Rajdhani', sans-serif;
}

/* PLAYER FINO */
#player-bar {
  background: linear-gradient(90deg, rgba(233,30,140,0.12), rgba(0,212,255,0.12), rgba(233,30,140,0.12));
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 7px 0;
}

.player-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-cover {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 15px rgba(233,30,140,0.5);
  flex-shrink: 0;
  transition: all 0.3s;
}

.player-cover:hover {
  box-shadow: 0 0 25px rgba(233,30,140,0.9);
  transform: scale(1.05);
}

.player-info { flex: 1; min-width: 0; }

.track-name {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 11px;
  color: var(--text2);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(233,30,140,0.2);
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-play {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ff6b9d);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
  box-shadow: 0 0 18px rgba(233,30,140,0.6);
  transition: all 0.3s;
  flex-shrink: 0;
}

.btn-play:hover {
  transform: scale(1.12);
  box-shadow: 0 0 28px rgba(233,30,140,0.9);
}

.volume-control { display: flex; align-items: center; gap: 8px; }
.volume-control input[type=range] { width: 75px; accent-color: var(--primary); cursor: pointer; }

/* ===== RESPONSIVE HEADER ===== */
@media(max-width:1100px) {
  .header-main { grid-template-columns: 180px 1fr 180px; }
  .header-carousel { height: 120px; }
  .logo-3d { max-height: 85px; }
}

@media(max-width:900px) {
  .header-main {
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
  }
  .logo-area { grid-column: 1; grid-row: 1; justify-content: center; }
  .header-carousel { grid-column: 2; grid-row: 1; height: 110px; }
  .counters-area { grid-column: 1 / -1; grid-row: 2; flex-direction: row; justify-content: center; gap: 24px; }
  .logo-3d { max-height: 80px; }
}

@media(max-width:600px) {
  .header-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px;
  }
  .logo-area { grid-column: 1; grid-row: 1; justify-content: center; }
  .header-carousel { grid-column: 1; grid-row: 2; height: 130px; }
  .counters-area { grid-column: 1; grid-row: 3; flex-direction: row; justify-content: center; gap: 16px; }
  .logo-3d { max-height: 65px !important; max-width: 120px !important; }
}
/* PLAYER TOP CORRIGIDO */
#player-top-OLD {
  width: 100%;
  background: linear-gradient(90deg, #0d0d20, #1a0a2e, #0d0d20);
  border-bottom: 2px solid var(--primary);
  padding: 8px 20px;
  position: relative;
  top: 0;
  box-shadow: 0 2px 20px rgba(233,30,140,0.4);
}

.player-top-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: 100%;
  flex-wrap: nowrap;
}

.player-top-inner .player-cover {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.player-top-inner .player-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.player-top-inner .live-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(233,30,140,0.2);
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.player-top-inner .player-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media(max-width:600px) {
  .player-top-inner .live-badge { display: none; }
  .player-top-inner .volume-control { display: none; }
}

#player-top {
  width: 100% !important;
  background: linear-gradient(90deg, #0d0d20, #1a0a2e, #0d0d20) !important;
  border-bottom: 2px solid var(--primary) !important;
  padding: 8px 20px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1001 !important;
  box-shadow: 0 2px 20px rgba(233,30,140,0.4) !important;
}

.player-top-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
}

.player-top-inner .player-controls {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
}

.player-main-container { width:100%; background:linear-gradient(90deg,#0d0d20,#1a0a2e,#0d0d20); border-bottom:2px solid #e91e8c; padding:6px 20px; position:sticky; top:0; z-index:1001; }

.player-flex-row { display:flex; flex-direction:row; align-items:center; gap:12px; width:100%; }

.player-cover { width:40px; height:40px; border-radius:8px; border:2px solid #e91e8c; }

.track-name { font-weight:700; font-size:12px; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:150px; }
.track-artist { font-size:10px; color:#aaaacc; }



@media (max-width: 600px) {
 .player-menu-desktop { display: none !important; }
}

@media (max-width: 600px) {
  #player-inner { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: space-between !important; gap: 5px !important; }
  .player-info-box { display: flex !important; align-items: center !important; flex: 1 !important; min-width: 0 !important; }
  .track-name { font-size: 11px !important; }
  .player-ctrl-unit { display: flex !important; align-items: center !important; gap: 5px !important; }
}

@media (max-width: 600px) {
  #player-top { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 6px !important; }
}

@media (max-width: 600px) {
  #player-top, #player-inner, #player-top div[style] { display: flex !important; flex-direction: row !important; align-items: center !important; flex-wrap: nowrap !important; gap: 5px !important; }
  #player-top nav { display: none !important; }
}
