/* DJ Jack Scythe - night-city teal, purple and gold */
/* Fonts are stored with the site (free SIL Open Font License, see fonts folder) */
@font-face { font-family: "Oswald"; font-weight: 400; font-display: swap; src: url("../fonts/oswald-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 600; font-display: swap; src: url("../fonts/oswald-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url("../fonts/oswald-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Pirata One"; font-weight: 400; font-display: swap; src: url("../fonts/pirata-one-latin-400-normal.woff2") format("woff2"); }

:root {
  --bg: #061b26;
  --bg2: #0c2833;
  --pink: #9d6bff;   /* purple  (main accent) */
  --lime: #4fd8c4;   /* teal    (second accent) */
  --yellow: #e2b857; /* gold    (highlights) */
  --teal: #8fd3ff;   /* ice blue */
  --text: #e6f7f4;
  --muted: #9fbcc0;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    linear-gradient(transparent 0 96%, rgba(157,107,255,.18) 96%),
    linear-gradient(90deg, transparent 0 96%, rgba(157,107,255,.18) 96%);
  background-size: 48px 48px;
  background-attachment: fixed;
}

a { color: var(--yellow); }

/* ---------- Header / nav ---------- */
.topbar {
  background: rgba(4, 18, 26, .94);
  border-bottom: 3px solid var(--pink);
  box-shadow: 0 0 18px rgba(157,107,255,.6);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
}
.logo {
  font-family: "Pirata One", cursive;
  font-size: 30px;
  text-decoration: none;
  line-height: 1;
}
.logo .dj { color: var(--pink); text-shadow: 0 0 10px var(--pink); }
.logo .joel { color: #eafaf7; text-shadow: 0 0 10px var(--lime); }

nav a {
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  padding: 6px 12px;
  margin-left: 4px;
  border: 2px solid transparent;
  border-radius: 4px;
  display: inline-block;
}
nav a:hover { border-color: var(--lime); color: var(--lime); }
nav a.active { background: var(--pink); color: #fff; box-shadow: 0 0 12px var(--pink); }

/* ---------- Layout ---------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
main { flex: 1; }

.banner {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 24px auto 0;
  border-radius: 18px;
  border: 3px solid var(--pink);
  box-shadow: 0 0 25px rgba(157,107,255,.55), 0 0 60px rgba(79,216,196,.15);
}

.page-title {
  font-family: "Pirata One", cursive;
  font-size: clamp(36px, 7vw, 64px);
  text-align: center;
  margin: 40px 0 6px;
  color: var(--yellow);
  text-shadow: 3px 3px 0 var(--pink), 0 0 20px rgba(226,184,87,.5);
}
.tagline {
  font-family: "Oswald", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--yellow);
  text-align: center;
  font-size: 22px;
  margin-bottom: 30px;
}
.stripes {
  display: inline-block;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--lime);
  margin: 0 8px;
}

section { padding: 30px 0; }

h2 {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 30px;
  text-align: center;
  margin-bottom: 20px;
}
h2 span {
  display: inline-block;
  line-height: 1.3;
  border: 3px solid var(--lime);
  padding: 4px 18px;
  color: var(--pink);
  background: rgba(4,18,26,.8);
  box-shadow: 0 0 12px rgba(79,216,196,.5);
}

.intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 20px;
  color: var(--text);
}
.intro strong { color: var(--lime); }

/* ---------- Big badge ---------- */
.badge {
  text-align: center;
  margin: 30px auto;
}
.badge .num {
  font-family: "Pirata One", cursive;
  font-size: clamp(60px, 14vw, 110px);
  line-height: 1;
  color: var(--lime);
  text-shadow: 4px 4px 0 var(--pink), 0 0 25px rgba(79,216,196,.6);
}
.badge .label {
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--yellow);
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.card {
  background: var(--bg2);
  border: 2px solid var(--pink);
  border-radius: 12px;
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(157,107,255,.35);
}
.card:nth-child(2) { border-color: var(--lime); box-shadow: 0 0 14px rgba(79,216,196,.35); }
.card:nth-child(3) { border-color: var(--yellow); box-shadow: 0 0 14px rgba(226,184,87,.35); }
.card:nth-child(4) { border-color: var(--teal); box-shadow: 0 0 14px rgba(143,211,255,.35); }
.card::after {  /* retro triangle corner */
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  border-style: solid;
  border-width: 0 40px 40px 0;
  border-color: transparent var(--pink) transparent transparent;
}
.card:nth-child(2)::after { border-right-color: var(--lime); }
.card:nth-child(3)::after { border-right-color: var(--yellow); }
.card:nth-child(4)::after { border-right-color: var(--teal); }
.card .icon { font-size: 40px; margin-bottom: 8px; }
.card h3 {
  font-size: 24px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 8px;
}
.card p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 20px;
  padding: 12px 30px;
  border-radius: 6px;
  box-shadow: 0 0 16px var(--pink);
  transition: transform .15s;
}
.btn:hover { transform: scale(1.05); }
.btn.alt { background: var(--lime); color: #061b26; box-shadow: 0 0 16px var(--lime); }
.center { text-align: center; }
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Contact ---------- */
.contact-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg2);
  border: 3px solid var(--lime);
  border-radius: 14px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 0 20px rgba(79,216,196,.4);
}
.contact-line { margin: 18px 0; }
.contact-line .lbl {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  font-size: 16px;
}
.contact-line a, .contact-line .val {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 700;
  color: var(--yellow);
  text-decoration: none;
  word-break: break-word;
}
.contact-line a:hover { color: var(--lime); }

.list {
  max-width: 640px;
  margin: 0 auto;
  list-style: none;
}
.list li {
  padding: 8px 0 8px 34px;
  position: relative;
  font-size: 20px;
}
.list li::before {
  content: "▶";
  color: var(--lime);
  position: absolute;
  left: 0;
}

/* ---------- Footer ---------- */
footer {
  margin-top: 40px;
  border-top: 3px solid var(--pink);
  background:
    linear-gradient(transparent 0 92%, rgba(157,107,255,.22) 92%) 0 0 / 40px 40px,
    linear-gradient(90deg, transparent 0 92%, rgba(157,107,255,.22) 92%) 0 0 / 40px 40px,
    #04121a;
  padding: 26px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}
footer a { color: var(--yellow); text-decoration: none; }

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .topbar .wrap { justify-content: center; }
  nav { text-align: center; }
  nav a { padding: 5px 7px; margin: 1px; font-size: 14px; letter-spacing: .5px; }
  .logo { font-size: 26px; }
  .banner { margin-top: 14px; border-radius: 10px; }
  .tagline { font-size: 17px; letter-spacing: 2px; }
  h2 { font-size: 22px; }
}

/* Phone placeholders stay hidden until phone.js swaps in the real link
   (so no empty pink button if JavaScript is off) */
span[data-ph] { display: none; }

/* Banner keeps its shape while loading (width/height set in the page) */
.banner { height: auto; }

/* ---------- Listen page: mix player ---------- */
.player {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg2);
  border: 3px solid var(--pink);
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 0 22px rgba(157,107,255,.45);
}
.player.disabled { opacity: .55; pointer-events: none; }
.now { display: flex; align-items: center; gap: 18px; }
.disc {
  flex: 0 0 76px; height: 76px; border-radius: 50%;
  background:
    radial-gradient(circle, #0c0a14 0 6px, var(--pink) 7px 22px, #0c0a14 23px 25px,
      #3c3450 26px 27px, #0c0a14 28px 31px, #3c3450 32px 33px, #0c0a14 34px);
  border: 3px solid var(--lime);
  box-shadow: 0 0 14px rgba(79,216,196,.55);
  animation: spin 2.4s linear infinite;
  animation-play-state: paused;
}
.player.playing .disc { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .disc { animation: none; } }
.now-info { min-width: 0; }
.now-info .lbl {
  display: block; font-size: 14px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted);
}
#np-title {
  font-size: 24px; font-weight: 700; color: var(--yellow);
  line-height: 1.25; overflow-wrap: anywhere;
}
.controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 18px 0 10px; }
.controls button {
  background: none; border: 2px solid var(--lime); color: var(--lime);
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.controls button:hover { background: rgba(79,216,196,.15); }
.controls button svg { width: 22px; height: 22px; fill: currentColor; }
.controls #play {
  width: 66px; height: 66px; border: none; background: var(--pink); color: #fff;
  box-shadow: 0 0 16px var(--pink);
}
.controls #play:hover { background: #b38bff; }
.controls #play svg { width: 30px; height: 30px; }
#play .i-pause { display: none; }
.player.playing #play .i-play { display: none; }
.player.playing #play .i-pause { display: block; }
.seek { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.seek input { flex: 1; accent-color: var(--pink); height: 28px; cursor: pointer; }
#player-msg { text-align: center; color: var(--yellow); min-height: 1.2em; margin-top: 6px; font-size: 16px; }

.tracks { list-style: none; max-width: 720px; margin: 26px auto 0; }
.tracks li { margin-bottom: 10px; }
.tracks .track {
  width: 100%; display: flex; align-items: center; gap: 14px;
  background: rgba(4,18,26,.8); color: var(--text);
  border: 2px solid rgba(157,107,255,.45); border-radius: 10px;
  padding: 12px 16px; font: inherit; font-size: 19px; text-align: left; cursor: pointer;
}
.tracks .track:hover { border-color: var(--lime); }
.tracks .track.active {
  border-color: var(--lime); background: rgba(79,216,196,.08);
  box-shadow: 0 0 12px rgba(79,216,196,.35);
}
.tracks .num {
  flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--pink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;
}
.tracks .active .num { background: var(--lime); color: #061b26; }
.tracks .title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tracks .len { color: var(--muted); font-size: 16px; }
.tracks .empty, .tracks .loading { text-align: center; color: var(--muted); padding: 14px; }

@media (max-width: 600px) {
  .player { padding: 18px 14px 14px; }
  .disc { flex-basis: 60px; height: 60px; }
  #np-title { font-size: 20px; }
  .tracks .track { font-size: 17px; padding: 10px 12px; }
}

/* Genre chips (Home page) */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; margin: 0 auto; list-style: none; }
.chips li {
  border: 2px solid var(--lime); color: var(--text); border-radius: 999px;
  padding: 4px 16px; font-size: 18px; letter-spacing: 1px;
  background: rgba(4,18,26,.8);
}
.chips li:nth-child(3n+2) { border-color: var(--pink); }
.chips li:nth-child(3n) { border-color: var(--yellow); }

/* keep "80s" from turning into "80S" inside all-caps text */
.nt { text-transform: none; }
.badge .label .nt, .tagline .nt { text-transform: none; }
