/* Article tools inherit the existing detail page colours and typography. */
.article-reader[hidden], .article-reader-toggle[hidden] { display: none !important; }
.article-reader-toggle, .article-reader-action, .article-reader-speed select {
    box-sizing: border-box;
    min-height: 40px;
    font: inherit;
    font-size: 14px;
    line-height: 20px;
    color: var(--jvds-news-detail-text, #111);
    cursor: pointer;
}
.article-reader-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-left: 8px;
    padding: 8px 14px;
    border: 1px solid var(--jvds-news-detail-line, #dedede);
    border-radius: 999px;
    background: transparent;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}
.article-reader-toggle svg { flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.article-reader-toggle[data-playing="true"] { background: #e0f94c; border-color: #e0f94c; color: #111; }
.article-reader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--jvds-news-detail-surface, #f5f5f5);
    color: var(--jvds-news-detail-text, #111);
    font-size: 14px;
    line-height: 1.6;
}
.article-reader-info { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.article-reader-progress { display: block; font-size: 12px; color: var(--jvds-news-detail-muted, #777); font-variant-numeric: tabular-nums; }
.article-reader-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; max-width: 100%; }
.article-reader-speed { display: inline-flex; align-items: center; gap: 4px; color: var(--jvds-news-detail-muted, #777); }
.article-reader-speed select { width: auto; min-width: 70px; padding: 8px 4px; border: 0; border-radius: 6px; background: transparent; appearance: auto; -webkit-appearance: menulist; font-variant-numeric: tabular-nums; }
.article-reader-speed option { background: var(--jvds-news-detail-contrast, #fff); color: var(--jvds-news-detail-text, #111); }
.article-reader-action { padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; transition: background-color .2s ease, transform .15s ease; }
.article-reader-toggle:focus-visible, .article-reader-action:focus-visible, .article-reader-speed select:focus-visible { outline: 2px solid var(--jvds-news-detail-text, #111); outline-offset: 3px; }
.article-reader-toggle:disabled { cursor: default; color: var(--jvds-news-detail-muted, #777); }
@media (hover: hover) {
    .article-reader-toggle:not(:disabled):hover { background: #e0f94c; border-color: #e0f94c; color: #111; }
    .article-reader-action:hover { background: var(--jvds-news-detail-line, #dedede); }
}
.article-reader-toggle:not(:disabled):active, .article-reader-action:active { transform: scale(.96); }
@media (max-width: 600px) {
    .article-reader-toggle { margin-left: 0; }
    .article-reader { padding: 12px; gap: 8px; }
    .article-reader-info { flex-basis: 100%; }
    .article-reader-actions { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
    .article-reader-toggle, .article-reader-action { transition: none; }
    .article-reader-toggle:active, .article-reader-action:active { transform: none; }
}
