/* Handy Player page. Colours, type, header and footer come from the adm1nsys site and its
   project kit; this file only lays out the controls next to the 2023 phone. */
@font-face { font-family: "Roboto-Bold"; src: url("fonts/Roboto-Bold.ttf") format("truetype"); font-display: swap; }

/* the player screen of the 2023 phone sizes its padding outside its height */
.stage .frame { box-sizing: content-box; }
html, body { overflow-x: hidden; }

.intro h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.02; }
.intro .lead { max-width: 34rem; margin: 1.25rem 0 1.5rem; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--text-2); }
.intro h2 { margin: 2rem 0 0; font-size: 1.125rem; }
.history { margin-top: 1.5rem; }

/* ---------- Layout ---------- */

.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); min-height: 100svh; padding: 5rem 0 3rem; }
.stage { display: grid; place-items: center; min-height: 700px; overflow-x: clip; touch-action: pan-y; cursor: grab; user-select: none; }
.stage.is-dragging { cursor: grabbing; }
.stage > div { opacity: 0; transition: opacity 0.6s; }
.is-ready .stage > div { opacity: 1; }

/* ---------- Controls ---------- */

.panel { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.control { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; align-items: center; margin-bottom: 1rem; }
.control label { font: 500 13px/1.4 var(--mono); color: var(--muted); }
.control output { font: 500 13px/1 var(--mono); min-width: 3.5em; text-align: right; }
.control input { grid-column: 1 / -1; width: 100%; accent-color: var(--text); }
.views { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hint { margin: 0.875rem 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Playlist ---------- */

.tracks { margin: 0.75rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); }
.tracks li { display: grid; grid-template-columns: 44px 1fr auto; gap: 0.75rem; align-items: center; padding: 0.625rem 0; border-bottom: 1px solid var(--line-soft); }
.tracks img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.tracks b { display: block; font: 500 14px/1.3 var(--mono); }
.tracks small { color: var(--muted); font-size: 13px; }
.tracks a { font: 500 12px/1 var(--mono); color: var(--muted); text-decoration: none; white-space: nowrap; }
.tracks a:hover { color: var(--text); }
.credit { margin: 0.75rem 0 0; font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding-top: 4.5rem; }
  .stage { order: -1; min-height: 600px; margin-block: -40px; }
  .stage { transform: scale(0.8); transform-origin: center; }
}
.tracks li.empty { display: block; color: var(--muted); font-size: 14px; }
.tracks li.consent { grid-template-columns: 1fr auto; color: var(--muted); font-size: 14px; }
.linklike { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.linklike:hover { color: var(--text); }
