/* NOIR. — beat store  (palette: black / ivory / brick #71251B / noir-yellow) */
:root {
  --bg: #0a0a0a;
  --bg-2: #111011;
  --ink: #ece5d8;
  --ink-dim: #9a938a;
  --brick: #71251b;
  --brick-2: #8e1d2f;
  --gold: #e8d24a;
  --line: #241f1e;
  --serif: "Playfair Display", serif;
  --sans: "Inter", system-ui, sans-serif;
  --blackletter: "UnifrakturMaguntia", serif;
  /* frequency-spectrum bars (read by app.js) */
  --spectrum-played: #8e1d2f;
  --spectrum-idle: rgba(236,229,216,.92);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: 92px; /* sticky player space */
}
a { color: inherit; text-decoration: none; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(10,10,10,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--gold); }
.star { width: 20px; height: 20px; transform: rotate(-12deg); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 13.5px; }
.nav-links a:not(.nav-cta) { color: var(--ink-dim); transition: color .15s; }
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-cta { color: var(--gold); border: 1px solid var(--brick); padding: 6px 14px;
  border-radius: 999px; transition: background .15s; }
.nav-cta:hover { background: var(--brick); color: var(--ink); }

/* hero */
.hero { padding: 96px 28px 84px; text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(113,37,27,.35), transparent 70%),
    var(--bg); }
.hero-kicker { letter-spacing: .35em; text-transform: uppercase; font-size: 11px; color: var(--ink-dim); }
.hero-title { font-size: clamp(84px, 16vw, 190px); line-height: .95; color: var(--ink); }
.hero-title .blackletter { font-family: var(--blackletter); font-weight: 400; }
.hero-title .dot { color: var(--brick-2); font-family: var(--serif); }
.hero-tag { margin-top: 10px; color: var(--ink-dim); font-family: var(--serif); font-style: italic; font-size: 17px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; }

/* buttons */
/* usable on <a> and <button> alike — a bare <button> would otherwise show the
   browser's default light button face wherever the variant sets no background */
.btn { display: inline-block; padding: 12px 26px; border-radius: 999px;
  background: none; border: none; cursor: pointer; font-family: inherit; color: inherit;
  font-weight: 600; font-size: 13.5px; letter-spacing: .04em; transition: all .15s; }
.btn-primary { background: var(--brick); color: var(--ink); }
.btn-primary:hover { background: var(--brick-2); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink-dim); }
.btn-ghost:hover { border-color: var(--brick-2); color: var(--ink); }
.btn-sm { padding: 8px 18px; font-size: 12.5px; }

/* sections */
.section { max-width: 980px; margin: 0 auto; padding: 64px 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between;
  gap: 18px; margin-bottom: 26px; }
.section-head h2 { font-family: var(--serif); font-size: 34px; font-weight: 500; }
#search { background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 10px 18px; width: 250px; font-family: var(--sans);
  font-size: 13.5px; outline: none; }
#search:focus { border-color: var(--brick-2); }

