/* Demo site "Testcard": a fictional video / posts / forum site for trying the extension without an account. */
:root { --bg: #fff; --ink: #191a17; --ink-2: #5f615c; --hair: #e7e8e4; --soft: #f3f4f1; --lime: #bbf453; --link: #4a7a0c; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 Inter, Roboto, system-ui, sans-serif; }
[hidden] { display: none !important; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.i { width: 22px; height: 22px; flex: none; }

html:not([data-site=videos]) [data-for=videos], html:not([data-site=posts]) [data-for=posts], html:not([data-site=forum]) [data-for=forum] { display: none !important; }

/* Our own strip above the made-up site (hidden inside the landing page window, which has browser tabs instead). */
.strip { display: flex; align-items: center; gap: 18px; padding: 8px 20px; background: #191a17; color: #c9cbc4; font-size: 14px; }
.strip a { color: inherit; text-decoration: none; } .strip a:hover { color: #fff; }
.made { display: flex; align-items: center; gap: 8px; font-weight: 600; } .made img { width: 22px; height: 22px; background: #bbf453; border-radius: 6px; padding: 2px; }
.tabs { display: flex; gap: 4px; margin-right: auto; }
.tabs button { padding: 6px 13px; border: 0; border-radius: 99px; background: none; color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
.tabs button span { opacity: .6; } .tabs button:hover { color: #fff; }
.tabs button.on { background: #bbf453; color: #191a17; font-weight: 600; }
.note, .no-ext { margin: 0; padding: 10px 20px; background: #f1fbdc; color: #191a17; }
html.ss-on .no-ext, html[data-ss-off] .no-ext { display: none; }

/* The "write your own post" form moves into the open site's slot and takes its looks. */
#post { display: flex; min-width: 0; }
#post input { flex: 1; min-width: 0; font: inherit; color: inherit; }
#post button { display: flex; align-items: center; gap: 7px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
#post .i { width: 18px; height: 18px; }

/* ---- Testcard: videos ---- */
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; height: 60px; padding: 0 20px; background: #fff; }
.brand { display: flex; align-items: center; gap: 9px; width: 196px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.03em; }
.brand .mark { display: grid; place-items: center; width: 34px; height: 28px; border-radius: 8px; background: #e4572e; color: #fff; }
.brand .i { width: 19px; height: 19px; }
.bar .slot { flex: 1; min-width: 0; max-width: 640px; margin: 0 auto; }
[data-site=videos] #post input { height: 40px; padding: 0 18px; border: 1px solid #d3d5cf; border-right: 0; border-radius: 99px 0 0 99px; background: #fff; }
[data-site=videos] #post button { padding: 0 18px; border: 1px solid #d3d5cf; border-radius: 0 99px 99px 0; background: var(--soft); color: inherit; }
[data-site=videos] #post button:hover { background: #e9ebe5; }
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.side { position: sticky; top: 60px; align-self: start; padding: 12px; }
.side a { display: flex; align-items: center; gap: 18px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.side a:hover { background: var(--soft); } .side a.on { background: #ecede8; font-weight: 600; }
.side #play-link { display: block; margin: 14px 0 6px; padding: 8px; background: var(--soft); white-space: normal; }
.side #play-link:hover { background: #e6e8e2; }
#play-link b { display: block; margin: 8px 4px 0; line-height: 1.25; } #play-link > span:last-child { display: block; margin: 0 4px 2px; font-size: 13px; color: var(--ink-2); }
.pic { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 8px; background: url(img/demo/set.webp) center / cover; color: #fff; }
.pic .i { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: #e4572e; }
.follow { display: grid; gap: 9px; margin: 16px 12px 0; font-size: 14px; } .follow b { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.follow span { display: flex; align-items: center; gap: 10px; } .follow span::before { content: attr(data-i); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: hsl(var(--h) 42% 42%); color: #fff; font-size: 10px; font-weight: 700; }
.about { margin: 14px 12px; color: var(--ink-2); font-size: 12.5px; }

main { max-width: 1480px; padding: 12px 28px 60px 16px; }
h1 { margin: 6px 0 2px; font-size: 23px; letter-spacing: -.025em; }
.sec { margin: 44px 0 2px; font-size: 20px; letter-spacing: -.02em; }
.lede { margin: 0 0 20px; color: var(--ink-2); max-width: 72ch; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 34px 16px; }
.card { display: block; color: inherit; text-decoration: none; border-radius: 12px; }
.thumb { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--soft); }
.thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.thumb::after { content: attr(data-d); position: absolute; right: 8px; bottom: 8px; padding: 2px 5px; border-radius: 5px; background: rgba(0, 0, 0, .8); color: #fff; font: 600 12px/1.35 Inter, system-ui, sans-serif; }
.meta { display: flex; gap: 12px; margin-top: 12px; }
.av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; }
.av::before { content: attr(data-i); }
.card h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 600; line-height: 1.32; }
.card p { margin: 0; color: var(--ink-2); font-size: 13.5px; }

#player { max-width: 1000px; margin-bottom: 34px; }
.screen { position: relative; aspect-ratio: 16 / 9; max-height: 58vh; width: 100%; border-radius: 14px; overflow: hidden; background: #000; }
/* A stand-in for a playing episode: three CC0 photos, slow pan. No real footage. */
.film { position: absolute; inset: 0; } .film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: shot 18s infinite linear; } .film img:nth-child(2) { animation-delay: 6s; } .film img:nth-child(3) { animation-delay: 12s; }
@keyframes shot { 0% { opacity: 0; transform: scale(1.02); } 4%, 33% { opacity: 1; } 38% { opacity: 0; transform: scale(1.12) translateX(-1.5%); } 100% { opacity: 0; } }
.screen i { position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: #e4572e; transform-origin: left; animation: played 240s linear both; } @keyframes played { from { transform: scaleX(.04); } to { transform: scaleX(.2); } }
.screen em::after { content: "S1·E5"; position: absolute; left: 16px; bottom: 16px; color: #fff; font: 600 14px Inter, system-ui, sans-serif; text-shadow: 0 1px 4px #000; }
@media (prefers-reduced-motion: reduce) { .film img, .screen i { animation: none; } .film img:nth-child(1) { opacity: 1; } .screen i { transform: scaleX(.04); } }
#player h2 { margin: 14px 0 2px; font-size: 21px; letter-spacing: -.02em; }
.sub { margin: 0; color: var(--ink-2); }


/* ---- Murmur: short posts ---- */
[data-site=posts] body { background: #f1eefc; color: #1f1b33; font-family: ui-rounded, "Nunito", "Varela Round", "Ubuntu", system-ui, sans-serif; }
[data-site=posts] .bar { justify-content: center; height: 58px; background: rgba(241, 238, 252, .92); }
[data-site=posts] .brand { width: auto; color: #5b3df0; font-size: 23px; font-weight: 800; }
[data-site=posts] .brand .mark { width: 36px; height: 36px; border-radius: 12px 12px 12px 3px; background: #5b3df0; }
[data-site=posts] .shell { grid-template-columns: minmax(0, 600px) 250px; justify-content: center; gap: 22px; padding: 0 18px; }
[data-site=posts] main { padding: 6px 0 60px; }
[data-site=posts] h1 { font-size: 27px; } [data-site=posts] .lede { color: #655f80; margin-bottom: 14px; }
[data-site=posts] #post { gap: 8px; padding: 10px 10px 10px 20px; margin-bottom: 14px; border-radius: 22px; background: #fff; }
[data-site=posts] #post input { border: 0; outline: 0; background: none; }
[data-site=posts] #post button { padding: 10px 18px; border: 0; border-radius: 99px; background: #5b3df0; color: #fff; }
.tweet { display: flex; gap: 12px; min-height: 128px; padding: 16px 20px 14px; margin-bottom: 10px; border-radius: 22px !important; background: #fff; color: inherit; text-decoration: none; }
.tweet .av { width: 44px; height: 44px; border-radius: 16px; }
.tweet > div { flex: 1; min-width: 0; }
.who b { font-weight: 700; } .who span { color: #7a7494; }
.tweet .text { margin: 2px 0 12px; font-size: 16px; }
.tweet img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; margin-bottom: 12px; }
.acts { display: flex; gap: 22px; color: #7a7494; font-size: 13px; }
.acts span { display: flex; align-items: center; gap: 6px; } .acts .i { width: 18px; height: 18px; }
.acts span::after { content: attr(data-n); }
.tag { align-self: start; position: sticky; top: 74px; margin-top: 12px; padding: 18px 20px; border-radius: 22px; background: #e2dbfd; font-size: 14px; }
.tag b { font-size: 16px; } .tag p { margin: 6px 0 0; }

/* ---- Longtable: a classic forum ---- */
[data-site=forum] body { background: #e9eef0; color: #1c2b30; font: 14px/1.5 Verdana, "DejaVu Sans", Tahoma, sans-serif; }
[data-site=forum] .bar { height: 66px; padding: 0 max(20px, calc(50vw - 500px)); background: #0f4c5c; }
[data-site=forum] .brand { width: auto; align-items: baseline; gap: 14px; color: #fff; font: 700 27px Georgia, "Times New Roman", serif; letter-spacing: 0; }
.brand small { font: 400 13px Verdana, "DejaVu Sans", sans-serif; color: #a9cdd6; }
[data-site=forum] .shell { display: block; max-width: 1000px; margin: 0 auto; padding: 0 20px; }
[data-site=forum] main { padding: 14px 0 60px; }
.crumbs { margin: 0 0 10px; color: #4f6a72; font-size: 12.5px; }
[data-site=forum] h1 { margin: 0; font: 700 24px Georgia, serif; letter-spacing: 0; } [data-site=forum] .lede { margin-bottom: 12px; color: #4f6a72; }
.thread { padding: 10px 14px; background: #1a6b80; color: #fff; border-radius: 4px 4px 0 0; }
.thread h2 { margin: 0; font: 700 16px Verdana, "DejaVu Sans", sans-serif; } .thread p { margin: 2px 0 0; font-size: 12px; color: #cfe5eb; }
.comment { display: grid; grid-template-columns: 148px minmax(0, 1fr); min-height: 126px; border: 1px solid #c3d0d5; border-top: 0; background: #fff; border-radius: 0 !important; }
.user { padding: 14px 12px; background: #f3f7f8; border-right: 1px solid #d9e3e6; }
.user .av { width: 52px; height: 52px; border-radius: 4px; margin-bottom: 8px; font-size: 18px; }
.user b { display: block; font-size: 13px; overflow-wrap: anywhere; }
.user::after { content: attr(data-n); font-size: 11.5px; color: #66808a; }
.body { padding: 10px 16px 14px; }
.body::before { content: attr(data-when); display: block; padding-bottom: 7px; margin-bottom: 10px; border-bottom: 1px solid #e3eaec; font-size: 11.5px; color: #66808a; }
.comment p { margin: 0; }
[data-site=forum] #post { gap: 8px; margin-top: 14px; padding: 12px; border: 1px solid #c3d0d5; border-radius: 4px; background: #f3f7f8; }
[data-site=forum] #post input { padding: 9px 12px; border: 1px solid #b4c3c9; border-radius: 3px; background: #fff; }
[data-site=forum] #post button { padding: 0 16px; border: 0; border-radius: 3px; background: #0f4c5c; color: #fff; }

.kw-hidden { position: relative; overflow: clip; }
.kw-hidden > * { filter: blur(14px) grayscale(.6); }
.kw-hidden::after { content: "Blocked by keyword"; position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; padding: 8px 16px; border-radius: 8px; background: #fff; color: #191a17; font: 700 14px system-ui, sans-serif; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }

/* Inside the window on the landing page */
.embed :is(.strip, .no-ext, .note) { display: none !important; }
[data-site=videos].embed .shell { grid-template-columns: 196px minmax(0, 1fr); }
[data-site=videos].embed .brand { width: 172px; }
.embed .grid { grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 26px 14px; }
.embed .lede { margin-bottom: 14px; } [data-site=videos].embed #lede { display: none; } [data-site=videos].embed h1 { margin-bottom: 14px; }

@media (max-width: 860px) {
  .strip { flex-wrap: wrap; gap: 8px 14px; padding: 8px 14px; } .tabs { order: 3; width: 100%; } .tabs button span { display: none; }
  [data-site] .shell { display: block; padding: 0 14px; } .side { position: static; display: flex; padding: 0; overflow-x: auto; scrollbar-width: none; } .side a { gap: 10px; } .about, .tag, .follow { display: none; } .side #play-link { display: flex; align-items: center; gap: 10px; margin: 0; } .pic { width: 64px; } #play-link .i { width: 26px; height: 26px; padding: 6px; } #play-link b { margin: 0; white-space: nowrap; } #play-link > span:last-child { display: none; }
  [data-site=videos] .bar { gap: 12px; padding: 0 14px; } [data-site=videos] .brand { width: auto; font-size: 0; gap: 0; }
  [data-site=videos] #post button span { display: none; }
  [data-site=forum] .bar { padding: 0 14px; } .brand small { display: none; }
  main { padding: 10px 0 40px !important; }
  .comment { grid-template-columns: 84px minmax(0, 1fr); } .user { padding: 10px 8px; } .user .av { width: 38px; height: 38px; }
}
