:root {
  --bg: #12100f;
  --bg-elevated: #1c1917;
  --text: #f5f0eb;
  --muted: #a89f96;
  --accent: #e23d2e;
  --accent-hover: #ff5343;
  --border: #2e2926;
  --live: #3ddc84;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: min(720px, 100% - 2rem);
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.admin-link {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 20;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(18, 16, 15, 0.55);
  color: rgba(245, 240, 235, 0.75);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.admin-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* Top chrome / tabs */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  padding-right: 5.5rem;
  background: rgba(18, 16, 15, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.chrome-brand {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.chrome-brand:hover {
  color: #fff;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.site-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.site-nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.site-nav-link.has-live {
  color: var(--live);
}

.nav-live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.2);
}

.site-nav-link.nav-live-pulse {
  color: var(--live);
  animation: nav-live-blink 1s ease-in-out infinite;
}

@keyframes nav-live-blink {
  0%,
  100% {
    background: rgba(61, 220, 132, 0.08);
    box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.35);
  }
  50% {
    background: rgba(61, 220, 132, 0.28);
    box-shadow: 0 0 0 6px rgba(61, 220, 132, 0);
    color: #fff;
  }
}

.page-home .site-chrome {
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(18, 16, 15, 0.35);
  border-bottom-color: transparent;
}

.page-panel {
  padding-top: 1.25rem;
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
}

.page-lead {
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 36rem;
}

.waiting-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--muted);
}

.song-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.song-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  overflow: hidden;
}

.song-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.1rem;
  font-weight: 600;
  font-size: 1rem;
}

.song-item summary::-webkit-details-marker {
  display: none;
}

.song-item[open] summary {
  border-bottom: 1px solid var(--border);
}

.song-item .song-lyrics {
  white-space: pre-wrap;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  padding: 0.75rem 1.1rem 1rem 2rem;
  margin: 0 0 0 0.35rem;
  border-left: 2px solid var(--border);
}

.song-item .song-lyrics .lyrics-credit {
  font-style: italic;
}

.song-url {
  margin: 0;
  padding: 0 1.1rem 0.9rem 2rem;
}

.song-item .song-url {
  margin-left: 0.35rem;
  border-left: 2px solid var(--border);
  padding-left: 2rem;
}

.past-song-item .song-url {
  padding: 0 0 0.55rem 1rem;
  margin-left: 0.15rem;
  border-left: 2px solid var(--border);
}

.song-url-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-size: 0.9rem;
  font-weight: 500;
}

.song-url-link:hover {
  color: var(--text);
}

.live-song-card .song-url {
  padding: 0 1rem 0.9rem;
  border-left: 0;
  margin: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.photo-tile {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  pointer-events: none;
}

.photo-tile:hover img {
  transform: scale(1.04);
}

/* Lightbox */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(8, 7, 6, 0.92);
  padding: 3.5rem 1rem 1.5rem;
}

.lightbox.hidden,
.lightbox[hidden] {
  display: none !important;
}

.lightbox-stage {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 5rem);
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 5rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  user-select: none;
  pointer-events: none;
}

