:root {
  --bg: #0c1117;
  --panel: #151c24;
  --panel2: #202a35;
  --line: #344250;
  --text: #f7fafc;
  --muted: #9ba9b7;
  --accent: #dc742d;
  --good: #51c98b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% -10%, #3a2419, transparent 35%),
    var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  font-size: 16px;
}
header {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 17, 23, 0.9);
  position: sticky;
  top: 0;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #db6f29, #f2a36e);
  font-weight: 800;
}
.brand b,
.brand small {
  display: block;
}
.brand small {
  color: var(--muted);
  font-size: 12px;
}
.badge {
  padding: 7px 10px;
  border-radius: 20px;
  background: #20372c;
  color: #83e0ac;
  font-size: 12px;
  font-weight: 700;
}
.header-actions,
.header-language {
  display: flex;
  align-items: center;
  gap: 7px;
}
.header-language {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.header-language button {
  min-height: 30px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}
.header-language button.active {
  background: #5a321e;
  color: #ffd0af;
}
main {
  width: min(760px, 100%);
  margin: auto;
  padding: 24px 14px 70px;
}
.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(21, 28, 36, 0.95);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}
.join {
  max-width: 520px;
  margin: 7vh auto;
}
.eyebrow {
  margin: 0 0 5px;
  color: #f1a36e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
}
.language-choice {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 7px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.language-choice span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.language-choice button {
  min-height: 38px;
  padding: 7px 11px;
  background: var(--panel2);
  border: 1px solid var(--line);
  font-size: 13px;
}
.language-choice button.active {
  background: #5a321e;
  border-color: #e38a4e;
  color: #ffd0af;
}
h1 {
  margin: 0;
  font-size: clamp(28px, 7vw, 42px);
}
h2 {
  margin: 0 0 8px;
}
p {
  color: var(--muted);
  line-height: 1.45;
}
form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
label {
  display: grid;
  gap: 7px;
  color: #cbd4dd;
  font-size: 14px;
  font-weight: 650;
}
input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1319;
  color: #fff;
  font: 16px inherit;
  outline: none;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(220, 116, 45, 0.16);
}
button {
  min-height: 46px;
  padding: 10px 15px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #d96f27, #ee934f);
  color: white;
  font: 700 15px inherit;
  cursor: pointer;
}
.secondary {
  min-height: 38px;
  background: var(--panel2);
  border: 1px solid var(--line);
}
.event-head,
.mine-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.event-head p {
  margin: 5px 0;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.tabs button {
  min-height: 42px;
  padding: 7px;
  background: var(--panel2);
  border: 1px solid var(--line);
  font-size: 13px;
}
.tabs button.active {
  background: var(--accent);
  border-color: #eea16d;
}
.search {
  margin-bottom: 12px;
}
.source-filters {
  display: flex;
  gap: 7px;
  margin-bottom: 7px;
}
.source-filters button {
  min-height: 38px;
  padding: 7px 11px;
  background: var(--panel2);
  border: 1px solid var(--line);
  font-size: 13px;
}
.source-filters button.active {
  background: #5a321e;
  border-color: #e38a4e;
}
.catalog-summary {
  min-height: 20px;
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 13px;
}
.results {
  display: grid;
  gap: 8px;
}
.song {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #10171e;
}
.song b,
.song small {
  display: block;
}
.song small {
  margin-top: 4px;
  color: var(--muted);
}
.song button {
  min-height: 38px;
  padding: 7px 12px;
}
.source {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #273442;
  color: #b9c6d2;
  font-size: 10px;
}
.source.repository {
  background: #243b31;
  color: #8ce2b2;
}
.request {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.request:last-child {
  border: 0;
}
.request-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.status {
  color: #f1a36e;
  font-weight: 800;
  font-size: 12px;
}
.status.accepted,
.status.next,
.status.playing {
  color: var(--good);
}
.position {
  color: #fff;
}
.empty {
  text-align: center;
  padding: 28px 8px;
}
.error {
  color: #ff8b86;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  width: min(440px, calc(100% - 28px));
  padding: 13px 16px;
  border-radius: 9px;
  background: #263746;
  color: #fff;
  box-shadow: 0 12px 35px #000;
  text-align: center;
}
.hidden {
  display: none !important;
}
@media (max-width: 520px) {
  .card {
    padding: 16px;
  }
  .tabs {
    position: sticky;
    top: 74px;
    z-index: 1;
  }
  .source-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .source-filters button:first-child {
    grid-column: 1/-1;
  }
  .song {
    grid-template-columns: 1fr;
  }
  .song button {
    width: 100%;
  }
}
