/* YouTube thumbnail checker (/thumbnail-checker). Page-scoped; loads after styles.css.
   The mock YouTube placements use neutral, non-branded colours and system type on purpose. */

/* One call to action on this page: hide the site-wide sticky "Book a free call" bar */
.page-tc .sticky-book { display: none !important; }
@media (max-width: 1099px) { body.page-tc { padding-bottom: 0; } }

.tc-h { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .6em; }

/* Inputs ------------------------------------------------------------------ */
.tc-inputs { display: grid; gap: 34px; align-items: start; }
@media (min-width: 960px) { .tc-inputs { grid-template-columns: 1.25fr 1fr; gap: 56px; } }
.tc-inline { display: flex; gap: 10px; }
.tc-inline input { flex: 1; min-width: 0; }
.tc-inline .btn { padding: 12px 20px; font-size: 1.05rem; flex: none; }
.field input[type=file] { border: 2px dashed var(--ink); padding: 10px; font-size: .92rem; background: var(--paper); cursor: pointer; }
.tc-meta-fields { display: grid; gap: 0 16px; border-top: 1px solid var(--rule); padding-top: 18px; }
@media (min-width: 560px) { .tc-meta-fields { grid-template-columns: 1fr 120px; } .tc-f-title { grid-column: 1 / -1; } }
.tc-status { margin: 0; font-size: .92rem; font-weight: 700; min-height: 1.4em; }
.tc-status.is-warn { color: var(--red-dark); }

.tc-rivals { border-top: 3px solid var(--ink); padding-top: 18px; }
.tc-rivals-hint { margin: -6px 0 16px; }
.tc-rival { border: 0; border-bottom: 1px solid var(--rule); margin: 0; padding: 12px 0 14px; display: grid; gap: 8px; }
.tc-rival legend { float: left; width: 100%; padding: 0; margin-bottom: 6px; font-weight: 700; font-size: .88rem; }
.tc-rival input[type=url] { width: 100%; font: inherit; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 0; background: var(--white); }
.tc-rival input[type=url]:focus { outline: 3px solid var(--red); outline-offset: 0; }
.tc-rival input[type=file] { font-size: .86rem; }
.tc-or { font-size: .82rem; color: var(--ink-soft); }
.tc-rivals .btn { margin-top: 18px; }
.tc-rivals .tc-status { margin-top: 10px; }

/* Control bar: sticks under the site header while you scroll the previews */
.tc-bar { position: sticky; top: 67px; z-index: 40; background: var(--ink); color: var(--paper); border-bottom: 3px solid var(--red); }
@media (min-width: 641px) { .tc-bar { top: 77px; } }
.tc-bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-block: 10px; }
.tc-seg { display: inline-flex; }
.tc-tog {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; line-height: 1;
  padding: 10px 16px; background: transparent; color: var(--paper); border: 2px solid var(--paper); cursor: pointer;
}
.tc-tog + .tc-tog { border-left-width: 0; }
.tc-tog[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.tc-tog:hover { background: var(--red); border-color: var(--paper); color: var(--paper); }
.tc-tog:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }
.tc-bar-note { margin: 0; font-size: .86rem; color: #D9CCB6; flex: 1 1 260px; }
@media (max-width: 640px) { .tc-bar-note { display: none; } .tc-tog { padding: 10px 13px; font-size: .95rem; } }

/* Placement labels -------------------------------------------------------- */
.tc-place { margin: 0; }
.tc-place figcaption, .tc-place-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; border-top: 3px solid var(--ink); padding-top: 10px; }
.tc-place figcaption strong, .tc-place-h strong { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.35rem; letter-spacing: .01em; }
.tc-place figcaption span, .tc-place-h span { font-family: var(--font-body); text-transform: none; font-size: .86rem; color: var(--ink-soft); letter-spacing: 0; }
.tc-place-h { font-size: inherit; line-height: 1.2; }

