:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f7f7fb;
  color: #17130f;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  padding-bottom: 86px;
  position: relative;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(230, 238, 255, 0.7)),
    #f7f7fb;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -22%;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background:
    conic-gradient(from 120deg at 45% 45%, rgba(64, 156, 255, 0.34), rgba(191, 90, 242, 0.28), rgba(52, 199, 89, 0.25), rgba(255, 149, 0, 0.22), rgba(64, 156, 255, 0.34));
  filter: blur(42px) saturate(1.45);
  opacity: 0.78;
  animation: siriFlow 18s ease-in-out infinite alternate;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.58), transparent 32%, rgba(255, 255, 255, 0.2) 58%, transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 15px);
  opacity: 0.55;
  animation: sheenFlow 11s ease-in-out infinite alternate;
}

body[data-route="performer"]::before {
  opacity: 0.46;
}

body[data-route="performer"]::after {
  opacity: 0.34;
}

@keyframes siriFlow {
  0% {
    transform: translate3d(-4%, -2%, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(4%, 3%, 0) rotate(22deg) scale(1.08);
  }
  100% {
    transform: translate3d(-2%, 5%, 0) rotate(-16deg) scale(1.04);
  }
}

@keyframes sheenFlow {
  from {
    transform: translateX(-3%) translateY(-1%);
  }
  to {
    transform: translateX(3%) translateY(2%);
  }
}

@keyframes choiceGlide {
  0% {
    filter: saturate(1.15) brightness(1.05);
  }
  50% {
    filter: saturate(1.45) brightness(1.12);
  }
  100% {
    filter: saturate(1.15) brightness(1.05);
  }
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  border-radius: 999px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 18, 23, 0.9);
  color: #d7f4ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 28px rgba(30, 60, 120, 0.18);
  font-size: 26px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 20px;
  line-height: 1.05;
}

.brand small {
  color: #73675d;
  margin-top: 2px;
}

.segmented,
.tabs,
.priority-tools,
.actions,
.stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.priority-tools.amount-choice {
  --choice-count: 3;
  --choice-index: 0;
  --choice-left: 0%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--choice-count), minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 12px 34px rgba(35, 58, 100, 0.1);
  backdrop-filter: blur(18px) saturate(1.45);
}

.priority-tools.amount-choice::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: calc(5px + var(--choice-left));
  width: calc((100% - 10px) / var(--choice-count) - 4px);
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.86), rgba(179, 220, 255, 0.76), rgba(255, 187, 224, 0.72), rgba(255, 255, 255, 0.84));
  background-size: 240% 240%;
  box-shadow: 0 12px 28px rgba(10, 132, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  pointer-events: none;
  transition: left 280ms cubic-bezier(0.22, 1, 0.36, 1), width 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.priority-tools.amount-choice.flowing::before {
  animation: choiceGlide 420ms ease;
}

.priority-tools.amount-choice button,
.boost-panel .priority-tools.amount-choice button:first-child,
.boost-panel .priority-tools.amount-choice button:nth-child(2) {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #17130f;
  padding: 8px 6px;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  transition: color 180ms ease, transform 180ms ease;
}

.priority-tools.amount-choice button.active {
  color: #071527;
  transform: scale(1.02);
}

.segmented {
  padding: 4px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(1.45);
  box-shadow: 0 14px 34px rgba(45, 63, 110, 0.12);
}

.segmented button,
.tabs button,
.priority-tools button,
.actions button,
.panel-title button,
.song-form button,
#importSongs {
  border: 1px solid rgba(23, 19, 15, 0.13);
  background: rgba(255, 255, 255, 0.54);
  color: #17130f;
  border-radius: 8px;
  padding: 9px 12px;
}

.segmented button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  min-width: 72px;
}

.segmented .active,
.tabs .active {
  background: rgba(18, 18, 23, 0.88);
  color: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
  padding: 4px 0 10px;
}

.eyebrow {
  color: #b1442f;
  font-weight: 800;
  margin: 0 0 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  margin-bottom: 14px;
}

.hero p {
  max-width: 650px;
  color: #5f5349;
  font-size: 18px;
  line-height: 1.7;
}

