@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Unbounded:wght@700;900&display=swap');.lips-page {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #080808;
  user-select: none;
}

.lips-art {
  width: 160px;
  height: 80px;
  position: relative;
  margin-bottom: 32px;
  transition: transform 0.2s ease;
}

.lips-page:hover .lips-art {
  transform: scaleY(1.08);
}

.lips-upper,
.lips-lower {
  position: absolute;
  width: 160px;
  height: 40px;
  background: #e8334a;
}

.lips-upper {
  top: 0;
  border-radius: 80px 80px 0 0;
  clip-path: polygon(0 100%, 50% 60%, 100% 100%, 100% 0, 50% 20%, 0 0);
}

.lips-lower {
  bottom: 0;
  border-radius: 0 0 80px 80px;
  clip-path: polygon(0 0, 50% 40%, 100% 0, 100% 100%, 50% 80%, 0 100%);
  background: #c4273d;
}

.lips-hint {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #333;
  margin: 0;
  transition: color 0.2s;
}

.lips-disclaimer {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: #222;
  pointer-events: none;
}

body.rb-drag-over .lips-art {
  transform: scaleY(1.15);
}

body.rb-drag-over .lips-hint {
  color: #e8334a;
}
.working-page {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #080808;
  gap: 32px;
}

.chew-wrap {
  width: 120px;
  height: 60px;
  position: relative;
}

.chew-lip {
  position: absolute;
  width: 120px;
  height: 30px;
  background: #e8334a;
  transform-origin: center;
}

.chew-upper {
  top: 0;
  border-radius: 60px 60px 0 0;
  clip-path: polygon(0 100%, 50% 60%, 100% 100%, 100% 0, 50% 20%, 0 0);
  animation: chew-up 0.4s ease-in-out infinite alternate;
}

.chew-lower {
  bottom: 0;
  border-radius: 0 0 60px 60px;
  clip-path: polygon(0 0, 50% 40%, 100% 0, 100% 100%, 50% 80%, 0 100%);
  background: #c4273d;
  animation: chew-down 0.4s ease-in-out infinite alternate;
}

.level-1 .chew-upper,
.level-1 .chew-lower {
  animation-duration: 0.3s;
}

.level-2 .chew-upper,
.level-2 .chew-lower {
  animation-duration: 0.18s;
}

.level-3 .chew-upper,
.level-3 .chew-lower {
  animation-duration: 0.1s;
  background: #ff1a35;
}

@keyframes chew-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}

@keyframes chew-down {
  from { transform: translateY(0); }
  to   { transform: translateY(10px); }
}

.working-info {
  text-align: center;
}

