:root { --bg: #fffdf9; --ink: #1f1a17; --muted: #7d7169; --line: #eee6dd; --card: #fff; --accent: #d9480f; --accent-2: #f08c00; --ok: #2b8a3e; --bad: #c92a2a; }
@media (prefers-color-scheme: dark) { :root { --bg: #17140f; --ink: #f1ebe4; --muted: #a79d92; --line: #2d2721; --card: #211c16; --accent: #ff7a3d; --accent-2: #ffb054; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", Pretendard, "Malgun Gothic", sans-serif; word-break: keep-all; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--card); padding: 8px; z-index: 9; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; }

.mast { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.mast-in { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.wordmark { text-decoration: none; font-weight: 500; display: flex; align-items: center; gap: 8px; } .wordmark b { font-weight: 800; }
.wm-pin { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; background: var(--accent); transform: rotate(-45deg); display: inline-block; }
.mast-ext { font-size: 13px; color: var(--muted); text-decoration: none; }

.hero { padding: 28px 16px 20px; }
.hero h1 { font-size: clamp(22px, 4vw, 32px); line-height: 1.25; margin: 0 0 8px; font-weight: 800; }
.lead { margin: 0 0 16px; color: var(--muted); } .lead b { color: var(--ink); }
.submit { display: grid; grid-template-columns: 1fr auto; gap: 8px; max-width: 720px; }
.submit input[type=url] { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); min-width: 0; }
.submit input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.submit button { font: inherit; font-weight: 700; padding: 12px 22px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; cursor: pointer; }
.submit button:active { transform: scale(.98); }
.submit output { grid-column: 1 / -1; font-size: 14px; min-height: 1.5em; } .submit output.ok { color: var(--ok); } .submit output.bad { color: var(--bad); }

.tools { display: flex; gap: 8px; align-items: center; padding: 8px 16px 12px; flex-wrap: wrap; }
.tools input, .tools select { font: inherit; font-size: 15px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.tools input { flex: 1 1 220px; min-width: 0; } .count { color: var(--muted); font-size: 14px; margin-left: auto; }

.split { display: grid; grid-template-columns: 1fr; }
.map { height: 56vh; min-height: 320px; background: #e8e4dc; z-index: 0; }
.list { list-style: none; margin: 0; padding: 8px 16px 24px; display: grid; gap: 10px; }
.list li { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.list .thumb img { display: block; width: 120px; height: 68px; object-fit: cover; border-radius: 8px; background: var(--line); }
.list .body { min-width: 0; flex: 1; }
.list .name { font: inherit; font-weight: 800; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; text-align: left; }
.list .name:hover { color: var(--accent); } .list .name small { font-weight: 500; color: var(--muted); }
.list .meta, .list .vids { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.list .menu { font-size: 14px; margin: 2px 0; }
.list .vids a { text-decoration: none; } .list .vids em { font-style: normal; color: var(--accent); font-weight: 700; }
.list .empty { display: block; color: var(--muted); text-align: center; padding: 28px 12px; }
@media (min-width: 900px) {
    .split { grid-template-columns: 3fr 2fr; max-width: 1200px; margin: 0 auto; padding: 0 16px; gap: 16px; }
    .map { height: calc(100vh - 140px); position: sticky; top: 60px; border-radius: 16px; overflow: hidden; }
    .list { max-height: calc(100vh - 140px); overflow: auto; padding: 0 0 24px; }
}
.map-off { margin: 0; padding: 40px 16px; text-align: center; color: var(--muted); }
.pin { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: var(--accent); color: #fff; font: 700 11px/18px inherit; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: pointer; }
.pin-low { background: var(--accent-2); }
.pin:hover, .pin:focus-visible { transform: scale(1.2); outline: none; }
.pop { font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif; padding: 10px 12px; max-width: 320px; color: #1f1a17; word-break: keep-all; }
.pop ul { margin: 6px 0; padding-left: 16px; } .pop a { color: #d9480f; }

.recent { padding: 8px 16px 32px; } .recent h2 { font-size: 18px; margin: 0 0 8px; }
.recent ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.recent li { display: flex; gap: 8px; align-items: baseline; font-size: 14px; flex-wrap: wrap; } .recent li a { text-decoration: none; }
.recent small { color: var(--muted); }
.st { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--line); white-space: nowrap; }
.st-done { background: #d3f9d8; color: #2b8a3e; } .st-new { background: #fff3bf; color: #e67700; } .st-error { background: #ffe3e3; color: #c92a2a; }
@media (prefers-color-scheme: dark) { .st-done, .st-new, .st-error { filter: brightness(.7); } }

.foot { border-top: 1px solid var(--line); margin-top: 16px; }
.foot-in { padding: 20px 16px 32px; font-size: 13px; color: var(--muted); }
.foot p { margin: 0 0 8px; } .foot-sites a { margin-right: 12px; }