.live-brief {
  display: grid;
  gap: 8px;
}

.live-brief p {
  margin: 0;
}

.stage-card,
.panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 22px 60px rgba(35, 58, 100, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(24px) saturate(1.55);
}

.stage-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 22px;
}

.stage-card.playing-card {
  gap: 10px;
}

.stage-card.playing-card strong {
  font-size: 24px;
}

.blessing-text {
  margin: 0;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.24);
  color: #493f37;
  font-size: 14px;
  line-height: 1.5;
}

.stage-card small {
  color: #75695f;
}

.support-button {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  margin-top: 4px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(120deg, rgba(255, 45, 85, 0.92), rgba(10, 132, 255, 0.88), rgba(191, 90, 242, 0.88));
  background-size: 220% 220%;
  box-shadow: 0 14px 34px rgba(255, 45, 85, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: colorPulse 4.5s ease-in-out infinite;
}

.support-bubble {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.support-bubble span {
  display: block;
  color: #0a65c8;
  font-weight: 900;
  margin-bottom: 5px;
}

.support-bubble p {
  margin: 0;
  color: #493f37;
  font-size: 14px;
  line-height: 1.5;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.status-dot.open {
  background: #30d158;
  box-shadow: 0 0 18px rgba(48, 209, 88, 0.68);
}

.status-dot.paused {
  background: #ff453a;
  box-shadow: 0 0 18px rgba(255, 69, 58, 0.56);
}

.utility-button {
  border: 1px solid rgba(23, 19, 15, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: #17130f;
  padding: 9px 14px;
  font-weight: 900;
  backdrop-filter: blur(16px) saturate(1.35);
}

.current-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 34px rgba(35, 58, 100, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(22px) saturate(1.5);
}

.current-strip.live {
  grid-template-columns: 82px minmax(0, 1fr) auto;
}

.album-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.56), transparent 30%),
    linear-gradient(135deg, var(--cover-a), var(--cover-b) 52%, var(--cover-c));
  box-shadow: 0 18px 34px rgba(20, 36, 80, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.album-cover::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 15px;
}

.album-cover span {
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.24);
}

.current-song-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.current-song-info span {
  color: #0a65c8;
  font-size: 13px;
  font-weight: 900;
}

.current-song-info strong {
  font-size: clamp(26px, 5vw, 44px);
  line-height: 1.05;
}

.current-song-info small {
  color: #5f5349;
  font-weight: 700;
  line-height: 1.35;
}

.current-song-info p {
  margin: 2px 0 0;
  color: #493f37;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.current-strip.idle {
  grid-template-columns: auto auto minmax(0, 1fr);
  justify-content: start;
}

.support-button.mini {
  width: auto;
  min-width: 72px;
  margin: 0;
  padding: 11px 16px;
  border-radius: 999px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 30;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
  width: min(720px, calc(100% - 22px));
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 50px rgba(20, 36, 80, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(28px) saturate(1.7);
  transform: translateX(-50%);
}

.audience-bottom-nav {
  width: min(520px, calc(100% - 64px));
}

.bottom-nav button,
.bottom-nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 46px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: #5f5349;
  padding: 6px 4px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.bottom-nav button.active,
.bottom-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.92), rgba(191, 90, 242, 0.86));
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.bottom-nav button small,
.bottom-nav a small {
  position: absolute;
  top: 3px;
  right: 7px;
  min-width: 17px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.92);
  color: #ffffff;
  font-size: 10px;
  line-height: 1.4;
}

.audience-page,
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.audience-tab-page,
.admin-page {
  display: block;
}

.audience-combined {
  display: grid;
  gap: 12px;
}

.audience-songs-combined .request-form {
  margin-top: 2px;
}

.hero-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -4px 0 12px;
}

.hero-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  color: #493f37;
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.hero-meta .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta .status-dot {
  width: 9px;
  height: 9px;
}

.admin-page {
  max-width: 940px;
  margin: 0 auto;
}

.admin-tab-panel {
  min-height: calc(100vh - 180px);
}

.audience-page > .hero,
.audience-page > .songbook {
  grid-column: 1 / -1;
}

