/* Drop your music. Vinyl platter backdrop spins behind the upload box. */
.drop-stage {
  position: relative;
  display: grid;
  place-items: center;
  /* full-bleed so the record can run past the content column */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 3rem 1rem;
  isolation: isolate;
  overflow: clip;
}
.drop .section-head { margin-inline: auto; text-align: center; }
.drop-platter {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
}
/* Bird's-eye platter view. Only transform animates, so it stays on the GPU. */
.drop-vinyl {
  --size: 165vw;
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  background:
    /* light catching the grooves: rotates with the record so the spin reads */
    conic-gradient(from 0deg,
      rgba(255,255,255,0) 0deg, rgba(243,243,246,0.16) 18deg, rgba(255,255,255,0) 40deg,
      rgba(255,255,255,0) 140deg, rgba(225,6,0,0.14) 165deg, rgba(255,255,255,0) 190deg,
      rgba(255,255,255,0) 200deg, rgba(243,243,246,0.12) 222deg, rgba(255,255,255,0) 246deg,
      rgba(255,255,255,0) 330deg, rgba(207,207,212,0.08) 345deg, rgba(255,255,255,0) 360deg),
    /* fine grooves */
    repeating-radial-gradient(circle at 50% 50%,
      #0b0b0b 0px, #0b0b0b 1.6px, #1b1b1d 2.2px, #0d0d0d 3.2px),
    #0a0a0a;
  box-shadow:
    0 0 0 2px rgba(207,207,212,0.18),
    0 0 0 calc(var(--size) * 0.012) #050505,
    0 0 0 calc(var(--size) * 0.016) rgba(207,207,212,0.22),
    0 40px 90px rgba(0,0,0,0.7),
    0 0 120px rgba(225,6,0,0.18);
  animation: drop-spin 1.8s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}
/* run-out groove and lead-in ring */
.drop-vinyl::before,
.drop-vinyl::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: 31%;
  border: 1px solid rgba(207,207,212,0.25);
  box-shadow: inset 0 0 0 calc(var(--size) * 0.03) #070707;
}
.drop-vinyl::after {
  inset: 2.4%;
  border-color: rgba(207,207,212,0.12);
  box-shadow: none;
}
.drop-label {
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #050505 0 3.2%, transparent 3.6%),
    radial-gradient(circle at 35% 30%, #ff3b3b, var(--red, #e10600) 45%, #7a0300 100%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 3px rgba(0,0,0,0.35), inset 0 0 0 6px rgba(243,243,246,0.25);
}
.drop-label img {
  width: 52%;
  height: auto;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.6));
  opacity: 0.92;
}
/* Fixed studio light over the record (does not rotate) */
.drop-sheen {
  position: absolute;
  width: var(--size, 165vw);
  --size: 165vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(125deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 68%, rgba(255,255,255,0.06) 100%);
  pointer-events: none;
}
.drop-stage::after {
  /* darken the center so form text stays readable */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(5,5,5,0.35) 0%, rgba(5,5,5,0) 70%);
  pointer-events: none;
}
.drop.is-sending .drop-vinyl { animation-duration: 1.1s; }

@keyframes drop-spin {
  from { transform: translateZ(0) rotate(0deg); }
  to { transform: translateZ(0) rotate(360deg); }
}

