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

/* Ensure full height and no scroll glitches */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #eee;
}

/* ==================================================
   SMOOTH ANIMATED BACKGROUND
================================================== */

body {
  margin: 0;
  min-height: 100vh;

  background: linear-gradient(
    135deg,
    #0f0c29,
    #302b63,
    #24243e,
    #1a0033,
    #000000
  );

  background-size: 300% 300%;
  animation: smoothGradient 18s ease-in-out infinite;

  color: #f5f5f7;
}

/* Smooth, slow, luxury motion */
@keyframes smoothGradient {
  0%   { background-position: 10% 50%; }
  25%  { background-position: 50% 100%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 50% 0%; }
  100% { background-position: 10% 50%; }
}
/* ==========================================
   MAIN CONTAINER
========================================== */

main {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 12px;
  background: rgba(18, 0, 51, 0.85);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

/* ==================================================
   SHIMMERING HERO TEXT
================================================== */

.hero h1 {
  max-width: 900px;
  margin: 0 auto 3.5rem;
  padding: 0 1rem;

  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.4px;
  text-align: center;

  background: linear-gradient(
    90deg,
    #ff7a18,
    #bb00ff,
    #00e0ff,
    #bb00ff,
    #ff7a18
  );

  background-size: 200% auto;
  background-position: 0% center;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: shimmerText 8s linear infinite;
}

/* Smooth shimmer motion */
@keyframes shimmerText {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
/* ==================================================
   ARTIST NAME (ISOLATED FROM GLOBAL HEADINGS)
================================================== */

.artist-name {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 1rem 1rem 1.3rem;
  text-align: center;

  color: #f0e0ff;
  letter-spacing: 0.4px;

  -webkit-text-fill-color: initial;
  background: none;
}

.artist-card:hover .artist-name {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(187, 0, 255, 0.6);
}
/* ==========================================
   LISTS / MEDIA
========================================== */

ul {
  list-style: none;
  padding: 0;
}

li {
  margin: 0.5rem 0;
}

img {
  max-width: 100%;
  border-radius: 12px;
  margin-top: 1rem;
}

/* ==========================================
   BUTTONS
========================================== */

button {
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: #bb00ff;
  color: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  background: #d000ff;
  transform: scale(1.05);
}

/* ==========================================
   FORM ELEMENTS
========================================== */

input,
textarea {
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #555;
  width: 100%;
  background: #1a003d;
  color: #fff;
}

/* ==================================================
   ARTIST GRID
================================================== */

#artist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 10px;
}

@media (max-width: 900px) {
  #artist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #artist-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   ARTIST CARD (FOR <a> ELEMENT)
================================================== */

.artist-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;

  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.artist-card:hover {
  transform: translateY(-8px) scale(1.02);
  border: 1px solid rgba(187, 0, 255, 0.4);
  box-shadow: 0 0 45px rgba(187, 0, 255, 0.5);
}

/* ==================================================
   ARTIST IMAGE
================================================== */

.artist-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* Hover glow */
.artist-card:hover .artist-name {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(187, 0, 255, 0.6);
}
/* ==========================================
   ARTIST BIO
========================================== */

.artist-bio {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(0, 0, 0, 0.55);
  border-left: 4px solid #f5c542;
  border-radius: 6px;
  max-width: 720px;
}

.artist-bio h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5c542;
}

.artist-bio p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #eaeaea;
  white-space: pre-line;
}

/* ==========================================
   VEGAS NEON EMERALD SOCIAL LINKS
========================================== */

.artist-socials {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 28px;
}

.artist-socials a {
  position: relative;
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #39ff14;
  border: 2px solid #00ff88;
  border-radius: 10px;
  background: rgba(0, 255, 136, 0.08);
  overflow: hidden;
  transition: all 0.25s ease;

  text-shadow:
    0 0 5px #39ff14,
    0 0 10px #00ff88,
    0 0 20px #00ff88,
    0 0 40px rgba(0,255,136,0.8);

  box-shadow:
    0 0 8px #00ff88,
    0 0 18px rgba(0,255,136,0.7),
    inset 0 0 12px rgba(0,255,136,0.5);

  animation: neonFlicker 1.5s infinite;
}

/* Neon Gas Flicker */
@keyframes neonFlicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.6; }
}

/* Shimmer Sweep */
.artist-socials a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: skewX(-25deg);
}

.artist-socials a:hover::before {
  animation: shimmer 0.8s forwards;
}

@keyframes shimmer {
  100% { left: 125%; }
}

.artist-socials a:hover {
  color: #ffffff;
  transform: scale(1.08);
  box-shadow:
    0 0 10px #39ff14,
    0 0 25px #00ff88,
    0 0 50px #00ff88,
    inset 0 0 15px rgba(0,255,136,0.6);
}

/* ==========================================
   UTILITIES
========================================== */

.hidden {
  display: none;
}
/* ==========================================
   NAVIGATION
========================================== */

nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 1.2rem;
}

nav a {
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #39ff14;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: 0.25s ease;

  text-shadow:
    0 0 5px #39ff14,
    0 0 10px #00ff88,
    0 0 20px #00ff88;

}

nav a:hover {
  border-bottom: 2px solid #00ff88;
  transform: scale(1.08);
}