.dashboard {
  grid-template-columns: minmax(260px, 0.85fr) minmax(420px, 1.35fr) minmax(340px, 1fr);
  align-items: start;
}

.admin-dashboard {
  gap: 14px 18px;
}

.admin-side,
.admin-main,
.admin-library {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}

.admin-menu {
  grid-column: 1 / -1;
  position: sticky;
  top: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 14px 36px rgba(35, 58, 100, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(22px) saturate(1.45);
  scrollbar-width: none;
}

.admin-menu::-webkit-scrollbar {
  display: none;
}

.admin-menu strong {
  flex: 0 0 auto;
  padding: 0 10px 0 6px;
  color: #5f5349;
  font-size: 13px;
  letter-spacing: 0;
}

.admin-menu button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 18, 23, 0.07);
  color: #17130f;
  padding: 8px 12px;
  font-weight: 900;
}

.admin-menu button:hover,
.admin-menu button:focus-visible {
  background: rgba(18, 18, 23, 0.88);
  color: #ffffff;
  outline: none;
}

.admin-menu button small {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.14);
  color: #0a65c8;
  font-size: 11px;
  text-align: center;
}

.admin-menu button:hover small,
.admin-menu button:focus-visible small {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.panel {
  border-radius: 24px;
  padding: 16px;
  min-width: 0;
}

.panel-title,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-title-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-title-actions .switch {
  display: block;
  margin-bottom: 0;
}

.panel-title h2,
.section-head h2 {
  font-size: 22px;
  margin: 0;
}

.panel-move-controls {
  display: flex;
  gap: 6px;
}

.move-button {
  border: 1px solid rgba(23, 19, 15, 0.13);
  background: rgba(255, 255, 255, 0.5);
  color: #17130f;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.move-button:disabled {
  opacity: 0.36;
}

.draggable-panel {
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.audience-layout-controls {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 19, 15, 0.1);
}

.section-head.compact {
  align-items: flex-start;
  margin-bottom: 10px;
}

.section-head.compact h2 {
  font-size: 18px;
}

.layout-list {
  display: grid;
  gap: 8px;
}

.layout-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.layout-row > span:first-child {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(30, 113, 110, 0.12);
  color: #1e716e;
  font-weight: 900;
  font-size: 13px;
}

.panel-title span,
.hint,
.empty,
.compact-request small,
.song-card small,
.request-card p,
.song-manage-list span {
  color: #75695f;
}

label {
  display: grid;
  gap: 7px;
  color: #493f37;
  font-weight: 700;
  margin-bottom: 14px;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.54);
  color: #17130f;
  border-radius: 14px;
  padding: 12px 13px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(12px) saturate(1.2);
}

input:focus,
textarea:focus {
  border-color: rgba(10, 132, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.primary {
  display: block;
  width: 100%;
  border: 0;
  background: linear-gradient(120deg, rgba(10, 132, 255, 0.92), rgba(191, 90, 242, 0.86), rgba(255, 45, 85, 0.86), rgba(10, 132, 255, 0.92));
  background-size: 220% 220%;
  color: #ffffff;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(10, 132, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: colorPulse 5s ease-in-out infinite;
}

.primary:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.priority-tools {
  margin: 4px 0 14px;
}

.priority-tools button {
  flex: 1;
  min-width: 112px;
}

.priority-tools button:nth-child(2) {
  background: rgba(18, 18, 23, 0.88);
  color: #f8fbff;
}

.now-playing {
  padding: 18px;
  border-radius: 20px;
  background: rgba(18, 18, 23, 0.86);
  color: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  margin-bottom: 14px;
}

.now-playing span {
  color: #64d2ff;
  font-weight: 800;
}

.now-playing strong {
  display: block;
  font-size: 28px;
  margin: 8px 0;
}

.now-playing p {
  color: #e8dac7;
  margin: 0;
}

.now-playing em {
  display: block;
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-style: normal;
  line-height: 1.45;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.compact-request {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px) saturate(1.25);
}

.compact-request.priority {
  border-color: rgba(10, 132, 255, 0.34);
  background: rgba(10, 132, 255, 0.12);
}

.compact-request.pending-pay {
  border-color: rgba(177, 68, 47, 0.22);
}

.compact-request.locked {
  outline: 2px solid rgba(30, 113, 110, 0.3);
}

.compact-request > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(30, 113, 110, 0.12);
  color: #1e716e;
  font-weight: 900;
}

.compact-request.priority > span {
  background: #c7553f;
  color: #fffaf0;
}

.compact-request.locked > span {
  background: #1e716e;
  color: #fffaf0;
}

.compact-request strong,
.compact-request small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-request .boost-trace {
  margin-top: 3px;
  color: #0a65c8;
  font-weight: 900;
}

.queue-money {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.queue-money button {
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.34);
  border-radius: 12px;
  padding: 6px 8px;
  color: #17130f;
  font-size: 12px;
  font-weight: 900;
}

.compact-request b,
.compact-request em,
.compact-request i {
  font-style: normal;
  font-size: 13px;
  white-space: nowrap;
}

.compact-request b {
  color: #b1442f;
}

.compact-request em {
  color: #75695f;
}

.compact-request i {
  color: #b1442f;
}

.boost-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(18, 18, 23, 0.28);
  backdrop-filter: blur(12px) saturate(1.3);
}

