/* BAND NOISY: 공연 포스터처럼 검은 바탕, 흰 로고, 빨강 하나 */
:root {
  --bg: #0b0b0b;
  --fg: #f4f3f0;
  --muted: #8d8b86;
  --line: #262626;
  --red: #ff3b2f;
  --font: "IBM Plex Sans KR", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 15px; }
a { color: inherit; }
button, input { font: inherit; }
[hidden] { display: none !important; }

.head { display: grid; justify-items: center; gap: 18px; padding: 56px 16px 40px; border-bottom: 3px solid var(--fg); }
.head.small { padding: 28px 16px 22px; gap: 10px; }
.band { font-size: 14px; letter-spacing: 0.5em; padding-left: 0.5em; }
.logo { margin: 0; width: min(360px, 78vw); }
.head.small .logo { width: 160px; }
.logo img { display: block; width: 100%; height: auto; }
.insta { color: var(--muted); font-size: 13px; letter-spacing: 0.06em; text-decoration: none; }
.insta:hover, .insta:focus-visible { color: var(--fg); }

main { max-width: 640px; margin: 0 auto; padding: 8px 16px 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 40px; }
.title-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.title-row h2 { margin: 0; font-size: 22px; font-weight: 600; }
.title-row p { margin: 0; color: var(--muted); font-size: 13px; }

.search { display: flex; align-items: center; gap: 12px; border-block: 3px solid var(--fg); }
.search:focus-within { border-color: var(--red); }
.search > span { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); white-space: nowrap; }
.search input { flex: 1; min-width: 0; padding: 14px 0; background: none; border: 0; color: var(--fg); font-size: 19px; font-weight: 500; }
.search input:focus { outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.clear { background: none; border: 0; color: var(--muted); font-size: 24px; line-height: 1; padding: 4px 2px; cursor: pointer; }
.clear:hover, .clear:focus-visible { color: var(--fg); }

.verdict { margin: 0; font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.verdict::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.verdict.done { color: var(--red); }
.verdict.done::before { background: currentColor; }
.verdict.ok::before { border: 2px solid currentColor; }
.count { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }

.list { list-style: none; margin: -6px 0 0; padding: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.5; overflow-wrap: anywhere; }
.t { font-weight: 600; font-size: 16px; }
.hit .t { color: var(--red); }
.tm { color: var(--muted); font-size: 14px; }

.teams { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
.teams button { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--fg); text-align: left; cursor: pointer; }
.teams button:hover, .teams button:focus-visible { color: var(--red); outline: none; }
.n { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

footer { display: flex; justify-content: space-between; gap: 16px; max-width: 640px; margin: 0 auto; padding: 24px 16px 40px; border-top: 3px solid var(--fg); font-size: 12px; letter-spacing: 0.14em; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover, footer a:focus-visible { color: var(--fg); }

/* 관리 페이지 */
.field { display: grid; gap: 6px; }
.field span { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.field input, .row input { width: 100%; min-width: 0; font-size: 16px; padding: 10px 12px; background: #151515; border: 1px solid var(--line); border-radius: 6px; color: var(--fg); }
.field input:focus, .row input:focus { outline: none; border-color: var(--red); }
.form { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .wide { grid-column: 1 / -1; }
@media (max-width: 520px) { .form { grid-template-columns: minmax(0, 1fr); } }
.primary { padding: 12px 18px; background: var(--fg); color: var(--bg); border: 0; border-radius: 6px; font-weight: 600; cursor: pointer; }
.primary:hover, .primary:focus-visible { background: var(--red); color: var(--fg); outline: none; }
.primary:disabled { opacity: 0.4; cursor: default; background: var(--fg); color: var(--bg); }
.msg { margin: 0; font-size: 14px; min-height: 1.4em; }
.msg.err { color: var(--red); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 6px; align-items: center; }
@media (max-width: 720px) { .row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 10px; border-bottom: 1px solid var(--line); } }
.del { background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); padding: 9px 12px; cursor: pointer; white-space: nowrap; }
.del:hover, .del:focus-visible { color: var(--red); border-color: var(--red); outline: none; }
.savebar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 3px solid var(--fg); }
.savebar.dirty { border-color: var(--red); }
