/* ad-hints.css — the AI ad-hint strip: machine-proposed windows, shown but never actionable.
 *
 * Styled deliberately unlike .marker-segment (hatched and muted, never a solid colour) so a hint
 * cannot be mistaken for a confirmed human annotation. There is no edit affordance, no drag handle
 * and no overlay: the only interaction a bar has is a click that navigates to its first frame.
 *
 * Palette comes from the :root custom properties in style.css — design-system.css is not loaded by
 * the discover page. Square corners match the house style.
 */

.ad-hints-section {
    background: var(--surface);
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--border);
    padding: 8px 16px 12px;
    margin: 0;
    flex-shrink: 0;
    position: relative;
}

.ad-hints-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-hints-meta {
    color: var(--text-muted);
    font-size: 11px;
}

.ad-hints-toggle {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    user-select: none;
}

.ad-hints-outer {
    position: relative;
    height: 24px;
    overflow: hidden;
    background: var(--elevated);
    border-radius: 0;
    border: 1px solid var(--border);
    margin-top: 6px;
}

/* Inner container — shifted left via transform to sync with #timeline-scroll, the same technique
 * viewership.css and the annotation strip use. The outer is never scrolled. */
.ad-hints-inner {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    will-change: transform;
}

/* A hint is a suggestion, not an annotation. Hatched and muted on purpose.
 *
 * It is a <button> so it is keyboard reachable and activatable; these declarations strip the user
 * agent's button styling back to the flat bar the strip needs. */
.ad-hint-bar {
    position: absolute;
    top: 3px;
    height: 16px;
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    font: inherit;
    color: inherit;
    border-radius: 0;
    cursor: pointer;
    border: 1px solid var(--border-active);
    background: repeating-linear-gradient(
        45deg,
        rgba(122, 142, 171, 0.35) 0px,
        rgba(122, 142, 171, 0.35) 4px,
        rgba(122, 142, 171, 0.12) 4px,
        rgba(122, 142, 171, 0.12) 8px
    );
    min-width: 2px;
}

.ad-hint-bar:hover {
    border-color: var(--accent);
    filter: brightness(1.25);
}

/* Keyboard users need to see which bar has focus. */
.ad-hint-bar:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}