.boost-panel {
  width: min(440px, 100%);
  max-height: min(620px, calc(100vh - 128px));
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.24));
  box-shadow: 0 28px 80px rgba(20, 36, 80, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(28px) saturate(1.6);
}

.boost-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}

.boost-head span,
.boost-target span {
  color: #75695f;
  font-size: 13px;
  font-weight: 800;
}

.boost-head strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.boost-head button {
  border: 0;
  background: transparent;
  color: #b1442f;
  font-weight: 900;
}

.boost-target {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.boost-target span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.12);
  color: #0a65c8;
}

.boost-panel .priority-tools:not(.amount-choice) button:first-child {
  background: rgba(18, 18, 23, 0.88);
  color: #f8fbff;
}

.boost-panel .priority-tools:not(.amount-choice) button:nth-child(2) {
  background: rgba(255, 255, 255, 0.54);
  color: #17130f;
}

.songbook {
  margin-top: 6px;
}

.section-head input {
  max-width: 320px;
}

.song-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.song-card {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  align-content: center;
  align-items: center;
  gap: 3px 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18));
  border-radius: 22px;
  padding: 12px;
  text-align: left;
  box-shadow: 0 16px 38px rgba(35, 58, 100, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px) saturate(1.4);
}

.song-card button {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  min-width: 72px;
  margin-top: 0;
  border: 0;
  border-radius: 999px;
  padding: 11px 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(120deg, #0a84ff, #bf5af2, #ff2d55, #0a84ff);
  background-size: 220% 220%;
  box-shadow: 0 12px 28px rgba(191, 90, 242, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  animation: colorPulse 4.5s ease-in-out infinite;
}

.song-card:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 132, 255, 0.42);
}

.song-card strong,
.song-card span,
.song-card small {
  display: block;
}

.song-card strong {
  font-size: 18px;
  margin-bottom: 0;
}

.song-card span {
  color: #493f37;
  margin-bottom: 0;
}

@keyframes colorPulse {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.control-panel,
.qr-panel {
  position: sticky;
  top: 18px;
}

.admin-side .control-panel,
.admin-side .qr-panel {
  position: static;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  min-width: 0;
}

.switch span {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 69, 58, 0.7);
  position: relative;
  display: block;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.switch span::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  background: rgba(255, 255, 255, 0.96);
  transition: transform 160ms ease;
}

.switch input:checked + span {
  background: rgba(48, 209, 88, 0.76);
}

.switch input:checked + span::after {
  transform: translateX(22px);
}

.qr-panel {
  text-align: center;
}

#qrCanvas {
  width: 100%;
  max-width: 256px;
  image-rendering: pixelated;
  border-radius: 18px;
  border: 8px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 32px rgba(35, 58, 100, 0.12);
}

.link-copy {
  margin-top: 12px;
  font-size: 12px;
  min-width: 0;
}

.queue-manager,
.sheet-panel {
  grid-column: auto;
}

.stats span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(30, 113, 110, 0.12);
  color: #1e716e;
  font-size: 13px;
  font-weight: 800;
}