.lightbox-hit {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.lightbox-hit-left {
  left: 0;
  cursor: w-resize;
}

.lightbox-hit-right {
  right: 0;
  cursor: e-resize;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(18, 16, 15, 0.7);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.lightbox-close {
  top: 0.85rem;
  right: 0.85rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-prev {
  left: 0.75rem;
}

.lightbox-next {
  right: 0.75rem;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(226, 61, 46, 0.85);
  border-color: transparent;
}

.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
}

.admin-photo {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.admin-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.admin-photo figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.65rem;
}

.admin-photo figcaption span {
  font-size: 0.75rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-photo .btn {
  min-height: 36px;
  font-size: 0.85rem;
}

input[type="file"] {
  width: 100%;
  color: var(--muted);
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.stats-number {
  margin: 0.25rem 0;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.stats-table th,
.stats-table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.stats-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.stats-table code {
  font-size: 0.8rem;
  color: var(--muted);
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}

.link-card:hover {
  border-color: var(--accent);
  color: var(--text);
}

.link-card strong {
  font-size: 1.1rem;
}

.link-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Home hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #1a1412;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 16, 15, 0.15) 0%, rgba(18, 16, 15, 0.35) 42%, rgba(18, 16, 15, 0.92) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(18, 16, 15, 0.45) 0%, transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, 100% - 2rem);
  margin: 0 auto;
  padding: 0 0 2.5rem;
}

.site-title {
  font-size: clamp(2.75rem, 11vw, 4.5rem);
  letter-spacing: 0.02em;
  margin: 0;
  font-weight: 800;
  line-height: 0.95;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.site-tagline {
  color: rgba(245, 240, 235, 0.82);
  margin: 0.75rem 0 1.35rem;
  font-size: 1.1rem;
  max-width: 22rem;
}

.home-main {
  padding-top: 0.5rem;
}

.gig-spotlight {
  padding: 0.25rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.gig-spotlight h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.published-gigs {
  margin-top: 1.5rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

.past-gig {
  padding: 1rem 0 1.35rem;
  border-bottom: 1px solid var(--border);
}

.past-gig:last-child {
  border-bottom: 0;
}

.past-gig-header h3 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
}

.past-gig-lead {
  margin: 0.85rem 0 0.55rem;
}

.past-setlist {
  margin-top: 0.85rem;
}

.past-setlist-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.past-setlist-summary::-webkit-details-marker {
  display: none;
}

.past-setlist-label {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  color: var(--text);
}

.past-setlist-summary:hover .past-setlist-label {
  color: var(--accent);
}

.past-setlist-sep {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.past-playlist-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-weight: 500;
}

.past-playlist-link:hover {
  color: var(--text);
}

.past-song-list {
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 0.15rem;
}

.past-song-item {
  border: 0;
  background: transparent;
}

.past-song-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.35rem 0;
  color: var(--text);
}

.past-song-item summary::-webkit-details-marker {
  display: none;
}

.past-song-item summary:hover {
  color: var(--accent);
}

.past-song-lyrics {
  white-space: pre-wrap;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  padding: 0.15rem 0 0.65rem 1rem;
  margin-left: 0.15rem;
  border-left: 2px solid var(--border);
}

.past-song-lyrics .lyrics-credit {
  font-style: italic;
}

.section-label {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.gig-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.gig-row h3 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
}

.gig-row .card-meta {
  margin: 0;
}

.gig-row .btn {
  flex-shrink: 0;
  min-height: 42px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
}

/* Live homepage */
.live-topbar {
  text-align: center;
  padding: 1.75rem 1rem 0.5rem;
}

.brand-mark {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-meta {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.live-main {
  padding-top: 0.75rem;
}

.lyrics-heading {
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin: 0 0 1rem;
  text-align: center;
  font-weight: 700;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.card-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--muted);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  min-height: 56px;
  font-size: 1.05rem;
  padding-inline: 1.5rem;
}

.live-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(61, 220, 132, 0.15);
  color: var(--live);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 0.15rem;
  vertical-align: 0.05em;
}

/* Gig / lyrics */
.site-header {
  padding: 2rem 0 1rem;
  text-align: center;
}

.gig-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gig-header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.gig-header p {
  margin: 0;
  color: var(--muted);
}

.lyrics-view {
  padding: 0.5rem 0 2rem;
}

.lyrics-view h2 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin: 0 0 1rem;
  text-align: center;
}

.lyrics-body {
  white-space: pre-wrap;
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  line-height: 1.65;
  color: var(--text);
}

.lyrics-credit {
  font-style: italic;
}

.swish-block {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.swish-block--home {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.swish-block--live {
  margin-top: 2rem;
  padding-bottom: 1.5rem;
}

.swish-block--page {
  margin-top: 0.5rem;
  border-top: 0;
  padding-top: 0;
}

.swish-label {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.swish-number {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.swish-number-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}

.swish-number-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.lyrics-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
}

.setlist-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.setlist-nav button,
.setlist-nav a.setlist-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}

.setlist-nav button.active,
.setlist-nav a.setlist-item.active {
  border-color: var(--accent);
  background: rgba(226, 61, 46, 0.12);
}

.setlist-nav button:hover,
.setlist-nav a.setlist-item:hover {
  border-color: var(--muted);
}

/* Admin */
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

input[type="text"],
input[type="password"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 12rem;
  resize: vertical;
}

.error {
  color: #ff8a80;
  margin: 0.5rem 0;
}

.live-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}

.live-control-bar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  background: rgba(18, 16, 15, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.live-control-bar .live-back {
  min-width: 48px;
  padding-inline: 0.75rem;
}

.live-toggle.is-live-off {
  background: var(--accent);
}

.live-toggle.is-live-off:hover {
  background: var(--accent-hover);
}

.live-toggle.is-live-on {
  background: var(--live);
  color: #0c1a12;
}

.live-toggle.is-live-on:hover {
  filter: brightness(1.05);
  background: var(--live);
  color: #0c1a12;
}

.live-admin-main {
  padding-top: 1rem;
}

.live-gig-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.live-gig-heading h1 {
  margin: 0;
}

.live-gig-heading .btn {
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
}

.live-gig-edit {
  text-align: left;
  margin-top: 1rem;
}

.live-song-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.live-song-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  overflow: hidden;
}

.live-song-summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.live-song-index {
  color: var(--muted);
  min-width: 1.5rem;
}

.live-song-title {
  flex: 1;
}

.live-song-lyrics {
  display: none;
  padding: 0 1rem 1.15rem;
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding-top: 1rem;
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
}

.live-song-card.is-current {
  border-color: var(--live);
  box-shadow: 0 0 0 1px rgba(61, 220, 132, 0.28);
}

.live-song-card.is-current.is-expanded .live-song-lyrics {
  display: block;
}

.live-song-card.is-current.is-collapsed .live-song-lyrics {
  display: none;
}

.live-song-card.is-minimized .live-song-summary {
  opacity: 0.78;
}

.live-song-row {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
}

.live-drag-handle {
  align-self: center;
  margin-left: 0.35rem;
  cursor: grab;
  touch-action: none;
  user-select: none;
  color: var(--muted);
  letter-spacing: -0.12em;
  font-size: 0.95rem;
}

.live-drag-handle:active {
  cursor: grabbing;
}

.live-song-card.is-dragging {
  opacity: 0.72;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.live-song-row .live-song-summary {
  flex: 1;
  min-width: 0;
}

.live-song-card.is-tentative .live-song-title {
  color: var(--muted);
  font-weight: 500;
}

.live-song-card.is-tentative .live-song-index {
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}

.live-song-card.is-tentative.is-minimized .live-song-summary {
  opacity: 0.62;
}

.live-icon-btn.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.live-song-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.45rem 0.35rem 0;
}

.live-icon-btn {
  min-height: 40px;
  min-width: 40px;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.live-publish {
  margin-top: 1.25rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.35rem;
}

.checkbox-row input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
}

.live-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.75rem 0 1.25rem;
}

.live-library {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.live-library-row {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}

.live-library-row .live-library-item {
  flex: 1;
}

.live-library-row .live-icon-btn {
  align-self: center;
}

.live-library-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.live-library-item:hover {
  border-color: var(--accent);
  background: rgba(226, 61, 46, 0.08);
}

.live-library-add {
  color: var(--muted);
  font-weight: 700;
  font-size: 1.2rem;
}

.live-song-edit {
  margin-top: 1.5rem;
  text-align: left;
}

.live-setlist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.live-setlist li button {
  width: 100%;
  text-align: left;
  margin-bottom: 0.5rem;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}

.live-setlist li button.current {
  border-color: var(--live);
  box-shadow: 0 0 0 1px rgba(61, 220, 132, 0.35);
}

.song-picker {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 1rem;
}

.song-picker label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.35rem 0.25rem;
  cursor: pointer;
}

.setlist-order {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.setlist-order li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.35rem;
  background: var(--bg);
}

.setlist-order .handle {
  color: var(--muted);
  font-size: 0.85rem;
  min-width: 1.5rem;
}

.song-library-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.song-library-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
}

.song-library-title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.song-library-title:hover {
  color: var(--accent);
}

.song-library-delete {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.song-library-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.hidden {
  display: none !important;
}

@media (max-width: 560px) {
  .gig-row {
    flex-direction: column;
    align-items: stretch;
  }

  .gig-row .btn {
    width: 100%;
  }
}