/* featured track */
.featured[hidden] { display: none; }
.featured { margin-bottom: 44px; }
.feat-row { display: flex; gap: 22px; align-items: center; margin-bottom: 18px; }
.feat-cover-wrap { position: relative; width: 148px; height: 148px; flex: none; }
.feat-cover { width: 100%; height: 100%; object-fit: cover; border-radius: 10px;
  background: linear-gradient(135deg, var(--brick), #2a0f0b); }
.feat-play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px;
  border-radius: 50%; border: none; background: var(--brick-2); color: var(--ink);
  font-size: 18px; cursor: pointer; transition: transform .15s, background .15s;
  box-shadow: 0 8px 26px rgba(0,0,0,.55); }
.feat-play:hover { transform: scale(1.08); background: #a32438; }
.feat-kicker { letter-spacing: .22em; text-transform: uppercase; font-size: 11px;
  color: var(--ink-dim); }
.feat-kicker b { color: var(--gold); font-weight: 600; }
.feat-title { font-family: var(--serif); font-size: clamp(26px, 4.6vw, 44px);
  font-weight: 700; line-height: 1.08; margin: 6px 0 14px; }
.feat-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.spectrum { display: block; width: 100%; height: 96px; }

/* beat rows */
.beat-list { border-top: 1px solid var(--line); }
.beat-row { display: grid; grid-template-columns: 56px 52px 1fr auto auto; gap: 16px;
  align-items: center; padding: 14px 8px; border-bottom: 1px solid var(--line);
  transition: background .15s; cursor: pointer; }
.beat-row:hover { background: var(--bg-2); }
.beat-row.playing { background: linear-gradient(90deg, rgba(113,37,27,.18), transparent 60%); }
.row-play { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font-size: 13px; cursor: pointer;
  transition: all .15s; }
.beat-row:hover .row-play, .beat-row.playing .row-play { background: var(--brick); border-color: var(--brick); }
.row-cover { width: 52px; height: 52px; border-radius: 6px; object-fit: cover;
  background: linear-gradient(135deg, var(--brick), #2a0f0b); }
.row-info { min-width: 0; }
.row-title { font-weight: 600; font-size: 15px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.row-tags { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.tag { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-dim); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.row-dur { color: var(--ink-dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.row-buy { justify-self: end; }

.beat-empty { padding: 42px 8px; text-align: center; color: var(--ink-dim); font-size: 14px; }

/* licenses */
.license-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.license-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 22px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .15s; }
.license-card:hover { border-color: var(--brick-2); }
.license-name { font-family: var(--serif); font-size: 19px; }
.license-price { font-size: 30px; font-weight: 600; color: var(--gold); }
.license-price small { font-size: 13px; color: var(--ink-dim); font-weight: 400; }
.license-card ul { list-style: none; padding: 0; display: grid; gap: 7px;
  color: var(--ink-dim); font-size: 13px; }
.license-card li::before { content: "— "; color: var(--brick-2); }
.license-note { margin-top: 22px; color: var(--ink-dim); font-size: 13px; text-align: center; }

/* about + footer */
.about p { max-width: 560px; color: var(--ink-dim); }
.about a { color: var(--gold); }
.contact { margin-top: 12px; }
.footer { display: flex; justify-content: space-between; padding: 26px 28px 120px;
  border-top: 1px solid var(--line); color: var(--ink-dim); font-size: 12.5px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--ink); }

/* sticky player */
.player[hidden] { display: none; }
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px; background: rgba(14,13,13,.96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); }
.player-cover { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; }
.player-meta { min-width: 0; width: 200px; }
.player-title { font-weight: 600; font-size: 13.5px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.player-sub { font-size: 11.5px; color: var(--ink-dim); }
.pbtn { background: none; border: none; color: var(--ink); font-size: 15px;
  cursor: pointer; padding: 6px; }
.pbtn-play { width: 40px; height: 40px; border-radius: 50%; background: var(--brick);
  font-size: 14px; }
.pbtn-play:hover { background: var(--brick-2); }
.player-bar { flex: 1; height: 5px; background: var(--line); border-radius: 999px;
  cursor: pointer; }
.player-progress { height: 100%; width: 0%; background: linear-gradient(90deg, var(--brick), var(--brick-2));
  border-radius: 999px; }
.player-time { font-size: 12px; color: var(--ink-dim); font-variant-numeric: tabular-nums;
  width: 44px; text-align: right; }

/* promo popup */
.promo-overlay[hidden] { display: none; }
.promo-overlay { position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(4,4,4,.78); backdrop-filter: blur(6px);
  animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
.promo-card { position: relative; width: 100%; max-width: 400px; text-align: center;
  padding: 44px 34px 34px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(113,37,27,.5), var(--bg-2) 72%);
  border: 1px solid var(--brick); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: pop .35s cubic-bezier(.2,.9,.3,1.3); }
@keyframes pop { from { transform: translateY(16px) scale(.94); opacity: 0; } }
.promo-close { position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: var(--ink-dim); font-size: 16px; cursor: pointer; }
.promo-close:hover { color: var(--ink); }
/* star explosion — plays each time the popup is revealed (display:none resets it) */
.promo-burst { position: relative; width: 34px; height: 34px; margin: 0 auto 8px; }
.promo-star { width: 34px; height: 34px; display: block;
  animation: star-pop .6s cubic-bezier(.2,1.4,.3,1) both; }
@keyframes star-pop {
  0%   { transform: scale(0) rotate(-90deg); }
  55%  { transform: scale(1.45) rotate(8deg); }
  100% { transform: scale(1) rotate(-12deg); }
}
.promo-burst .ring { position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid var(--brick-2); opacity: 0;
  animation: ring-out .7s ease-out .12s both; }
@keyframes ring-out {
  0%   { transform: scale(.4); opacity: .9; }
  100% { transform: scale(2.6); opacity: 0; }
}
.promo-burst .spark { position: absolute; top: 50%; left: 50%; width: 7px; height: 7px;
  margin: -3.5px; border-radius: 50%; background: var(--gold); opacity: 0;
  box-shadow: 0 0 6px rgba(232,210,74,.8);
  transform: rotate(var(--a)) translateX(0);
  animation: spark-fly .65s cubic-bezier(.1,.7,.3,1) .14s both; }
.promo-burst .spark:nth-child(odd) { background: var(--brick-2); width: 6px; height: 6px;
  box-shadow: 0 0 6px rgba(142,29,47,.9); }
.promo-burst .spark:nth-child(2) { --a: 0deg; }   .promo-burst .spark:nth-child(3) { --a: 45deg; }
.promo-burst .spark:nth-child(4) { --a: 90deg; }  .promo-burst .spark:nth-child(5) { --a: 135deg; }
.promo-burst .spark:nth-child(6) { --a: 180deg; } .promo-burst .spark:nth-child(7) { --a: 225deg; }
.promo-burst .spark:nth-child(8) { --a: 270deg; } .promo-burst .spark:nth-child(9) { --a: 315deg; }
@keyframes spark-fly {
  0%   { transform: rotate(var(--a)) translateX(2px) scale(1); opacity: 1; }
  100% { transform: rotate(var(--a)) translateX(52px) scale(.15); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-star, .promo-burst .ring, .promo-burst .spark { animation: none; opacity: 1; }
  .promo-burst .ring, .promo-burst .spark { display: none; }
}
.promo-kicker { letter-spacing: .3em; text-transform: uppercase; font-size: 10.5px; color: var(--ink-dim); }
.promo-big { font-family: var(--serif); font-weight: 700; font-size: 62px; line-height: 1;
  margin: 6px 0; color: var(--gold); }
.promo-detail { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink); }
.promo-code { margin: 22px auto 20px; display: flex; flex-direction: column; gap: 3px;
  align-items: center; width: 100%; padding: 12px; cursor: pointer;
  background: var(--bg); border: 1px dashed var(--brick-2); border-radius: 10px;
  color: var(--ink); font-family: var(--sans); }
.promo-code #promo-code-text { font-size: 22px; font-weight: 700; letter-spacing: .18em; }
.promo-code small { font-size: 11px; color: var(--ink-dim); letter-spacing: .04em; }
.promo-card .btn { width: 100%; }

/* license picker modal (reuses .promo-overlay backdrop) */
.license-modal-card { max-width: 440px; text-align: left; padding: 38px 30px 26px; }
.license-modal-card .promo-kicker { text-align: center; }
.lm-title { font-family: var(--serif); font-size: 24px; font-weight: 700;
  text-align: center; margin: 8px 0 20px; }
.lm-tiers { display: grid; gap: 10px; }
.lm-tier { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; padding: 14px 16px; border-radius: 12px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  font-family: var(--sans); text-align: left; transition: border-color .15s, background .15s; }
.lm-tier:hover { border-color: var(--brick-2); background: #161213; }
.lm-tier-name { font-weight: 600; font-size: 14.5px; }
.lm-tier-desc { color: var(--ink-dim); font-size: 11.5px; margin-top: 2px; }
.lm-tier-price { font-family: var(--serif); font-size: 20px; font-weight: 700;
  color: var(--gold); white-space: nowrap; }
.lm-note { margin-top: 16px; text-align: center; color: var(--ink-dim); font-size: 11.5px; }

/* share sheet (reuses .promo-overlay backdrop + .auth-tabs) */
.share-label { display: block; margin: 16px 0 7px; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-dim); }
.share-row { display: flex; gap: 8px; align-items: stretch; }
.share-row input, .share-row textarea { flex: 1; min-width: 0; background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink);
  font-family: var(--sans); font-size: 13px; resize: none; line-height: 1.5; }
.share-row input:focus, .share-row textarea:focus { outline: none; border-color: var(--brick-2); }
.share-copy { flex: 0 0 46px; border-radius: 10px; cursor: pointer;
  background: var(--brick); border: 1px solid var(--brick); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s; }
.share-copy:hover { background: var(--brick-2); border-color: var(--brick-2); }
.share-copy.copied { background: var(--gold); border-color: var(--gold); color: #0a0a0a; }
.share-native { width: 100%; margin-top: 12px; }
#share-pane-link.hide, #share-pane-embed.hide { display: none; }

/* share + download */
.row-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--ink-dim);
  transition: all .15s; flex: none; }
.icon-btn:hover { border-color: var(--brick-2); color: var(--ink); background: #161213; }
.feat-extra { display: inline-flex; gap: 8px; }

/* nav auth button */
.nav-auth { text-align: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 6px 16px; font-family: var(--sans); font-size: 13.5px;
  cursor: pointer; transition: all .15s; }
.nav-auth:hover { border-color: var(--brick-2); background: #161213; }
.nav-auth.logged-in { border-color: var(--brick); color: var(--gold); }

/* auth modal */
.auth-tabs { display: flex; gap: 6px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px; margin: 4px 0 18px; }
.auth-tab { flex: 1; background: transparent; border: none; color: var(--ink-dim);
  padding: 9px; border-radius: 999px; cursor: pointer; font-family: var(--sans);
  font-size: 13.5px; font-weight: 600; transition: all .15s; }
.auth-tab.active { background: var(--brick); color: var(--ink); }
/* minmax(0,1fr), not the implicit auto column: an auto column is sized to the
   widest item's max-content (the placeholder text), which pushed the inputs
   straight through the card edge on narrow screens. */
#auth-form, #offer-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
#auth-form input, #offer-form input, #offer-form textarea { min-width: 0; width: 100%; }
#auth-form input, #offer-form input, #offer-form textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); padding: 12px 15px; font-family: var(--sans); font-size: 14px; outline: none; }
#auth-form input:focus, #offer-form input:focus, #offer-form textarea:focus { border-color: var(--brick-2); }
#offer-form textarea { resize: vertical; line-height: 1.45; }
/* the number spinner fights the layout and invites stepping, not typing */
#of-amount { -moz-appearance: textfield; appearance: textfield; }
#of-amount::-webkit-outer-spin-button, #of-amount::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0; }
#offer-form .btn { margin-top: 4px; }
.auth-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.auth-reg-only { display: grid; gap: 10px; }
.auth-reg-only.hide { display: none; }
.auth-err { color: #e06a6a; font-size: 12.5px; margin: 0; text-align: center; }
.auth-forgot { display: block; width: 100%; margin: 10px auto 0; background: none; border: none;
  color: var(--ink-dim); font-size: 12px; text-decoration: underline; cursor: pointer; }
.auth-forgot:hover { color: var(--ink); }
.auth-forgot.hide { display: none; }
#au-email.hide { display: none; }

/* cookie consent bar */
.cookie-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 120;
  width: min(680px, calc(100vw - 24px)); display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; background: var(--card, #14100e); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.cookie-bar[hidden] { display: none; }
.cookie-text { margin: 0; color: var(--ink-dim); font-size: 12.5px; line-height: 1.5; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn { border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--line); white-space: nowrap; }
.cookie-decline { background: transparent; color: var(--ink-dim); }
.cookie-decline:hover { color: var(--ink); border-color: var(--ink-dim); }
.cookie-accept { background: var(--brick); color: var(--ink); border-color: var(--brick); }
.cookie-accept:hover { filter: brightness(1.08); }
@media (max-width: 560px) {
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; bottom: 10px; }
  .cookie-actions { justify-content: center; }
  .cookie-btn { flex: 1; }
}
#auth-note { margin-top: 14px; }

/* floating offer countdown */
.offer-timer[hidden] { display: none; }
.offer-timer { position: fixed; left: 20px; bottom: 108px; z-index: 55;
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 10px 16px; border-radius: 999px;
  background: linear-gradient(120deg, var(--brick), #3a120c);
  border: 1px solid var(--brick-2); color: var(--ink);
  font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  animation: ot-in .4s cubic-bezier(.2,.9,.3,1.2); }
@keyframes ot-in { from { transform: translateY(14px); opacity: 0; } }
.offer-timer:hover { border-color: var(--gold); }
.ot-star { color: var(--gold); animation: ot-pulse 1.6s ease-in-out infinite; }
@keyframes ot-pulse { 50% { opacity: .35; transform: scale(.8); } }
.offer-timer b { color: var(--gold); letter-spacing: .06em; }
.ot-clock { font-variant-numeric: tabular-nums; font-weight: 700; }
.offer-timer.expired { background: #1a1516; border-color: var(--line); }
.offer-timer.expired b, .offer-timer.expired .ot-star { color: var(--ink-dim); }
@media (max-width: 640px) { .offer-timer { left: 12px; right: 12px; bottom: 96px; justify-content: center; } }

/* toast */
.toast[hidden] { display: none; }
.toast { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%);
  z-index: 120; background: #1a1516; border: 1px solid var(--brick-2);
  color: var(--ink); font-size: 13px; padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: fade .25s ease; }

/* ── phones ─────────────────────────────────────────────────────────────────
   The desktop player is a single flex row; below ~640px the progress bar gets
   squeezed to 0px and the title to a few characters, so the player becomes a
   two-row grid with a real scrubber. The featured block stacks for the same
   reason (its info column collapsed to ~150px beside the 148px cover). */
@media (max-width: 640px) {
  .nav { padding: 12px 16px; }
  .nav-links { gap: 12px; }
  .nav-links a:not(.nav-cta) { display: none; }

  .hero { padding: 58px 20px 52px; }
  .hero-title { font-size: clamp(64px, 21vw, 108px); }
  .hero-tag { font-size: 15px; }

  .section { padding: 44px 16px; }
  .section-head { flex-wrap: wrap; }
  #search { width: 100%; }

  /* featured: cover over info instead of beside it */
  .feat-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .feat-cover-wrap { width: 100%; max-width: 240px; height: auto;
    aspect-ratio: 1 / 1; margin: 0 auto; }
  .feat-actions { gap: 12px; }
  #feat-buy { flex: 1 1 auto; text-align: center; }
  .spectrum { height: 72px; }

  .beat-row { grid-template-columns: 44px 1fr auto; }
  .row-cover, .row-dur { display: none; }

  /* two-row player: [cover | title | BUY] over [⏮ ▶ ⏭ | scrubber | time] */
  body { padding-bottom: 118px; }
  .player { display: grid; align-items: center; gap: 8px 10px; padding: 10px 14px;
    grid-template-columns: auto auto auto 1fr auto;
    grid-template-areas: "cover meta meta meta buy"
                         "prev  play next bar  time"; }
  .player-cover { grid-area: cover; }
  .player-meta  { grid-area: meta; width: auto; min-width: 0; }
  #player-buy   { grid-area: buy; }
  #prev         { grid-area: prev; }
  #toggle       { grid-area: play; }
  #next         { grid-area: next; }
  .player-bar   { grid-area: bar; }
  .player-time  { grid-area: time; display: block; }

  /* iOS Safari zooms the whole page when a focused field is under 16px */
  #search, #auth-form input, .share-row input, .share-row textarea,
  #offer-form input, #offer-form textarea { font-size: 16px; }

  /* ≥44px touch targets, expressed as min-width/min-height rather than
     width/height: the base rules already set explicit width/height, and a
     same-specificity override is fragile — min-* clamps the box up regardless
     of which width declaration wins the cascade. */
  .icon-btn, .row-play, .pbtn, .promo-close,
  .btn, .btn-sm, .nav-auth, .nav-cta, .auth-tab, .share-copy,
  .cookie-btn, .lm-tier, .promo-code {
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .promo-close { top: 6px; right: 8px; }
  .lm-tier, .promo-code { justify-content: space-between; }
  .promo-code { flex-direction: column; justify-content: center; }
}

/* Touch pointers need ≥44px targets regardless of viewport width (a phone in
   landscape is wider than the breakpoint but still finger-driven). */
@media (pointer: coarse) {
  .icon-btn, .row-play, .pbtn, .promo-close,
  .btn-sm, .nav-auth, .nav-cta, .auth-tab, .share-copy {
    min-width: 44px; min-height: 44px;
  }
}