nav .hidden {
  display: none;
}
/* ==========================================
   ANALYTICS DASHBOARD
========================================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 2rem;
}

@media (max-width: 700px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  padding: 2rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  text-align: center;
  transition: 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  border: 1px solid rgba(0,255,136,0.4);
  box-shadow: 0 0 40px rgba(0,255,136,0.5);
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 800;
  margin-top: 1rem;
  color: #39ff14;

  text-shadow:
    0 0 6px #39ff14,
    0 0 12px #00ff88,
    0 0 25px #00ff88;
}


/* EMBEDDED DESKTOP ROSTER */
html.embedded-desktop,
body.embedded-desktop {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body.embedded-desktop {
  overflow-x: hidden;
}

body.embedded-desktop #artist-grid {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

body.embedded-desktop .artist-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* ==================================================
   THE sPOT — SPOTIFY ARTIST MEDIA PLAYER
   Isolated component — does not modify roster layout
================================================== */

.spotify-media-section {
  width: 100%;
  max-width: 100%;
  margin: 2.5rem auto 1rem;
  padding: 0;
  box-sizing: border-box;
}

.spotify-media-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;

  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.spotify-media-eyebrow {
  margin-bottom: 0.35rem;

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: #39ff14;
  text-shadow:
    0 0 6px #39ff14,
    0 0 14px rgba(0, 255, 136, 0.7);
}

.spotify-media-header h2 {
  margin: 0;
  padding: 0;

  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.2;

  color: #ffffff;

  -webkit-text-fill-color: initial;
  background: none;
}

.spotify-media-header p {
  margin: 0.35rem 0 0;

  font-size: 0.9rem;
  color: #bdb4c8;
}

#spotify-artist-select {
  width: min(280px, 100%);
  min-width: 0;
  box-sizing: border-box;

  padding: 0.75rem 2.5rem 0.75rem 1rem;

  border: 1px solid rgba(187, 0, 255, 0.55);
  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      rgba(40, 0, 70, 0.95),
      rgba(10, 0, 25, 0.98)
    );

  color: #ffffff;

  font-size: 0.95rem;
  font-weight: 600;

  cursor: pointer;

  box-shadow:
    0 0 18px rgba(187, 0, 255, 0.15);

  outline: none;
}

#spotify-artist-select:focus {
  border-color: #bb00ff;

  box-shadow:
    0 0 0 2px rgba(187, 0, 255, 0.2),
    0 0 25px rgba(187, 0, 255, 0.3);
}

.spotify-player-shell {
  position: relative;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  min-height: 152px;

  box-sizing: border-box;

  overflow: hidden;

  border: 1px solid rgba(187, 0, 255, 0.35);
  border-radius: 18px;

  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(187, 0, 255, 0.18),
      transparent 45%
    ),
    linear-gradient(
      135deg,
      rgba(24, 0, 40, 0.96),
      rgba(5, 5, 15, 0.98)
    );

  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.45),
    0 0 35px rgba(187, 0, 255, 0.12);
}

#spotify-player-frame {
  display: none;

  width: 100%;
  height: 152px;

  min-width: 0;
  max-width: 100%;

  margin: 0;
  padding: 0;

  border: 0;

  background: transparent;
}

.spotify-player-placeholder {
  display: flex;

  width: 100%;
  min-height: 152px;

  box-sizing: border-box;

  align-items: center;
  justify-content: center;
  gap: 0.85rem;

  padding: 1.5rem;

  text-align: center;

  color: #bdb4c8;
  font-size: 0.9rem;
}

.spotify-player-icon {
  display: flex;

  width: 46px;
  height: 46px;

  flex: 0 0 46px;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(57, 255, 20, 0.25),
      rgba(57, 255, 20, 0.04)
    );

  border: 1px solid rgba(57, 255, 20, 0.45);

  color: #39ff14;

  font-size: 1.5rem;

  box-shadow:
    0 0 18px rgba(57, 255, 20, 0.2);
}

.spotify-media-footer {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 1rem;

  padding: 0.65rem 0.25rem 0;

  font-size: 0.72rem;

  color: #777080;
}

.spotify-media-footer a {
  color: #39ff14;

  text-decoration: none;

  font-weight: 700;

  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

.spotify-media-footer a:hover {
  color: #ffffff;

  text-shadow:
    0 0 8px #39ff14;
}

/* --------------------------------------------------
   EMBEDDED MODE
   Keep the player inside the iframe's available width
-------------------------------------------------- */

html.embedded-desktop .spotify-media-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

html.embedded-desktop .spotify-media-header {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

html.embedded-desktop .spotify-player-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* --------------------------------------------------
   MOBILE
-------------------------------------------------- */

@media (max-width: 600px) {

  .spotify-media-section {
    margin-top: 2rem;
  }

  .spotify-media-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  #spotify-artist-select {
    width: 100%;
  }

  .spotify-player-shell {
    border-radius: 14px;
  }

  #spotify-player-frame {
    height: 152px;
  }

  .spotify-player-placeholder {
    min-height: 152px;
    padding: 1.25rem;
    flex-direction: column;
  }

  .spotify-media-footer {
    flex-wrap: wrap;
  }
}