.request-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.request-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 10px 24px rgba(35, 58, 100, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.request-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(18, 18, 23, 0.88);
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
}

.request-card h3 {
  font-size: 18px;
  margin: 2px 0 3px;
}

.time {
  color: #b1442f;
  font-size: 12px;
  font-weight: 900;
}

.priority-badge,
.plain-badge,
.pending-badge,
.locked-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.priority-badge {
  background: rgba(199, 85, 63, 0.14);
  color: #b1442f;
}

.plain-badge {
  background: rgba(23, 19, 15, 0.08);
  color: #5f5349;
}

.pending-badge {
  background: rgba(248, 204, 88, 0.24);
  color: #8b5b00;
}

.locked-badge {
  background: rgba(30, 113, 110, 0.14);
  color: #1e716e;
}

.locked-card {
  outline: 2px solid rgba(30, 113, 110, 0.22);
}

.payment-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.payment-list div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 14px;
  background: rgba(255, 204, 0, 0.14);
}

.payment-list span {
  flex: 1;
  min-width: 150px;
  color: #493f37;
  font-weight: 800;
}

.payment-list button {
  border: 1px solid rgba(23, 19, 15, 0.13);
  background: rgba(255, 255, 255, 0.56);
  color: #17130f;
  border-radius: 8px;
  padding: 7px 9px;
}

.support-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.support-list div {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 14px;
  background: rgba(10, 132, 255, 0.1);
}

.support-list span {
  display: block;
  color: #0a65c8;
  font-weight: 900;
  margin-bottom: 4px;
}

.support-list p {
  margin: 0;
  color: #493f37;
  line-height: 1.5;
}

.note {
  padding: 8px;
  border-radius: 8px;
  background: rgba(248, 204, 88, 0.18);
  margin: 5px 0 0;
  font-size: 13px;
}

.request-side {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 8px;
}

.request-side > strong {
  font-size: 13px;
}

.request-side .actions {
  gap: 6px;
}

.request-side .actions button {
  padding: 7px 9px;
  font-size: 12px;
}

.songs-manager {
  grid-column: auto;
}

.sheet-panel {
  grid-column: auto;
}

.sheet-meta,
.sheet-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.sheet-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(30, 113, 110, 0.12);
  color: #1e716e;
  font-size: 13px;
  font-weight: 900;
}

.chord-sheet {
  margin: 0;
  padding: 18px;
  min-height: 220px;
  overflow: auto;
  border-radius: 8px;
  background: #17130f;
  color: #fff8e6;
  font: 700 16px/1.7 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.sheet-actions {
  margin: 14px 0 0;
}

.sheet-actions a,
.sheet-actions button {
  border: 1px solid rgba(23, 19, 15, 0.13);
  background: rgba(255, 255, 255, 0.54);
  color: #17130f;
  border-radius: 8px;
  padding: 9px 12px;
  text-decoration: none;
}

.song-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 90px 1.2fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.song-library-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.song-section-subhead {
  margin: 16px 0 8px;
}

.settings-qr-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 19, 15, 0.1);
}

.settings-qr-card canvas {
  width: min(220px, 100%);
  height: auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 16px 36px rgba(35, 58, 100, 0.12);
}

.readiness-list {
  display: grid;
  gap: 8px;
}

.readiness-list span {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(23, 19, 15, 0.72);
  font-size: 14px;
}

.song-manage-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.song-manage-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.song-manage-list > div > strong,
.song-manage-list > div > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-manage-list > div > span {
  grid-column: 1;
  font-size: 13px;
}

.song-manage-list > div > button,
.song-actions {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.song-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.song-manage-list button,
.song-actions a {
  border: 1px solid rgba(23, 19, 15, 0.13);
  background: rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  color: #0a65c8;
  font-weight: 800;
  padding: 7px 9px;
  text-decoration: none;
}

.song-manage-list button:disabled {
  color: #75695f;
  background: rgba(23, 19, 15, 0.05);
}

.empty {
  padding: 22px;
  text-align: center;
  border: 1px dashed rgba(23, 19, 15, 0.2);
  border-radius: 8px;
}

.empty.small {
  padding: 14px;
}

.login-wrap {
  min-height: 60vh;
  display: grid;
  place-items: center;
}

.login-panel {
  width: min(420px, 100%);
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, calc(100% - 56px));
  background: rgba(255, 255, 255, 0.52);
  color: #17130f;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(20, 36, 80, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.74);
  z-index: 120;
  font-weight: 950;
  text-align: center;
  backdrop-filter: blur(28px) saturate(1.65);
}

