@import url(https://fonts.bunny.net/css?family=rubik:400,500,600,700);

:root {
  --bg: #EEF0F2;
  --ink: #12151A;
  --ink-soft: #4A5160;

  --logo-bg: #2B3446;
  --logo-fg: #EEF0F2;

  --console-bg: #141735;
  --console-bg-soft: #1B2029;
  --console-line: #2A2F39;
  --console-fg: #F4F5F7;
  --console-fg-soft: #9AA3B2;

  --accent: #E0472B;
  /* vermelho "no ar" */
  --accent-2: #1FAAA3;
  /* detalhe secundário / hover */

  --footer-bg: #0D1420;
  --footer-fg: #EEF0F2;

  --radius-lg: 8px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --font-body: "Rubik", sans-serif;

  --container-w: 1160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header ---------------- */
.site-header {
  padding: 40px 0 24px;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.brand-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0;
  letter-spacing: -0.01em;
}

.brand-slogan {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 500;
}

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  line-height: 1.15;
  transition: transform .15s ease, background .15s ease;
  min-width: 160px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge:hover {
  background: #262b35;
  transform: translateY(-1px);
}

.badge-icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.badge small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  opacity: .75;
}

.badge strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

/* ---------------- Player ---------------------- */
.play-button {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease;
}

.play-button:hover {
  opacity: 0.8;
}

.play-button svg {
  width: 60px;
  height: 60px;
  margin-top: 3px;
  flex: none;
}

.volume-control {
  margin: 0 20px;
  display: flex;
  align-items: center;
}

.volume-control svg {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  flex: none;
}

.volume-slider {
  width: 200px;
  margin-left: 10px;
  height: 4px;
  border-radius: 2px;
  appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  cursor: pointer;
}

.track-info {
  margin: 5px 0 20px 0;
}

.artist {
  font-weight: 500;
  margin-bottom: 4px;
  font-size: 1.1em;
  text-transform: uppercase;
}

.song {
  font-size: 1.1em;
  font-weight: 400;
}

.controls-group {
  margin: 10px;
}

.controles {
  display: flex;
}

/* ---------------- Hero / corpo ---------------- */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: 10px;
  align-items: center;
  background-color: #fff;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}

.vu-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.logo-box {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin-bottom: 2.9rem;
}

.logo-fallback {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 24px);
  text-align: center;
}

.player-wrap {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ---------------- Console do player ---------------- */
.player-console {
  background: var(--console-bg);
  color: var(--console-fg);
  border-radius: var(--radius-lg);
  padding: 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 18px 40px -20px rgba(14, 17, 22, 0.45);
}

.console-readout {
  border-bottom: 1px solid var(--console-line);
  padding-bottom: 16px;
  overflow: hidden;
}

/* ---------------- Redes sociais ---------------- */
.social-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
  cursor: pointer;
}

.social-link svg {
  width: 27px;
  height: 27px;
}

.social-link:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ---------------- Notícias -------------- */
.rss-ticker-wrapper {
  width: 100%;
  background-color: #4a5160;
  color: #ffffff;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 40px;
  position: relative;
  z-index: 999;
}

.rss-ticker-title {
  background-color: #007bff;
  color: #fff;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1px;
  white-space: nowrap;
  z-index: 2;
}

.rss-ticker-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

/* O container pai agora comanda a pausa ao receber o mouse */
.rss-ticker-container:hover .rss-ticker-track {
  animation-play-state: paused;
}

.rss-ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: tickerAnimation 100s linear infinite;
}

.rss-ticker-item {
  display: inline-block;
  padding-right: 60px;
  font-size: 14px;
  color: #ddd;
}

.rss-ticker-item a {
  color: #fff;
  text-decoration: none;
}

.rss-ticker-item a:hover {
  color: #f8745d;
  text-decoration: none;
  cursor: pointer;
}

@keyframes tickerAnimation {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  margin-top: auto;
}

.site-footer a {
  color: var(--footer-fg);
  text-decoration: none;
}

.site-footer .container {
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .02em;
}

/* ---------------- Responsivo (celular) ---------------- */
@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .logo-box {
    width: min(220px, 60vw);
  }

  .player-wrap {
    width: 100%;
  }

  .console-readout {
    text-align: left;
  }

  .social-row {
    justify-content: center;
    margin-bottom: 10px;
  }

  .header-inner {
    justify-content: center;
    text-align: center;
  }

  .badges {
    justify-content: center;
  }

  .volume-control {
    display: none;
  }

  .controles {
    justify-content: center;
  }

  .rss-ticker-wrapper {
    display: none;
  }

  .logo-box img {
    margin-bottom: 0;
  }
}

@media (max-width: 420px) {
  .player-console {
    padding: 20px;
  }
}
/* ---------------- Modal (Pedido de Música / Histórico de Músicas) -------------- */
.social-link.botao-modal-extra {
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.modal-extra-fundo {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.modal-extra-fundo.aberto {
  display: flex;
}

.modal-extra-caixa {
  width: 100%;
  height: min(90vh, 720px);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-extra-cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--ink);
  color: #fff;
}

.modal-extra-cabecalho h2 {
  margin: 0;
  font-size: 16px;
}

.modal-extra-fechar {
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.modal-extra-corpo {
  flex: 1;
  min-height: 0;
}

.modal-extra-corpo iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 600px) {
  .modal-extra-caixa {
    height: 85vh;
  }
}
