/* YouTube Channel ID Finder - Finder + Verifier + RSS Helper */
.cid-page, .cid-page * { box-sizing: border-box; }
.cid-page { max-width: 820px; margin: 0 auto; padding: 44px 20px 72px; color: var(--text-strong); font-family: var(--font-body); }
.cid-hero { text-align: center; margin-bottom: 28px; }
.cid-kicker { display:inline-flex; align-items:center; gap:6px; background:rgba(255,0,0,.08); color:#ff0000; font-size:12px; font-weight:750; letter-spacing:.06em; text-transform:uppercase; padding:6px 13px; border-radius:999px; margin-bottom:14px; }
.cid-hero h1 { font-size:clamp(28px,5vw,40px); font-weight:800; letter-spacing:-.035em; line-height:1.12; margin:0 0 12px; }
.cid-hero h1 span { color:#ff0000; }
.cid-hero p { font-size:15px; color:var(--text-muted); line-height:1.7; max-width:650px; margin:0 auto; }
.cid-meta { margin-top:16px; display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.cid-meta span { border:1px solid var(--header-border); background:var(--panel-soft); color:var(--text-soft); border-radius:999px; padding:6px 10px; font-size:12px; }

.cid-card { background:var(--panel); border:1px solid var(--header-border); border-radius:18px; padding:24px; box-shadow:0 5px 24px rgba(15,23,42,.055); }
.cid-card-title { margin:0 0 14px; font-size:17px; }
.cid-input-row { display:flex; gap:10px; }
.cid-input-row input { flex:1; min-width:0; height:52px; border:1px solid var(--header-border); border-radius:12px; padding:0 15px; font-size:15px; color:var(--text-strong); background:var(--panel-soft); outline:none; }
.cid-input-row input:focus { border-color:#ff0000; box-shadow:0 0 0 3px rgba(255,0,0,.10); background:var(--panel); }
.cid-find-btn { height:52px; border:0; border-radius:12px; padding:0 23px; background:#ff0000; color:#fff; font-size:14px; font-weight:750; cursor:pointer; white-space:nowrap; }
.cid-find-btn:hover { background:#d90000; }
.cid-find-btn.loading { opacity:.72; cursor:wait; }
.cid-hint { margin:10px 0 0; font-size:12.5px; color:var(--text-muted); line-height:1.6; }
.cid-hint code, .cid-result-value.is-feed, .cid-history-item code, .cid-seo code { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
.cid-hint code, .cid-seo code { background:var(--panel-hover); padding:1px 5px; border-radius:5px; color:var(--text-soft); }
.cid-status { font-size:13.5px; color:var(--text-muted); margin:14px 0 0; min-height:20px; }
.cid-status.error { color:#dc2626; }
.cid-status.success { color:#15803d; }

.cid-result { margin-top:18px; border-top:1px solid var(--header-border); padding-top:18px; display:none; }
.cid-result.visible { display:block; }
.cid-verify-row { display:flex; align-items:flex-start; gap:10px; margin-bottom:13px; flex-wrap:wrap; }
.cid-verify-badge { display:inline-flex; align-items:center; background:rgba(22,163,74,.10); color:#15803d; border:1px solid rgba(22,163,74,.20); border-radius:999px; padding:5px 9px; font-size:12px; font-weight:750; }
.cid-verify-note { flex:1; min-width:220px; color:var(--text-muted); font-size:12.5px; line-height:1.55; }
.cid-result-stack { display:grid; gap:10px; }
.cid-result-item { background:var(--panel-soft); border:1px solid var(--header-border); border-radius:12px; padding:13px 15px; }
.cid-result-label { display:block; font-size:10.5px; font-weight:750; letter-spacing:.07em; text-transform:uppercase; color:var(--text-muted); margin-bottom:5px; }
.cid-result-value { font-size:15px; font-weight:700; color:var(--text-strong); word-break:break-word; }
.cid-result-value.is-id { color:#ff0000; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:14px; }
.cid-result-value.is-feed { font-size:12.5px; font-weight:600; color:var(--text-soft); }
.cid-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.cid-action { min-height:40px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--header-border); background:var(--panel); color:var(--text-strong); border-radius:10px; padding:9px 14px; font-size:13px; font-weight:700; text-decoration:none; cursor:pointer; }
.cid-action.primary { background:var(--text-strong); color:var(--panel); border-color:var(--text-strong); }
.cid-action:hover { background:var(--panel-hover); }
.cid-action.primary:hover { opacity:.88; }
.cid-action.copied { background:#15803d; border-color:#15803d; color:#fff; }

.cid-history { margin-top:16px; background:var(--panel); border:1px solid var(--header-border); border-radius:16px; padding:17px; }
.cid-history-head { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:10px; }
.cid-history-head h2 { margin:0; font-size:15px; }
.cid-history-head p { margin:3px 0 0; color:var(--text-muted); font-size:12px; }
.cid-text-btn { border:0; background:transparent; color:var(--text-muted); font-size:12px; font-weight:700; cursor:pointer; padding:6px 8px; }
.cid-history-list { display:grid; gap:7px; }
.cid-history-item { width:100%; border:1px solid var(--header-border); background:var(--panel-soft); border-radius:10px; padding:10px 12px; display:flex; justify-content:space-between; gap:12px; align-items:center; text-align:left; cursor:pointer; }
.cid-history-item:hover { background:var(--panel-hover); }
.cid-history-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; color:var(--text-strong); font-weight:650; }
.cid-history-item code { color:var(--text-muted); font-size:11px; white-space:nowrap; }

.cid-features { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:18px; }
.cid-feature { background:var(--panel-soft); border:1px solid var(--header-border); border-radius:14px; padding:16px; }
.cid-feature h3 { font-size:14px; margin:0 0 5px; }
.cid-feature p { font-size:12.5px; color:var(--text-muted); line-height:1.55; margin:0; }

.cid-seo, .cid-faq { margin-top:44px; color:var(--text-soft); line-height:1.75; font-size:15px; }
.cid-seo h2, .cid-faq > h2 { font-size:20px; color:var(--text-strong); margin:26px 0 9px; }
.cid-seo h2:first-child { margin-top:0; }
.cid-seo p { margin:0 0 10px; }
.cid-steps { margin:8px 0 12px; padding-left:22px; }
.cid-steps li { margin:5px 0; }
.cid-faq-list { display:grid; gap:9px; }
.cid-faq-item { border:1px solid var(--header-border); background:var(--panel); border-radius:12px; overflow:hidden; }
.cid-faq-item summary { cursor:pointer; padding:14px 16px; font-weight:700; color:var(--text-strong); }
.cid-faq-item p { margin:0; padding:0 16px 15px; color:var(--text-soft); line-height:1.65; }
.cid-related { margin-top:28px; border:1px solid var(--header-border); border-radius:16px; background:var(--panel-soft); padding:20px; }
.cid-related h2 { margin:0 0 7px; font-size:18px; }
.cid-related p { margin:0; color:var(--text-soft); line-height:1.6; }
.cid-related a { color:var(--accent); font-weight:750; }

@media (max-width:680px) {
  .cid-page { padding:32px 14px 60px; }
  .cid-card { padding:18px; }
  .cid-input-row { flex-direction:column; }
  .cid-find-btn { width:100%; }
  .cid-features { grid-template-columns:1fr; }
  .cid-actions { display:grid; grid-template-columns:1fr 1fr; }
  .cid-actions .cid-action:last-child { grid-column:1 / -1; }
  .cid-history-item { align-items:flex-start; flex-direction:column; gap:4px; }
  .cid-history-item code { white-space:normal; word-break:break-all; }
}

main :where(button,a,input):focus-visible { outline:2px solid color-mix(in srgb,var(--accent) 72%,transparent); outline-offset:2px; }
