/*
 * One check row, the same on fackd.com and in the Chrome extension (which carries a copy,
 * extension/check-row.css). Closed it is two lines to scan: the rating and the time it was said, then
 * who said it and what. Open it adds the finding, numbered sources, and Play from and Share.
 * Only the time chip and Play from move the video; anywhere else opens or closes the row.
 */
.fcard { border-bottom: 1px solid var(--line); animation: row-in .35s ease-out both; }
.fcard:last-of-type { border-bottom-color: transparent; }
.fcard.open { background: var(--panel); border-radius: 8px; border-bottom-color: transparent; }
.fcard.flash { animation: row-in .35s ease-out both, row-flash 1.2s ease-out; }
@keyframes row-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes row-flash { from { background: var(--card); } to { background: transparent; } }

/* Top line: the rating on the left, the time chip on the right. */
.fcard .ftop { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 8px 0; cursor: pointer; }
.fcard .at { display: inline-flex; align-items: center; gap: 5px; flex: none; min-height: 24px; padding: 2px 9px; border: 0; border-radius: 999px; background: var(--card); color: var(--ink); font: 500 12px/1 var(--font-mono); white-space: nowrap; }
.fcard .at::before, .jump::before { content: ""; flex: none; border-left: 7px solid var(--bill); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.fcard button.at { cursor: pointer; }
.fcard button.at:hover { background: var(--line); }

/* Who, then what: the speaker's face, their name, and the words in serif italic. */
.fcard .fhead { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 6px 8px 12px; background: none; border: 0; border-radius: 8px; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.face { flex: none; display: block; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--card); }
.face svg, .face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fcard .fwho { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fcard .speaker { font-family: var(--font-sans); font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.fcard .speaker:empty { display: none; }
.fcard .fq { font-family: var(--font-serif); font-style: italic; font-size: 15px; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.fcard.open .fq { display: block; }

/* Open: the finding, the sources numbered so you can count them, and two actions. */
.fcard .fbody { display: flex; flex-direction: column; gap: 12px; padding: 0 8px 14px; }
.fcard .fbody[hidden] { display: none; }
.fcard .fbody > p { margin: 0; font-size: 15px; line-height: 1.45; }
.fcard .src-head { margin: 0; font: 500 11px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.fcard .srcs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: src; }
.fcard .srcs li { counter-increment: src; display: flex; gap: 10px; }
.fcard .srcs li::before { content: counter(src); flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--card); color: var(--ink); font: 500 11px/20px var(--font-mono); text-align: center; }
.fcard .srcs a { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--ink); text-decoration: none; }
.fcard .srcs .site { display: flex; align-items: center; gap: 6px; font: 400 12px/1.3 var(--font-mono); color: var(--ink-muted); }
.fcard .srcs .site .stype { display: inline-flex; margin: 0; }
.fcard .srcs .title { font-size: 14px; line-height: 1.35; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; overflow-wrap: anywhere; }
.fcard .srcs a:hover .title { text-decoration-color: var(--ink); }
.fcard .more { font-size: 13px; color: var(--ink-muted); }
.fcard .more summary { cursor: pointer; width: max-content; min-height: 24px; }
.fcard .more p { margin: 6px 0 0; font-size: 13px; color: var(--ink-muted); }
.fcard .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.fcard .flag { margin-left: auto; min-height: 24px; padding: 0; background: none; border: 0; color: var(--ink-muted); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fcard .flag:hover { color: var(--ink); }

/* The two action buttons. Share is the one Share button everywhere: each check's, and the video's. */
.jump, .share-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; color: var(--ink); font: 600 13px/1 var(--font-sans); white-space: nowrap; cursor: pointer; }
.jump:hover, .share-btn:hover { border-color: var(--ink); }
.share-btn::before { content: ""; flex: none; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--share-icon) center / contain no-repeat; mask: var(--share-icon) center / contain no-repeat; }
.share-btn { --share-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v8M5 5l3-3 3 3M3 9v4h10V9'/%3E%3C/svg%3E"); }
:is(.fcard .at, .fcard .fhead, .jump, .share-btn, .fcard .flag):focus-visible { outline: 2px solid var(--bill); outline-offset: 2px; }
.fcard .fhead:focus-visible { outline-offset: -2px; }

/* A claim that's been heard and is being checked: its quote shows now, its rating shimmers until it lands. */
.fcard .badge.checking { height: 22px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #C9CFDA; background: linear-gradient(90deg, var(--card) 0, var(--line) 50%, var(--card) 100%) 0 0 / 240px 100%; animation: row-shimmer 1.2s linear infinite; }
@keyframes row-shimmer { from { background-position: -120px 0; } to { background-position: 120px 0; } }

@media (prefers-reduced-motion: reduce) { .fcard, .fcard.flash, .fcard .badge.checking { animation: none; } }
