/* Agni Shaka – agnishaka.com
   Bump the ?v= number in index.html and 404.html whenever this file changes
   (the server tells browsers to cache it for a year). */

@font-face {
  font-family: "Yanone Kaffeesatz";
  src: url("../assets/yanone-kaffeesatz.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #222;
  --card: #1a1a1a;
  --text: #eee;
  --muted: #bdbdbd;
  --line: rgba(255,255,255,.75);
  --accent: #f2c230;
  --cover: min(370px, 80vw);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Yanone Kaffeesatz", "Arial Narrow", Calibri, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sprite { display: none; }

/* ---------- banner ---------- */
.banner { position: relative; z-index: 2; padding: 20px 16px; }
/* only the blurred background is clipped, so the Share menu can open past the banner */
.banner__clip { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.banner__bg {
  position: absolute; inset: -40px;
  background: url("../assets/cover.jpg") center 40% / cover no-repeat;
  filter: blur(10px) brightness(.8);
}
.stage { position: relative; z-index: 1; width: calc(var(--cover) + 30px); max-width: 100%; margin: 0 auto; }

.card { background: var(--card); padding: 15px 15px 10px; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.cover__art {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1;
  padding: 0; border: 0; cursor: pointer; background: none; color: inherit;
}
.cover__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover__overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.25); opacity: 0; transition: opacity .2s;
}
.cover__art:hover .cover__overlay, .cover__art:focus-visible .cover__overlay { opacity: 1; }
.cover__overlay svg { width: 96px; height: 96px; fill: rgba(255,255,255,.92); filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }

.player-row { display: flex; align-items: center; gap: 12px; padding-top: 10px; }
.track__play { flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; color: #ddd; }
.track__play svg { width: 100%; height: 100%; fill: currentColor; vertical-align: top; }
.icon-pause, .is-playing .icon-play { display: none; }
.is-playing .icon-pause { display: block; }
.track__bar { flex: 1; min-width: 0; height: 24px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.track__bar-bg { position: relative; width: 100%; height: 2px; background: rgba(255,255,255,.25); }
.track__bar-bg span { display: block; height: 100%; width: 0; background: var(--accent); }
.track__time { flex: none; font-size: 24px; color: #ddd; font-variant-numeric: tabular-nums; }

/* Follow / Share sit to the right of the cover, bottom-aligned */
.side {
  position: absolute; left: calc(100% + 60px); bottom: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.ghost {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 3px;
  background: rgba(0,0,0,.35); color: var(--text);
  font: inherit; font-size: 17px; font-weight: 400; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.ghost svg { width: 16px; height: 16px; fill: currentColor; }
.ghost:hover { background: rgba(0,0,0,.6); }

.share { position: relative; }
.share__menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  display: none; flex-direction: column; gap: 4px; margin: 0; padding: 6px; list-style: none;
  background: #111; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.6);
  z-index: 5; white-space: nowrap;
}
.share.is-open .share__menu { display: flex; }
.share__menu a, .share__menu button {
  display: block; width: 100%;
  font: inherit; font-size: 17px; color: var(--text); text-decoration: none; text-align: left;
  background: none; border: 0; border-radius: 3px; padding: 4px 10px; cursor: pointer;
}
.share__menu a:hover, .share__menu button:hover { background: rgba(255,255,255,.12); }

@media (max-width: 760px) {
  .side { position: static; flex-direction: row; justify-content: center; margin-top: 14px; }
}
/* bigger touch targets on phones */
@media (pointer: coarse) {
  .ghost { height: 40px; padding: 0 14px; }
  .share__menu a, .share__menu button { padding: 10px 14px; }
}

/* ---------- centered info column ---------- */
main { max-width: 360px; margin: 0 auto; padding: 36px 16px 60px; text-align: center; }
.title { margin: 0; font-size: 46px; font-weight: 300; line-height: 1.1; }
.artist { margin: 4px 0 22px; font-size: 26px; font-style: italic; color: var(--muted); }
.label { margin: 0 0 14px; font-size: 22px; font-weight: 300; }

.stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
@media (max-width: 330px) { .stores { grid-template-columns: 1fr; } }
.store {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 24px;
  text-decoration: none; font-size: 22px; font-weight: 300; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.store:hover { background: rgba(255,255,255,.08); border-color: var(--accent); color: var(--accent); }
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }

.description { font-size: 17px; line-height: 1.25; margin: 30px 0 18px; }
.released { font-size: 18px; margin: 0 0 14px; }

.links { display: flex; gap: 10px; justify-content: center; }
.links a { display: block; width: 36px; height: 36px; border-radius: 50%; color: var(--text); transition: color .15s, transform .15s; }
.links a:hover { color: var(--accent); transform: translateY(-2px); }
.links svg { display: block; width: 100%; height: 100%; fill: currentColor; }

footer { max-width: 850px; margin: 0 auto; padding: 22px 16px 50px; border-top: 1px solid var(--line);
         text-align: center; font-size: 15px; text-transform: uppercase; color: var(--muted); }
footer p { margin: 0; }

/* ---------- 404 page ---------- */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.notfound img { width: 180px; height: 180px; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.notfound .ghost { height: 40px; padding: 0 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
