/* Look of magdaparty.at: Liberation Sans as "Helvetica", warm dark party photo, peach/orange accents */
@font-face {
  font-family: "Helvetica";
  src: url("fonts/LiberationSans-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Helvetica";
  src: url("fonts/LiberationSans-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #0a0604;
  --text: #ffffff;
  --muted: #e9ded4;
  --peach: #ffd9a8;
  --orange: #ffb255;
  --card: rgba(15, 8, 5, 0.55);
  --card-border: rgba(255, 180, 90, 0.18);
  --line: rgba(255, 255, 255, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Helvetica", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.3;
  min-height: 100svh;
}

/* fixed party photo (background-attachment: fixed is broken on iOS) */
.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,6,4,0.15) 0%, rgba(10,6,4,0.6) 40%, rgba(8,5,3,0.95) 75%),
    url("img/party-bg.jpg") center top / cover no-repeat,
    var(--bg);
}

.page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

/* ---------- Header ---------- */
.hero { text-align: center; padding: clamp(8px, 3vh, 32px) 0 clamp(12px, 2.4vh, 24px); }
.logo { display: block; }
.logo img {
  display: block; margin: 0 auto;
  width: min(62vw, 300px); height: auto; max-height: 24vh; object-fit: contain;
  filter: drop-shadow(0 4px 30px rgba(0,0,0,0.45));
}
.logo img { transition: max-height .25s ease; }
.searching .logo img { max-height: 11vh; }
.searching .hero { padding-top: 4px; }
.tag {
  margin-top: 14px;
  font-weight: 700; font-size: clamp(13px, 3.4vw, 17px);
  letter-spacing: 0.12em; color: var(--peach);
}

/* ---------- Search (pill like the site's buttons) ---------- */
.search { position: sticky; top: 8px; z-index: 5; margin-bottom: 18px; }
.search input {
  width: 100%;
  font: inherit; font-size: 17px; color: var(--text);
  background: rgba(15, 8, 5, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 48px 14px 22px;
  outline: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: rgba(240, 230, 220, 0.6); }
.search input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 178, 85, 0.22); }
.search input::-webkit-search-cancel-button { display: none; }
.clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted);
  font-size: 26px; line-height: 1; cursor: pointer;
}

/* ---------- List ---------- */
.list-title {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--peach); margin: 0 4px 10px;
}
.msg { color: var(--muted); text-align: center; padding: 22px 12px; font-size: 15px; }
.msg.error { color: #ffb4a0; }

.songs { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.song {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 10px 10px 10px 10px;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.cover {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px;
  object-fit: cover; background: rgba(255,255,255,0.06);
}
.meta { flex: 1 1 auto; min-width: 0; }
.title { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ver { font-weight: 400; color: var(--muted); opacity: .75; }
.artist {
  margin-top: 2px; font-size: 14px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.badge { display: none; margin-top: 5px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.st-in_playlist .badge { display: block; color: var(--peach); }
.st-rejected .badge { display: block; color: rgba(255,255,255,0.55); }
.st-rejected .cover, .st-rejected .meta .title, .st-rejected .artist { opacity: .5; }

/* ---------- Vote pill ---------- */
.vote {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 7px;
  min-width: 68px; height: 44px; justify-content: center;
  padding: 0 14px;
  font: inherit; font-weight: 700; font-size: 16px; color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .1s ease;
}
.vote .heart { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.vote:active { transform: scale(0.94); }
@media (hover: hover) {
  .vote:hover { color: var(--orange); border-color: var(--orange); background: rgba(255,178,85,0.08); }
}
.voted .vote {
  color: #1a0d04; border-color: var(--orange);
  background: linear-gradient(95deg, #ffd9a8, #ffb255);
  box-shadow: 0 6px 20px rgba(255, 140, 40, 0.35);
}
.voted .vote .heart { fill: currentColor; }
.vote:disabled { cursor: default; opacity: .55; transform: none; }
.st-in_playlist .vote:disabled { opacity: 1; color: var(--peach); border-color: rgba(255,217,168,0.45); background: transparent; box-shadow: none; }
.vote.busy { opacity: .6; }

/* ---------- Footer ---------- */
.foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; line-height: 1.5; }
.powered { opacity: .6; margin-top: 4px; }

/* ---------- Wider screens ---------- */
@media (min-width: 761px) {
  .logo img { width: min(560px, 80%); max-height: 18vh; }
  .page { padding-top: 28px; }
}
