:root {
  --navy: #06131f;
  --navy2: #0b1b29;
  --surface: #102231;
  --surface2: #142837;
  --copper: #d47a3d;
  --copper2: #f09a5e;
  --text: #f7f4ef;
  --muted: #aeb9c2;
  --line: #294050;
  --green: #58b979;
  --red: #ee6a64;
  --radius: 14px;
  --serif: Georgia, "Times New Roman", serif;
  --sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}
[hidden] {
  display: none !important;
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
  background: var(--navy);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 80% -10%, #173149 0, transparent 34rem),
    var(--navy);
  color: var(--text);
  font: 15px/1.45 var(--sans);
  min-height: 100vh;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
.shell {
  width: min(1160px, calc(100% - 32px));
  margin: auto;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font: 700 25px/1 var(--serif);
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand span {
  color: var(--copper2);
}
.event-switch {
  color: var(--muted);
  font-size: 13px;
}
.event-switch strong {
  color: var(--text);
}
.guest {
  width: min(620px, calc(100% - 28px));
  margin: auto;
  padding-bottom: 96px;
}
.guest .topbar {
  height: 64px;
}
.hero {
  text-align: center;
  padding: 48px 0 30px;
}
.hero h1 {
  font: 600 clamp(34px, 7vw, 52px)/1.05 var(--serif);
  margin: 0 0 10px;
}
.hero p {
  margin: 0;
  color: var(--muted);
}
.guest-instagram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.guest-instagram span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--copper);
  border-radius: 7px;
  color: var(--copper2);
  font-weight: 800;
}
.guest-instagram strong { color: var(--copper2); }
.guest-instagram:hover strong,
.guest-instagram:focus-visible strong { text-decoration: underline; }
.search-wrap {
  position: relative;
}
.search-wrap svg {
  position: absolute;
  left: 17px;
  top: 17px;
  color: var(--copper2);
}
.search {
  width: 100%;
  height: 56px;
  border: 1px solid var(--copper);
  background: #091924;
  color: var(--text);
  border-radius: 12px;
  padding: 0 50px;
  font-size: 16px;
  outline: none;
}
.search:focus {
  box-shadow: 0 0 0 3px #d47a3d35;
}
.search-results {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  top: 64px;
  background: #0b1b29;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 50px #0008;
}
.search-results:empty {
  display: none;
}
.song-requests-paused {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 16px 17px;
  border: 1px solid #d47a3d7d;
  border-radius: 13px;
  background: linear-gradient(135deg, #d47a3d18, #102638);
  box-shadow: inset 0 1px #ffffff0a;
}
.song-requests-paused > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--copper);
  color: #07131f;
  font: 800 21px/1 var(--serif);
}
.song-requests-paused strong,
.song-requests-paused p {
  display: block;
  margin: 0;
}
.song-requests-paused strong { color: var(--copper2); }
.song-requests-paused p { margin-top: 3px; color: #d7dfe5; }
.search-result {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
}
.search-actions{display:flex;gap:8px;align-items:center;margin-left:auto}.search-actions button{white-space:nowrap}@media(max-width:600px){.search-result{flex-wrap:wrap}.search-actions{width:100%;margin-left:0}.search-actions button{flex:1}}
.search-result:hover,
.search-result:focus {
  background: #142837;
}
.track-preview {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
}
.track-preview:focus-visible {
  outline: 3px solid var(--copper2);
  outline-offset: 3px;
}
.track-preview .cover { display: block; }
.track-preview-play {
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--copper);
  color: #07131f;
  font-size: 9px;
  padding-left: 1px;
  box-shadow: 0 2px 8px #0008;
}
.cover {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(135deg, #ca7138, #263f55);
  flex: 0 0 auto;
}
.cover-fallback {
  display: inline-grid;
  place-items: center;
  color: #fff;
  font: 700 22px/1 var(--serif);
}
.song-copy {
  min-width: 0;
  flex: 1;
}
.song-copy strong,
.song-copy span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-copy span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.song-copy .search-album {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  font-size: 12px;
}
.request-btn,
.vote-btn,
.action-btn,
.primary {
  border: 1px solid var(--copper);
  background: transparent;
  color: var(--copper2);
  border-radius: 9px;
  padding: 9px 13px;
  font-weight: 700;
}
.request-btn:hover,
.vote-btn:hover,
.primary {
  background: var(--copper);
  color: #07131f;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 38px 0 10px;
}
.section-head h2 {
  font: 600 25px/1.1 var(--serif);
  margin: 0;
}
.section-head span {
  color: var(--muted);
  font-size: 12px;
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}
.section-head span strong {
  color: var(--copper2);
  font-size: 13px;
}
.section-head span small {
  color: var(--muted);
  font-size: 11px;
}
.ranking {
  border-top: 1px solid var(--line);
}
.tip-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--copper2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tip-fab {
  position: fixed;
  z-index: 24;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px 12px 12px;
  border: 1px solid #f09a5eaa;
  border-radius: 14px;
  background: linear-gradient(135deg, #d47a3d, #f09a5e);
  color: #07131f;
  box-shadow: 0 18px 45px #0008, 0 0 0 4px #d47a3d1c;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tip-fab:hover { transform: translateY(-50%) translateY(-2px); box-shadow: 0 22px 50px #0009, 0 0 0 5px #d47a3d26; }
.tip-fab-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #07131f;
  color: var(--copper2);
  font: 700 19px/1 var(--serif);
}
.tip-fab small, .tip-fab strong { display: block; }
.tip-fab small { font-size: 10px; font-weight: 700; opacity: .76; }
.tip-fab strong { font-size: 14px; }
.tip-modal-card {
  position: relative;
  overflow: hidden;
  border-color: #d47a3d88;
  background: radial-gradient(circle at 100% 0, #2d3d482e 0, transparent 12rem), linear-gradient(145deg, #102638, #081722);
  box-shadow: 0 28px 80px #000c;
}
.tip-modal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--copper2), transparent);
}
.tip-modal-card h2 { margin-top: 4px; font-size: 34px; }
.tip-modal-card > p { margin: 9px 0 0; color: var(--muted); }
.modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #071722;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}
.tip-form { margin-top: 22px; }
.tip-form > label, .tip-form small { display: block; }
.tip-form > label { margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.tip-form small { margin-top: 8px; color: var(--muted); font-size: 11px; }
.tip-actions { display: flex; gap: 8px; }
.tip-input-wrap {
  display: flex;
  align-items: center;
  width: 88px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #071722;
}
.tip-input-wrap:focus-within { border-color: var(--copper); box-shadow: 0 0 0 3px #d47a3d35; }
.tip-input-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); padding: 9px 4px 9px 10px; }
.tip-input-wrap span { padding-right: 9px; color: var(--muted); }
.tip-actions .primary { white-space: nowrap; }
.tip-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.tip-presets legend { margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.tip-presets button {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #071722;
  color: var(--text);
  font-weight: 800;
}
.tip-presets button:hover, .tip-presets button.active { border-color: var(--copper); color: var(--copper2); background: #d47a3d12; }
.song-row {
  display: grid;
  grid-template-columns: 28px 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.song-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.position {
  color: var(--muted);
  text-align: center;
}
.vote-btn {
  min-width: 82px;
}
.vote-btn.is-voted {
  background: #d47a3d1f;
}
.vote-btn[disabled] {
  border-color: #476071;
  color: #dbe3e8;
  cursor: default;
}
.dedication-card {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 24px;
  border: 1px solid var(--copper);
  border-radius: var(--radius);
  padding: 18px;
  background: #d47a3d0b;
}
.dedication-card svg {
  color: var(--copper2);
}
.dedication-card strong {
  display: block;
}
.dedication-card p {
  margin: 3px 0 0;
  color: var(--muted);
}
.dedication-card button {
  margin-left: auto;
}
.notice {
  border-left: 3px solid var(--copper);
  padding: 12px 14px;
  background: #d47a3d12;
  color: #d7dfe5;
  margin: 18px 0;
  border-radius: 0 10px 10px 0;
}
.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 35px;
}
.dashboard {
  padding-bottom: 80px;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 35px 0 18px;
}
.dashboard-header h1 {
  font: 600 34px/1 var(--serif);
  margin: 0;
}
.tabs {
  display: flex;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1b29;
}
.tab {
  flex: 1;
  min-width: max-content;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 14px 19px;
  background: transparent;
  color: var(--muted);
}
.tab.active {
  color: var(--text);
  box-shadow: inset 0 -2px var(--copper);
}
.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 7px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--copper);
  color: #071722;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}
.tab-count[hidden] {
  display: none;
}
.settings {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1b29;
}
.segment {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.segment button {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
}
.segment button.active {
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--copper);
  background: #d47a3d12;
}
.table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
}
.table-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 38px minmax(190px, 1.25fr) minmax(140px, .8fr) 96px 58px minmax(120px, .7fr) minmax(300px, auto);
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #0b1b29;
}
.table-row:last-child {
  border: 0;
}
.table-row.head {
  color: var(--muted);
  font-size: 12px;
  background: #122634;
}
.track-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.actions {
  display: flex;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}
