/* Centred in the right-hand third of the home page. */
.single-entry { position: absolute; z-index: 1; left: 83.333%; top: 50%; transform: translate(-50%, -50%); width: 210px; display: grid; justify-items: center; gap: .65rem; text-align: center; }
body.splash { position: relative; }
.single-entry p { margin: 0; }
.single-kicker { color: #ffb8ed; text-transform: uppercase; font-size: .7rem; font-weight: 700; letter-spacing: .3em; }
.vinyl {
  position: relative;
  border: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 25deg, transparent 0deg, #b8d9ff55 28deg, #e7f4ff22 35deg, transparent 55deg, transparent 180deg, #b8d9ff44 208deg, #e7f4ff1f 215deg, transparent 235deg),
    repeating-radial-gradient(circle, #080d16 0px, #080d16 2px, #344154 3px, #080c13 4px);
  box-shadow: inset 0 0 0 4px #02050b, inset 0 0 0 6px #667d98, inset 0 0 18px #8fbbe433, 0 10px 25px #0009;
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.vinyl:active { cursor: grabbing; }
.vinyl:focus-visible { outline: 3px solid #9dceff; outline-offset: 6px; }
.entry-record { width: 132px; height: 132px; margin: .3rem; padding: 0; color: #c5dfff; }
.record-label {
  position: absolute; inset: 32%; border-radius: 50%;
  text-align: center;
  background: linear-gradient(145deg, #6794b5, #163759 42%, #0c2344 65%, #416486);
  border: 1px solid #83b9e5aa; color: #d5eaff;
  box-shadow: inset 0 1px 4px #d4eeff77, 0 2px 6px #0008;
}
.record-label > span { position: absolute; top: 13%; left: 0; width: 100%; font-size: .65em; font-weight: 900; letter-spacing: .18em; }
.record-label strong { position: absolute; top: 27%; left: 5%; width: 90%; font-size: 1.15em; letter-spacing: .04em; line-height: 1.05; }
.record-label small { position: absolute; bottom: 22%; left: 0; width: 100%; font-size: .5em; letter-spacing: .12em; }
.record-label i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 7%; aspect-ratio: 1; background: radial-gradient(circle, #01040a 55%, #9fb7c8 70%, #253a4e 80%); border: 1px solid #b6d4e9; border-radius: 50%; box-shadow: 0 1px 3px #000, 0 0 0 2px #030b19; }
.entry-record .record-label { inset: 27%; font-size: 8px; }
.record-page {
  --magenta: #6baff0; --magenta-hot: #b6dfff; --text: #c9dced;
  --panel-2: #13253c; --ink: #040b18;
  min-height: 100vh;
  background: radial-gradient(ellipse at 45% 25%, #142e51 0, #08152a 45%, #020711 100%);
}
.turntable {
  --deck-w: min(620px, 58vw, max(230px, calc(120svh - 408px)));
  display: grid; grid-template-columns: var(--deck-w) minmax(0, 1fr); gap: 1rem 2rem;
  max-width: 1100px; margin: .5rem auto 1.5rem; padding: 1.25rem 1.25rem;
  border: 1px solid #c09a7188; border-radius: 8px;
  background:
    linear-gradient(105deg, #efcca327, transparent 40%, #190d0a44),
    repeating-radial-gradient(ellipse at -30% 40%, transparent 0 12px, #24120a18 13px 14px, transparent 15px 25px),
    repeating-linear-gradient(0deg, #a47a5511 0 1px, #2e170d22 2px 3px, transparent 4px 8px),
    linear-gradient(90deg, #5b3c29, #98704b 35%, #805739 65%, #62412b);
  background-size: 100% 100%, 200% 160px, 100% 100%, 100% 100%;
  box-shadow: 0 12px 0 #382318, 0 14px 0 #140e0a, 0 30px 65px #000a, inset 0 1px 2px #ffe0b177, inset 0 -2px 3px #201109;
}
.record-page .brand span { text-shadow: 0 0 18px #6baff0; }
.desk-player { display: grid; gap: 1rem; min-width: 0; }
.turntable > :not(.desk-player):not(.desk-sleeve) { grid-column: 1 / -1; }
.deck {
  position: relative; width: 100%;
  border: 1px solid #789bbd99; border-radius: 8px;
  background: radial-gradient(ellipse at 15% 0%, #8daac333, transparent 50%), linear-gradient(125deg, #2c415a, #0b1729 50%, #233a54);
  box-shadow: 0 8px 0 #08111e, 0 10px 0 #020711, 0 18px 22px #24140c99, inset 0 2px 2px #e3f2ff55, inset 0 -2px 3px #020711;
}
.deck-stage { position: relative; aspect-ratio: 600 / 500; }
.platter { position: absolute; width: 72%; aspect-ratio: 1; top: 9%; left: 5%; border-radius: 50%; background: #020914; box-shadow: 0 14px 22px #0009, 0 0 0 5px #030a16, 0 0 0 6px #89a4bb66; }
.platter-rotor { position: absolute; inset: 0; border-radius: 50%; padding: 2.8%; background: repeating-conic-gradient(#c2d5e4 0deg 1deg, #30465b 1deg 3deg); box-shadow: inset 0 0 0 2px #a9c1d7, inset 0 0 8px #e5f4ff88; }
.platter::before, .platter::after { content: ""; position: absolute; border-radius: 50%; z-index: 1; pointer-events: none; }
.platter::before { inset: 0; background: conic-gradient(from 15deg, #ffffff44, transparent 50deg 180deg, #ffffff44 210deg, transparent 250deg); mask-image: radial-gradient(circle closest-side, transparent 94.4%, #000 95%); }
.platter::after { inset: 2.8%; background: conic-gradient(from 25deg, transparent 0deg, #b8d9ff55 28deg, #e7f4ff22 35deg, transparent 55deg, transparent 180deg, #b8d9ff44 208deg, #e7f4ff1f 215deg, transparent 235deg); mask-image: radial-gradient(circle closest-side, transparent 36%, #000 36.5%, #000 98%, transparent 99%); }
.full-record { width: 100%; height: 100%; font-size: clamp(8px, 1.8vw, 16px); background: repeating-radial-gradient(circle, #080d16 0px, #080d16 2px, #344154 3px, #080c13 4px); }
.label-arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: currentColor; text-anchor: middle; }
.label-arcs .arc-band { font-size: 8.5px; font-weight: 900; letter-spacing: 2.4px; }
.label-arcs .arc-title { font-size: 12.5px; font-weight: 700; letter-spacing: .5px; }
.label-arcs .arc-side { font-size: 6.5px; letter-spacing: 1.6px; fill: #a9c8e6; }
.tonearm { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(4px 7px 3px #0009); transition: filter .18s ease; }
.tonearm.lifted { filter: drop-shadow(10px 16px 6px #0007); }
#arm { outline: none; }
.arm-grab { fill: none; stroke: transparent; stroke-width: 46; stroke-linecap: round; pointer-events: stroke; cursor: grab; touch-action: none; }
.tonearm.lifted .arm-grab { cursor: grabbing; }
#arm:focus-visible .arm-headshell { stroke: #bfe0ff; stroke-width: 5; }
.arm-hint { opacity: 0; pointer-events: none; fill: none; stroke: #69e89b; stroke-linecap: round; stroke-linejoin: round; }
.tonearm.cue-hint .arm-hint { animation: cue-hint 2.4s ease-in-out infinite; }
@keyframes cue-hint {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .tonearm.cue-hint .arm-hint { animation: none; opacity: .8; } }
.deck-screw { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(45deg, #52718c 42%, #030b19 45% 55%, #52718c 58%); }
.screw-one { left: 12px; top: 12px; }
.screw-two { left: 12px; bottom: 12px; }
.deck-marking { position: absolute; top: .5%; left: max(30px, 5.5%); display: block; width: calc(var(--deck-w) * .3); height: auto; pointer-events: none; }
.deck-controls { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .6em .9em; padding: 0 max(8px, 3%) .75em; }
.transport { display: flex; flex-shrink: 0; gap: .6rem; }
.speed-controls { display: flex; flex-shrink: 0; gap: .55em; }
.speed-btn { width: 2.6em; height: 2.6em; padding: 0; border: 2px solid #789abc; border-radius: 50%; background: linear-gradient(#65819d, #2c4867 48%, #142940 52%, #25415e); color: #c9dced; font: inherit; font-size: .7em; font-weight: 700; cursor: pointer; touch-action: none; box-shadow: inset 0 1px #e0f1ff77; transition: border-color .2s, box-shadow .2s, color .2s; }
.speed-btn:hover { color: #fff1ec; border-color: #a0cffa; }
.speed-btn:focus-visible { outline: 2px solid #bfe0ff; outline-offset: 4px; }
.speed-btn.lit { color: #ffe3dc; border-color: #ff6a55; box-shadow: 0 0 5px #ff4a3a, 0 0 12px #ff2d1f88, inset 0 0 5px #ff4a3a88; }
.record-page .btn { background: linear-gradient(#65819d, #2c4867 48%, #142940 52%, #25415e); border-color: #789abc; box-shadow: 0 4px 0 #020711, inset 0 1px #e0f1ff77; }
.record-page .btn:hover { color: #e2f2ff; border-color: #a0cffa; }
.transport .btn { min-width: 4.4rem; padding: .35rem .8rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; transition: background .25s, box-shadow .25s, color .25s, border-color .25s; }
/* Lit from a red lamp inside the case beneath the key. */
.transport .btn.lit {
  color: #ffe3dc; border-color: #ff6a55;
  background: radial-gradient(ellipse at 50% 120%, #ff3b2a 0, #c0181488 45%, transparent 75%), linear-gradient(#6d3a44, #3e1d26 48%, #2a0f16 52%, #4a1e26);
  text-shadow: 0 0 6px #ff4a3a, 0 0 12px #ff2a1a88;
  box-shadow: 0 4px 0 #020711, 0 0 14px #ff2d1f88, 0 6px 18px #ff1d0f55, inset 0 -6px 10px #ff4a3a99, inset 0 1px #ffd0c877;
}
.transport .btn.lit:hover { color: #fff1ec; border-color: #ff8a78; }
.record-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Same diameter as the record on the platter (72% platter x 94.4% inside the rim). */
.desk-sleeve { position: relative; align-self: center; justify-self: end; width: calc(var(--deck-w) * .68); aspect-ratio: 1; margin-right: max(.75rem, calc(60px - max(0px, (100vw - 1100px) / 2))); transform: rotate(-3deg); }
.inner-envelope {
  position: absolute; inset: 1.5%; transform: translateX(22%) rotate(1.5deg);
  border-radius: 2px;
  background: linear-gradient(140deg, #f7f1e6, #ddd3c2 55%, #c9bea9);
  box-shadow: 0 6px 14px #1d0f0877, inset 0 0 0 1px #fffaf088;
}
.sleeve-cover {
  position: absolute; inset: 0; border-radius: 2px;
  background: url("../assets/LWcover.jpg") center / cover no-repeat;
  box-shadow: 0 14px 22px #1a0c06aa, 0 2px 4px #0008, inset 0 0 0 1px #9cc8f033;
}
/* Desktop: grow past the original 620px deck on large screens and centre the desk in the window. */
@media (min-width: 741px), (orientation: landscape) {
  .record-page { display: flex; flex-direction: column; }
  .turntable {
    --deck-w: min(calc((100vw - 80px) / 2.05), max(150px, calc((100svh - 130px) / .96)));
    width: min(100% - 2rem, max(calc(var(--deck-w) * 1.8), calc(var(--deck-w) * 1.68 + 160px))); max-width: none; margin: auto;
  }
  .deck { font-size: max(16px, calc(var(--deck-w) * .0258)); }
  .transport { gap: .6em; }
  .transport .btn { min-width: 4.4em; padding: .35em .8em; font-size: .75em; border-radius: .375em; }
}
.record-error { grid-column: 1 / -1; padding: 1rem; border: 1px solid #b28e76; color: #ffceb3; background: #241d25; line-height: 1.5; }
.turntable:has(.record-error:not([hidden])) { flex: 0 0 auto; grid-template-rows: auto; }
@media (max-width: 1050px) {
  body.splash { display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: auto; }
  .single-entry { position: static; transform: none; margin: 0 1rem 2rem; }
  .desk-sleeve { margin-right: 3.25rem; }
}
@media (max-width: 740px) and (orientation: portrait) {
  .record-page .topbar { padding: .6rem 1rem; }
  .record-page { display: flex; flex-direction: column; height: 100svh; min-height: 0; }
  .turntable { --deck-w: min(440px, 100vw - 2.8rem, (100svh - 190px) / 1.52); flex: 1 1 auto; min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: .5rem; width: calc(100% - 1.3rem); margin: .3rem .65rem .6rem; padding: .7rem; }
  .desk-player { gap: .5rem; justify-items: center; }
  /* Deck is sized so a record-sized sleeve (.68 x deck) fits underneath it. */
  .desk-sleeve { width: calc(var(--deck-w) * .68); margin: 1.4rem 0 .6rem; align-self: start; justify-self: center; }
  .deck { width: var(--deck-w); }
}
@media (max-width: 740px) and (orientation: portrait) and (max-height: 600px) {
  .deck-marking { left: 24px; }
}
@media (max-height: 350px) and (orientation: landscape) {
  .record-page .topbar { padding: .5rem 1rem; }
  .turntable { --deck-w: min(calc((100vw - 80px) / 2.05), max(150px, calc((100svh - 160px) / .96))); padding: .75rem; }
}
@media (max-width: 740px) and (orientation: portrait) and (max-height: 440px), (max-width: 440px) and (orientation: landscape) {
  .record-page .topbar { padding: .25rem 1rem; }
  .turntable { --deck-w: min(100vw - 2.8rem, max(168px, calc((100svh - 170px) / .84))); grid-template-columns: 1fr; grid-template-rows: auto; width: calc(100% - 1.3rem); padding: .4rem; }
  .desk-player { justify-items: center; }
  .deck { width: var(--deck-w); }
  .desk-sleeve { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .splash-wrap, .splash-image { animation: none; }
}
