/* ===================================================
   HYPERGEN RADIO - STYLE GLOBAL
   =================================================== */

:root {
  --neon-green: #00ffb3;
  --neon-blue: #0077ff;
  --neon-red: #ff4d4d;
  --glass-bg: rgba(255,255,255,0.08);
  --text-light: #e6faff;
}

/* --- GLOBAL RESET --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-light);
  background: url('/assets/img/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- ANIMATED BACKGROUND OVERLAY --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 25% 20%, rgba(0,255,179,0.15), transparent 60%),
			  radial-gradient(circle at 80% 70%, rgba(0,120,255,0.15), transparent 60%);
  background-size: 200% 200%;
  animation: moveGradient 18s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}
@keyframes moveGradient {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 50% 100%; }
}

/* ===================================================
   HEADER + NAV
   =================================================== */

.site-header {
  position: relative;
  z-index: 10;
}

.banner-wrap {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.banner {
  width: 100%;
  height: 140px;
  object-fit: cover;
  filter: contrast(1.1) brightness(0.9);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}

.banner-logo {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  margin-right: 20px;
}

.banner-center h1 {
  font-size: 28px;
  letter-spacing: 1px;
  color: var(--neon-green);
  text-shadow: 0 0 10px rgba(0,255,179,0.6);
}

.banner-sub {
  font-size: 14px;
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0,120,255,0.4);
}

.main-nav {
  background: rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--neon-green);
}

/* ===================================================
   LAYOUT
   =================================================== */

.layout {
  display: flex;
  gap: 25px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  align-items: stretch;
}

.left-col, .right-col {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-glass {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 600px;
  max-height: 600px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  background: var(--glass-bg);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  position: relative;
  z-index: 1;
}

/* ===================================================
   PLAYER DJ
   =================================================== */

.player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.onair-info {
  color: var(--neon-green);
  font-size: 0.9rem;
  text-shadow: 0 0 8px rgba(0,255,179,0.3);
  margin-bottom: 4px;
  animation: glowText 3s ease-in-out infinite;
}
@keyframes glowText {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

.onair-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,0,0,0.15);
  border: 1px solid rgba(255,80,80,0.4);
  border-radius: 999px;
  font-weight: bold;
  color: var(--neon-red);
  padding: 6px 16px;
  text-shadow: 0 0 10px rgba(255,0,0,0.6);
  box-shadow: 0 0 20px rgba(255,0,0,0.4);
  animation: onAirPulse 1.8s ease-in-out infinite;
  margin-bottom: 10px;
}
@keyframes onAirPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* Pochette vinyle */
.vinyl {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
/*  animation: spin 12s linear infinite; */
}
.vinyl.paused { animation-play-state: paused; opacity: 0.85; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Nowplaying info */
.nowplaying-box {
  width: 100%;
  padding: 10px;
}

.song-title {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
  -webkit-background-clip: text;
  color: transparent;
  animation: titleGlow 6s ease-in-out infinite;
  margin-top: 10px;
}

@keyframes titleGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.song-artist {
  color: var(--neon-green);
  font-weight: 600;
  margin-top: 4px;
}

.song-year,
.song-duration,
.song-album,
.song-genre {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 4px;
}

.song-album {
  color: var(--neon-blue);
  font-style: italic;
}

.song-genre {
  color: var(--neon-green);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Progress bar */
.progress-container {
  width: 80%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  margin: 14px auto;
  overflow: hidden;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
  transition: width 0.5s linear;
}

/* Controls */
.controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

.btn {
  background: linear-gradient(180deg, var(--neon-green), #14c34a);
  border: none;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}
.btn:hover { transform: translateY(-3px); }

/* Volume */
.volume-slider {
  width: 100px;
}

.progress-time {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 6px;
  text-align: center;
  font-family: monospace;
}

/* ===================================================
   TOP 10
   =================================================== */

.top10-card h3 {
  margin-bottom: 12px;
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(0,255,179,0.3);
}

.top10-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}

.top10-track {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 6px;
  transition: background 0.2s ease;
}
.top10-track:hover {
  background: rgba(0,255,179,0.08);
}

.top10-track img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.top10-title {
  font-weight: 500;
  color: #ccc;
  font-size: 0.85rem;
}
.top10-artist {
  font-size: 0.85rem;
  color: var(--neon-green);
}

.history-box {
  margin-top: 20px;
  text-align: left;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 12px;
  max-height: 280px;
  overflow-y: auto;
}

.history-box h3 {
  color: var(--neon-green);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

#history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#history-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #eee;
}

#history-list li img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

#history-list li .track-info {
  display: flex;
  flex-direction: column;
}

#history-list li .track-artist {
  font-weight: bold;
  color: var(--neon-green);
}

#history-list li .track-title {
  font-size: 0.85rem;
  color: #ccc;
}

.news-box {
  margin-top: 20px;
  text-align: left;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 12px;
  max-height: 280px;
  overflow-y: auto;
}

.news-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-box li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

.news-box a {
  color: #00ffcc;
  text-decoration: none;
}

.news-box a:hover {
  text-decoration: underline;
}

.news-box h3 {
  color: var(--neon-green);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

#news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#news-list li {
  font-size: 0.9rem;
  color: #eee;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 6px;
}

/* ===================================================
   MINI PLAYER
   =================================================== */

.mini-player {
  position: fixed;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(0,0,0,0.5);
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  z-index: 999;
}

.mini-player img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.mini-center {
  min-width: 120px;
}

.mini-center div {
  line-height: 1.2;
}

.mini-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 20px;
  cursor: pointer;
}

/* ===================================================
   FORMS & PAGES
   =================================================== */

.page-card {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

input, textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 8px;
  color: #fff;
}

button.btn {
  background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  align-self: flex-start;
}

.notice {
  margin-top: 10px;
  padding: 10px;
  background: rgba(0,255,179,0.1);
  border-radius: 8px;
}

.mentions-legales {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: rgba(0,0,0,0.6);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 200, 0.2);
  color: #eee;
}

.mentions-legales h1 {
  color: #00ffcc;
  text-align: center;
  margin-bottom: 25px;
}

.mentions-legales h2 {
  color: #ff66cc;
  margin-top: 20px;
  margin-bottom: 10px;
}

.mentions-legales p {
  line-height: 1.6;
  font-size: 0.95rem;
}

.cgu {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: rgba(0,0,0,0.6);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 200, 0.2);
  color: #eee;
}

.cgu h1 {
  color: #00ffcc;
  text-align: center;
  margin-bottom: 25px;
}

.cgu h2 {
  color: #ff66cc;
  margin-top: 20px;
  margin-bottom: 10px;
}

.cgu p {
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ===================================================
   FOOTER
   =================================================== */

.site-footer {
  background: rgba(0,0,0,0.8);
  color: #ccc;
  text-align: center;
  padding: 20px 10px;
  margin-top: 30px;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.site-footer a {
  color: #00ffcc;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-inner {
  color: #ccc;
  font-size: 0.9rem;
}

.footer-inner a {
  color: var(--neon-green);
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .left-col, .right-col { flex: 1 1 100%; }
  .banner-wrap { height: 110px; }
  .banner { height: 110px; }
  .vinyl { width: 180px; height: 180px; }
  .mini-player { bottom: 10px; right: 10px; }
}
