/* projects.html — static page: no skyline, one shared audio element, click-to-load YouTube */
.hero--compact { padding: 90px 56px 56px; }

.projects { padding: 0 56px 60px; display: grid; gap: 110px; max-width: 1040px; margin: 0 auto; }
.project h2 {
  font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 400;
  font-size: 44px; line-height: 1.1; margin: 10px 0 14px;
}
.project-head { max-width: 640px; margin-bottom: 30px; }
.project-head p, .album-note {
  font-family: 'Newsreader', Georgia, serif; font-size: 18px; line-height: 1.7;
  color: var(--fg-dim); margin: 0;
}
.album-note { margin: 0 0 24px; max-width: 58ch; }

/* OG Juice Jams viewer */
.ogjj { display: grid; gap: 14px; }
.ogjj-screen { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); overflow: hidden; }
.ogjj-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ogjj-facade { position: absolute; inset: 0; padding: 0; border: 0; background: #000; cursor: pointer; }
.ogjj-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; transition: opacity 0.25s ease; }
.ogjj-facade:hover img, .ogjj-facade:focus-visible img { opacity: 1; }
.ogjj-playicon {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1.5px solid var(--fg); background: oklch(0.16 0.012 55 / 0.55);
}
.ogjj-playicon::after {
  content: ''; position: absolute; left: 31px; top: 24px;
  border-left: 20px solid var(--fg); border-top: 14px solid transparent; border-bottom: 14px solid transparent;
}
.ogjj-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.ogjj-step {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: transparent; border: 1px solid var(--line);
  padding: 9px 14px; cursor: pointer;
}
.ogjj-step:hover:not(:disabled) { color: var(--fg); border-color: var(--fg-faint); }
.ogjj-step:disabled { color: var(--fg-faint); cursor: default; }
.ogjj-now { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; min-width: 0; }
.ogjj-ep { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); }
.ogjj-act { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 22px; }

.ogjj-list {
  list-style: none; margin: 4px 0 0; padding: 0 0 8px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 12px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-color: var(--line) transparent;
}
.ogjj-list li { scroll-snap-align: start; }
.ogjj-item {
  display: grid; gap: 7px; width: 100%; padding: 0; text-align: left;
  background: transparent; border: 0; color: var(--fg-dim); cursor: pointer; font: inherit;
}
.ogjj-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); opacity: 0.7; transition: opacity 0.2s ease, border-color 0.2s ease; }
.ogjj-item:hover img, .ogjj-item:focus-visible img { opacity: 1; }
.ogjj-item .mono { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); }
.ogjj-item span:last-child { font-size: 13px; line-height: 1.35; }
.ogjj-item[aria-current="true"] { color: var(--fg); }
.ogjj-item[aria-current="true"] img { opacity: 1; border-color: var(--accent); }
.ogjj-item[aria-current="true"] .mono { color: var(--accent); }

/* albums */
.album { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 56px; align-items: start; }
.album-art img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.album-art--wide { align-self: start; }
.album-artist { font-size: 14px; color: var(--fg-dim); margin: -6px 0 24px; }
.tracklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.track-btn {
  width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: baseline;
  padding: 12px 4px; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--fg); font: inherit; font-size: 15px; text-align: left; cursor: pointer;
}
.track-btn:hover { background: oklch(0.20 0.012 55); }
.track-btn .mono { font-size: 12px; color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.track-btn[aria-pressed="true"] { color: var(--accent); }
.track-btn[aria-pressed="true"] .mono:first-child { color: var(--accent); }

/* streaming albums */
.spotify { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.spotify .album-note { margin-bottom: 0; }
.spotify-embed { width: 100%; min-height: 352px; border-radius: 12px; overflow: hidden; background: oklch(0.20 0.012 55); }
.spotify-embed iframe { display: block; width: 100%; border: 0; }
.spotify-embed a { display: block; padding: 24px; font-size: 13px; }

button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* shared mini player */
.mini-player[hidden], .ogjj-facade[hidden] { display: none; }
.mini-player {
  position: sticky; bottom: 0; z-index: 5;
  display: grid; grid-template-columns: auto minmax(0, 220px) 1fr auto; align-items: center; gap: 18px;
  padding: 14px 56px; background: oklch(0.13 0.012 55 / 0.96); border-top: 1px solid var(--line);
}
.mini-toggle {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--fg-dim);
  background: transparent; position: relative; cursor: pointer;
}
.mini-toggle::before, .mini-toggle::after {
  content: ''; position: absolute; top: 11px; width: 3px; height: 13px; background: var(--fg);
}
.mini-toggle::before { left: 13px; } .mini-toggle::after { left: 19px; }
.mini-toggle.paused::before { left: 14px; top: 10px; width: 0; height: 0; background: none;
  border-left: 12px solid var(--fg); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.mini-toggle.paused::after { display: none; }
.mini-meta { display: flex; flex-direction: column; min-width: 0; }
.mini-title { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-album { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); }
.mini-bar { height: 3px; background: var(--line); cursor: pointer; position: relative; }
.mini-bar::before { content: ''; position: absolute; inset: -8px 0; }
.mini-fill { height: 100%; width: 0; background: var(--accent); }
.mini-time { font-size: 12px; color: var(--fg-dim); font-variant-numeric: tabular-nums; }

@media (max-width: 820px) {
  .hero--compact { padding: 64px 24px 36px; }
  .projects { padding: 0 24px 40px; gap: 80px; }
  .project h2 { font-size: 34px; }
  .album, .spotify { grid-template-columns: 1fr; gap: 28px; }
  .album-art { max-width: 420px; }
  .ogjj-act { font-size: 18px; }
  .ogjj-step { padding: 8px 10px; }
  .mini-player { padding: 12px 24px; grid-template-columns: auto 1fr auto; }
  .mini-bar { grid-column: 1 / -1; order: 5; }
}
@media (prefers-reduced-motion: reduce) {
  .ogjj-facade img, .ogjj-item img { transition: none; }
}
