/* The shelf and the editor. Sunny's own register — warm cream, the app's type, the app's buttons.
   The Netflix presentation starts one click later, in watch.css, and the two never meet. */

.flix-wrap {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 28px 16px 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.flix-head { display: flex; flex-direction: column; gap: 8px; }
.flix-head .h1 { margin-top: 4px; }
.small { font-size: 13px; }

.flix-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--r8);
  background: var(--yellow-tint);
  border: 1px solid #E7D28A;
  color: var(--on-yellow-tint);  /* was #6B5310: dark-on-dark at 1.96:1 once --yellow-tint flips */
  font-size: 14px;
}
.flix-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--r8);
  background: var(--red-tint);
  /* Both were literals tuned to the pale tint: #8C2F32 read 6.69:1 in light and 1.89 once the tint
     went dark underneath it. The pair flips together now. */
  border: 1px solid color-mix(in srgb, var(--red) 45%, var(--red-tint));
  color: var(--on-red-tint);
  font-size: 14px;
}

.flix-sec { display: flex; flex-direction: column; gap: 12px; }
.flix-sec > .eyebrow { color: var(--teal, #14A3AF); }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flix-foot { margin-top: 8px; }

/* ---------- the shelf ---------- */
.flix-mine { display: flex; flex-direction: column; gap: 12px; }
.album-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.album-main { display: flex; flex-direction: column; gap: 4px; }
.album-actions { display: flex; align-items: center; gap: 10px; }
.pill {
  align-self: flex-start;
  font: 700 11px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  margin-top: 4px;
}
.pill--live { background: var(--green-tint); color: var(--on-green-tint); }
.pill--draft { background: var(--line); color: var(--ink-soft); }
.demo-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* ---------- the editor ---------- */
.ed-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 108px;
  padding: 20px;
  border: 2px dashed var(--line);
  border-radius: var(--r16);
  background: var(--paper-raised);
  cursor: pointer;
  text-align: center;
}
.ed-drop:hover { border-color: var(--pink); }
.ed-drop-label { font-weight: 700; }
.ed-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.ed-media {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.media-tile {
  margin: 0;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.media-tile.is-cover { border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink-tint); }
.media-thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #E9E4DC; }
.media-tile figcaption { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.media-caption { font-size: 13px; min-height: 36px; padding: 6px 8px; }
.media-actions { display: flex; justify-content: space-between; font-size: 12px; }

.ed-rows { display: flex; flex-direction: column; gap: 14px; }
.row-card { display: flex; flex-direction: column; gap: 10px; }
.row-head { display: flex; gap: 10px; align-items: center; }
.row-head .row-title { flex: 1; font-weight: 700; }
.row-moves { display: flex; gap: 8px; align-items: center; }
.row-chapter-toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); }

.row-note summary { cursor: pointer; font-size: 14px; color: var(--ink-soft); padding: 4px 0; }
.row-note > .input { margin: 8px 0; }
.row-lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.row-line { display: flex; gap: 8px; align-items: center; }
.row-line .line-body { flex: 1; font-size: 14px; }
.line-side.is-a { color: var(--pink); }
.line-side.is-b { color: var(--blue); }

.row-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.pick-tile {
  position: relative;
  width: 78px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--r4);
  overflow: hidden;
  background: #E9E4DC;
  opacity: .5;
}
.pick-tile.is-on { opacity: 1; border-color: var(--ink); }
.pick-thumb { width: 100%; height: 100%; object-fit: cover; }
.pick-n {
  position: absolute; right: 3px; bottom: 3px;
  font: 700 10px/1 var(--mono);
  background: var(--ink); color: var(--on-ink);
  padding: 3px 5px; border-radius: 999px;
}
.row-order { display: flex; gap: 6px; flex-wrap: wrap; }
.order-chip {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 6px;
  font: 700 11px/1 var(--mono);
}

.pass-row, .share-row, .publish-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pass-row .ed-passcode { width: 140px; letter-spacing: .3em; text-align: center; }
.share-row .ed-share-url { flex: 1; min-width: 220px; font-family: var(--mono); font-size: 13px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }

@media (max-width: 560px) {
  .two-up { grid-template-columns: 1fr; }
  .album-card { flex-direction: column; align-items: flex-start; }
}