/* Neutral YouTube-like surface, light and dark ---------------------------- */
.yt {
  --yt-bg: #FFFFFF; --yt-fg: #0F0F0F; --yt-sub: #606060; --yt-chip: #F2F2F2; --yt-ph: #E5E5E5; --yt-ph2: #EDEDED; --yt-line: #E5E5E5;
  background: var(--yt-bg); color: var(--yt-fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; line-height: 1.35;
}
.tc-dark .yt { --yt-bg: #0F0F0F; --yt-fg: #F1F1F1; --yt-sub: #AAAAAA; --yt-chip: #272727; --yt-ph: #272727; --yt-ph2: #1F1F1F; --yt-line: #303030; }
.tc-dark .tc-desk { border-color: var(--ink); }

/* Thumbnails -------------------------------------------------------------- */
.tc-th { position: relative; aspect-ratio: 16 / 9; background: var(--yt-ph); overflow: hidden; flex: none; }
.tc-th img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .2s; }
.tc-gray .tc-th img { filter: grayscale(1); }
.tc-blur .tc-th img { filter: blur(3px); }
.tc-gray.tc-blur .tc-th img { filter: grayscale(1) blur(3px); }
.tc-th .tc-dur {
  position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; font-weight: 600;
  line-height: 1; padding: 3px 4px; border-radius: 4px; letter-spacing: .02em;
}
.tc-th .tc-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; font-size: 13px; font-weight: 600; color: var(--yt-sub); }

