/* YouTube studio pages: research, own channel, competitors, ideas. */
.ico.spin { animation: yt-spin 0.9s linear infinite; }
@keyframes yt-spin { to { transform: rotate(360deg); } }
.yt-seo-inline { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--panel-2); font-size: 13px; }
.yt-seo-inline .yt-gauge { width: 40px; height: 40px; }
.yt-seo-inline ul { margin: 0; padding-left: 16px; color: var(--muted); font-size: 12.5px; }
.yt-search { display: flex; gap: 10px; align-items: center; }
.yt-search .input { flex: 1; min-height: 46px; font-size: var(--fs-l); padding-left: 44px; }
.yt-search-box { position: relative; flex: 1; }
.yt-search-box .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.yt-scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.yt-score { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); }
.yt-score b { font: 700 var(--fs-2xl)/1 var(--display); font-variant-numeric: tabular-nums; }
.yt-score small { color: var(--muted); display: block; margin-top: 3px; line-height: 1.35; }
.yt-gauge { width: 56px; height: 56px; flex: none; }
.yt-gauge circle.track { stroke: var(--panel-3); }
.yt-gauge circle.fill { stroke: var(--sc, var(--brand)); stroke-linecap: round; transition: stroke-dashoffset 0.4s ease; }
.yt-gauge text { font: 700 14px var(--display); fill: var(--text); }
.yt-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: var(--fs-s); }
.yt-facts b { color: var(--text); font-variant-numeric: tabular-nums; }
.yt-related { display: flex; flex-wrap: wrap; gap: 6px; }
.yt-related button { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.yt-related button:hover { border-color: var(--brand); color: var(--brand); }
.yt-related button small { color: var(--faint); }
.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.yt-grid.large { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.yt-video { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-1); position: relative; }
.yt-video:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.yt-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--panel-3); display: block; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-thumb .yt-duration { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, 0.78); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.yt-thumb .yt-badge { position: absolute; left: 6px; top: 6px; }
.yt-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(0, 0, 0, 0.72); color: #fff; backdrop-filter: blur(4px); font-variant-numeric: tabular-nums; }
.yt-badge.hot { background: #d23a3a; }
.yt-badge.warm { background: #e07b17; }
.yt-badge.good { background: #15895a; }
.yt-badge.short { background: var(--brand); }
.yt-video-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.yt-video-body b { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-video-body small { color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.yt-video-body small b { display: inline; font-size: 12px; color: var(--text); }
.yt-video-actions { display: flex; gap: 4px; margin-top: 2px; }
.yt-video-actions .icon-btn { width: 30px; height: 30px; }
.yt-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.yt-stat { padding: 12px 14px; background: var(--panel-2); border-radius: var(--r-s); display: flex; flex-direction: column; gap: 2px; }
.yt-stat b { font: 700 var(--fs-xl)/1.1 var(--display); font-variant-numeric: tabular-nums; }
.yt-stat small { color: var(--muted); font-size: 12px; }
.yt-stat .delta { font-size: 12px; font-weight: 600; }
.yt-stat .delta.up { color: var(--ok); }
.yt-stat .delta.down { color: var(--danger); }
.yt-chart { width: 100%; height: 190px; display: block; }
.yt-chart .area { fill: color-mix(in srgb, var(--brand) 18%, transparent); }
.yt-chart .line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.yt-chart .axis { stroke: var(--line); }
.yt-chart text { font-size: 11px; fill: var(--muted); }
.yt-spark { width: 110px; height: 32px; display: block; }
.yt-spark .line { fill: none; stroke: var(--brand); stroke-width: 1.8; }
.yt-bars { display: flex; flex-direction: column; gap: 8px; }
.yt-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; font-size: 13px; align-items: center; }
.yt-bar .track { grid-column: 1 / -1; height: 7px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.yt-bar .fill { height: 100%; background: var(--brand); border-radius: 999px; min-width: 3px; }
.yt-bar b { font-variant-numeric: tabular-nums; }
.yt-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.yt-slot { padding: 10px 14px; background: var(--panel-2); border-radius: var(--r-s); display: flex; flex-direction: column; gap: 2px; min-width: 120px; }
.yt-slot b { font-size: 15px; }
.yt-slot small { color: var(--muted); font-size: 12px; }
.yt-slot.best { background: var(--brand-soft, color-mix(in srgb, var(--brand) 14%, transparent)); }
.yt-channel-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.yt-channel-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.yt-channel-head h2 { font-size: var(--fs-2xl); }
.yt-channel-head .yt-facts { margin-top: 4px; }
.yt-competitor { display: grid; grid-template-columns: 44px minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) 120px auto; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.yt-competitor:first-child { border-top: 0; }
.yt-competitor img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.yt-competitor .name b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yt-competitor .name small { color: var(--muted); }
.yt-competitor .num { display: flex; flex-direction: column; }
.yt-competitor .num b { font-variant-numeric: tabular-nums; }
.yt-competitor .num small { color: var(--muted); font-size: 12px; }
.yt-competitor .num .delta { font-size: 12px; font-weight: 600; }
.yt-competitor .num .delta.up { color: var(--ok); }
.yt-competitor .num .delta.down { color: var(--danger); }
.yt-alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-top: 1px solid var(--line); }
.yt-alert:first-child { border-top: 0; }
.yt-alert img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex: none; }
.yt-alert .main { flex: 1; min-width: 0; }
.yt-alert .main b { display: block; font-size: 13.5px; }
.yt-alert .main small { color: var(--muted); }
.yt-alert.unseen { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.yt-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.yt-idea { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-1); }
.yt-idea h3 { font-size: 15px; line-height: 1.3; }
.yt-idea p { color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.yt-idea .yt-related { margin-top: 2px; }
.yt-idea-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.yt-idea.kept { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.yt-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.yt-seo { display: flex; gap: 16px; align-items: flex-start; }
.yt-seo-checks { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.yt-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.yt-check .ico { flex: none; margin-top: 2px; }
.yt-check.ok { color: var(--muted); }
.yt-check.ok .ico { color: var(--ok); }
.yt-check.ko .ico { color: var(--warn); }
.yt-check small { color: var(--faint); margin-left: 4px; }
.yt-titles li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.yt-titles li:first-child { border-top: 0; }
.yt-titles li b { font-size: 14px; }
.yt-titles li small { color: var(--muted); display: block; }
.yt-concepts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.yt-concept { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel-2); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.yt-concept .yt-concept-text { font: 800 22px/1.1 var(--display); letter-spacing: -0.02em; text-transform: uppercase; }
.yt-concept .swatches { display: flex; gap: 6px; }
.yt-concept .swatches i { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, 0.1); }
.yt-sticky-note { color: var(--muted); font-size: 12px; }
.yt-quota { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.yt-quota .track { width: 90px; height: 6px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.yt-quota .fill { height: 100%; background: var(--brand); }
.yt-quota.low .fill { background: var(--danger); }
.yt-segmented-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.yt-ext-steps { counter-reset: step; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; list-style: none; }
.yt-ext-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; }
.yt-ext-steps li::before { counter-increment: step; content: counter(step); width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft, color-mix(in srgb, var(--brand) 14%, transparent)); color: var(--brand); font-weight: 700; display: grid; place-items: center; flex: none; font-size: 12px; }
.yt-token { font-family: var(--mono, ui-monospace, monospace); font-size: 13px; padding: 10px 12px; background: var(--panel-2); border-radius: var(--r-s); word-break: break-all; user-select: all; }
@media (max-width: 900px) {
  .yt-scores { grid-template-columns: 1fr; }
  .yt-competitor { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .yt-competitor .num:nth-child(n+4), .yt-competitor .yt-spark { display: none; }
  .yt-seo { flex-direction: column; }
}

/* chart reading: guide line, dots and tooltip (yt-common.js chartHover) */
.yt-chart-live { cursor: crosshair; touch-action: pan-y; outline: none; border-radius: var(--r-s); }
.yt-chart-live:focus-visible { box-shadow: 0 0 0 2px var(--brand-soft-2), 0 0 0 3px var(--brand); }
.yt-hover-guide { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.yt-hover-dot { stroke: var(--brand); stroke-width: 9; stroke-linecap: round; }
.yt-hover-dot.s1, .yt-chart-tip-row i.s1 { stroke: var(--coral); background: var(--coral); }
.yt-hover-dot.s2, .yt-chart-tip-row i.s2 { stroke: var(--ok); background: var(--ok); }
.yt-hover-dot.before, .yt-chart-tip-row i.before { stroke: var(--muted); background: var(--muted); }
.yt-chart-tip { position: fixed; z-index: 1000; pointer-events: none; min-width: 120px; max-width: 260px; padding: 8px 10px; border-radius: var(--r-s); background: var(--panel); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); font-size: var(--fs-s); color: var(--text); }
.yt-chart-tip[hidden] { display: none; }
.yt-chart-tip-date { color: var(--muted); font-size: var(--fs-xs); margin-bottom: 4px; }
.yt-chart-tip-date::first-letter { text-transform: uppercase; }
.yt-chart .line.s1 { stroke: var(--coral); }
.yt-chart .line.s2 { stroke: var(--ok); }
.yt-chart-tip-row { display: flex; align-items: center; gap: 6px; }
.yt-chart-tip-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.yt-chart-tip-row b { margin-left: auto; font-variant-numeric: tabular-nums; }
.yt-chart-tip-row span { color: var(--text-2); padding-right: 10px; }

/* account picker of the tools (yt-common.js accountPicker / channelPicker) */
.yt-channel-picker-host:empty { display: none; }
.yt-acct { position: relative; display: inline-block; }
.yt-acct-btn { gap: 8px; padding: 0 10px 0 6px; max-width: 260px; }
.yt-acct-btn:disabled { opacity: 0.6; cursor: progress; }
.yt-acct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.yt-acct-img { border-radius: 50%; object-fit: cover; flex: none; display: block; }
.yt-acct-all { display: inline-grid; place-items: center; border-radius: 50%; background: var(--panel-3); color: var(--text-2); flex: none; }
.yt-acct-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 220px; max-width: 320px; max-height: 320px; overflow: auto; margin: 0; padding: 6px; list-style: none; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-m); box-shadow: var(--shadow-2); }
.yt-acct-menu[hidden] { display: none; }
.yt-acct-menu li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r-s); cursor: pointer; font-size: var(--fs-m); outline: none; }
.yt-acct-menu li:hover, .yt-acct-menu li:focus-visible { background: var(--panel-2); }
.yt-acct-menu li.active { color: var(--brand); font-weight: 600; }
.yt-acct-menu li svg:last-child { margin-left: auto; flex: none; }
@media (max-width: 640px) { .yt-acct-menu { left: 0; right: auto; } .yt-acct-btn { max-width: 200px; } }