/* Upload box */
.drop-form {
  position: relative;
  width: min(34rem, 100%);
  display: grid;
  gap: 0.8rem;
  padding: clamp(1rem, 3.5vw, 1.6rem);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 42%),
    rgba(10,10,10,0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(207,207,212,0.3);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
}
.drop-field { display: grid; gap: 0.3rem; color: var(--silver, #cfcfd4); font-size: 0.9rem; }
.drop-handle {
  display: flex;
  align-items: center;
  background: #0a0a0a;
  border: 1px solid var(--line, rgba(207,207,212,0.22));
}
.drop-handle > span { padding: 0 0.2rem 0 0.75rem; color: var(--red-hot, #ff3b3b); font-weight: 600; }
.drop-handle input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0.65rem 0.7rem 0.65rem 0.1rem;
  color: var(--ink, #f5f5f5);
  font-size: 16px;
}
.drop-handle:focus-within { outline: 2px solid var(--red, #e10600); outline-offset: 1px; }
.drop-handle input:focus { outline: none; }
.drop-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.drop-zone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0.15rem;
  min-height: 132px;
  padding: 1rem;
  text-align: center;
  border: 2px dashed rgba(207,207,212,0.45);
  background: rgba(5,5,5,0.5);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.is-over {
  border-color: var(--red, #e10600);
  background: rgba(225,6,0,0.1);
  outline: none;
}
.drop-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop-zone-title {
  font-family: Cinzel, serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--silver-bright, #f3f3f6);
}
.drop-zone-sub { color: var(--dim, #bdbdbd); font-size: 0.85rem; }
.drop-rules, .drop-fine, .drop-status { margin: 0; font-size: 0.8rem; color: var(--dim, #bdbdbd); }
.drop-fine { color: var(--muted, #8a8a8a); }
.drop-status:empty { display: none; }
.drop-status.is-error { color: var(--red-hot, #ff3b3b); }
.drop-status.is-ok { color: var(--silver-bright, #f3f3f6); }

.drop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.drop-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.6rem;
  padding: 0.6rem 0.7rem;
  background: rgba(17,17,17,0.9);
  border: 1px solid var(--line, rgba(207,207,212,0.22));
  border-left: 3px solid var(--red, #e10600);
}
.drop-item.is-image { border-left-color: var(--silver, #cfcfd4); }
.drop-item.is-bad { border-left-color: #555; opacity: 0.75; }
.drop-item-name {
  font-size: 0.85rem;
  color: var(--ink, #f5f5f5);
  overflow-wrap: anywhere;
}
.drop-item-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.72rem; }
.drop-chip {
  padding: 1px 7px;
  border: 1px solid rgba(207,207,212,0.3);
  border-radius: 999px;
  color: var(--dim, #bdbdbd);
  white-space: nowrap;
}
.drop-chip.is-red { border-color: rgba(255,59,59,0.5); color: var(--red-hot, #ff3b3b); }
.drop-item-edit { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 5.5rem; gap: 0.4rem; }
.drop-item-edit input {
  min-width: 0;
  background: #0a0a0a;
  border: 1px solid var(--line, rgba(207,207,212,0.22));
  color: var(--ink, #f5f5f5);
  padding: 0.4rem 0.5rem;
  font-size: 16px;
}
.drop-item-edit input:focus { outline: 2px solid var(--red, #e10600); outline-offset: 0; }
.drop-remove {
  align-self: start;
  background: none;
  border: 1px solid var(--line, rgba(207,207,212,0.22));
  color: var(--dim, #bdbdbd);
  min-width: 44px;
  min-height: 32px;
  cursor: pointer;
  font-size: 0.75rem;
}
.drop-remove:hover { color: #fff; border-color: var(--red, #e10600); }
.drop-bar { grid-column: 1 / -1; height: 4px; background: #222; overflow: hidden; }
.drop-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--silver, #cfcfd4), var(--red, #e10600));
  transition: width 0.2s linear;
}
.drop-send { justify-self: stretch; }
.drop-send[disabled] { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.4); }

@media (min-width: 820px) {
  .drop-vinyl, .drop-sheen { --size: 860px; width: 860px; }
  .drop-stage { padding: 6rem 1rem; }
}
@media (min-width: 1440px) {
  .drop-vinyl, .drop-sheen { --size: 940px; width: 940px; }
}
@media (prefers-reduced-motion: reduce) {
  .drop-vinyl { animation: none !important; }
}
.drop-headline { font-size: clamp(2rem, 7vw, 3.6rem); letter-spacing: 0.06em; }
.drop-sub { max-width: 34rem; margin-inline: auto; font-size: clamp(1rem, 2.4vw, 1.15rem); color: var(--silver, #cfcfd4); }
/* Even diamond dividers: the form sits the same 3.2rem above the next divider as every other section. */
.section.drop { padding-bottom: 0; }
.drop-stage { padding-bottom: 3.2rem; }
@media (min-width: 820px) {
  .drop-stage { padding-bottom: 3.2rem; }
}
.drop-headline { overflow: hidden; vertical-align: top; }
/* Center the record on the stage even when it is wider or taller than the stage (phones, tablets). */
.drop-vinyl, .drop-sheen {
  position: absolute;
  left: 50%;
  top: 50%;
  height: var(--size);
  margin-left: calc(var(--size) / -2);
  margin-top: calc(var(--size) / -2);
}
/* Label: black and silver with a red ring, carrying the diamond dj.b.ray wordmark. Rotates with the record. */
.drop-label {
  inset: 33%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 60%, rgba(225,6,0,0.9) 60.5% 63%, transparent 63.5%),
    radial-gradient(circle at 50% 50%, transparent 0 88%, rgba(207,207,212,0.5) 88.5% 89.5%, transparent 90%),
    radial-gradient(circle at 36% 28%, #2a2a2e 0%, #121214 55%, #050505 100%);
  box-shadow:
    inset 0 0 0 2px rgba(243,243,246,0.35),
    inset 0 0 0 5px #0a0a0a,
    inset 0 0 0 6px rgba(225,6,0,0.75),
    0 0 18px rgba(225,6,0,0.25);
}
.drop-label .drop-label-logo {
  width: 82%;
  height: auto;
  opacity: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.9)) drop-shadow(0 0 6px rgba(243,243,246,0.18));
}
/* Label stays in view: the record's center sits above the upload box, so the logo is never covered.
   --size lives on the stage so spacing can follow the record size. Label diameter = 34% of the record. */
.drop-stage {
  --size: 165vw;
  --label: calc(var(--size) * 0.34);
  padding-top: calc(var(--label) + 4rem);
  place-items: end center;
}
.drop-vinyl, .drop-sheen {
  width: var(--size);
  top: calc(2rem + var(--label) / 2);
}
.drop-platter {
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 88%, transparent 100%);
}
.drop .section-head { margin-bottom: 0; position: relative; z-index: 1; }
@media (min-width: 820px) {
  .drop-stage { --size: 760px; padding-top: calc(var(--label) + 4.5rem); }
  .drop-vinyl, .drop-sheen { --size: 760px; width: 760px; }
}
@media (min-width: 1440px) {
  .drop-stage { --size: 820px; }
  .drop-vinyl, .drop-sheen { --size: 820px; width: 820px; }
}
.drop-platter {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 1.75rem, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 1.75rem, #000 88%, transparent 100%);
}

/* Tonearm: fixed while the record spins. All sizes follow the record size (--size) so it scales on phones.
   Pivot (--ax, --ay) and needle are measured from the record center in record-size units. */
.drop-stage { --cy: calc(2rem + var(--label) / 2); --ax: 0.264; --ay: -0.13; --arm-len: 0.221; --arm-rot: 12deg; --arm-k: 0.85; }
.drop-arm {
  position: absolute;
  left: calc(50% + var(--size) * var(--ax));
  top: calc(var(--cy) + var(--size) * var(--ay));
  width: 0;
  height: 0;
  transform: rotate(var(--arm-rot));
  pointer-events: none;
  filter: drop-shadow(0 6px 6px rgba(0,0,0,0.65));
}
.drop-arm span { position: absolute; display: block; }
.drop-arm .arm-base {
  width: calc(var(--size) * 0.05 * var(--arm-k));
  height: calc(var(--size) * 0.05 * var(--arm-k));
  left: calc(var(--size) * -0.025 * var(--arm-k));
  top: calc(var(--size) * -0.025 * var(--arm-k));
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--red, #e10600) 0 18%, #111 19% 30%, transparent 31%),
    radial-gradient(circle at 35% 30%, #f3f3f6, #a9a9b0 45%, #55555b 100%);
  box-shadow: 0 0 0 2px #0a0a0a, 0 0 0 3px rgba(207,207,212,0.35);
}
.drop-arm .arm-weight {
  width: calc(var(--size) * 0.03 * var(--arm-k));
  height: calc(var(--size) * 0.04 * var(--arm-k));
  left: calc(var(--size) * -0.015 * var(--arm-k));
  top: calc(var(--size) * -0.062 * var(--arm-k));
  border-radius: 3px;
  background: linear-gradient(90deg, #4a4a50, #e6e6ea 45%, #8d8d94 100%);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.35);
}
.drop-arm .arm-tube {
  width: calc(var(--size) * 0.011 * var(--arm-k));
  height: calc(var(--size) * var(--arm-len) - var(--size) * 0.045);
  left: calc(var(--size) * -0.0055 * var(--arm-k));
  top: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #6d6d74, #f3f3f6 40%, #cfcfd4 60%, #6d6d74 100%);
}
.drop-arm .arm-head {
  width: calc(var(--size) * 0.03 * var(--arm-k));
  height: calc(var(--size) * 0.05 * var(--arm-k));
  left: calc(var(--size) * -0.015 * var(--arm-k));
  top: calc(var(--size) * var(--arm-len) - var(--size) * 0.05 * var(--arm-k));
  transform: rotate(18deg);
  transform-origin: 50% 0;
  border-radius: 3px 3px 5px 5px;
  background: linear-gradient(180deg, #1a1a1c, #0a0a0a);
  border: 1px solid rgba(207,207,212,0.55);
  box-shadow: inset 0 0 0 2px var(--red, #e10600);
}
.drop-arm .arm-needle {
  width: 2px;
  height: calc(var(--size) * 0.012);
  left: calc(50% - 1px);
  bottom: calc(var(--size) * -0.008);
  background: linear-gradient(180deg, #cfcfd4, #f3f3f6);
  border-radius: 0 0 2px 2px;
}
@media (min-width: 820px) {
  .drop-stage { --ax: 0.49; --ay: -0.13; --arm-len: 0.256; --arm-rot: 23.8deg; --arm-k: 1.12; }
}
@media (min-width: 1440px) {
  .drop-stage { --ax: 0.537; --ay: -0.13; --arm-len: 0.238; --arm-rot: 31.4deg; --arm-k: 1.15; }
}
