/* Feature mockups: search, metadata editor, mini player, now playing */

/* shared mockup chrome */
.mk {
  background: linear-gradient(180deg, #1a1632 0%, #14112a 100%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.55),
    0 20px 40px -20px rgba(120, 90, 200, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.04);
  font-size: 12.5px;
  position: relative;
}
.mk-titlebar {
  height: 34px;
  display: flex; align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  position: relative;
}
.mk-titlebar .traffic { gap: 7px; }
.mk-titlebar .tl { width: 11px; height: 11px; }
.mk-title {
  position: absolute;
  left: 50%; top: 10px;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

/* SEARCH */
/* SPOTLIGHT-STYLE MODAL */
.mk-search {
  width: 100%;
  /* override generic .mk chrome: this is a translucent floating panel */
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(120, 95, 60, 0.18) 0%, rgba(0,0,0,0) 55%),
    linear-gradient(180deg, rgba(28, 24, 36, 0.92) 0%, rgba(18, 15, 26, 0.94) 100%);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 40px 100px -20px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.02) inset;
  backdrop-filter: blur(20px);
  padding: 0;
  font-size: 13px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Search input row */
.sr-input {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  color: var(--text-3);
}
.sr-input svg { flex-shrink: 0; opacity: 0.85; }
.sr-q {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center;
}
.sr-caret {
  display: inline-block;
  width: 1.5px; height: 22px;
  background: var(--text);
  margin-left: 1px;
  animation: sr-blink 1.1s steps(1) infinite;
}
@keyframes sr-blink { 50% { opacity: 0; } }
.sr-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0;
}

/* Section header */
.sr-section {
  display: flex; align-items: baseline; gap: 10px;
  padding: 18px 22px 8px;
}
.sr-section-pad { padding-top: 14px; }
.sr-section-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.sr-section-count {
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* Result rows */
.sr-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 8px 22px;
  cursor: default;
  position: relative;
}
.sr-row-selected {
  background: rgba(255,255,255,0.06);
}
.sr-art {
  width: 44px; height: 44px;
  border-radius: 3px;
  display: block;
  flex-shrink: 0;
}
.sr-meta { min-width: 0; }
.sr-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sr-sub {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sr-chev {
  color: var(--text-3);
  opacity: 0.7;
}
.sr-dur {
  font-size: 12.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* Footer / keyboard hints */
.sr-footer {
  margin-top: auto;
  padding: 14px 22px 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--text-3);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.sr-foot-left {
  color: var(--text-3);
}
.sr-foot-right {
  display: flex; align-items: center; gap: 8px;
}
.sr-foot-right .sr-key-lbl {
  color: var(--text-3);
  margin-right: 6px;
}
.sr-foot-right .sr-key-lbl:last-child { margin-right: 0; }
.sr-kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.04);
  border-bottom-color: rgba(0,0,0,0.4);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Add a touch of vertical space so the modal sits comfortably in the showcase */
.mk-search { min-height: 520px; }

/* METADATA EDITOR (Edit Album Metadata modal) */
.mk-meta {
  width: 100%;
  background:
    linear-gradient(180deg, rgba(28, 24, 36, 0.95) 0%, rgba(18, 15, 26, 0.97) 100%);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7);
  padding: 0;
  display: flex;
  flex-direction: column;
}
.meta-title {
  text-align: center;
  padding: 22px 24px 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
  font-family: var(--font-sans);
}
.meta-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
  padding: 20px 32px 24px;
}
.meta-art-col { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.meta-art {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  display: block;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5);
}
.meta-replace {
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  cursor: default;
}
.meta-replace:hover { background: rgba(255,255,255,0.08); }
.meta-artwork-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 4px;
  font-size: 12px;
}
.meta-artwork-l { color: var(--text-3); }
.meta-artwork-remove {
  color: var(--text-2);
  background: none; border: 0; padding: 0;
  font-size: 12px; font-weight: 500;
  cursor: default;
}

/* form */
.meta-form { display: flex; flex-direction: column; gap: 14px; }
.meta-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.meta-field label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  font-weight: 600;
}
.meta-input {
  display: flex; align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.03);
  font-size: 13px;
  color: var(--text);
  letter-spacing: -0.005em;
  overflow: hidden;
}
.meta-input > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meta-input.is-muted { color: var(--text-3); }
.meta-input-area { height: 52px; align-items: flex-start; padding-top: 10px; }