.working-filename {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #444;
  margin: 0 0 8px;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.working-status {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #333;
  margin: 0;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.working-elapsed {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #e8334a;
  margin: 8px 0 0;
  letter-spacing: 0.1em;
}
/* Home button — lips icon top-left */
.song-home-btn {
  position: fixed;
  top: 14px;
  left: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  padding: 4px;
  z-index: 10;
  transition: color 0.15s, transform 0.15s;
  line-height: 0;
}

.song-home-btn:hover {
  color: rgba(255,255,255,0.8);
  transform: scale(1.15);
}

/* Page layout */
.song-page {
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Stage: flanks + square art */
.song-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
}

.song-flank {
  flex: 1;
  background: radial-gradient(ellipse at center, #1a0a0f 0%, #000 100%);
  min-width: 0;
}

.song-art-wrap {
  aspect-ratio: 1 / 1;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.song-art-inner {
  width: 100%;
  height: 100%;
  display: block;
}

.song-art-inner svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Play/pause overlay */
.song-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.song-play-overlay.visible {
  opacity: 1;
}

.song-art-wrap:hover .song-play-overlay {
  opacity: 1;
}

.song-play-icon {
  font-size: 34px;
  color: rgba(255,255,255,0.9);
  line-height: 1;
}

.song-art-title {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0 24px;
}

/* Corner hover buttons (download / delete) */
.song-corner-btn {
  position: absolute;
  top: 10px;
  background: none;
  border: none;
  color: rgba(255,255,255,0);
  cursor: pointer;
  padding: 6px;
  transition: color 0.15s, background 0.15s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.song-art-wrap:hover .song-corner-btn {
  color: rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.5);
}

.song-corner-btn:hover {
  color: rgba(255,255,255,1) !important;
  background: rgba(0,0,0,0.75) !important;
}

.song-corner-dl  { left: 10px; }
.song-corner-del { right: 10px; }

.song-corner-del:hover {
  color: #e8334a !important;
}

/* Bottom bar — Library + Save */
.song-bar {
  height: 60px;
  flex-shrink: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.song-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.15em;
  transition: color 0.15s;
  padding: 4px 16px;
}

.song-bar-btn:hover {
  color: rgba(255,255,255,0.9);
}

.song-bar-btn-dim {
  opacity: 0.25;
  pointer-events: none;
}
.library-page {
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lib-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  min-height: 0;
}

.lib-slot {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

.lib-slot-empty {
  background: radial-gradient(ellipse at center, #111 0%, #000 100%);
}

.lib-slot-active::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(232,51,74,0.6);
  pointer-events: none;
}

.lib-art {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.lib-art svg,
.lib-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Hover overlay */
.lib-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lib-slot:hover .lib-overlay {
  opacity: 1;
}

.lib-overlay-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.lib-play-icon {
  font-size: 22px;
  color: rgba(255,255,255,0.85);
}

.lib-title-text {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Corner icon buttons */
.lib-corner-btn {
  position: absolute;
  top: 8px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
  z-index: 2;
}

.lib-corner-btn:hover {
  color: rgba(255,255,255,1);
}

.lib-corner-dl {
  left: 8px;
}

.lib-corner-del {
  right: 8px;
}

.lib-corner-del:hover {
  color: #e8334a;
}

/* Bottom bar */
.lib-bar {
  height: 56px;
  flex-shrink: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.lib-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.15em;
  transition: color 0.15s;
  padding: 4px 8px;
}

.lib-bar-btn:hover {
  color: rgba(255,255,255,0.9);
}
.admin-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
}

.admin-panel {
  width: 420px;
  height: 100vh;
  background: #0a0a0a;
  border-left: 1px solid #1a1a1a;
  display: flex;
  flex-direction: column;
  font-family: 'Courier New', monospace;
  overflow: hidden;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #1a1a1a;
  flex-shrink: 0;
}

.admin-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e8e8e8;
}

.admin-header-btns {
  display: flex;
  gap: 6px;
}

.adm-btn {
  font-family: 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: 1px solid #222;
  color: #444;
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.adm-btn:hover {
  color: #888;
  border-color: #444;
}

.adm-btn.confirm {
  color: #e8334a;
  border-color: #e8334a;
}

.admin-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.adm-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adm-label {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e8334a;
  display: block;
}

.adm-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-sublabel {
  font-size: 9px;
  color: #444;
  width: 24px;
  letter-spacing: 0.05em;
}

.adm-row input[type=range] {
  flex: 1;
  accent-color: #e8334a;
  height: 2px;
}

.adm-val {
  font-size: 10px;
  color: #666;
  width: 36px;
  text-align: right;
}

.adm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.adm-pill {
  font-family: 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
  background: none;
  border: 1px solid #1e1e1e;
  color: #333;
  padding: 3px 8px;
  cursor: pointer;
  transition: color 0.1s, border-color 0.1s;
}

.adm-pill.active {
  border-color: #333;
  color: #888;
}

.adm-pill.active:hover {
  border-color: #555;
  color: #aaa;
}

.adm-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adm-table-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-table-name {
  font-size: 9px;
  color: #444;
  width: 160px;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.adm-select {
  font-family: 'Courier New', monospace;
  font-size: 9px;
  background: #0d0d0d;
  border: 1px solid #1e1e1e;
  color: #666;
  padding: 3px 6px;
  cursor: pointer;
  flex: 1;
}

.adm-select:focus {
  outline: none;
  border-color: #333;
}

.adm-families {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adm-family-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.adm-family-name {
  font-size: 9px;
  color: #666;
  width: 60px;
  flex-shrink: 0;
}

.adm-voice {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 70px;
}

.adm-voice-label {
  font-size: 8px;
  color: #2a2a2a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.adm-select-sm {
  font-size: 8px;
  padding: 2px 4px;
}
.lips-spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lips-spinner {
  width: 80px;
  height: 40px;
  position: relative;
  animation: chomp 0.5s ease-in-out infinite alternate;
}

.lip {
  position: absolute;
  width: 80px;
  height: 20px;
  background: #e8334a;
  border-radius: 40px 40px 0 0;
  left: 0;
}

.lip-top {
  top: 0;
  border-radius: 40px 40px 0 0;
  transform-origin: bottom center;
  animation: lip-top 0.5s ease-in-out infinite alternate;
}

.lip-bottom {
  bottom: 0;
  border-radius: 0 0 40px 40px;
  transform-origin: top center;
  animation: lip-bottom 0.5s ease-in-out infinite alternate;
}

@keyframes lip-top {
  from { transform: rotateX(0deg); }
  to   { transform: rotateX(25deg); }
}

@keyframes lip-bottom {
  from { transform: rotateX(0deg); }
  to   { transform: rotateX(-25deg); }
}

@keyframes chomp {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0.95); }
}


*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body, #root {
  width: 100%;
  height: 100%;
  background: #080808;
  color: #e8e8e8;
  overflow: hidden;
}

button {
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 2px;
}
