/* The creator tools page (#creator, public/youtube.js). Phones first: everything fits 390px. */
#tab-youtube .card-box { min-width: 0; }
.yt-head .tab-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.yt-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.yt-tabs::-webkit-scrollbar { display: none; }
.yt-tabs button { flex: 0 0 auto; background: none; border: 0; border-radius: 0; color: var(--muted); font-weight: 600; padding: 11px 12px; box-shadow: inset 0 -3px 0 transparent; white-space: nowrap; }
.yt-tabs button.on { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); }
.yt-box { margin-bottom: 14px; }
.yt-box h3 { margin: 0 0 8px; }
.yt-box h4 { margin: 14px 0 6px; }
.yt-attr { margin-top: 8px; }
.yt-lock { margin-top: 10px; border-style: dashed; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.yt-lock p { margin: 0; flex: 1 1 200px; min-width: 0; }
.yt-linked { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.yt-linked .grow { flex: 1 1 160px; min-width: 0; }
.yt-linked .av { border-radius: 50%; }
.yt-code { display: flex; gap: 10px; align-items: center; margin: 8px 0; }
.yt-code code { font-size: 22px; font-weight: 600; letter-spacing: 2px; background: var(--panel2); padding: 6px 12px; border-radius: var(--r-lg); }
.yt-start input, .yt-gameform input { flex: 1 1 160px; min-width: 0; }
.code-row.yt-start, .code-row.yt-gameform { display: flex; gap: 8px; flex-wrap: wrap; }
.yt-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.yt-chip { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 9px; font-size: 13px; color: var(--text); }
.yt-chip.static { cursor: default; }
.yt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 8px; margin: 10px 0; }
.yt-stats > div { background: var(--panel2); border-radius: var(--r-lg); padding: 10px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.yt-stats b { font-size: 20px; }
.yt-stats span { color: var(--muted); font-size: 12px; }
.yt-stats em { font-style: normal; }
.yt-blur { filter: blur(6px); user-select: none; }
.yt-verdict { border: 1px solid var(--line); background: var(--panel2); border-radius: var(--r-lg); padding: 10px 12px; margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.yt-verdict.v-open, .yt-verdict.v-quiet { border-color: var(--line); }
.yt-verdict.v-crowded { border-color: var(--line); }
.yt-verdict.v-hot { border-color: var(--line); }
.yt-vlabel { font-weight: 600; font-size: 13px; color: var(--muted); }
.yt-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.yt-row { display: flex; gap: 10px; align-items: center; min-width: 0; }
.yt-row .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.yt-th { flex: 0 0 112px; width: 112px; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--panel2); }
.yt-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-x { font-weight: 600; font-size: 13px; padding: 2px 7px; border-radius: var(--r-lg); background: var(--panel2); white-space: nowrap; }
.yt-x.up, .yt-track .up { color: #2ecc71; }
.yt-x.down, .yt-track .down { color: #e5534b; }
.yt-tag { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: var(--r-sm); background: var(--panel2); white-space: nowrap; }
.yt-tag.k-open { background: #2ecc71; color: #12130f; } .yt-tag.k-good { background: #a3d943; color: #12130f; } .yt-tag.k-crowded { background: #eb3b3b; color: #12130f; }
.yt-heat { display: grid; grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 2px; margin: 10px 0; }
.yt-hc { aspect-ratio: 1; border-radius: var(--r-sm); min-width: 0; }
.yt-titles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; margin-top: 8px; }
.yt-tcol { min-width: 0; }
.yt-tcol input, #ytKw { width: 100%; box-sizing: border-box; }
.yt-score { display: flex; align-items: baseline; gap: 8px; margin: 8px 0; }
.yt-score b { font-size: 30px; }
.yt-score.s-great b { color: #2ecc71; } .yt-score.s-good b { color: #a3d943; } .yt-score.s-low b { color: #f0b429; }
.yt-reasons { margin: 6px 0; padding-left: 18px; }
.yt-reasons li { margin: 3px 0; }
.yt-reasons li.ok::marker { content: '✓  '; color: #2ecc71; }
.yt-reasons li.no::marker { content: '!  '; color: #f0b429; }
.yt-cuts { display: grid; gap: 6px; }
.yt-cut div { background: var(--panel2); border-radius: var(--r-lg); padding: 6px 8px; overflow-wrap: anywhere; }
.yt-cut div.cut { border-left: 3px solid #f0b429; }
.yt-tagform, .yt-checkform { display: flex; gap: 8px; flex-wrap: wrap; }
.yt-tagform input, .yt-checkform select, .yt-checkform input { flex: 1 1 160px; min-width: 0; max-width: 100%; }
.yt-private { background: rgba(46, 204, 113, .1); border: 1px solid rgba(46, 204, 113, .35); border-radius: var(--r-lg); padding: 8px 10px; }
.yt-thform { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.yt-thform #ytThTitle { flex: 1 1 180px; min-width: 0; }
.yt-prev { border-radius: var(--r-lg); padding: 10px; background: #0f0f0f; color: #f1f1f1; margin-top: 10px; overflow: hidden; }
.yt-prev.light { background: #fff; color: #0f0f0f; }
.yt-prev.light .muted { color: #606060; }
.yt-prev h4 { margin: 12px 0 6px; font-size: 13px; opacity: .7; }
.yt-pv { display: flex; gap: 8px; min-width: 0; }
.yt-pv.mine .yt-pv-img { outline: 2px solid var(--accent); }
.yt-pv-img { flex: 0 0 auto; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #333; }
.yt-pv-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-pv-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; overflow-wrap: anywhere; }
.yt-pv-t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.yt-pv.home { flex-direction: column; }
.yt-pv.home .yt-pv-img { width: 100%; }
.yt-pv-col { display: flex; flex-direction: column; gap: 8px; }
.yt-pv.search .yt-pv-img { width: min(360px, 50%); }
.yt-pv.side .yt-pv-img { width: 168px; max-width: 45%; }
.yt-pv-phone { max-width: 390px; display: flex; flex-direction: column; gap: 10px; }
.yt-pv.phone { flex-direction: column; }
.yt-pv.phone .yt-pv-img { width: 100%; border-radius: 0; }
.yt-pv-sep { border: 0; border-top: 1px dashed #555; margin: 6px 0; grid-column: 1 / -1; width: 100%; }
.yt-track { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.yt-trow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr) minmax(0, 1.5fr) auto; gap: 8px; align-items: center; background: var(--panel2); border-radius: var(--r-lg); padding: 8px 10px; }
.yt-tname { display: flex; gap: 8px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.yt-tname .av { border-radius: 50%; }
.yt-tnums, .yt-tdelta { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .yt-trow { grid-template-columns: minmax(0, 1fr); }
  .yt-heat { grid-template-columns: 26px repeat(24, minmax(0, 1fr)); gap: 1px; }
  .yt-heat .heat-h { font-size: 8px; }
  .yt-th { flex-basis: 88px; width: 88px; }
}
/* Title & thumbnail feedback asks (neighborhood Get feedback) */
.fbf-video { display: flex; gap: 10px; align-items: center; background: var(--panel2); border-radius: var(--r-lg); padding: 8px; margin: 8px 0; min-width: 0; }
.fbf-video .grow { min-width: 0; overflow-wrap: anywhere; }
.fbf-attach { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: left; margin: 8px 0; }
.fbf-attach select, .fbf-attach input:not([type=checkbox]):not([type=radio]) { flex: 1 1 180px; min-width: 0; max-width: 100%; }

/* titles link back to YouTube (API terms), but read like titles */
.yt-vlink { color: inherit; text-decoration: none; }
.yt-vlink:hover { text-decoration: underline; }
a.yt-th { display: block; }
.yt-for { font-size: .6em; font-weight: 500; }

/* compliance: our own numbers are labeled, other sources sit in their own box */
.yt-ours { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: var(--r-lg); background: var(--panel2); color: var(--muted); border: 1px solid var(--line); vertical-align: middle; }
.yt-other { margin: 14px 0 6px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 3px; }
.yt-src { font-size: 12px; font-weight: 600; color: var(--muted); }
.yt-fhead { margin: 8px 0 2px; }
.yt-slot { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.yt-shgame { margin-bottom: 12px; }
.yt-spark { display: flex; align-items: flex-end; gap: 3px; height: 80px; margin-top: 12px; }
.yt-spark i { flex: 1; min-width: 3px; background: color-mix(in srgb, var(--accent) 70%, transparent); border-radius: var(--r-sm) var(--r-sm) 0 0; }
a.yt-pv { color: inherit; text-decoration: none; }

/* Game finder: your games as cards with box art + Twitch numbers (own labeled row, never mixed with YouTube data) */
.yt-gcards-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 8px; }
.yt-src-label { padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel2); color: var(--muted); }
.yt-gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.yt-gcard { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.yt-gcard:hover { border-color: var(--accent); }
.yt-gcard-art { flex: none; width: 52px; height: 69px; border-radius: var(--r-sm); overflow: hidden; background: var(--line); display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.yt-gcard-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-gcard-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.yt-gcard-body b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
