/* Izzy Neutron's player, the piece on his case page (v4). Scoped to .izp; restyles nothing else.
   The latest-release block of his Music page, drawn in HTML in his look (Izzy Neutron/AGENTS.md section 4): void black, bone,
   graphite hairlines, Archivo wide capitals, a mono label face. Sized by the width of the piece, so nothing is cut at any width.
   The one ring is Vervox's, in its true green, round the chooser. */
.izp { --void: #0B0B0C; --carbon: #141416; --graphite: #2A2A2F; --ash: #8D9197; --bone: #ECEBE7; --wide: "Archivo", var(--disp);
  --lab: ui-monospace, "SFMono-Regular", Menlo, monospace; display: grid; }
.izp-stage { position: relative; overflow: hidden; background: var(--void); color: var(--bone); container-type: inline-size; border-block: 1px solid var(--graphite); }
.izp-page { width: min(1180px, 100%); margin: 0 auto; padding: clamp(28px, 5cqi, 72px) var(--pad) clamp(108px, 12cqi, 148px); }
.izp-eyebrow, .izp-badge, .izp-also, .izp-ps, .izp-nl, .izp-el, .izp-via { font-family: var(--lab); text-transform: uppercase; letter-spacing: .16em; }
.izp-eyebrow { margin: 0 0 clamp(18px, 3cqi, 36px); font-size: 12px; color: var(--ash); }
.izp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.izp-cover { width: min(100%, 300px); aspect-ratio: 1; background: var(--carbon); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.izp-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.izp-info { min-width: 0; container-type: inline-size; }
.izp-badge { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 12px; font-weight: 600; color: var(--bone); }
.izp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bone); flex: none; }
/* the title: his wide capitals, sized to the column so the word always fits on one line */
.izp-title { margin: 12px 0 0; font-family: var(--wide); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: .95;
  font-size: min(4.6rem, 12.4cqi); white-space: nowrap; color: var(--bone); }
.izp-credit { margin: 12px 0 0; font-size: 16px; color: var(--ash); }

/* the Play bar: bone, his round play button, and the chooser */
.izp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: 22px; padding: 10px 12px; background: var(--bone); color: var(--void); }
.izp-play { appearance: none; display: flex; align-items: center; gap: 14px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; min-width: 0; }
.izp-pi { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--void); color: var(--bone); transition: transform .2s var(--ease); }
.izp-pi svg { width: 16px; height: 16px; fill: currentColor; }
.izp.is-playing .izp-pi, .izp-play[aria-pressed="false"]:hover .izp-pi { background: transparent; color: var(--void); box-shadow: inset 0 0 0 1.5px var(--void); }
.izp-pw { display: grid; gap: 3px; }
.izp-pl { font-family: var(--wide); font-stretch: 125%; font-weight: 700; font-size: 17px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.izp-ps { font-size: 10px; letter-spacing: .14em; color: #55575C; white-space: nowrap; }
.izp-play:focus-visible { outline: 2px solid var(--void); outline-offset: 4px; }
.izp-src { position: relative; display: block; flex: none; }
.izp-sel { appearance: none; -webkit-appearance: none; display: block; height: 44px; min-width: 150px; padding: 0 38px 0 14px; border: 1px solid #9C9DA0; border-radius: 0; background: transparent;
  color: var(--void); font-family: var(--lab); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.izp-sel:focus-visible { outline: 2px solid var(--void); outline-offset: 2px; }
.izp-src > svg:not(.izp-ring) { position: absolute; right: 14px; top: 50%; width: 11px; height: 8px; margin-top: -4px; pointer-events: none; color: var(--void); }
.izp-ring { position: absolute; left: 50%; top: 50%; translate: -50% -50%; pointer-events: none; overflow: visible; opacity: 0; transition: opacity .3s; }
.izp-ring.on { opacity: 1; }
.izp-ring ellipse { fill: none; stroke: var(--true); stroke-width: 2px; stroke-linecap: round; transition: stroke-dashoffset 1s var(--inout) .2s; }

.izp-also { margin: 26px 0 12px; font-size: 11px; color: var(--ash); }
.izp-svcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.izp-svc { appearance: none; min-height: 50px; padding: 0 16px; border: 1px solid var(--graphite); background: transparent; color: var(--bone); text-align: left;
  font-family: var(--wide); font-stretch: 125%; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: clip; cursor: pointer; transition: border-color .2s, background .2s; }
@media (hover: hover) { .izp-svc:hover { border-color: var(--ash); background: var(--carbon); } }
.izp-svc:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }

/* his docked player: comes up from the bottom of the stage when Play is pressed */
.izp-dock { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "mk now dp dx" "run run run run";
  align-items: center; gap: 10px 12px; padding: 12px 14px; background: rgba(17, 17, 19, .97); border: 1px solid var(--graphite); color: var(--bone);
  transform: translateY(calc(100% + 16px)); transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.izp-dock.on { transform: none; }
.izp-dock[hidden] { display: none; }
.izp-mk { grid-area: mk; width: 30px; height: auto; display: block; }
.izp-now { grid-area: now; display: grid; gap: 2px; margin: 0; min-width: 0; }
.izp-nl { font-size: 10px; color: var(--ash); }
.izp-nt { font-family: var(--wide); font-stretch: 125%; font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.izp-dk { appearance: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--graphite); border-radius: 50%; background: transparent; color: var(--bone); cursor: pointer; }
.izp-dp { grid-area: dp; border-color: var(--bone); }
.izp-dx { grid-area: dx; }
.izp-dk svg { width: 14px; height: 14px; fill: currentColor; }
.izp-dk:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.izp-run { grid-area: run; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.izp-el { font-size: 11px; color: var(--ash); font-variant-numeric: tabular-nums; min-width: 3.4em; }
.izp-via { font-size: 10px; color: var(--ash); white-space: nowrap; }
.izp-wave { display: flex; align-items: center; gap: 2px; height: 18px; min-width: 0; overflow: hidden; }
.izp-wave i { flex: 1 1 0; min-width: 1px; max-width: 4px; height: calc(var(--h) * 100%); background: var(--bone); opacity: .55; transform-origin: center; }
.izp.is-playing .izp-wave i { animation: izp-lvl .9s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -73ms); }
@keyframes izp-lvl { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

.izp-cap { margin: 12px var(--pad) 0; font-size: 15px; color: var(--soft); }
.izp-cap a { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; white-space: nowrap; }
.izp-cap a { position: relative; z-index: 1; padding: 13px 0; }   /* 44px tall to tap (final review); inline padding moves nothing, and it sits above the deck's empty top edge so its lower part takes taps */
.izp-cap a:focus-visible { outline: none; }
.izp-cap a:focus-visible::after { content: ""; position: absolute; left: -5px; right: -5px; top: 8px; bottom: 8px; border: 2px solid var(--paper); pointer-events: none; }   /* the focus ring keeps its old size */

/* wider: the cover beside the words, as on his page; the dock floats at the bottom right, as his does */
@container (min-width: 700px) {
  .izp-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6cqi, 80px); }
  .izp-cover { width: 100%; max-width: 520px; }
  .izp-dock { left: auto; right: max(16px, calc((100cqi - 1180px) / 2 + 16px)); bottom: 16px; width: 400px; }
}
@media (min-width: 900px) { .izp-cap { margin-left: auto; width: min(760px, calc(100% - 2 * var(--pad))); margin-right: var(--pad); } }

@media (prefers-reduced-motion: reduce) {
  .izp-dock, .izp-ring, .izp-ring ellipse, .izp-pi { transition: none; }
  .izp.is-playing .izp-wave i { animation: none; }
}
