/* --- Reset & structure --- */
html, body {
  background: #9b0a0a;
  height: 100%;
  margin: 0;
  padding: 0;
}

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

/* --- Structure principale --- */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

#rk-top-tracks-widget {
  margin: 40px auto;
  max-width: 700px;
  padding: 20px;
  background: #111;
  color: white;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  font-family: 'Segoe UI', sans-serif;
}

/* --- Barre rouge --- */
.top-bar {
  background-color: #970A0A;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  height: 80px;
}

.logo {
  height: 250px;
  margin-top: 50px;
}

/* --- Barre noire --- */
.sub-bar {
  background-color: #111;
  color: white;
  text-align: center;
  padding: 8px 0;
  font-weight: bold;
}

/* --- Logo cliquable + animation --- */
.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  text-align: center;
}

.clickable-logo {
  max-width: 200px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.clickable-logo.playing {
  animation: pulse 1s infinite ease-in-out;
}

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

/* --- Égaliseur --- */
.equalizer-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.equalizer {
  display: flex;
  gap: 4px;
}

.equalizer.hidden {
  display: none;
}

.bar {
  width: 6px;
  height: 20px;
  background: #970A0A;
  animation: bounce 1s infinite ease-in-out;
}

.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 100% { height: 20px; }
  50% { height: 40px; }
}

.vafm-player {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border: 2px solid #970A0A;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vafm-player h2 {
  color: #970A0A;
  margin-bottom: 20px;
}

.player-container {
  position: relative;
  z-index: 2;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(255,255,255,0.9);
  padding: 12px;
  border-radius: 8px;
}

#playBtn {
  background: #970A0A;
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
}

#volumeSlider {
  width: 100px;
}

#statusText {
  font-weight: bold;
  color: #970A0A;
}

.player-visual {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, #ff0000 0%, #970A0A 100%);
  opacity: 0;
  animation: pulse 2s infinite;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.vafm-player.playing .player-visual {
  opacity: 0.3;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.5; }
  100% { transform: scale(1); opacity: 0.3; }
}


/* --- Menu hamburger --- */
.hamburger {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 4px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Menu latéral --- */
.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  background-color: #57081B;
  color: white;
  display: none;
  flex-direction: column;
  padding: 60px 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.side-menu.open {
  display: flex;
  transform: translateX(0);
}

.side-menu a {
  color: white;
  font-size: 1.1em;
  text-decoration: none;
  margin-bottom: 20px;
}

.side-menu a:hover {
  color: yellow;
}

/* --- Réseaux sociaux --- */
.social-links {
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.social-links img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* --- Contenu principal --- */
.container {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.news-card {
  max-width: 600px;
  margin: 20px auto;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.news-card img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.news-card h2 {
  font-size: 1.4em;
  margin-bottom: 8px;
  color: #970A0A;
}

.news-card p {
  font-size: 0.95em;
  line-height: 1.4;
  color: #333;
}

/* --- Footer --- */
.site-footer {
  background-color: #111;
  color: white;
  padding: 40px 20px 20px;
  font-size: 0.95em;
  width: 100%;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  gap: 20px;
}

.footer-logo img {
  height: 60px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #FFD700;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 0.85em;
  opacity: 0.7;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    gap: 10px;
    height: auto;
  }

  .logo {
    height: 150px;
  }

  .clickable-logo {
    max-width: 150px;
  }

  .bar {
    width: 4px;
  }

  .news-card {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .hamburger {
    position: absolute;
    top: 15px;
    right: 15px;
  }
}
