/* =========================================================
GLOBAL RESET
========================================================= */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: system-ui, Arial, sans-serif;
  color: #fff;
}

/* =========================================================
BACKGROUND
========================================================= */

body {
  background: url("/background.jpg") no-repeat center center fixed;
  background-size: cover;
}

/* =========================================================
HERO
========================================================= */

.hero {
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: black;
  display: block;
}

.hero img {
  width: 100vw;
  height: auto;
  display: block;
  transform: scale(1.01);
}

/* =========================================================
INTRO / ABOUT
========================================================= */

.intro-inner {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.intro-photo {
  width: 240px;
  max-height: 312px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(0,0,0,0.6);
  flex-shrink: 0;
}

.intro-text {
  flex: 1;
  line-height: 1.6;
}

@media (max-width:768px){

  .intro-inner{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .intro-photo{
    width: 200px;
    max-height: none;
  }

}

/* =========================================================
GENRE FRAMES
========================================================= */

.genre-frame {
  margin: 60px auto;
  padding: 25px;
  max-width: 1400px;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.genre-frame h2 {
  margin-bottom: 20px;
  font-size: 28px;
  text-align: left;
  padding-left: 12px;
}

/* =========================================================
ALBUM CARDS GRID
========================================================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  gap: 20px;
  padding: 20px;
}

.album-card {
  background: #161616;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  transition: .2s;
}

.album-card:hover {
  transform: scale(1.05);
}

.album-card img {
  width: 100%;
  display: block;
}

.album-card h3 {
  text-align: center;
  padding: 10px;
  font-size: 16px;
}

.album-desc {
  text-align: center;
  display: block;
  width: 100%;
  margin-top: 6px;
}

/* =========================================================
ALBUM PAGE LAYOUT
========================================================= */

.main {
  display: flex;
  gap: 30px;
  padding: 30px;
}

.cover img {
  width: 420px;
  max-width: 90vw;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.7);
}

.tracks {
  max-width: 500px;
  color: #111;
}

.track {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
  background: rgba(255,255,255,0.9);
  padding: 8px 10px;
  border-radius: 8px;
}

.track span {
  flex: 1;
  color: #111;
}

/* =========================================================
PLAY BUTTON BASE
========================================================= */

.track button {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
}

/* =========================
HOVER GLOW
========================= */

.track button:hover {
  background:
  linear-gradient(145deg,#4da6ff 0%,#1e90ff 40%,#63b3ff 60%,#0d6efd 100%);

  box-shadow:
    0 0 8px #1e90ff,
    0 0 18px #1e90ff,
    inset 0 0 6px rgba(255,255,255,0.7);

  transform: scale(1.08);
}

/* =========================
ACTIVE PLAYING GLOW
========================= */

.track button.playing {
  background:
  linear-gradient(145deg,#4da6ff 0%,#1e90ff 40%,#63b3ff 60%,#0d6efd 100%);

  box-shadow:
    0 0 10px #1e90ff,
    0 0 22px #1e90ff,
    inset 0 0 8px rgba(255,255,255,0.85);

  transform: scale(1.1);
}

/* =========================
MP3 BUTTON
========================= */

.mp3btn {
  display:inline-block;
  background:#f2f2f2;
  color:#000;
  border-radius:6px;
  padding:4px 10px;
  font-size:12px;
  text-decoration:none;
  font-weight:bold;
  margin-left:auto;
  transition: all .2s ease;
}

.mp3btn:hover {
  background:
  linear-gradient(145deg,#4da6ff 0%,#1e90ff 40%,#63b3ff 60%,#0d6efd 100%);
  color:#fff;
  box-shadow:
    0 0 6px #1e90ff,
    0 0 14px #1e90ff;
  transform: scale(1.05);
}

/* =========================================================
MOBILE STACK
========================================================= */

@media (max-width:768px){

  .main{
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .cover img{
    width: 90%;
    max-width: 420px;
  }

  .tracks{
    width: 100%;
    max-width: 100%;
  }

}

/* =========================================================
AUDIO / VISUALIZER
========================================================= */

audio {
  width: 100%;
  margin-top: 10px;
}

#visualizer {
  display: block;
  margin: 10px auto 0 auto;
  background: rgba(0,0,0,0.6);
  border-radius: 8px;
  max-width: 90%;
}

/* =========================================================
RADIO ACTIVE CHANNEL LED
========================================================= */

.radio-channels button.active {

  color: #fff;

  background:
  linear-gradient(145deg,#4da6ff 0%,#1e90ff 40%,#63b3ff 60%,#0d6efd 100%);

  border: 1px solid #66b3ff;

  box-shadow:
  0 0 8px #1e90ff,
  0 0 18px #1e90ff,
  inset 0 0 8px rgba(255,255,255,0.7);

  transform: scale(1.05);
}

/* =========================================================
RADIO PLAYER PANEL (CENTERED + RAISED)
========================================================= */

.radio-player {

  max-width: 900px;
  margin: 60px auto;

  padding: 25px;

  background: rgba(255,255,255,0.04);

  border-radius: 14px;

  box-shadow:
    0 0 20px rgba(0,0,0,0.4);

  text-align: center;
}


/* =========================================================
SONG OF THE DAY PANEL
========================================================= */

.song-of-week {

  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.song-box {

  max-width: 500px;
  width: 100%;

  padding: 25px;

  background: rgba(255,255,255,0.04);

  border-radius: 14px;

  box-shadow:
    0 0 20px rgba(0,0,0,0.4);

  text-align: center;
}

/* ==========================================
PROGRESS BAR GLOW
========================================== */

#progress{
  appearance:none;
  height:6px;
  border-radius:6px;
  background:#444;

  box-shadow:
    0 0 8px #00ff88,
    0 0 18px #00ff88,
    inset 0 0 4px rgba(255,255,255,0.4);
}

/* ==========================================
PROGRESS BAR PULSE (WHILE PLAYING)
========================================== */

@keyframes pulseGlow {
  0% {
    box-shadow:
      0 0 6px #00ff88,
      0 0 12px #00ff88;
  }

  50% {
    box-shadow:
      0 0 14px #00ff88,
      0 0 26px #00ff88;
  }

  100% {
    box-shadow:
      0 0 6px #00ff88,
      0 0 12px #00ff88;
  }
}

#progress.playing {
  animation: pulseGlow 2s ease-in-out infinite;
}