.action-btn {
  padding: 7px 9px;
  font-size: 12px;
}
.action-btn.accept {
  border-color: var(--green);
  color: #7bd899;
}
.action-btn.reject {
  border-color: var(--red);
  color: #ff8882;
}
.now-playing {
  margin-top: 18px;
  border: 1px solid var(--copper);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.now-playing small {
  color: var(--copper2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.now-playing .primary {
  margin-left: auto;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.event-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #0b1b29;
}
.event-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.event-content {
  padding: 17px;
}
.event-content h2 {
  font: 600 24px/1.1 var(--serif);
  margin: 0 0 8px;
}
.meta {
  color: var(--muted);
  font-size: 13px;
}
.event-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.event-actions button {
  flex: 1;
}
.status {
  color: #75d495;
  font-size: 13px;
}
.bottom-nav {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  background: #000a;
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 30;
}
.modal[hidden] {
  display: none;
}
.modal-card {
  width: min(460px, 100%);
  background: #0b1b29;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.modal-card h2 {
  font: 600 28px/1 var(--serif);
  margin: 0 0 8px;
}
.modal-card label {
  display: block;
  margin: 17px 0 7px;
  color: var(--muted);
}
.modal-card textarea {
  width: 100%;
  min-height: 110px;
  background: #071722;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  color: var(--text);
  resize: vertical;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  background: #f7f4ef;
  color: #07131f;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  transition: 0.25s;
  z-index: 50;
}
.toast.show {
  transform: translateX(-50%);
  opacity: 1;
}
@media (max-width: 900px) {
  .table-row {
    min-width: 1000px;
  }
  .event-grid {
    grid-template-columns: 1fr;
  }
  .event-card {
    display: grid;
    grid-template-columns: 170px 1fr;
  }
  .event-card img {
    height: 100%;
  }
}
@media (max-width: 600px) {
  .shell {
    width: min(100% - 24px, 1160px);
  }
  .event-switch {
    display: none;
  }
  .hero {
    padding: 36px 0 24px;
  }
  .song-row {
    grid-template-columns: 22px 44px 1fr auto;
    gap: 9px;
  }
  .cover {
    width: 44px;
    height: 44px;
  }
  .track-preview { width: 44px; height: 44px; }
  .vote-btn {
    min-width: 72px;
    padding: 8px;
  }
  .song-row-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .song-row-actions .action-btn,
  .song-row-actions .vote-btn {
    min-width: 86px;
    padding: 7px 8px;
  }
  .dedication-card {
    padding: 15px;
  }
  .dedication-card p {
    font-size: 12px;
  }
  .guest { padding-bottom: 124px; }
  .tip-fab {
    top: auto;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    transform: none;
    width: calc(100% - 28px);
    justify-content: center;
    border-radius: 13px;
    padding-block: 10px;
  }
  .tip-fab:hover { transform: translateY(-2px); }
  .tip-fab small { display: none; }
  .tip-fab strong { font-size: 15px; }
  .tip-form { min-width: 0; }
  .tip-actions .primary { flex: 1; padding-inline: 10px; }
  .dashboard-header h1 {
    font-size: 28px;
  }
  .settings {
    align-items: flex-start;
    flex-direction: column;
  }
  .segment {
    width: 100%;
  }
  .segment button {
    flex: 1;
    padding: 10px 8px;
  }
  .event-card {
    display: block;
  }
  .event-card img {
    height: 150px;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #06131ff2;
    border-top: 1px solid var(--line);
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
    justify-content: space-around;
    z-index: 20;
  }
  .bottom-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
  }
  .bottom-nav a.active {
    color: var(--copper2);
  }
}
.selected-song{margin:10px 0 14px;padding:10px 12px;border:1px solid var(--copper);border-radius:10px;color:var(--copper2);font-size:14px}
.search-request{background:var(--copper)!important;color:#071722!important;font-weight:800}.search-actions .action-btn{background:transparent;color:var(--copper2);border-color:var(--copper2)}
