* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #111;
  background: #f6f7fb;
  transition: background-color .35s, color .35s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background-size: 400% 400%;
  animation: gradientShift 30s ease infinite;
  transition: background 1s ease;
}

body.rnb {
  background: linear-gradient(-45deg, #6a2fb9, #a855f7, #9333ea, #6a2fb9);
}

/* Latino 🔥 */
body.latino {
  background: linear-gradient(-45deg, #e63946, #ff6f61, #ff3c00, #e63946);
}

/* Soca 🌴 */
body.soca {
  background: linear-gradient(-45deg, #ffb703, #ffda6a, #ffa600, #ffb703);
}

/* Hip Hop 🎧 */
body.hiphop {
  background: linear-gradient(-45deg, #0ea5e9, #2563eb, #3b82f6, #0ea5e9);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

h1 {
  margin: 8px 0 0;
  font-size: 2rem;
  text-align: center;
}

p {
  margin: 0 0 8px;
  font-size: 1.1rem;
  text-align: center;
}

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers children horizontally */
  gap: 24px;
}

.player {
  position: relative;
  width: min(95vw, 740px);   /* responsive, not too wide */
  height: 420px;             /* total card height */
  margin: 0 auto;            /* center horizontally */
  background: #000;          /* black base so the strip shows */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

.player iframe {
  width: 100%;
  height: 460px;
  border: 0;
  display: block;
}

.placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .35));
}

.placeholder.hidden {
  display: none;
}

.hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, .75);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: .9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.hint.show {
  opacity: 1;
}

.right-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.right-grid .section {
  background: rgba(255, 255, 255, .65);
  border-radius: 14px;
  padding: 18px 14px 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  border: 2px solid transparent;

}

.section.rnb {
  border-color: rgba(106, 47, 185, .25);
}

.section.latino {
  border-color: rgba(230, 57, 70, .25);
}

.section.soca {
  border-color: rgba(255, 183, 3, .25);
}

.section.hiphop {
  border-color: rgba(14, 165, 233, .25);
}

.right-grid .section h3 {
  text-align: center;
  margin: 0 0 18px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .3px;
}

.right-grid .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .07s, box-shadow .15s, background-color .2s, color .2s;
  width: 100%;
  max-width: 220px;
  /* keeps chips tidy; raise if you want wider chips */
  text-align: center;
}

.btn:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
}

.btn:active {
  transform: scale(.96);
}

.right-grid {
  grid-template-columns: 1fr;
}

.right-grid .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  justify-items: center;
}

@media (min-width: 600px) {
  .right-grid .row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .wrap {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .wrap {
    grid-template-columns: 1.6fr .8fr;
    align-items: start;
  }
}

/* ==== Stack categories under the player (all sizes) ==== */
.wrap {
  grid-template-columns: 1fr;
  /* single column layout */
  align-items: start;
}

/* ==== PLAYER SIZE ==== */
.player iframe {
  width: 100%;
  height: 360px;
  /* smaller than before (was 460px) */
  border: 0;
  display: block;
}

/* ==== CATEGORY GRID ==== */
.right-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 20px auto 0;
  max-width: 100%;
}

/* Tablet: 2x2 */
@media (min-width: 900px) {
  .right-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 28px;
    max-width: 1000px;
  }
}

/* Desktop+: 4 side-by-side with breathing room */
@media (min-width: 1200px) {
  .right-grid {
    /* min width per card prevents button crunching */
    grid-template-columns: repeat(4, minmax(280px, 1fr));
    gap: 28px;
    max-width: 1400px;
    /* widen container so 4 fit comfortably */
  }
}

/* Card look (keep your original style)*/
.right-grid .section {
  background: rgba(255, 255, 255, .65);
  border-radius: 14px;
  padding: 18px 16px 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Headings */
.right-grid .section h3 {
  text-align: center;
  margin: 0 0 18px;
  font-size: 1.35rem;
  font-weight: 800;
}

/* Buttons inside each card: comfy two-column grid that won’t squash */
.right-grid .row {
  display: grid;
  grid-template-columns: 1fr;
  /* phones: 1 column */
  gap: 12px;
  justify-items: center;
}

@media (min-width: 600px) {
  .right-grid .row {
    /* each button min 130px wide; grows if there’s space */
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 14px 16px;
  }
}