/* Accelerated Jam Tracks — acceleratedjamtracks.com
   Plain HTML + CSS + a little JS. No frameworks, no external fonts, no tracking. */

:root {
  --bg: #000000;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.28);
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --muted-2: rgba(255, 255, 255, 0.45);
  --thumb-bg: #121212;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --maxw: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  padding-top: max(clamp(2rem, 6vw, 4rem), env(safe-area-inset-top));
  padding-right: max(clamp(1.75rem, 5vw, 3.5rem), env(safe-area-inset-right));
  padding-left: max(clamp(1.75rem, 5vw, 3.5rem), env(safe-area-inset-left));
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
}

/* ---- Header / logo ---- */
.masthead {
  margin: 0;
  text-align: center;
}

.logo {
  width: clamp(190px, 42vw, 380px);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ---- Video grid ---- */
.grid {
  margin-top: clamp(2.75rem, 7vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.6rem);
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease,
    background-color 0.2s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--thumb-bg);
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
  pointer-events: none;
}

.card:hover .play,
.card:focus-visible .play {
  opacity: 1;
  transform: scale(1.06);
  background: rgba(0, 0, 0, 0.68);
}

.play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px; /* optically center the triangle */
}

.meta {
  padding: 0.9rem 1rem 1.05rem;
}

.title {
  margin: 0;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.tempo {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.95rem;
  padding: 2rem 0;
}

/* ---- Footer / social ---- */
.social {
  margin-top: clamp(3rem, 8vw, 5rem);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.social a:hover,
.social a:focus-visible {
  color: var(--ink);
  background: var(--surface);
}

.social a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.social svg {
  width: 24px;
  height: 24px;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .play,
  .social a {
    transition: none;
  }
  .card:hover,
  .card:focus-visible {
    transform: none;
  }
  .card:hover .play,
  .card:focus-visible .play {
    transform: none;
  }
}
