/* AdultEmbed Studio front end. Neutral defaults; themes override via the --aes-* variables. */
:where(:root) {
  /* Design tokens (see wp-studio/DESIGN.md). Themes publish their own values; these are the neutral dark defaults. */
  --aes-accent: #e11d48; --aes-on-accent: #fff; --aes-radius: 10px;
  --aes-surface: #16161d; --aes-surface-2: #22222b; --aes-text: #f4f4f5; --aes-muted: #a1a1aa; --aes-line: rgba(127, 127, 127, .3);
  --aes-ok: #16a34a; --aes-bad: #dc2626; --aes-shadow: 0 30px 80px rgba(0, 0, 0, .55); --aes-ease: cubic-bezier(.2, .8, .2, 1);
}   /* :where = no specificity, so a theme's own --aes-accent wins whatever the stylesheet order */

.aes-player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--aes-radius); overflow: hidden; }
.aes-linkout { display: block; color: #fff; text-decoration: none; }
.aes-linkout img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.aes-linkout__cta { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 9px 16px; border-radius: 999px; background: var(--aes-accent); color: var(--aes-on-accent); font: 600 14px/1.2 system-ui, sans-serif; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.aes-linkout__dur { position: absolute; right: 10px; top: 10px; padding: 3px 7px; border-radius: 6px; background: rgba(0,0,0,.7); font: 600 12px/1.2 system-ui, sans-serif; }
.aes-linkout:hover .aes-player__play, .aes-linkout:focus-visible .aes-player__play { transform: translate(-50%, -50%) scale(1.08); }
.aes-linkout:hover circle { fill: var(--aes-accent); }
.aes-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.aes-player__poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; display: block; }
.aes-player__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aes-player__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%); transition: transform .15s; }
.aes-player__play svg { width: 100%; height: 100%; display: block; }
.aes-player__play circle { fill: rgba(0, 0, 0, .55); stroke: #fff; stroke-width: 2; }
.aes-player__play path { fill: #fff; }
.aes-player__poster:hover .aes-player__play, .aes-player__poster:focus-visible .aes-player__play { transform: translate(-50%, -50%) scale(1.08); }
.aes-player__poster:hover circle { fill: var(--aes-accent); }
.aes-player__dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .75); color: #fff; font: 600 13px/1 system-ui, sans-serif; padding: 5px 7px; border-radius: 4px; }

.aes-zone { margin: 14px auto; text-align: center; max-width: 100%; overflow: hidden; }
.aes-zone--mobile { display: none; }
@media (max-width: 767px) { .aes-zone--desktop { display: none; } .aes-zone--mobile { display: block; } }

/* age gate */
html.aes-gated, html.aes-gated body { overflow: hidden; }
#aes-agegate[hidden], #aes-cookie[hidden], #aes-adblock[hidden] { display: none !important; }
#aes-agegate { position: fixed; inset: 0; z-index: 2147483000; background: rgba(8, 8, 12, .96); display: flex; align-items: center; justify-content: center; padding: 16px; }
.aes-agegate__box { max-width: 460px; width: 100%; background: #16161d; color: #f4f4f5; border-radius: 14px; padding: 28px 24px; text-align: center; font: 16px/1.5 system-ui, sans-serif; }
.aes-agegate__box h2 { margin: 0 0 10px; font-size: 24px; color: #fff; }
.aes-agegate__box p { margin: 0 0 22px; color: #c4c4cc; }
.aes-agegate__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.aes-btn { display: inline-block; padding: 12px 22px; border-radius: 999px; border: 0; font: 600 15px/1 system-ui, sans-serif; cursor: pointer; text-decoration: none; }
.aes-btn--primary { background: var(--aes-accent); color: var(--aes-on-accent); }
.aes-btn--ghost { background: transparent; color: #c4c4cc; border: 1px solid #3a3a46; }
.aes-btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px var(--aes-line); }   /* secondary action, any theme colours */
.aes-btn--line:hover { box-shadow: inset 0 0 0 1px currentColor; }

/* cookie + adblock bars */
#aes-cookie, #aes-adblock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 2147482000; background: #16161d; color: #f4f4f5; border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; font: 14px/1.4 system-ui, sans-serif; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); }
#aes-cookie button, #aes-adblock button { flex: none; }

/* credit */
.aes-credit { text-align: center; font: 12px/1.4 system-ui, sans-serif; opacity: .85; margin: 10px 0; }   /* .7 fell below 4.5:1 contrast on dark themes (Lighthouse 10-21) */
.aes-credit a { color: inherit; }

/* VAST pre-roll */
.aes-player.is-loading .aes-player__play { opacity: .4; }
.aes-ad { position: absolute; inset: 0; z-index: 5; background: #000; }
.aes-ad video { width: 100%; height: 100%; display: block; cursor: pointer; }
.aes-ad__label { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.7); color: #fff; font: 600 12px/1 system-ui, sans-serif; padding: 5px 8px; border-radius: 4px; }
.aes-ad__skip { position: absolute; right: 0; bottom: 18px; background: rgba(0,0,0,.8); color: #fff; border: 1px solid rgba(255,255,255,.4); border-right: 0; font: 600 14px/1 system-ui, sans-serif; padding: 12px 16px; cursor: pointer; }
.aes-ad__skip:disabled { opacity: .75; cursor: default; }

/* likes / dislikes */
.aes-vote { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.aes-vote__btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(127,127,127,.35); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
.aes-vote__btn:hover { border-color: currentColor; }
.aes-vote.is-voted .aes-vote__btn { cursor: default; opacity: .6; }
.aes-vote.is-like [data-v="like"], .aes-vote.is-dislike [data-v="dislike"] { opacity: 1; border-color: currentColor; }
.aes-vote__bar { flex: 0 0 120px; height: 4px; border-radius: 2px; background: rgba(127,127,127,.35); overflow: hidden; }
.aes-vote__bar span { display: block; height: 100%; background: #2fbf71; }
.aes-vote__pct { font-size: 13px; opacity: .8; }

/* ad on the player before play */
.aes-player__ad { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .72); padding: 10px; }
.aes-player__ad-box { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; max-height: 100%; overflow: hidden; }
.aes-player__ad-box .aes-zone { margin: 0; }
.aes-player__ad-x { border: 0; border-radius: 999px; padding: 8px 16px; background: var(--aes-accent); color: var(--aes-on-accent, #fff); font: 600 14px/1 system-ui, sans-serif; cursor: pointer; }

/* sticky phone bar: phones only, decided by CSS so cached pages are right for everyone */
.aes-sticky-mobile { display: none; }
@media (max-width: 767px) {
  .aes-sticky-mobile { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147481000; text-align: center; background: rgba(0, 0, 0, .6); }
  .aes-sticky-mobile .aes-zone { margin: 0 auto; }
}
.aes-sticky-mobile__x { position: absolute; right: 2px; top: -26px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .75); color: #fff; font: 18px/26px system-ui, sans-serif; cursor: pointer; }

/* own files, logo, quality, pause ad */
.aes-player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.aes-player__play img { width: 100%; height: 100%; object-fit: contain; }
.aes-player__logo { position: absolute; z-index: 2; max-width: 22%; opacity: .85; line-height: 0; }
.aes-player__logo img { max-width: 100%; max-height: 48px; }
.aes-player__logo--tl { left: 12px; top: 12px; } .aes-player__logo--tr { right: 12px; top: 12px; }
.aes-player__logo--bl { left: 12px; bottom: 52px; } .aes-player__logo--br { right: 12px; bottom: 52px; }
.aes-player__q { position: absolute; z-index: 2; right: 10px; top: 10px; background: rgba(0, 0, 0, .7); color: #fff; border: 0; border-radius: 6px; padding: 4px 6px; font: 600 13px system-ui, sans-serif; }
.aes-player__logo--tr ~ .aes-player__q { top: 64px; }
.aes-player__pause[hidden] { display: none; }
.aes-player__pause { position: absolute; inset: 0 0 48px; z-index: 3; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .6); }
.aes-player__pause-x { border: 0; border-radius: 999px; padding: 8px 16px; background: var(--aes-accent); color: var(--aes-on-accent, #fff); font: 600 14px/1 system-ui, sans-serif; cursor: pointer; }
.aes-player__play circle { fill: rgba(0, 0, 0, .55); }
.aes-player__poster:hover circle { fill: var(--aes-accent); }

/* age gate options */
#aes-agegate.has-bg { background-size: cover; background-position: center; }
#aes-agegate.has-bg::before { content: ''; position: absolute; inset: 0; background: rgba(8, 8, 12, .7); }
#aes-agegate .aes-agegate__box { position: relative; }
.aes-agegate__logo { display: block; max-width: 220px; max-height: 70px; margin: 0 auto 14px; }
.aes-agegate__ask[hidden], .aes-agegate__nope[hidden] { display: none; }
#aes-cookie a { color: inherit; text-decoration: underline; }
#aes-cookie.aes-cookie--top { top: 12px; bottom: auto; }
#aes-adblock { flex-wrap: wrap; }

/* favourites + member forms */
.aes-fav { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(127,127,127,.35); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
.aes-fav svg path { fill: none; stroke: currentColor; stroke-width: 1.8; }
.aes-fav.is-on { border-color: var(--aes-accent); color: var(--aes-accent); }
.aes-fav.is-on svg path { fill: currentColor; }
.aes-fav-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.aes-fav-card { display: block; color: inherit; text-decoration: none; }
.aes-fav-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--aes-radius); display: block; }
.aes-account { max-width: 760px; }
.aes-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.aes-tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(127,127,127,.35); color: inherit; text-decoration: none; font-size: 14px; }
.aes-tabs a[aria-current] { background: var(--aes-accent); border-color: var(--aes-accent); color: var(--aes-on-accent, #fff); }
.aes-form { display: grid; gap: 12px; max-width: 520px; }
.aes-form label { display: grid; gap: 5px; font-size: 14px; }
.aes-form input:not([type=checkbox]), .aes-form textarea, .aes-form select { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(127,127,127,.4); background: rgba(127,127,127,.08); color: inherit; font: inherit; }
.aes-form fieldset { border: 1px solid rgba(127,127,127,.3); border-radius: 10px; padding: 10px 12px; display: grid; gap: 10px; }
.aes-form__check { display: flex !important; gap: 8px; align-items: flex-start; }
.aes-form .aes-btn { justify-self: start; }
.aes-req { color: var(--aes-accent); }
.aes-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.aes-notice { padding: 10px 14px; border-radius: 8px; background: rgba(47, 191, 113, .15); border: 1px solid rgba(47, 191, 113, .5); }
.aes-notice--err { background: rgba(225, 29, 72, .12); border-color: rgba(225, 29, 72, .5); }
.aes-mine { padding-left: 18px; } .aes-mine small { opacity: .7; }

/* source tabs */
.aes-srctabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.aes-srctabs button { padding: 6px 12px; border-radius: var(--t-r, 999px); border: 1px solid rgba(127,127,127,.35); background: var(--t-bg, transparent); color: var(--t-fg, inherit); font: 600 13px/1 system-ui, sans-serif; cursor: pointer; }
.aes-srctabs button.is-on { background: var(--t-abg, var(--aes-accent)); border-color: var(--t-abg, var(--aes-accent)); color: var(--t-afg, #fff); }
.aes-srctabs--bottom { margin: 8px 0 0; }

/* paywall */
.aes-locked { display: flex; align-items: center; justify-content: center; }
.aes-locked__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.55); transform: scale(1.1); }
.aes-locked__box { position: relative; text-align: center; color: #fff; padding: 16px; display: grid; gap: 10px; justify-items: center; font: 15px/1.4 system-ui, sans-serif; }
.aes-locked__box p { margin: 0; }
.aes-locked__login { color: #ddd; font-size: 13px; }
.aes-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 12px 0; }
.aes-plan { border: 1px solid rgba(127,127,127,.35); border-radius: 14px; padding: 18px; display: grid; gap: 8px; }
.aes-plan h3 { margin: 0; }
.aes-plan__price { font-size: 28px; font-weight: 800; margin: 0; }
.aes-plan__period { margin: 0; opacity: .75; font-size: 14px; }
.aes-plan select { padding: 8px; border-radius: 8px; }
.aes-pricing__note { font-size: 13px; opacity: .7; }
.aes-premium-badge { position: absolute; right: 6px; top: 6px; z-index: 1; background: #f5b301; color: #111; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 4px; }

/* loader while a tube's player loads; Fluid player */
.aes-player__loading { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; background: #000; color: #aaa; font: 14px system-ui, sans-serif; pointer-events: none; }
.aes-spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--aes-accent); animation: aes-spin .8s linear infinite; }
@keyframes aes-spin { to { transform: rotate(360deg); } }
.aes-player.is-loading .aes-player__play { opacity: .4; }
.aes-player.is-fluid .fluid_video_wrapper, .aes-player.is-fluid video { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; }
.aes-player.is-fluid .aes-player__logo, .aes-player.is-fluid .aes-player__pause { z-index: 6; }
.aes-player__ad-slots { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.aes-player__ad-slots:empty { display: none; }
.aes-player__logo img { width: 100%; max-height: none; height: auto; }
.aes-player__logo.is-gray { filter: grayscale(1); transition: filter .2s; }
.aes-player__logo.is-gray:hover { filter: none; }

/* age gate / cookie / adblock options */
#aes-agegate.has-bg::before { background: rgba(8, 8, 12, var(--ag-shade, .7)); backdrop-filter: blur(var(--ag-blur, 0)); -webkit-backdrop-filter: blur(var(--ag-blur, 0)); }
#aes-agegate.is-light .aes-agegate__box { background: #fff; color: #16161d; }
#aes-agegate.is-light .aes-agegate__box h2 { color: #111; } #aes-agegate.is-light .aes-agegate__box p { color: #555; }
#aes-agegate.is-light .aes-btn--ghost { color: #555; border-color: #ccc; }
.aes-agegate__logo { height: auto; max-height: 120px; object-fit: contain; }
.aes-agegate__sub { font-weight: 600; }
.aes-privacy[hidden] { display: none; }
.aes-privacy { position: fixed; inset: 0; z-index: 2147482500; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.aes-privacy__box { max-width: 560px; max-height: 80vh; overflow: auto; background: #fff; color: #222; border-radius: 12px; padding: 22px; font: 15px/1.55 system-ui, sans-serif; }
.aes-privacy.is-dark .aes-privacy__box { background: #16161d; color: #e9e9ef; }
#aes-adblock.is-light { background: #fff; color: #222; }

.aes-plans { grid-template-columns: repeat(var(--plans, 2), minmax(0, 1fr)); }
@media (max-width: 700px) { .aes-plans { grid-template-columns: minmax(0, 1fr); } }
.aes-paypop[hidden] { display: none; }
.aes-paypop { position: fixed; inset: 0; z-index: 2147482600; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; padding: 14px; }
.aes-paypop__box { position: relative; width: min(760px, 100%); max-height: 90vh; overflow: auto; background: var(--aes-surface); color: var(--aes-text); border-radius: 14px; padding: 22px; font: 15px/1.5 system-ui, sans-serif; }
.aes-paypop__box h2 { margin: 0 0 6px; }
.aes-paypop__x { position: absolute; right: 10px; top: 8px; border: 0; background: none; color: inherit; font-size: 28px; cursor: pointer; }

.aes-player.has-bg { background-color: #000; background-size: cover; background-position: center; }
.aes-player.has-bg iframe { background: transparent; }

/* sign-in pop-up */
.aes-dialog { width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 26px 22px 22px; border: 0; border-radius: calc(var(--aes-radius) + 8px); background: var(--aes-surface); color: var(--aes-text); box-shadow: var(--aes-shadow); overflow: auto; }
.aes-dialog::backdrop { background: rgba(5, 5, 10, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.aes-dialog[open] { animation: aes-pop .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes aes-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.aes-dialog__x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--aes-surface-2); color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.aes-dialog__wait { display: grid; place-items: center; min-height: 180px; }
.aes-dialog .aes-account { max-width: none; }
.aes-dialog .aes-tabs { display: flex; gap: 6px; margin: 0 0 16px; padding: 0 40px 0 0; flex-wrap: wrap; }
.aes-dialog .aes-tabs a { padding: 7px 12px; border-radius: 999px; text-decoration: none; color: var(--aes-muted); font-weight: 600; font-size: 14px; }
.aes-dialog .aes-tabs a[aria-current] { background: var(--aes-accent); color: var(--aes-on-accent); }
.aes-dialog .aes-form { max-width: none; }
.aes-dialog .aes-form .aes-btn { justify-self: stretch; justify-content: center; padding: 12px; }
.aes-spin { display: inline-block; width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(127, 127, 127, .3); border-top-color: var(--aes-accent); animation: aes-sp .8s linear infinite; }
@keyframes aes-sp { to { transform: rotate(360deg); } }
.aes-btn.is-busy, button.is-busy { opacity: .75; cursor: progress; }
/* comments posted in place */
.aes-comment-msg:empty { display: none; }
.aes-comment-msg { margin: 0 0 10px; padding: 9px 12px; border-radius: 8px; background: color-mix(in srgb, var(--aes-ok) 15%, transparent); }
.aes-comment-msg.is-err { background: rgba(220, 38, 38, .14); }
.aes-new-comment { animation: aes-glow 2.4s ease; border-radius: 8px; }
@keyframes aes-glow { 0%, 40% { background: rgba(225, 29, 72, .14); } 100% { background: transparent; } }
/* endless grids */
.aes-appear { animation: aes-up .35s ease both; }
@keyframes aes-up { from { opacity: 0; transform: translateY(8px); } }
.aes-avatar-edit { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.aes-avatar-edit .avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }

/* report pop-up */
.aes-report__title { margin: 0 0 4px; font-size: 18px; }
.aes-report__video { margin: 0 0 12px; color: var(--aes-muted); font-size: 13px; }
.aes-report__kinds { display: grid; gap: 6px; border: 0 !important; padding: 0 !important; margin: 0; }
.aes-report__kind { display: flex !important; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--aes-surface-2); cursor: pointer; font-size: 14px; }
.aes-report__kind:has(input:checked) { outline: 2px solid var(--aes-accent); }
.aes-report__kind { justify-content: flex-start; text-align: left; line-height: 1.3; }
.aes-report__kind input, .aes-report__sworn input { width: 18px !important; height: 18px; flex: 0 0 18px; margin: 0 !important; padding: 0 !important; accent-color: var(--aes-accent); }
.aes-report__sworn { display: flex !important; align-items: flex-start; gap: 10px; text-align: left; font-size: 13px; }
.aes-report__sworn[hidden] { display: none !important; }
.aes-report__note { margin: 4px 0 0; font-size: 12px; color: var(--aes-muted); }
.aes-report-link { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0; padding: 0; border: 0; background: none; color: inherit; opacity: .7; font: inherit; font-size: 13px; cursor: pointer; }
.aes-report-link:hover { opacity: 1; text-decoration: underline; }
.aes-report-link svg { width: 15px; height: 15px; }
.aes-watch-on { display: inline-flex; align-items: center; margin: 8px 12px 8px 0; font-size: 13px; font-weight: 600; opacity: .8; }
.aes-watch-on:hover { opacity: 1; }

/* region-blocked tube video with no copy elsewhere */
.aes-player.is-blocked .aes-player__poster { cursor: default; filter: grayscale(1) brightness(.45); }
.aes-player.is-blocked .aes-player__poster > :not(img) { display: none; }
.aes-player__blocked { position: absolute; inset: auto 0 50% 0; transform: translateY(50%); padding: 0 20px; text-align: center; color: #fff; font-weight: 700; font-size: 16px; text-shadow: 0 1px 6px rgba(0,0,0,.7); pointer-events: none; }

/* age verification where the law requires it: media blurred and inert until AgeVerif confirms an adult */
html.aes-av-wait img, html.aes-av-wait video, html.aes-av-wait iframe, html.aes-av-wait picture, html.aes-av-wait [style*="background-image"],
html.aes-av-need img, html.aes-av-need video, html.aes-av-need iframe, html.aes-av-need picture, html.aes-av-need [style*="background-image"] { filter: blur(28px) !important; pointer-events: none !important; }
html.aes-av-need, html.aes-av-need body { overflow: hidden; }
html.aes-av-need .aes-av img { filter: none !important; }
.aes-av { position: fixed; inset: 0; z-index: 2147480000; display: grid; place-items: center; padding: 16px; background: rgba(8,8,12,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.aes-av__box { max-width: 440px; width: 100%; background: #16161d; color: #f4f4f6; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 28px 24px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.aes-av__box h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; color: inherit; }
.aes-av__box p { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: #c9c9d2; }
.aes-av__box p:empty { display: none; }
.aes-av__box .aes-btn { display: block; width: 100%; }
.aes-av[hidden] { display: none; }
.aes-av__err { display: block; margin-top: 12px; color: #fca5a5; font-size: 13px; }
.aes-zone[hidden] { display: none !important; }

/* live cams block */
.aes-cams { margin: 22px 0; }
.aes-cams:empty { margin: 0; }
.aes-cams__title { font-size: 18px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.aes-cams__title::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.2); }
.aes-cams__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.aes-cam { display: block; text-decoration: none; color: inherit; min-width: 0; }
.aes-cam__img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: rgba(127,127,127,.15); }
.aes-cam__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aes-cam__live { position: absolute; left: 6px; top: 6px; padding: 2px 6px; border-radius: 4px; background: #ef4444; color: #fff; font: 700 10.5px/1.4 system-ui, sans-serif; letter-spacing: .04em; }
.aes-cam__name { display: block; margin-top: 5px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aes-cam.is-star .aes-cam__img { outline: 2px solid #ef4444; outline-offset: 2px; }
@media (max-width: 600px) { .aes-cams__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.aes-form__docs { border: 1px dashed rgba(127,127,127,.4); border-radius: 10px; padding: 10px 14px; margin: 4px 0; display: grid; gap: 10px; }
.aes-form__docs legend { font-weight: 700; padding: 0 6px; }
.aes-form__docs p { margin: 0; font-size: 13px; opacity: .8; }

/* playlists */
.aes-pl-title { margin: 0 40px 12px 0; font-size: 19px; }
.aes-pl-list { display: grid; gap: 4px; max-height: 50vh; overflow: auto; margin-bottom: 14px; }
.aes-pl-item { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; cursor: pointer; }
.aes-pl-item:hover { background: var(--aes-surface-2); }
.aes-pl-item input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: var(--aes-accent); }
.aes-pl-item__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.aes-pl-item small { color: var(--aes-muted); font-size: 12px; }
.aes-pl-new { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid var(--aes-line, rgba(127,127,127,.2)); padding-top: 14px; }
.aes-pl-new input[type=text] { flex: 1 1 180px; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--aes-line, rgba(127,127,127,.3)); background: transparent; color: inherit; font: inherit; }
.aes-pl-pub { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.aes-pl-meta { color: var(--aes-muted); font-size: 14px; }
.aes-pl-mine { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.aes-pl-mine li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--aes-line, rgba(127,127,127,.2)); }
.aes-pl-mine a { font-weight: 700; }
.aes-linkbtn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.aes-linkbtn.is-danger { color: #ef4444; }
.aes-upnext { margin: 12px 0; border: 1px solid var(--aes-line, rgba(127,127,127,.25)); border-radius: 12px; overflow: hidden; }
.aes-upnext__hd { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--aes-surface-2); font-weight: 700; }
.aes-upnext__hd span { color: var(--aes-muted); font-weight: 500; }
.aes-upnext ol { list-style: none; margin: 0; padding: 4px; display: grid; gap: 2px; }
.aes-upnext li a { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 8px; text-decoration: none; color: inherit; }
.aes-upnext li.is-now a { background: var(--aes-surface-2); }
.aes-upnext li img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex: none; }
.aes-upnext li span { font-size: 13.5px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.aes-upnext__next { display: block; padding: 10px 12px; text-align: right; font-weight: 700; text-decoration: none; }

/* follow */
.aes-follow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--aes-accent); background: var(--aes-accent); color: var(--aes-on-accent); font: 700 14px/1 system-ui, sans-serif; cursor: pointer; vertical-align: middle; }
.aes-follow.is-on { background: transparent; color: inherit; border-color: var(--aes-line); }
.aes-follow__n { font-weight: 500; opacity: .75; font-variant-numeric: tabular-nums; }
.aes-follow__n:empty { display: none; }
.aes-follow-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.aes-follow-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--aes-surface-2); }
.aes-follow-chip a { font-weight: 600; text-decoration: none; color: inherit; }
.aes-follow-chip .aes-follow { padding: 5px 10px; font-size: 12.5px; }
.aes-follow-new { font-size: 17px; margin: 6px 0 10px; }

/* video upload drop zone */
.aes-drop { position: relative; display: grid; gap: 8px; place-items: center; padding: 22px 16px; border: 2px dashed var(--aes-line); border-radius: 12px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.aes-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.aes-drop.is-over { border-color: var(--aes-accent); background: var(--aes-surface-2); }
.aes-drop__t { font-weight: 600; font-size: 14px; word-break: break-word; }
.aes-drop__bar { display: none; width: 100%; max-width: 360px; height: 6px; border-radius: 999px; background: var(--aes-surface-2); overflow: hidden; }
.aes-drop__bar i { display: block; height: 100%; width: 0; background: var(--aes-accent); transition: width .2s; }
.aes-drop.is-busy .aes-drop__bar, .aes-drop.is-done .aes-drop__bar { display: block; }
.aes-drop.is-done { border-style: solid; border-color: #22c55e; }
.aes-drop.is-err { border-color: #ef4444; }
.aes-drop.is-err .aes-drop__t { color: #ef4444; }

/* notification bell */
.aes-bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; vertical-align: middle; }
.aes-bell:hover { background: var(--aes-surface-2); }
.aes-bell__n { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font: 700 11px/18px system-ui, sans-serif; text-align: center; }
.aes-notes { position: fixed; z-index: 2147482500; width: min(360px, calc(100vw - 16px)); max-height: min(70vh, 520px); overflow: auto; background: var(--aes-surface); color: var(--aes-text); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.45); border: 1px solid var(--aes-line); }
.aes-notes__hd { padding: 12px 14px; font-weight: 700; border-bottom: 1px solid var(--aes-line); }
.aes-notes__empty { padding: 18px 14px; margin: 0; color: var(--aes-muted); }
.aes-note { display: flex; gap: 10px; align-items: center; padding: 10px 14px; text-decoration: none; color: inherit; font-size: 14px; line-height: 1.35; }
.aes-note + .aes-note { border-top: 1px solid var(--aes-line); }
.aes-note.is-new { background: var(--aes-surface-2); }
.aes-note img { width: 64px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex: none; }
.aes-note small { color: var(--aes-muted); }

/* search suggestions */
.aes-sg-form { position: relative; }
.aes-sg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 2147482400; max-height: min(70vh, 520px); overflow: auto; background: var(--aes-surface); color: var(--aes-text); border: 1px solid var(--aes-line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.45); padding: 6px; text-align: left; }
.aes-sg a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 14px; }
.aes-sg a:hover, .aes-sg a:focus { background: var(--aes-surface-2); outline: none; }
.aes-sg__t span { font-weight: 600; flex: 1; }
.aes-sg small { color: var(--aes-muted); font-size: 12px; white-space: nowrap; }
.aes-sg__h { padding: 8px 10px 4px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--aes-muted); }
.aes-sg__v img { width: 72px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex: none; }
.aes-sg__v span { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
/* filters + related searches */
.aes-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.aes-filter { position: relative; }
.aes-filter > summary { list-style: none; cursor: pointer; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--aes-line); font-size: 14px; font-weight: 600; }
.aes-filter > summary::-webkit-details-marker { display: none; }
.aes-filter > summary::after { content: ' \25BE'; opacity: .6; }
.aes-filter.is-on > summary { background: var(--aes-accent); border-color: var(--aes-accent); color: var(--aes-on-accent); }
.aes-filter__menu { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; min-width: 170px; padding: 6px; background: var(--aes-surface); border: 1px solid var(--aes-line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.4); display: grid; }
.aes-filter__menu a { padding: 8px 10px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 14px; }
.aes-filter__menu a:hover, .aes-filter__menu a[aria-current] { background: var(--aes-surface-2); }
.aes-popular-searches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0; }
.aes-popular-searches span { font-weight: 700; font-size: 14px; margin-right: 4px; }
.aes-popular-searches a { padding: 6px 12px; border-radius: 999px; background: var(--aes-surface-2); color: inherit; text-decoration: none; font-size: 13.5px; }
.aes-popular-searches a:hover { background: var(--aes-accent); color: var(--aes-on-accent); }
.aes-related-searches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 16px; }
.aes-related-searches span { font-weight: 700; font-size: 14px; margin-right: 4px; }
.aes-related-searches a { padding: 6px 12px; border-radius: 999px; background: var(--aes-surface-2); color: inherit; text-decoration: none; font-size: 13.5px; }

/* daily limit reached (Access) */
.aes-player__limit { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; gap: 14px; padding: 20px; text-align: center; background: rgba(8,8,12,.82); color: #fff; }
.aes-player__limit p { margin: 0; max-width: 420px; font-weight: 600; }
.aes-player__limit .aes-btn { justify-self: center; }

/* player tools: theater + next */
.aes-ptools { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.aes-ptool { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--aes-line); background: transparent; color: inherit; font: 600 13.5px/1 system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.aes-ptool[aria-pressed="true"] { background: var(--aes-accent); border-color: var(--aes-accent); color: var(--aes-on-accent); }
.aes-ptool[data-aes-next] { margin-left: auto; }
.aes-autonext { position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; gap: 12px; justify-items: center; background: rgba(8,8,12,.8); color: #fff; }
.aes-autonext p { margin: 0; font-weight: 700; }

/* two-step login panel */
.aes-2fa { display: grid; gap: 10px; }
.aes-2fa p { margin: 0; }
.aes-2fa__qr { width: 200px; height: 200px; background: #fff; padding: 6px; border-radius: 8px; }
.aes-2fa__qr svg { width: 100%; height: 100%; }
.aes-2fa__secret { display: inline-block; font-size: 15px; letter-spacing: .08em; word-break: break-all; }
.aes-2fa__code { max-width: 140px; }
.aes-2fa__codes { padding: 10px 12px; border-radius: 8px; background: var(--aes-surface-2); font-size: 15px; line-height: 1.6; }
.aes-2fa__ok { color: var(--good, #22c55e); font-weight: 700; }
.aes-2fa__err { color: #ef4444; }

/* language menu + offer */
.aes-lang { position: relative; display: inline-block; vertical-align: middle; }
.aes-lang > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 999px; font: 700 12.5px/1 system-ui, sans-serif; }
.aes-lang > summary::-webkit-details-marker { display: none; }
.aes-lang > summary:hover { background: var(--aes-surface-2); }
.aes-lang__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 2147482300; min-width: 180px; max-height: 60vh; overflow: auto; padding: 6px; background: var(--aes-surface); color: var(--aes-text); border: 1px solid var(--aes-line); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.45); display: grid; }
.aes-lang__menu a { padding: 8px 10px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 14px; }
.aes-lang__menu a:hover, .aes-lang__menu a[aria-current] { background: var(--aes-surface-2); }
.aes-lang__menu a[aria-current] { font-weight: 700; }
.aes-lang-offer { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2147481900; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--aes-surface); color: var(--aes-text); border: 1px solid var(--aes-line); box-shadow: 0 10px 28px rgba(0,0,0,.45); font: 600 14px/1 system-ui, sans-serif; }
.aes-lang-offer a { color: inherit; text-decoration: none; padding: 6px 4px; }
.aes-lang-offer button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--aes-surface-2); color: inherit; cursor: pointer; font-size: 18px; line-height: 1; }
html.aes-translating body { cursor: progress; }

.aes-embedbox { flex: 1 1 100%; display: flex; gap: 8px; align-items: stretch; margin-top: 4px; }
.aes-embedbox textarea { flex: 1; min-width: 0; resize: none; border-radius: 8px; border: 1px solid var(--aes-surface-2, #333); background: var(--aes-surface-2, #1b1b22); color: inherit; font: 12px/1.4 ui-monospace, Menlo, monospace; padding: 8px; }
.aes-embedbox[hidden] { display: none; }
@media (max-width: 600px) { .aes-embedbox { flex-direction: column; } }

/* timeline previews (own files) */
.aes-tl { position: absolute; z-index: 30; width: 160px; pointer-events: none; border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 6px 24px rgba(0,0,0,.5); border: 2px solid rgba(255,255,255,.9); }
.aes-tl canvas, .aes-tl img { display: block; width: 160px; height: 90px; object-fit: cover; }
.aes-tl span { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.75); color: #fff; font: 600 12px/1.4 system-ui, sans-serif; }
.aes-tl[hidden] { display: none; }

/* 360 / VR player (assets/vr.js) */
.aes-vr { position: absolute; inset: 0; background: #000; }
.aes-vr__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.aes-vr__canvas:active { cursor: grabbing; }
.aes-vr__hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font: 600 13px/1.3 system-ui, sans-serif; pointer-events: none; }
.aes-vr__hint[hidden] { display: none; }
.aes-vr__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.aes-vr__btn { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; display: grid; place-items: center; }
.aes-vr__btn::before { content: ''; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.aes-vr__btn.is-on::before { width: 10px; height: 13px; border: 0; margin: 0; background: linear-gradient(90deg, #fff 35%, transparent 35% 65%, #fff 65%); }
.aes-vr__fs::before { width: 13px; height: 13px; border: 2px solid #fff; border-radius: 2px; margin: 0; background: none; }
.aes-vr__seek { flex: 1; min-width: 0; accent-color: var(--aes-accent); }
.aes-badge-vr { position: absolute; left: 6px; bottom: 6px; z-index: 1; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.78); color: #fff; font: 800 11px/1.5 system-ui, sans-serif; letter-spacing: .04em; }

/* ---- Series (2026-10-16): series name, "Episode 3 of 8", previous / next, the episode row ---- */
.aes-series { margin: 16px 0; padding: 14px; border: 1px solid var(--aes-line); border-radius: var(--aes-radius); contain: inline-size; }   /* the scrolling episode row must not widen the page */
.aes-series__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 0 12px; }
.aes-series__name { font-weight: 700; font-size: 16px; color: inherit; text-decoration: none; }
.aes-series__name:hover { color: var(--aes-accent); }
.aes-series__pos { font-size: 13px; color: var(--aes-muted); font-variant-numeric: tabular-nums; }
.aes-series__navs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.aes-series__nav { display: grid; gap: 2px; min-width: 0; padding: 9px 12px; border: 1px solid var(--aes-line); border-radius: var(--aes-radius); color: inherit; text-decoration: none; }
.aes-series__nav.is-next { text-align: right; }
.aes-series__nav.is-none { border-style: dashed; opacity: .4; }
.aes-series__nav:not(.is-none):hover { border-color: var(--aes-accent); }
.aes-series__nav small { font-size: 12px; color: var(--aes-muted); }
.aes-series__nav span { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aes-series__list { display: grid; grid-auto-flow: column; grid-auto-columns: 160px; gap: 10px; margin: 0; padding: 0 0 4px; list-style: none; position: relative; overflow-x: auto; scroll-snap-type: x proximity; }
.aes-series__list li { scroll-snap-align: start; min-width: 0; }
.aes-series__list a { display: grid; gap: 6px; color: inherit; text-decoration: none; }
.aes-series__img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: calc(var(--aes-radius) * .7); overflow: hidden; background: var(--aes-line); }
.aes-series__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aes-series__img b { position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; }
.aes-series__list .is-on .aes-series__img { outline: 2px solid var(--aes-accent); outline-offset: -2px; }
.aes-series__list .is-on .aes-series__img b { background: var(--aes-accent); color: var(--aes-on-accent); }
.aes-series__t { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aes-series__list .is-on .aes-series__t { font-weight: 600; }
@media (max-width: 600px) { .aes-series { padding: 12px; } .aes-series__list { grid-auto-columns: 132px; } }

/* ---- Comments (2026-10-16): sort tabs, like button, replies indented ---- */
.aes-csort { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.aes-csort a { padding: 5px 12px; border: 1px solid var(--aes-line); border-radius: 999px; color: inherit; font-size: 13px; text-decoration: none; line-height: 1.4; }
.aes-csort a:hover { border-color: currentColor; }
.aes-csort a.is-on { background: var(--aes-accent); border-color: var(--aes-accent); color: var(--aes-on-accent); }
.aes-clike { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; margin: 6px 0 0; padding: 4px 10px; border: 1px solid var(--aes-line); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 13px; line-height: 1; cursor: pointer; }
.aes-clike svg { flex: none; }
.reply .aes-clike, .comment-reply .aes-clike { margin: 0 8px 0 0; vertical-align: middle; }   /* next to Reply */
.aes-clike:hover { border-color: currentColor; }
.aes-clike[aria-pressed="true"] { border-color: var(--aes-accent); color: var(--aes-accent); }
.aes-clike[aria-pressed="true"] svg { fill: currentColor; fill-opacity: .18; }

/* ---- Help requests (2026-10-16): the member's list, one thread, the forms ---- */
.aes-tk__list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.aes-tk__list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--aes-line); border-radius: var(--aes-radius); color: inherit; text-decoration: none; }
.aes-tk__list a:hover { border-color: currentColor; }
.aes-tk__list small { grid-column: 1 / -1; color: var(--aes-muted); font-size: 12px; }
.aes-tk__subj { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aes-tk__state { justify-self: end; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; border: 1px solid var(--aes-line); }
.aes-tk__state.is-answered { background: var(--aes-accent); border-color: var(--aes-accent); color: var(--aes-on-accent); }
.aes-tk__state.is-closed { color: var(--aes-muted); }
.aes-tk__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.aes-tk__head h3, .aes-tk__head h2 { margin: 0; }
.aes-tk__meta { margin: 10px 0 14px; color: var(--aes-muted); font-size: 13px; }
.aes-tk__back { margin: 0 0 10px; font-size: 14px; }
.aes-tk__thread { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.aes-tk__thread li { padding: 12px 14px; border: 1px solid var(--aes-line); border-radius: var(--aes-radius); }
.aes-tk__thread li.is-staff { border-left: 3px solid var(--aes-accent); }
.aes-tk__who { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0 0 6px; font-size: 14px; }
.aes-tk__who time { color: var(--aes-muted); font-size: 12px; }
.aes-tk__body p { margin: 0 0 8px; overflow-wrap: anywhere; } .aes-tk__body p:last-child { margin: 0; }
.aes-tk__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.aes-tk__new { margin: 8px 0 12px; }
.aes-form__note { margin: 0; color: var(--aes-muted); font-size: 13px; }

/* ---- Points (2026-10-16): level chip, the Points tab, the leaderboard ---- */
.aes-lvl { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--aes-line); font-size: 11px; font-weight: 700; line-height: 1.5; vertical-align: 1px; white-space: nowrap; }
.aes-lvl--2 { border-color: var(--aes-accent); }   /* text keeps the page colour: a light accent would be unreadable as text */
.aes-lvl--3, .aes-lvl--4, .aes-lvl--5, .aes-lvl--6 { background: var(--aes-accent); border-color: var(--aes-accent); color: var(--aes-on-accent); }
.aes-pts__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 10px; }
.aes-pts__num { font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.aes-pts__lbl { color: var(--aes-muted); }
.aes-pts__top .aes-lvl { margin-left: 4px; align-self: center; }
.aes-pts__bar { height: 8px; max-width: 420px; border-radius: 999px; background: var(--aes-line); overflow: hidden; }
.aes-pts__bar span { display: block; height: 100%; background: var(--aes-accent); }
.aes-pts__next { margin: 6px 0 18px; color: var(--aes-muted); font-size: 13px; }
.aes-pts h3 { margin: 18px 0 8px; font-size: 16px; }
.aes-pts__earn, .aes-pts__log { list-style: none; margin: 0; padding: 0; max-width: 520px; }
.aes-pts__earn li, .aes-pts__log li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--aes-line); font-size: 14px; }
.aes-pts__earn li span, .aes-pts__log li span { flex: 1; min-width: 0; }
.aes-pts__log time { color: var(--aes-muted); font-size: 12px; white-space: nowrap; }
.aes-pts__earn b, .aes-pts__log b { font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }
.aes-pts__log b.is-neg { color: var(--aes-muted); }
.aes-pts__redeem { grid-template-columns: 120px auto; align-items: end; }
.aes-board { list-style: none; margin: 0; padding: 0; max-width: 560px; }
.aes-board li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--aes-line); }
.aes-board li.is-me { background: rgba(127, 127, 127, .1); border-radius: var(--aes-radius); }
.aes-board__n { width: 26px; flex: none; text-align: center; font-weight: 800; color: var(--aes-muted); font-variant-numeric: tabular-nums; }
.aes-board li:nth-child(-n+3) .aes-board__n { color: var(--aes-accent); }
.aes-board img { flex: none; width: 32px; height: 32px; border-radius: 50%; }
.aes-board__who { flex: 1; min-width: 0; display: grid; }
.aes-board__who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aes-board__who small { color: var(--aes-muted); font-size: 12px; }
.aes-board__pts { font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---- Log in with other accounts ---- */
.aes-oauth { display: grid; gap: 10px; margin: 16px 0 0; max-width: 520px; }
.aes-oauth__or { display: flex; align-items: center; gap: 10px; color: var(--aes-muted); font-size: 13px; }
.aes-oauth__or::before, .aes-oauth__or::after { content: ''; flex: 1; height: 1px; background: var(--aes-line); }
.aes-oauth__btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.aes-oauth__btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--aes-line); color: inherit; font-weight: 600; font-size: 14px; text-decoration: none; }
.aes-oauth__btn:hover { box-shadow: inset 0 0 0 1px currentColor; }
.aes-oauth__btn svg { flex: none; }
.aes-oauth__btn--discord svg { color: #5865f2; }
.aes-oauth__btn--reddit svg { color: #ff4500; }
.aes-form input[type=checkbox], .aes-form input[type=radio] { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--aes-accent); }   /* not the browser's default blue */
.aes-oauth__title { margin: 0; font-size: 20px; }

/* ---- Advertise page (2026-10-16): balance, the advertiser's ads, the new-ad form ---- */
.aes-adv-portal { max-width: 760px; }
.aes-adv__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--aes-line); border-radius: var(--aes-radius); }
.aes-adv__lbl { display: block; color: var(--aes-muted); font-size: 13px; }
.aes-adv__bal { font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.aes-adv__bal.is-empty { color: var(--aes-muted); }
.aes-adv__fund { position: relative; }
.aes-adv__fund summary { list-style: none; cursor: pointer; }
.aes-adv__fund summary::-webkit-details-marker { display: none; }
.aes-adv__fund[open] > div { margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--aes-line); border-radius: var(--aes-radius); font-size: 14px; max-width: 360px; }
.aes-adv__fund[open] > div p { margin: 0 0 6px; } .aes-adv__fund[open] > div p:last-child { margin: 0; }
.aes-adv__list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.aes-adv__list > li { display: grid; grid-template-columns: 160px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--aes-line); border-radius: var(--aes-radius); }
.aes-adv__img img { display: block; width: 100%; height: auto; border-radius: calc(var(--aes-radius) * .6); }
.aes-adv__info { display: grid; gap: 6px; align-content: start; min-width: 0; }
.aes-adv__info b { overflow-wrap: anywhere; }
.aes-adv__state { justify-self: start; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--aes-line); }
.aes-adv__state.is-running { background: var(--aes-accent); color: var(--aes-on-accent); box-shadow: none; }
.aes-adv__state.is-rejected, .aes-adv__state.is-empty { color: var(--aes-muted); }
.aes-adv__info dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 4px 0 0; }
.aes-adv__info dl div { min-width: 0; }
.aes-adv__info dt { color: var(--aes-muted); font-size: 12px; }
.aes-adv__info dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.aes-adv__bid { margin: 0; color: var(--aes-muted); font-size: 13px; }
.aes-adv__toggle { margin: 4px 0 0; }
.aes-adv__toggle .aes-btn { padding: 8px 16px; font-size: 14px; }
.aes-adv__price { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.aes-adv__price select, .aes-adv__price input { height: 46px; }
@media (max-width: 600px) { .aes-adv__list > li { grid-template-columns: minmax(0, 1fr); } .aes-adv__info dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aes-adv__price { grid-template-columns: minmax(0, 1fr); } }
a.aes-adv { display: inline-block; max-width: 100%; } a.aes-adv img { display: block; max-width: 100%; height: auto; }
.aes-adv-portal > .aes-form__note { margin-top: 14px; } .aes-form__note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
