/* Creago, the accounts page (accounts.html), version 5. Shared parts are in css/creago.css. */

.ac-top { position: relative; padding: 128px 0 0; isolation: isolate; overflow: hidden; }
.ac-head-top { margin-bottom: 22px; }
/* the tabs: they stay under the top bar while the list scrolls. Once stuck (js/accounts.js sets .stuck) a solid band
   runs the full width from the top of the screen down to a hairline, so nothing shows through */
.ac-bar { position: sticky; top: 74px; z-index: 30; padding: 10px 0; }
.ac-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: transparent; transition: background-color .2s; }
.ac-bar.stuck::before { top: -80px; background: #050507; box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 18px 30px -18px #000; }
.ac-switch { position: relative; display: flex; justify-content: center; }
@media (max-width: 860px) { .ac-bar { top: 70px; } }
.ac-bar { transition: transform .35s var(--ease), opacity .25s; }
.ac-bar.away { transform: translateY(-150%); opacity: 0; pointer-events: none; }
/* the accounts as a row of chips: a tap jumps to that account */
.ac-jump { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 6px; margin: 4px 0 22px; overflow-x: auto; padding: 2px 2px 8px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .14) transparent; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.ac-jump a { flex: none; }
.ac-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--t1); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; transition: background-color .2s, color .2s; }
.ac-jump a span { font-size: 13px; font-weight: 600; color: var(--t3); font-variant-numeric: tabular-nums; }
.ac-jump a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
@media (max-width: 720px) {
  .ac-jump { margin: 0 calc(var(--gutter) * -1) 16px; padding: 0 var(--gutter); scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
  .ac-jump::-webkit-scrollbar { display: none; }
}
.tab-n { margin-left: 2px; padding: 1px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .1); }
.tab[aria-selected="true"] .tab-n { background: rgba(0, 0, 0, .08); }

.ac-body { padding-top: 16px; padding-bottom: 32px; }
.ac-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ac-cr { position: relative; min-width: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 28px; padding: 24px; border-radius: 26px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .05); scroll-margin-top: 92px; transition: box-shadow .6s var(--ease), background-color .6s; }
/* the account picked on the home page (or with a chip): a thin lavender ring and a short line that says so */
.ac-cr.picked { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(168, 152, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .06); }
.ac-picked { display: flex; align-items: center; gap: 7px; margin-top: 2px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.ac-picked::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ac-head { grid-column: 1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.ac-av { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #111; box-shadow: 0 0 0 2px #1d1d22, 0 0 0 3px rgba(255, 255, 255, .1); }
.ac-av img { width: 100%; height: 100%; object-fit: cover; }
.ac-who { min-width: 0; }
.ac-h { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: #fff; overflow-wrap: anywhere; }
.ac-sub { font-size: 14px; color: var(--t2); }
.ac-total { grid-column: 1; display: flex; align-items: baseline; gap: 4px 8px; margin-top: 18px; }
.ac-total b { font-size: 38px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: #fff; }
.ac-total { flex-wrap: wrap; }
.ac-total span { font-size: 14px; color: var(--t2); text-wrap-style: pretty; }
.ac-desc { grid-column: 1; margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--t1); text-wrap-style: pretty; }
/* one button ("Make a video in this style"); no link leaves the site (17 Nov 2026) */
.ac-acts { grid-column: 1; align-self: start; display: grid; justify-items: start; gap: 4px; margin-top: 18px; }
.ac-acts .btn { width: 100%; height: 44px; padding: 0 16px; font-size: 14.5px; }
.ac-rowwrap { grid-column: 2; grid-row: 1 / span 4; position: relative; min-width: 0; }
@media (min-width: 1001px) {
  .ac-cr.few { grid-template-columns: 300px auto minmax(0, 1fr); }
  .ac-cr.few .ac-desc { grid-column: 3; grid-row: 1 / span 2; margin-top: 2px; align-self: start; }
  .ac-cr.few .ac-acts { grid-column: 3; grid-row: 3; }
  .ac-cr.few .ac-rowwrap { grid-row: 1 / span 4; }
}
.ac-reel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .14) transparent; }
.ac-item { flex: none; width: 172px; scroll-snap-align: start; }
.ac-cr.is-wide .ac-item { width: 300px; }
.ac-card { position: relative; display: block; container-type: inline-size; border-radius: 18px; }
.ac-card .bezel { border-radius: 18px; padding: 3px; }
.ac-card .scr { aspect-ratio: 9 / 16; border-radius: 15px; }
.ac-cr.is-wide .ac-card .scr { aspect-ratio: 16 / 9; }
/* a strong shade under the words, so they read over captions burned into the video (17 Nov 2026) */
.ac-card .scr::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .55) 66%, rgba(0, 0, 0, .9)); pointer-events: none; }
.ac-card video { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .4s; }
.ac-card.playing video { opacity: 1; }
/* on the picture: the views, and the account under them (plain text, the credit; 17 Nov 2026). The account is on
   ONE line: --n is the length of the name and the text gets smaller so the whole name fits the card (a break inside
   the name, such as "@ricksclips300" then "0", read as a different account) */