.meta-triplet {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.meta-check {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  padding: 4px 0;
  cursor: default;
}
.meta-check-box {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.meta-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.meta-btn {
  height: 32px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: default;
}
.meta-btn.ghost {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
}
.meta-btn.primary {
  background: rgba(100, 140, 220, 0.22);
  border: 1px solid rgba(100, 140, 220, 0.25);
  color: var(--text);
}

/* MINI PLAYER */
.mini-player {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #211d44 0%, #181432 100%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 30px 60px -10px rgba(0,0,0,0.5),
    0 0 60px -10px rgba(168, 135, 235, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  max-width: 380px;
  width: 100%;
}
.mini-meta { flex: 1; min-width: 0; }
.mini-title {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.005em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mini-sub {
  font-size: 11.5px;
  color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin: 1px 0 8px;
}
.mini-bar { height: 2px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; }
.mini-fill { height: 100%; background: linear-gradient(90deg, var(--cream), var(--cream-hi)); border-radius: 999px; }
.mini-controls { display: flex; gap: 2px; }
.mini-controls .iconbtn { width: 26px; height: 26px; }
.mini-controls .iconbtn.play {
  background: var(--cream-hi);
  color: #2a1e10;
}
.mini-pin {
  position: absolute;
  top: 8px; right: 10px;
  color: var(--cream);
  opacity: 0.8;
}

/* NOW PLAYING — full-window player with art-derived warm background */
.mk-nowplaying {
  width: 100%;
  position: relative;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(90, 30, 22, 0.55) 0%, transparent 60%),
    linear-gradient(180deg, #2a110d 0%, #1a0907 100%);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7);
  overflow: hidden;
  padding: 0;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}
.np-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px 0 16px;
}
.np-chrome .traffic { gap: 7px; }
.np-chrome .tl { width: 11px; height: 11px; }
.np-chrome-pill {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.04);
}
.np-chrome-btn {
  width: 26px; height: 22px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  cursor: default;
}
.np-chrome-btn:hover { background: rgba(255,255,255,0.06); }

.np-stage {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 32px 64px;
  gap: 14px;
  text-align: center;
}
.np-art-wrap {
  width: 56%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  position: relative;
  filter: drop-shadow(0 24px 50px rgba(0,0,0,0.55));
  margin-bottom: 14px;
}
.np-art-img {
  width: 100%; height: 100%;
  display: block;
  border-radius: 2px;
}
.np-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 30ch;
  line-height: 1.2;
  text-wrap: balance;
}
.np-sub {
  font-size: 14px;
  color: var(--text-3);
  letter-spacing: -0.005em;
  margin-top: -4px;
}
.np-chiprow {
  display: flex; gap: 10px;
  margin-top: 6px;
}
.np-chip {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.03);
  color: var(--text-2);
  cursor: default;
}
.np-chip:hover { background: rgba(255,255,255,0.09); color: var(--text); }

.np-progress {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 12px;
  width: 75%;
  max-width: 540px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.np-time { text-align: right; }
.np-time-r { text-align: left; }
.np-bar {
  position: relative;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}
.np-bar-fill {
  position: absolute; inset: 0 auto 0 0;
  background: #4a90ff;
  border-radius: 2px;
}
.np-bar-knob {
  position: absolute; top: 50%;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #4a90ff;
  transform: translate(-50%, -50%);
}

.np-controls {
  display: flex; align-items: center;
  gap: 22px;
  margin-top: 14px;
}
.np-ctrl {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  cursor: default;
}
.np-ctrl:hover { background: rgba(255,255,255,0.05); }
.np-ctrl.np-play { width: 52px; height: 52px; }

.np-upnext {
  position: absolute;
  right: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
  height: 34px;
  padding: 0 12px 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  cursor: default;
}
.np-upnext:hover { background: rgba(255,255,255,0.1); }
.np-upnext-n {
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
  font-size: 12px;
}

/* Feature showcase rows (the new library section) */
.showcase { padding: 140px 0; }
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 140px;
}
.showcase-row.reverse { grid-template-columns: 1.3fr 1fr; }
.showcase-row.reverse .showcase-copy { order: 2; }
.showcase-row:last-child { margin-bottom: 0; }
.showcase-copy h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  margin-top: 14px;
}
.showcase-copy .lede { margin-top: 20px; }
.showcase-points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}
.showcase-points li {
  display: flex; gap: 12px;
  font-size: 14px;
  color: var(--text-2);
}
.showcase-points b { color: var(--text); font-weight: 500; }
.showcase-points li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 8px;
  width: 5px; height: 5px;
  background: var(--cream);
  border-radius: 999px;
  box-shadow: 0 0 10px 1px rgba(243,214,168,0.4);
}

.showcase-visual { position: relative; }
.showcase-visual::before {
  content: "";
  position: absolute; inset: -10%;
  background: radial-gradient(closest-side, rgba(168,135,235,0.18), transparent 70%);
  z-index: -1;
  filter: blur(50px);
}

/* Pair row for mini player + now playing (legacy, kept) */
.showcase-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 760px) {
  .showcase-pair { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 760px) {
  .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; gap: 32px; margin-bottom: 90px; }
  .showcase-row.reverse .showcase-copy { order: 0; }
  .meta-body { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
  .meta-art-col { flex-direction: row; align-items: center; }
}

.showcase-visual-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 60px 20px;
}
.mini-context {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.mini-context-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 0 8px 1px rgba(243,214,168,0.5);
}