.toast.success {
  color: #0d6f38;
}

.toast.error {
  color: #b1442f;
}

.sheet-screen {
  min-height: 100vh;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(226, 238, 255, 0.66)),
    #f7f7fb;
}

.sheet-screen-head {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 18px 44px rgba(35, 58, 100, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(24px) saturate(1.5);
}

.sheet-screen-head span {
  color: #0a65c8;
  font-weight: 900;
  font-size: 12px;
}

.sheet-screen-head h1 {
  margin: 0 0 2px;
  font-size: 30px;
  line-height: 1.05;
}

.sheet-screen-head p {
  margin: 0;
  color: #75695f;
  font-size: 14px;
  font-weight: 800;
}

.sheet-screen-head nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sheet-screen-head button,
.sheet-screen-head a {
  border: 0;
  border-radius: 999px;
  background: rgba(18, 18, 23, 0.88);
  color: #ffffff;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
}

.sheet-live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 16px;
  align-items: stretch;
}

.lyrics-page,
.chord-page {
  min-height: calc(100vh - 150px);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 18px 46px rgba(35, 58, 100, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(22px) saturate(1.45);
}

.chord-page {
  background: rgba(18, 18, 23, 0.9);
  color: #fff8e6;
}

.sheet-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sheet-section-title span {
  font-size: 22px;
  font-weight: 900;
}

.sheet-section-title small {
  color: #75695f;
  font-weight: 800;
}

.chord-page .sheet-section-title small {
  color: #64d2ff;
}

.lyrics-page pre,
.chord-page pre {
  margin: 0;
  white-space: pre-wrap;
  font: 800 24px/1.75 "PingFang SC", "Microsoft YaHei", sans-serif;
}

.chord-page pre {
  font: 800 20px/1.75 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.sheet-editor {
  margin-top: 16px;
}

.paste-import-box,
.sheet-source-panel {
  display: grid;
  gap: 12px;
}

.paste-import-box {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.paste-import-box strong {
  display: block;
  font-size: 18px;
}

.paste-import-box small {
  color: #75695f;
  font-weight: 800;
}

.image-ocr-box {
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.image-upload-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(18, 18, 23, 0.88);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.image-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.image-ocr-box small {
  line-height: 1.35;
}

.image-preview-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
}

.image-preview-card {
  margin: 0;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.image-preview-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.image-preview-card figcaption {
  overflow: hidden;
  margin-top: 6px;
  color: #75695f;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-tool-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sheet-tool-row span {
  color: #75695f;
  font-weight: 900;
}

.sheet-tool-row button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(18, 18, 23, 0.88);
  color: #fff;
  font-weight: 900;
}

.transpose-row {
  justify-content: flex-end;
}

.source-candidate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.source-candidate-grid a {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  color: #142033;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(35, 58, 100, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.source-candidate-grid strong,
.source-candidate-grid small {
  display: block;
}

.source-candidate-grid strong {
  margin-bottom: 6px;
  font-size: 16px;
}

.source-candidate-grid small {
  color: #75695f;
  font-weight: 800;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .hero,
  .audience-page,
  .dashboard,
  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-menu {
    top: 8px;
  }

  .control-panel,
  .qr-panel {
    position: static;
  }

  .song-grid,
  .song-manage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .song-form {
    grid-template-columns: 1fr 1fr;
  }

  .sheet-live-layout {
    grid-template-columns: 1fr;
  }

  .source-candidate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .topbar,
  .panel-title,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1;
  }

  .hero {
    min-height: auto;
    padding: 22px 0;
  }

  .hero p {
    font-size: 16px;
  }

  .current-strip.live {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .current-strip.live .support-button.mini {
    grid-column: 1 / -1;
    width: 100%;
  }

  .album-cover {
    width: 72px;
    border-radius: 18px;
  }

  .priority-tools.amount-choice {
    gap: 4px;
    padding: 4px;
    border-radius: 18px;
  }

  .priority-tools.amount-choice::before {
    top: 4px;
    bottom: 4px;
    left: calc(4px + var(--choice-left));
    width: calc((100% - 8px) / var(--choice-count) - 3px);
    border-radius: 14px;
  }

  .priority-tools.amount-choice button,
  .boost-panel .priority-tools.amount-choice button:first-child,
  .boost-panel .priority-tools.amount-choice button:nth-child(2) {
    min-height: 52px;
    padding: 7px 4px;
    font-size: 14px;
  }

  .two-col,
  .song-grid,
  .song-form,
  .song-manage-list,
  .layout-row,
  .request-card {
    grid-template-columns: 1fr;
  }

  .request-index {
    width: 28px;
    height: 28px;
  }

  .section-head input {
    max-width: none;
  }

  .queue-manager .request-card {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .queue-manager .request-card > div:nth-child(2) {
    min-width: 0;
  }

  .request-side {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    justify-items: stretch;
    gap: 8px;
  }

  .request-side .actions {
    justify-content: flex-end;
  }

  .sheet-screen {
    padding: 10px;
  }

  .sheet-screen-head {
    align-items: stretch;
    flex-direction: column;
  }

  .sheet-screen-head h1 {
    font-size: 28px;
  }

  .lyrics-page,
  .chord-page {
    min-height: auto;
  }

  .lyrics-page pre,
  .chord-page pre {
    font-size: 18px;
  }

  .source-candidate-grid {
    grid-template-columns: 1fr;
  }

  .transpose-row {
    justify-content: flex-start;
  }

  .image-ocr-box {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .control-panel,
  .queue-manager,
  .songs-manager,
  .panel-title button,
  .hint {
    display: none !important;
  }

  .shell {
    width: 100%;
    padding: 0;
  }

  .dashboard {
    display: block;
  }

  .qr-panel {
    box-shadow: none;
    border: 0;
    text-align: center;
  }

  .qr-panel::before {
    content: "扫码点歌";
    display: block;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 20px;
  }
}

/* ====== Album art in song cards ====== */
.song-card {
  grid-template-columns: 54px minmax(0, 1fr) auto;
}

.song-card-cover {
  position: relative;
  display: grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 54px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(20, 36, 80, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.song-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.song-card-cover span {
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.song-card-body {
  grid-column: 2;
  grid-row: 1 / span 3;
  min-width: 0;
}

.song-card button {
  grid-column: 3;
}

/* ====== Album art in hero section ====== */
.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* ====== Album art in admin song management ====== */
.song-manage-row {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.song-manage-row:last-child {
  border-bottom: none;
}

.manage-song-cover {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(20, 36, 80, 0.1);
}

.manage-song-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.manage-song-cover span {
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.manage-song-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.manage-song-meta strong {
  font-size: 15px;
}

.manage-song-meta > span {
  color: #5f5349;
  font-size: 13px;
}

.song-cover-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.song-cover-input input.album-art-url {
  flex: 1;
  min-width: 120px;
  padding: 4px 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.4);
  outline: none;
  transition: border-color 0.15s;
}

.song-cover-input input.album-art-url:focus {
  border-color: #0a84ff;
}

.fetch-cover-btn,
.save-cover-btn {
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.fetch-cover-btn {
  background: #0a65c8;
  color: #ffffff;
}

.fetch-cover-btn:hover {
  background: #0854a8;
}

.save-cover-btn {
  background: #34c759;
  color: #ffffff;
}

.save-cover-btn:hover {
  background: #28a745;
}

.song-manage-row.has-cover .manage-song-cover {
  box-shadow: 0 4px 12px rgba(20, 36, 80, 0.16);
}

/* Responsive: tighter on small screens */
@media (max-width: 560px) {
  .song-cover-input {
    flex-direction: column;
    align-items: stretch;
  }

  .song-cover-input input.album-art-url {
    min-width: 0;
  }
}