.ac-meta { position: absolute; left: 12px; right: 10px; bottom: 12px; z-index: 2; display: grid; gap: 4px; }
.ac-v { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.ac-hd { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: clamp(10px, calc((100cqi - 28px) / (var(--n, 16) * .62)), 13px); font-weight: 600; line-height: 1.25; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.ac-v small { margin-left: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: rgba(255, 255, 255, .78); }
.ac-play { position: absolute; right: 10px; top: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.ac-play::after { content: ""; position: absolute; left: 12.5px; top: 10px; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent #fff; }
.ac-t { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--t1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .ac-card { transition: transform .45s var(--spring); }
  .ac-card:hover { transform: translateY(-4px); }
}
.ac-arrow { position: absolute; top: calc(50% - 26px); z-index: 4; width: 44px; height: 44px; border-radius: 50%; display: none; place-items: center; color: #fff;
  background: rgba(20, 20, 24, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 24px -8px #000; }
.ac-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ac-arrow.l { left: -14px; }
.ac-arrow.r { right: -14px; }
@media (hover: hover) and (pointer: fine) {
  .ac-rowwrap.can-l .ac-arrow.l, .ac-rowwrap.can-r .ac-arrow.r { display: grid; }
}
@media (pointer: coarse) { .ac-arrow { display: none !important; } }
@media (min-width: 721px) and (max-width: 1000px) and (hover: hover) and (pointer: fine) {
  .ac-rowwrap { padding: 0 52px; }
  .ac-rowwrap .ac-reel { padding-left: 2px; padding-right: 2px; scroll-padding: 0 2px; }
  .ac-arrow.l { left: 4px; }
  .ac-arrow.r { right: 4px; }
}      /* a finger swipes the row */
.ac-note { margin-top: 26px; font-size: 13px; text-align: center; color: var(--t3); max-width: 640px; margin-left: auto; margin-right: auto; }
.ac-end .end-in { display: grid; justify-items: center; gap: 20px; text-align: center; }
.ac-end .lead { margin: 0 auto; }
.end-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }

@media (max-width: 1000px) {
  /* the videos come right under the name and the views; the words and the two buttons after them */
  .ac-cr { display: flex; flex-direction: column; padding: 18px; border-radius: 22px; }
  .ac-head { order: 1; }
  .ac-total { order: 2; }
  .ac-rowwrap { order: 3; margin: 14px -18px 0; }
  .ac-desc { order: 4; }
  .ac-acts { order: 5; align-self: stretch; justify-items: stretch; margin-top: 14px; }
  .ac-arrow.l { left: 8px; }
  .ac-arrow.r { right: 8px; }
  .ac-reel { padding: 2px 18px 6px; scroll-padding: 0 18px; scrollbar-width: none; }
  .ac-reel::-webkit-scrollbar { display: none; }
  .ac-total { margin-top: 14px; }
  .ac-total b { font-size: 32px; }
}
@media (max-width: 520px) {
  .ac-top { padding-top: 104px; }
  .ac-cr { scroll-margin-top: 84px; }
  .ac-item { width: 40%; min-width: 136px; }
  .ac-cr.is-wide .ac-item { width: 74%; }
  .ac-acts .btn { padding: 0 12px; }
  .end-acts { width: 100%; flex-direction: column; }
  .end-acts .btn { width: 100%; }
}

/* ---------- the player ---------- */
.ap { width: min(1080px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 26px; background: #0b0b0e; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 50px 100px -30px #000; }
.ap[open] { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr); }
.ap.is-tall[open] { grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); width: min(860px, calc(100% - 32px)); }
.ap-media { display: grid; place-items: center; padding: 18px; background: #050506; min-height: 0; }
.ap-frame { position: relative; width: 100%; max-height: calc(100vh - 100px); aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.ap.is-tall .ap-frame { width: auto; height: min(78vh, 700px); aspect-ratio: 9 / 16; }
.ap-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.ap-hit { position: absolute; inset: 0; }
.ap-paused { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .2s; pointer-events: none; }
.ap-paused::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 18px; border-color: transparent transparent transparent #fff; }
.ap.paused .ap-paused { opacity: 1; }
.ap-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .14); }
.ap-bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.ap-sound { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 11px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #fff;
  background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.ap-sound svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.ap-sound .i-on { display: none; }
.ap.sound .ap-sound .i-on { display: block; }
.ap.sound .ap-sound .i-off { display: none; }
.ap-failed { position: absolute; inset: 0; display: none; place-items: center; padding: 20px; text-align: center; font-size: 15px; color: var(--t1); background: rgba(0, 0, 0, .7); }
.ap.failed .ap-failed { display: grid; }
.ap-info { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 18px; min-height: 0; overflow-y: auto; }
.ap-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ap-kind { font-size: 13.5px; font-weight: 600; color: var(--t2); }
.ap-x { width: 44px; height: 44px; margin: -8px -8px 0 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); }
.ap-x svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 1.7; fill: none; stroke-linecap: round; }
.ap-x:hover { background: rgba(255, 255, 255, .12); }
.ap-views { font-size: 15px; color: var(--t2); }
.ap-views b { display: block; font-size: 46px; font-weight: 800; letter-spacing: -0.055em; line-height: 1; color: #fff; }
.ap-title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; color: #fff; }
.ap-desc { font-size: 15px; color: var(--t1); }
/* the action sits low, just above Previous / Next, so the panel has no hole in the middle (17 Nov 2026) */
.ap-acts { display: grid; gap: 8px; margin-top: auto; padding-top: 6px; }
.ap-acts .btn { width: 100%; }
.ap-small { font-size: 13px; color: var(--t3); }
.ap-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; }
.ap-nav .btn { height: 44px; }
.ap-n { font-size: 13.5px; font-weight: 600; color: var(--t2); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .ap, .ap.is-tall { width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .ap[open], .ap.is-tall[open] { grid-template-columns: none; grid-template-rows: auto minmax(0, 1fr); }
  .ap-media { padding: 12px 12px 0; }
  .ap-frame { max-height: 46vh; }
  .ap.is-tall .ap-frame { height: 52vh; }
  .ap-info { padding: 16px 16px 0; gap: 10px; }
  .ap-nav { position: sticky; bottom: 0; z-index: 2; margin: 0 -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #0b0b0e; box-shadow: 0 -1px 0 var(--line); }
  .ap-views b { font-size: 36px; }
  .ap-title { font-size: 17px; }
}
@media (max-width: 760px) and (max-height: 820px) {
  .ap-frame { max-height: 40vh; max-height: 40svh; }
  .ap.is-tall .ap-frame { height: 40vh; height: 40svh; }
}
