/* Troy YouTube Channel Counter. Double-class root keeps theme styles from overriding the tool. */
.troy-yt-counter.tyc-root{--tyc-bg:#0b1020;--tyc-panel:#121a2d;--tyc-text:#fff;--tyc-muted:#aeb9d0;--tyc-border:rgba(255,255,255,.12);--tyc-red:#ff0033;--tyc-red-dark:#d9002b;--tyc-shadow:0 18px 55px rgba(0,0,0,.22);max-width:920px;margin:32px auto;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--tyc-text)}
.troy-yt-counter.tyc-root *{box-sizing:border-box}
.troy-yt-counter.tyc-root .tyc-shell{background:radial-gradient(circle at top right,rgba(255,0,51,.18),transparent 34%),linear-gradient(145deg,var(--tyc-bg),#080c17);border:1px solid var(--tyc-border);border-radius:28px;padding:clamp(24px,5vw,52px);box-shadow:var(--tyc-shadow);overflow:hidden}
.troy-yt-counter.tyc-root .tyc-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:var(--tyc-red);box-shadow:0 10px 28px rgba(255,0,51,.28);font-size:26px;margin-bottom:20px;color:#fff}
.troy-yt-counter.tyc-root h2{margin:0 0 10px;font-size:clamp(30px,5vw,48px);line-height:1.05;letter-spacing:-.03em;color:#fff}
.troy-yt-counter.tyc-root .tyc-intro,.troy-yt-counter.tyc-root .tyc-tip,.troy-yt-counter.tyc-root .tyc-note{color:var(--tyc-muted)}
.troy-yt-counter.tyc-root .tyc-intro{margin:0 0 28px;font-size:17px}
.troy-yt-counter.tyc-root .tyc-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
.troy-yt-counter.tyc-root .tyc-viral-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px}
.troy-yt-counter.tyc-root .tyc-input{width:100%;min-height:54px;border:1px solid var(--tyc-border);border-radius:14px;padding:0 16px;background:rgba(255,255,255,.07);color:#fff;outline:none;font-size:16px;margin:0}
.troy-yt-counter.tyc-root .tyc-input::placeholder{color:#8290aa}
.troy-yt-counter.tyc-root .tyc-input:focus,.troy-yt-counter.tyc-root .tyc-select:focus{border-color:rgba(255,0,51,.75);box-shadow:0 0 0 4px rgba(255,0,51,.12);outline:none}
.troy-yt-counter.tyc-root .tyc-select{min-height:54px;border:1px solid var(--tyc-border);border-radius:14px;padding:0 12px;background:#121a2d;color:#fff;font-size:14px;margin:0}
.troy-yt-counter.tyc-root .tyc-button{min-height:54px;border:0;border-radius:14px;padding:0 24px;font-weight:800;font-size:15px;cursor:pointer;background:var(--tyc-red);color:#fff;transition:transform .15s ease,background .15s ease;margin:0}
.troy-yt-counter.tyc-root .tyc-button:hover{background:var(--tyc-red-dark);transform:translateY(-1px)}
.troy-yt-counter.tyc-root .tyc-button:disabled{cursor:wait;opacity:.7;transform:none}
.troy-yt-counter.tyc-root .tyc-button:focus-visible,.troy-yt-counter.tyc-root .tyc-video-card:focus-visible,.troy-yt-counter.tyc-root .tyc-app-link:focus-visible,.troy-yt-counter.tyc-root .tyc-copy-title:focus-visible,.troy-yt-counter.tyc-root .tyc-channel-link:focus-visible{outline:3px solid #fff;outline-offset:2px}
.troy-yt-counter.tyc-root .tyc-tip,.troy-yt-counter.tyc-root .tyc-note{font-size:13px;margin:10px 0 0}
.troy-yt-counter.tyc-root .tyc-status{min-height:24px;margin-top:18px;color:#ffd7df;font-weight:600}
.troy-yt-counter.tyc-root .tyc-status:empty{min-height:0;margin-top:0}
.troy-yt-counter.tyc-root .tyc-status.is-loading:before{content:"";display:inline-block;width:14px;height:14px;margin-right:8px;vertical-align:-2px;border:2px solid rgba(255,255,255,.25);border-top-color:#fff;border-radius:50%;animation:tyc-spin .8s linear infinite}
@keyframes tyc-spin{to{transform:rotate(360deg)}}
.troy-yt-counter.tyc-root .tyc-result{margin-top:12px;padding-top:26px;border-top:1px solid var(--tyc-border)}
.troy-yt-counter.tyc-root .tyc-result[hidden]{display:none}
.troy-yt-counter.tyc-root .tyc-profile{display:flex;align-items:center;gap:16px;margin-bottom:25px}
.troy-yt-counter.tyc-root .tyc-avatar{width:82px;height:82px;border-radius:50%;object-fit:cover;background:var(--tyc-panel);border:3px solid rgba(255,255,255,.12);flex:0 0 auto}
.troy-yt-counter.tyc-root .tyc-title{margin:0 0 5px;color:#fff;font-size:24px;line-height:1.15}
.troy-yt-counter.tyc-root .tyc-channel-link{color:#ff9aae;text-decoration:none;font-weight:700}
.troy-yt-counter.tyc-root .tyc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.troy-yt-counter.tyc-root .tyc-stat{padding:22px 14px;border-radius:18px;background:rgba(255,255,255,.055);border:1px solid var(--tyc-border);text-align:center}
.troy-yt-counter.tyc-root .tyc-number{display:block;font-size:clamp(25px,5vw,38px);font-weight:900;letter-spacing:-.03em;color:#fff}
.troy-yt-counter.tyc-root .tyc-label{display:block;margin-top:5px;color:var(--tyc-muted);font-size:13px;text-transform:uppercase;letter-spacing:.07em}
.troy-yt-counter.tyc-root .tyc-section{margin-top:30px;padding-top:26px;border-top:1px solid var(--tyc-border)}
.troy-yt-counter.tyc-root .tyc-section-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:16px}
.troy-yt-counter.tyc-root .tyc-section-head h3{margin:0;color:#fff;font-size:23px}
.troy-yt-counter.tyc-root .tyc-section-head span{color:var(--tyc-muted);font-size:13px;text-align:right}
.troy-yt-counter.tyc-root .tyc-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.troy-yt-counter.tyc-root .tyc-viral-results:not(:empty){margin-top:16px}
.troy-yt-counter.tyc-root .tyc-video-card{display:block;overflow:hidden;border:1px solid var(--tyc-border);border-radius:16px;background:rgba(255,255,255,.045);text-decoration:none;color:#fff;transition:transform .15s ease,border-color .15s ease}
.troy-yt-counter.tyc-root .tyc-video-card:hover{transform:translateY(-2px);border-color:rgba(255,0,51,.55)}
.troy-yt-counter.tyc-root .tyc-video-thumb-wrap{position:relative;aspect-ratio:16/9;background:#070b14;overflow:hidden}
.troy-yt-counter.tyc-root .tyc-video-thumb{width:100%;height:100%;object-fit:cover;display:block;margin:0}
.troy-yt-counter.tyc-root .tyc-video-play{position:absolute;left:12px;bottom:12px;width:38px;height:28px;border-radius:8px;background:var(--tyc-red);display:grid;place-items:center;color:#fff;font-size:13px;box-shadow:0 6px 20px rgba(0,0,0,.35)}
.troy-yt-counter.tyc-root .tyc-video-body{padding:13px}
.troy-yt-counter.tyc-root .tyc-video-title{font-weight:800;line-height:1.3;margin-bottom:9px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.troy-yt-counter.tyc-root .tyc-video-channel{color:var(--tyc-muted);font-size:13px;margin:-4px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.troy-yt-counter.tyc-root .tyc-video-meta{display:flex;flex-wrap:wrap;gap:8px 12px;color:var(--tyc-muted);font-size:12px}
.troy-yt-counter.tyc-root .tyc-empty{grid-column:1/-1;color:var(--tyc-muted);padding:14px;border:1px dashed var(--tyc-border);border-radius:14px;text-align:center}
.troy-yt-counter.tyc-root .tyc-details-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.troy-yt-counter.tyc-root .tyc-details-grid>div{padding:15px;border-radius:14px;background:rgba(255,255,255,.045);border:1px solid var(--tyc-border);min-width:0}
.troy-yt-counter.tyc-root .tyc-details-grid strong{display:block;color:var(--tyc-muted);font-size:12px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px}
.troy-yt-counter.tyc-root .tyc-details-grid span{display:block;color:#fff;overflow-wrap:anywhere}
.troy-yt-counter.tyc-root .tyc-description{color:#dce3f1;line-height:1.65;margin:16px 0 0;white-space:pre-line;max-height:10em;overflow:auto}
.troy-yt-counter.tyc-root .tyc-description:empty{display:none}
.troy-yt-counter.tyc-root .screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.troy-yt-counter.tyc-root .tyc-viral-box{margin:26px 0;padding:22px;border:1px solid var(--tyc-border);border-radius:20px;background:rgba(255,255,255,.035)}
.troy-yt-counter.tyc-root .tyc-viral-item{min-width:0}
.troy-yt-counter.tyc-root .tyc-viral-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.troy-yt-counter.tyc-root .tyc-viral-actions>*{flex:1 1 auto}
.troy-yt-counter.tyc-root .tyc-app-link,.troy-yt-counter.tyc-root .tyc-copy-title{display:flex;align-items:center;justify-content:center;min-height:42px;padding:9px 12px;border-radius:11px;font-weight:800;font-size:13px;text-decoration:none;cursor:pointer;font-family:inherit;margin:0}
.troy-yt-counter.tyc-root .tyc-app-link{background:var(--tyc-red);color:#fff;border:1px solid var(--tyc-red)}
.troy-yt-counter.tyc-root .tyc-copy-title{background:rgba(255,255,255,.07);color:var(--tyc-text);border:1px solid var(--tyc-border)}
.troy-yt-counter.tyc-root .tyc-divider{display:flex;align-items:center;gap:12px;margin:30px 0 18px;color:var(--tyc-muted);font-size:11px;font-weight:800;letter-spacing:.12em}
.troy-yt-counter.tyc-root .tyc-divider:before,.troy-yt-counter.tyc-root .tyc-divider:after{content:"";height:1px;background:var(--tyc-border);flex:1}
.troy-yt-counter.tyc-root .tyc-badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:900;letter-spacing:.04em;background:rgba(255,0,51,.16);color:#ffb0c0;margin-bottom:8px}
.troy-yt-counter.tyc-root .tyc-badge.is-hot{background:rgba(255,0,51,.32);color:#fff}
.troy-yt-counter.tyc-root .tyc-score{font-weight:900;color:#fff}
@media (max-width:650px){
.troy-yt-counter.tyc-root{margin:18px auto}
.troy-yt-counter.tyc-root .tyc-shell{border-radius:20px;padding:22px 16px}
.troy-yt-counter.tyc-root .tyc-search-row,.troy-yt-counter.tyc-root .tyc-viral-row{grid-template-columns:1fr}
.troy-yt-counter.tyc-root .tyc-button{width:100%}
.troy-yt-counter.tyc-root .tyc-grid{grid-template-columns:1fr}
.troy-yt-counter.tyc-root .tyc-stat{display:flex;align-items:center;justify-content:space-between;text-align:left}
.troy-yt-counter.tyc-root .tyc-number{font-size:28px}
.troy-yt-counter.tyc-root .tyc-video-grid,.troy-yt-counter.tyc-root .tyc-details-grid{grid-template-columns:1fr}
.troy-yt-counter.tyc-root .tyc-section-head{align-items:flex-start;flex-direction:column;gap:4px}
.troy-yt-counter.tyc-root .tyc-section-head span{text-align:left}
}
@media (prefers-reduced-motion:reduce){
.troy-yt-counter.tyc-root .tyc-button,.troy-yt-counter.tyc-root .tyc-video-card{transition:none}
.troy-yt-counter.tyc-root .tyc-button:hover,.troy-yt-counter.tyc-root .tyc-video-card:hover{transform:none}
.troy-yt-counter.tyc-root .tyc-status.is-loading:before{animation:none}
}