.tc-av { width: 36px; height: 36px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: #fff; text-transform: uppercase; }
.tc-ti { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; margin: 0; }
.tc-sub { color: var(--yt-sub); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-kebab { width: 18px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 4px; }
.tc-kebab i { width: 3px; height: 3px; border-radius: 50%; background: var(--yt-fg); display: block; }
.tc-bar-ph { display: block; height: 12px; background: var(--yt-ph2); margin: 0 0 7px; }
.tc-bar-ph.s { width: 55%; height: 10px; }

/* Phones ------------------------------------------------------------------ */
.tc-phone-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.tc-read { flex: 1 1 220px; max-width: 34ch; border-top: 3px solid var(--red); padding-top: 10px; margin-top: 0; }
.tc-read-h { font-family: var(--font-display); text-transform: uppercase; font-size: 1.35rem; line-height: 1.2; margin: 0 0 10px; }
.tc-read ul { list-style: none; margin: 0; padding: 0; }
.tc-read li { font-size: .94rem; line-height: 1.5; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.tc-read li strong { display: block; }
.tc-phone {
  --pw: min(375px, 100vw);
  width: var(--pw); height: 667px; overflow-y: auto; overscroll-behavior: contain;
  border: 3px solid var(--ink); scrollbar-width: thin;
}
@media (max-width: 470px) {
  .tc-phone { margin-inline: calc(50% - var(--pw) / 2); border-left: 0; border-right: 0; }
  .tc-phone-row { gap: 34px; }
  .tc-phone-row > * { width: 100%; }
}
.tc-chips { display: flex; gap: 8px; padding: 10px 12px; overflow: hidden; border-bottom: 1px solid var(--yt-line); }
.tc-chips span { flex: none; background: var(--yt-chip); border-radius: 8px; padding: 6px 12px; font-size: 14px; font-weight: 500; }
.tc-chips span:first-child { background: var(--yt-fg); color: var(--yt-bg); }
.tc-feed-item { padding-bottom: 18px; }
.tc-feed-item .tc-th { width: 100%; }
.tc-feed-meta { display: flex; gap: 12px; padding: 12px 12px 0; }
.tc-feed-meta .tc-txt { flex: 1; min-width: 0; }
.tc-feed-meta .tc-ti { font-size: 15px; line-height: 1.35; font-weight: 500; }
.tc-feed-meta .tc-sub { font-size: 12px; margin-top: 3px; }

.tc-search { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--yt-line); }
.tc-search span { flex: 1; background: var(--yt-chip); border-radius: 18px; padding: 7px 14px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-row { display: flex; gap: 12px; padding: 8px 12px; }
.tc-row .tc-th { width: 160px; border-radius: 8px; }
.tc-row .tc-txt { flex: 1; min-width: 0; }
.tc-row .tc-ti { font-size: 14px; line-height: 1.3; font-weight: 500; }
.tc-row .tc-sub { font-size: 12px; margin-top: 4px; }

/* Desktop home grid: edge-to-edge band, true-size cards ------------------ */
.tc-desk { border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); padding: 26px 0 34px; }
.tc-desk .tc-place-h { border-top-color: var(--yt-fg); color: var(--yt-fg); }
.tc-desk .tc-place-h strong { color: var(--yt-fg); }
.tc-desk .tc-place-h span, .tc-scroll-hint { color: var(--yt-sub); }
.tc-desk-head { position: relative; }
.tc-scroll-hint { font-size: .86rem; margin: -4px 0 12px; }
@media (min-width: 1200px) { .tc-scroll-hint { display: none; } }
.tc-desk-scroll { overflow-x: auto; padding: 0 var(--gutter) 6px; scrollbar-width: thin; }
.tc-grid { display: grid; grid-template-columns: repeat(3, 360px); gap: 40px 16px; width: max-content; margin-inline: auto; }
.tc-card .tc-th { width: 360px; border-radius: 12px; }
.tc-card-meta { display: flex; gap: 12px; padding-top: 12px; }
.tc-card-meta .tc-txt { flex: 1; min-width: 0; }
.tc-card-meta .tc-ti { font-size: 16px; line-height: 1.375; }
.tc-card-meta .tc-sub { font-size: 14px; margin-top: 4px; }

/* Suggested sidebar ------------------------------------------------------- */
.tc-side-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 920px) { .tc-side-grid { grid-template-columns: 402px 1fr; gap: 64px; } }
.tc-side { width: 100%; max-width: 402px; border: 3px solid var(--ink); padding: 12px; display: grid; gap: 10px; }
.tc-srow { display: flex; gap: 8px; }
.tc-srow .tc-th { width: 168px; height: 94px; aspect-ratio: auto; border-radius: 8px; }
.tc-srow .tc-txt { flex: 1; min-width: 0; padding-right: 4px; }
.tc-srow .tc-ti { font-size: 14px; line-height: 1.43; }
.tc-srow .tc-sub { font-size: 12px; margin-top: 4px; }
.tc-srow .tc-th .tc-dur { right: 4px; bottom: 4px; }

/* Checklist + score ------------------------------------------------------- */
.tc-checks h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.tc-check-intro { color: var(--ink-soft); max-width: 52ch; }
.tc-list { border: 0; margin: 0; padding: 0; min-width: 0; }
.tc-list ol { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); counter-reset: tc; }
.tc-list li { border-bottom: 1px solid var(--rule); counter-increment: tc; }
.tc-list label { display: grid; grid-template-columns: 26px 30px 1fr; gap: 0 10px; align-items: start; padding: 12px 0; cursor: pointer; }
.tc-list label::before { content: counter(tc); grid-column: 2; grid-row: 1; font-family: var(--font-display); color: var(--red); font-size: 1.2rem; line-height: 1.3; text-align: right; }
.tc-list input { grid-column: 1; grid-row: 1; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red); cursor: pointer; }
.tc-list .tc-lab { grid-column: 3; grid-row: 1; font-weight: 700; line-height: 1.4; }
.tc-list .tc-lab small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .88rem; margin-top: 2px; }
.tc-list input:checked ~ .tc-lab { color: var(--ink-soft); }

.tc-score { margin-top: 26px; border: 3px solid var(--ink); background: var(--white); padding: 18px 20px; }
.tc-score-num { margin: 0; font-family: var(--font-display); line-height: 1; }
.tc-score-num #tc-score { font-size: 4.4rem; color: var(--red); font-variant-numeric: tabular-nums; }
.tc-of { font-size: 2rem; color: var(--ink); }
.tc-verdict { font-family: var(--font-display); text-transform: uppercase; font-size: 1.4rem; margin: 8px 0 6px; line-height: 1.15; }
.tc-next { margin: 0; max-width: 60ch; }

/* CTA + text -------------------------------------------------------------- */
.tc-cta .container { align-items: center; }
.tc-cta p { font-size: 1.15rem; }
.tc-cta .btn { flex: none; }
.tc-prose h2:first-child { margin-top: 0; }
.tc-faq { max-width: 68ch; margin: 18px auto 0; }

@media (prefers-reduced-motion: reduce) { .tc-th img { transition: none; } }
