/*
 * animeunity-v2 — the community area (board, post, create / edit, La mia zona, Super X).
 *
 * animeunity.cx has no community: these CMS screens are designed in its vocabulary on
 * top of the shared kit (css/v2-member.css §0, pushed first by every community page):
 * the home's two columns (`2md:grid-cols-[7fr_3fr] 2md:gap-10`), its section headings
 * (bar + `text-lg font-black tracking-wide`), `bg-fore-800 rounded-md` cards, the
 * Giorno / Settimana / Mese pill tabs, the sidebar's ranked rows (Bebas Neue rank),
 * top-anime's rounded-full pills, the auth card for dialogs.
 *
 * Class names: `v2-cy-*` are the area's own; `cm-*`, `tl-*`, `poll-*`, `cp-*`, `mz-*`,
 * `lp-btn-vote`, `wv-*`, `post-list`, `pin-group`, `item` are community.min.js hooks
 * (kept exactly); `au-cy-c-<colour>` is printed by App\Support\AnimeunityCommunity::color().
 * Tokens only — dark and light come free; fixed colours are topic / tier accents.
 *
 *   1. Primitives: layout, head + tabs, box, rows, avatars, chips, ranks, actions, menus, dialogs
 *   2. Board: toolbar, pinned bar, post card, teaser, pager
 *   3. Post: article, byline, text, actions, comments (the shared widget, dressed here)
 *   4. Post formats: poll, matchup, tier list, seasonal, recommendation
 *   5. Create / edit: form, topic chips, toolbar, builders, search dialog
 *   6. La mia zona
 *   7. Super X
 */

/* ── 1. Primitives ─────────────────────────────────────────────────────── */

.v2-cy { overflow-wrap: break-word; }
.v2-cy-ic { display: inline-block; flex: 0 0 auto; vertical-align: -.2em; }
/* The kit's `.v2-page a.v2-btn` outranks its own size / tone modifiers on links: restated for them. */
.v2-page a.v2-btn.v2-btn--sm { height: 2rem; padding: 0 .625rem; font-size: .75rem; font-weight: 700; gap: .375rem; }
.v2-page a.v2-btn.v2-btn--xs { height: 1.625rem; padding: 0 .5rem; font-size: .6875rem; font-weight: 700; gap: .3rem; border-radius: .3125rem; }
.v2-page a.v2-btn.v2-btn--ghost { color: rgb(var(--tw-text-300)); background: rgb(var(--tw-fore-700)); box-shadow: none; }
.v2-page .v2-cy-box-body a.v2-btn.v2-btn--ghost, .v2-page .v2-cy-side a.v2-btn.v2-btn--ghost, .v2-cy-box-body .v2-btn.v2-btn--ghost, .v2-cy-side .v2-btn.v2-btn--ghost { background: rgb(var(--tw-fore-600)); }
.v2-page a.v2-btn.v2-btn--ghost:hover { color: rgb(var(--tw-text-100)); }
.v2-cy .v2-btn.v2-btn--ghost.active { color: rgb(var(--tw-blue-200)); }

/* The home's two columns. */
.v2-cy-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 900px) { .v2-cy-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 2.5rem; } }
.v2-cy-aside { align-self: start; }

/* Page head: h1.v2-h + the pill tab group. */
.v2-cy-strip { padding-bottom: 1.5rem; }
.v2-cy-strip-nav { max-width: 100%; }
.v2-cy-strip-lead { flex: 0 0 100%; font-size: .8125rem; color: rgb(var(--tw-text-300)); }
.v2-cy-strip-lead strong { color: rgb(var(--tw-text-100)); }

/* Pill tabs (`ul.nav.v2-cy-tabs > li.nav-item > a.nav-link[.active]`) = the home's
   Giorno / Settimana / Mese group; the Bootstrap tab plugin and community.min.js
   (`#post-sort .dropdown-item`) move `.active`. Never `.tabs`. */
.v2-page .v2-cy-tabs { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: .125rem; max-width: 100%; height: 1.75rem; margin: 0; padding: .125rem; overflow-x: auto; scrollbar-width: none; list-style: none; font-size: .75rem; line-height: 1rem; font-weight: 700; background: rgb(var(--tw-fore-800)); border: 1px solid rgb(var(--tw-fore-600)); border-radius: .375rem; }
.v2-cy-tabs::-webkit-scrollbar { display: none; }
.v2-cy-tabs .nav-item { flex: 0 0 auto; height: 100%; }
.v2-page .v2-cy-tabs .nav-link, .v2-page .v2-cy-tabs .nav-link.dropdown-item { display: flex; align-items: center; width: auto; height: 100%; padding: 0 .5rem; font-weight: 700; white-space: nowrap; color: rgb(var(--tw-text-300)); background: transparent; border: 0; border-radius: .25rem; cursor: pointer; transition: color .2s, background-color .2s; }
.v2-page .v2-cy-tabs .nav-link:hover { color: rgb(var(--tw-text-100)); background: transparent; }
.v2-page .v2-cy-tabs .nav-link.active, .v2-page .v2-cy-tabs .nav-link.dropdown-item.active { color: #fff; background: rgb(var(--tw-blue-300)); }
@media (min-width: 800px) {
    .v2-page .v2-cy-tabs { height: 2rem; font-size: .875rem; }
    .v2-page .v2-cy-tabs .nav-link, .v2-page .v2-cy-tabs .nav-link.dropdown-item { padding: 0 .625rem; }
}
.v2-cy-box .v2-cy-tabs { background: rgb(var(--tw-fore-700)); }
.v2-page .v2-cy-tabs.v2-cy-tabs-sm { height: 1.75rem; font-size: .75rem; }

/* Box = a home section: the heading on the page, then the fore-800 card. */
.v2-cy-box + .v2-cy-box, .v2-cy-box + .v2-cy-side, .v2-cy-side + .v2-cy-box, .v2-cy-box + .v2-cy-comments { margin-top: 2rem; }
.v2-cy-box-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .75rem; min-height: 3rem; padding-bottom: 1rem; }
.v2-cy-box-head .title, .v2-page .v2-cy-box-head a.title { display: flex; align-items: center; gap: .5rem; font-size: 1.125rem; line-height: 1.75rem; font-weight: 900; letter-spacing: .025em; text-transform: uppercase; color: rgb(var(--tw-text-100)); }
.v2-cy-box-head .title::before { content: ""; flex: 0 0 auto; width: .25rem; height: 1.25rem; background: rgb(var(--tw-text-100)); border-radius: 9999px; }
.v2-page .v2-cy-box-head a.title:hover { color: rgb(var(--tw-blue-100)); }
.v2-cy-box-acts { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; font-size: .75rem; font-weight: 700; color: rgb(var(--tw-text-300)); }
.v2-page .v2-cy-box-acts a:not(.v2-btn) { display: inline-flex; align-items: center; gap: .3rem; color: rgb(var(--tw-text-300)); transition: color .2s; }
.v2-page .v2-cy-box-acts a:not(.v2-btn):hover { color: rgb(var(--tw-text-100)); }
.v2-cy-box-body { padding: 1rem; background: rgb(var(--tw-fore-800)); border-radius: .375rem; }
@media (min-width: 800px) { .v2-cy-box-body { padding: 1.25rem; } }

/* Info note card. */
.v2-cy-side { padding: 1rem 1.25rem; font-size: .8125rem; line-height: 1.5; color: rgb(var(--tw-text-300)); background: rgb(var(--tw-fore-800)); border-radius: .375rem; }
.v2-cy-side strong { color: rgb(var(--tw-text-100)); }
.v2-page .v2-cy-side a:not(.v2-btn):not(.v2-cy-card-name) { font-weight: 700; color: rgb(var(--tw-blue-200)); }
.v2-page .v2-cy-side a:not(.v2-btn):not(.v2-cy-card-name):hover { text-decoration: underline; }

/* Vertical list nav (topics). */
.v2-cy-search { margin-bottom: .75rem; }
.v2-cy-search input::-webkit-search-cancel-button { filter: grayscale(1); }
.v2-cy-searchform { margin: 0; }
.v2-cy-nav { display: flex; flex-direction: column; gap: .125rem; }
.v2-cy-navitem, .v2-page a.v2-cy-navitem { display: flex; align-items: center; gap: .5rem; padding: .5rem .625rem; font-size: .875rem; line-height: 1.25; font-weight: 600; color: rgb(var(--tw-text-200)); border-radius: .375rem; transition: color .2s, background-color .2s; }
.v2-page a.v2-cy-navitem:hover { color: rgb(var(--tw-blue-100)); background: rgb(var(--tw-fore-700)); }
.v2-page a.v2-cy-navitem.active { color: #fff; background: rgb(var(--tw-blue-300)); }
.v2-cy-navitem .v2-cy-count { margin-left: auto; font-size: .75rem; font-weight: 700; color: rgb(var(--tw-text-300)); }
.v2-cy-navitem.active .v2-cy-count { color: rgb(255 255 255 / .8); }

/* Rows: media left, title + info, value right. */
.v2-cy-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .625rem; padding: .5rem 0; color: rgb(var(--tw-text-300)); border-bottom: 1px solid rgb(var(--tw-fore-600)); }
.v2-cy-row:first-child { padding-top: 0; }
.v2-cy-row:last-child { padding-bottom: 0; border-bottom: 0; }
.v2-cy-row.v2-cy-row-2 { grid-template-columns: minmax(0, 1fr) auto; }
.v2-cy-row-main { min-width: 0; line-height: 1.25; }
.v2-cy-row-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; font-weight: 600; color: rgb(var(--tw-text-100)); transition: color .2s; }
.v2-page a.v2-cy-row-title:hover, .v2-page a:hover > .v2-cy-row-title { color: rgb(var(--tw-blue-100)); }
.v2-cy-row-info { display: block; margin-top: .2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .6875rem; font-weight: 600; color: rgb(var(--tw-text-300)); }
.v2-page .v2-cy-row-info a:hover { color: rgb(var(--tw-blue-100)); }
.v2-cy-row-val { font-size: .75rem; font-weight: 700; white-space: nowrap; text-align: right; color: rgb(var(--tw-text-100)); }
.v2-cy-row-val small { display: inline-flex; align-items: center; gap: .25rem; font-size: .6875rem; font-weight: 600; color: rgb(var(--tw-text-300)); }
.v2-cy-row-media { display: flex; align-items: center; gap: .5rem; }
/* The rank: the home's Top Anime numerals (Bebas Neue; gold, silver, bronze). */
.v2-cy-rank-n { display: inline-block; width: 1.75rem; font-family: var(--font-bebas), "Bebas Neue", sans-serif; font-size: 1.75rem; font-weight: 400; line-height: 1; text-align: center; color: rgb(var(--tw-text-300)); }
.v2-cy-row:nth-child(1) > .v2-cy-rank-n.is-top, .v2-cy-row:nth-child(1) .v2-cy-row-media > .v2-cy-rank-n.is-top { color: #ffd700; }
.v2-cy-row:nth-child(2) > .v2-cy-rank-n.is-top, .v2-cy-row:nth-child(2) .v2-cy-row-media > .v2-cy-rank-n.is-top { color: #c0c0c0; }
.v2-cy-row:nth-child(3) > .v2-cy-rank-n.is-top, .v2-cy-row:nth-child(3) .v2-cy-row-media > .v2-cy-rank-n.is-top { color: #cd7f32; }
.v2-cy-poster-xs { display: block; width: 32px; height: 45px; object-fit: cover; background: rgb(var(--tw-fore-700)); border-radius: .25rem; }

/* Avatars. */
.v2-cy-av { display: inline-block; flex: 0 0 auto; width: 32px; height: 32px; object-fit: cover; vertical-align: middle; background: rgb(var(--tw-fore-600)); border-radius: 9999px; }
.v2-cy-av.v2-cy-av-20 { width: 20px; height: 20px; }
.v2-cy-av.v2-cy-av-40 { width: 40px; height: 40px; }
.v2-cy-av.v2-cy-av-100 { width: 100px; height: 100px; }

/* Topic chip = top-anime's rounded-full pill on the topic colour. */
.au-cy-c-blue, .v2-cy-c-blue { --v2-cy: #3480ea; }
.au-cy-c-sky, .v2-cy-c-sky { --v2-cy: rgb(var(--tw-blue-200)); }
.au-cy-c-cyan, .v2-cy-c-cyan { --v2-cy: #17a2b8; }
.au-cy-c-teal, .v2-cy-c-teal { --v2-cy: #20c997; }
.au-cy-c-green, .v2-cy-c-green { --v2-cy: rgb(var(--tw-green-200)); }
.au-cy-c-lime, .v2-cy-c-lime { --v2-cy: #8bc34a; }
.au-cy-c-yellow, .v2-cy-c-yellow { --v2-cy: #e3c000; }
.au-cy-c-amber, .v2-cy-c-amber { --v2-cy: #ffc107; }
.au-cy-c-orange, .v2-cy-c-orange { --v2-cy: #f2870d; }
.au-cy-c-coral, .v2-cy-c-coral { --v2-cy: #ff7043; }
.au-cy-c-red, .v2-cy-c-red { --v2-cy: #c4213f; }
.au-cy-c-pink, .v2-cy-c-pink { --v2-cy: #e83e8c; }
.au-cy-c-purple, .v2-cy-c-purple { --v2-cy: #9256f3; }
.au-cy-c-white, .au-cy-c-gray, .v2-cy-c-white, .v2-cy-c-gray { --v2-cy: #6c757d; }
.v2-cy-chip, .v2-page a.v2-cy-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .125rem .5rem; font-size: .6875rem; line-height: 1rem; font-weight: 700; white-space: nowrap; color: #fff; background: var(--v2-cy, #6c757d); border-radius: 9999px; }
.v2-cy-chip.au-cy-c-yellow, .v2-cy-chip.au-cy-c-amber, .v2-cy-chip.au-cy-c-lime, .v2-page a.v2-cy-chip.au-cy-c-yellow, .v2-page a.v2-cy-chip.au-cy-c-amber, .v2-page a.v2-cy-chip.au-cy-c-lime { color: #11161d; }
.v2-page a.v2-cy-chip:hover { opacity: .85; }
.v2-cy-dot { display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; background: var(--v2-cy, #6c757d); border-radius: 9999px; }

/* Rank label beside a name; staff names orange. */
.v2-cy-rank { display: inline-flex; align-items: center; height: 1.125rem; padding: 0 .375rem; font-size: .625rem; font-weight: 700; letter-spacing: .03rem; text-transform: uppercase; white-space: nowrap; color: rgb(var(--tw-text-300)); background: rgb(var(--tw-fore-600)); border-radius: .25rem; }
.v2-cy-name, .v2-page a.v2-cy-name { display: inline-flex; align-items: center; font-weight: 700; color: rgb(var(--tw-text-100)); }
.v2-page a.v2-cy-name:hover { color: rgb(var(--tw-blue-100)); }
.v2-page a.v2-cy-name.is-level-d, .v2-cy-name.is-level-d, .is-level-d > .v2-cy-name { color: #f2870d; }
.v2-cy-name .badg-level, .v2-cy-row .badg-level { width: 14px; height: 14px; min-width: 14px; min-height: 14px; margin-right: 3px; }
.v2-cy-name .badg-aura { width: 20px; height: 20px; margin-right: 3px; }

/* Text action, pill button, block "more" button. */
.v2-cy-act, .v2-page a.v2-cy-act, .v2-dialog a.v2-cy-act { display: inline-flex; align-items: center; gap: .375rem; height: 1.75rem; padding: 0 .5rem; font-size: .75rem; line-height: 1; font-weight: 700; white-space: nowrap; color: rgb(var(--tw-text-300)); background: none; border: 0; border-radius: .375rem; cursor: pointer; transition: color .2s, background-color .2s; }
.v2-cy-act:hover, .v2-page a.v2-cy-act:hover, .v2-dialog a.v2-cy-act:hover, .v2-cy-act:focus-visible { color: rgb(var(--tw-text-100)); background: rgb(var(--tw-fore-700)); outline: 0; }
.v2-cy-act.active, .v2-page a.v2-cy-act.active { color: rgb(var(--tw-blue-200)); }
.v2-page a.v2-cy-act.v2-cy-danger:hover { color: #ef4444; }
.v2-cy-pill, .v2-page a.v2-cy-pill { display: inline-flex; align-items: center; gap: .375rem; height: 2rem; padding: 0 .75rem; font-family: Overpass, sans-serif; font-size: .8125rem; line-height: 1; font-weight: 700; white-space: nowrap; color: rgb(var(--tw-text-200)); background: rgb(var(--tw-fore-700)); border: 0; border-radius: .375rem; cursor: pointer; transition: color .2s, background-color .2s; }
.v2-cy-pill:hover, .v2-page a.v2-cy-pill:hover { color: rgb(var(--tw-text-100)); background: rgb(var(--tw-fore-600)); }
.v2-cy-pill.active, .v2-cy-pill.is-active, .v2-cy-pill.is-on { color: #fff; background: rgb(var(--tw-blue-300)); }
.v2-dialog .v2-cy-pill { background: rgb(var(--tw-fore-600)); }
.v2-dialog .v2-cy-pill:hover { background: rgb(var(--tw-fore-500)); }
.v2-cy-more, .v2-page a.v2-cy-more { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; height: 2.5rem; margin-top: .75rem; padding: 0 1rem; font-family: Overpass, sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .06rem; text-transform: uppercase; color: rgb(var(--tw-text-300)); background: rgb(var(--tw-fore-700)); border: 0; border-radius: .375rem; cursor: pointer; transition: color .2s; }
.v2-cy-more:hover, .v2-page a.v2-cy-more:hover { color: rgb(var(--tw-text-100)); }
.v2-cy-danger, .v2-page a.v2-cy-danger { color: #ef4444; }

/* In-page dropdown (main.js's plugin: the menu is the toggle's sibling) — the bridge's panel. */
.v2-cy .dropdown { position: relative; }
.v2-cy-dd.dropdown-menu { z-index: 50; margin-top: .375rem; border: 1px solid rgb(var(--tw-fore-600)); }
.v2-page .v2-cy-dd a.dropdown-item { display: flex; align-items: center; padding: .5rem 1rem; font-size: .8125rem; font-weight: 600; white-space: nowrap; color: rgb(var(--tw-text-200)); cursor: pointer; }
.v2-page .v2-cy-dd a.dropdown-item:hover { color: rgb(var(--tw-blue-100)); background: rgb(var(--tw-fore-700)); }
.v2-page .v2-cy-dd a.dropdown-item.active { color: #fff; background: rgb(var(--tw-blue-300)); }
.v2-page .v2-cy-dd a.dropdown-item.v2-cy-danger, .v2-page .v2-cy-dd a.dropdown-item.v2-cy-danger:hover { color: #ef4444; }

/* Dialogs (kit `.v2-dialog`) — the area's footers; the engine-built search dialog is §5. */
.v2-cy-modal .v2-dialog { text-align: left; }
.v2-cy-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; margin-top: 1.25rem; }
.v2-cy-foot-right { margin-left: auto; }
.v2-cy-mana-note { display: flex; align-items: center; gap: .375rem; margin-top: .875rem; }
.v2-cy-mana-note .v2-cy-ic { color: rgb(var(--tw-blue-200)); }

/* Empty state, loading line, note line. */
.v2-cy-empty { margin: 0; padding: .75rem 0; font-size: .875rem; line-height: 1.5; text-align: center; color: rgb(var(--tw-text-300)); }
.v2-cy-board .post-list > .v2-cy-empty { padding: 1.75rem 1rem; background: rgb(var(--tw-fore-800)); border-radius: .375rem; }
.v2-page .v2-cy-empty a { font-weight: 700; color: rgb(var(--tw-blue-200)); }
.v2-cy-loading { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem 0; font-size: .8125rem; font-weight: 600; color: rgb(var(--tw-text-300)); }
.v2-cy-foot .v2-cy-loading { padding: 0; }
.v2-cy-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgb(var(--tw-fore-500)); border-top-color: rgb(var(--tw-blue-300)); border-radius: 9999px; animation: v2-spin .8s linear infinite; }
.v2-cy-note-line { margin: .875rem 0 0; padding: .625rem .875rem; font-size: .75rem; color: rgb(var(--tw-text-300)); background: rgb(var(--tw-fore-700)); border-left: 3px solid rgb(var(--tw-blue-300)); border-radius: 0 .375rem .375rem 0; }
.v2-page .v2-cy-note-line a { font-weight: 700; color: rgb(var(--tw-blue-200)); }

/* ── 2. Board ──────────────────────────────────────────────────────────── */

.v2-cy-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.v2-cy-topic > .v2-cy-pill { margin: 0; text-align: left; }
.v2-cy-topic > .v2-cy-pill strong { color: inherit; }
.v2-cy-topic > .v2-cy-pill i, .v2-cy-topic > .v2-cy-pill .v2-cy-ic { margin-left: 6px; font-size: 11px; }
.v2-cy-topic.show > .v2-cy-pill { background: rgb(var(--tw-blue-300)); color: #fff; }
.v2-cy-topic .dropdown-menu { max-height: 320px; overflow-y: auto; }
.v2-cy-board .post-list { margin-top: 1rem; }

/* Pinned bar (`.pin-group`, page 1): an info strip with sidebar rows. */
.v2-cy-pins { margin-bottom: 15px; padding: 15px 20px; border-left: 3px solid rgb(var(--tw-blue-100)); border-radius: .375rem; background: rgb(var(--tw-fore-800)); }
.v2-cy-pins-head { margin-bottom: 10px; color: rgb(var(--tw-blue-100)); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.v2-cy-pins-head i, .v2-cy-pins-head .v2-cy-ic { margin-right: 6px; }
.v2-cy-pins .v2-cy-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.v2-cy-pins .v2-cy-row-title { font-size: 13px; }

/* Post card: bg-1 card, vote column + body. */
.v2-cy-post { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 15px; margin-bottom: 15px; padding: 15px 20px; border-radius: .375rem; background: rgb(var(--tw-fore-800)); color: rgb(var(--tw-text-300)); }
.v2-cy-post.v2-cy-is-pinned { border-left: 3px solid rgb(var(--tw-blue-100)); padding-left: 17px; }
.v2-cy-vote { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 2px; }
.v2-cy-vote .lp-btn-vote { display: block; width: 28px; height: 22px; border-radius: .375rem; color: rgb(var(--tw-text-300)); font-size: 16px; line-height: 22px; text-align: center; }
.v2-cy-vote .lp-btn-vote:hover { background: rgba(0, 0, 0, .1); color: rgb(var(--tw-blue-100)); }
.v2-cy-vote .lp-btn-vote[data-type="1"].active { color: rgb(var(--tw-blue-100)); }
.v2-cy-vote .lp-btn-vote[data-type="0"].active { color: #dc3545; }
.v2-cy-score { font-size: 14px; font-weight: 700; line-height: 1.3; color: rgb(var(--tw-text-100)); }
.v2-cy-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; font-weight: 600; line-height: 20px; color: rgb(var(--tw-text-300)); }
.v2-cy-post-meta .v2-cy-pinned { color: rgb(var(--tw-blue-100)); font-weight: 700; text-transform: uppercase; font-size: 11px; }
.v2-cy-post-meta .v2-cy-pinned i, .v2-cy-post-meta .v2-cy-pinned .v2-cy-ic { margin-right: 4px; }
.v2-cy-post-title { margin: 6px 0 0; font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.v2-cy-post-title a { color: rgb(var(--tw-text-100)); }
.v2-cy-post-title a:hover { color: rgb(var(--tw-blue-100)); }
.v2-cy-excerpt { display: -webkit-box; margin: 6px 0 0; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; color: rgb(var(--tw-text-200)); font-size: 13px; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.v2-cy-post .cm-teaser { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px; border-radius: .375rem; background: rgb(var(--tw-back-900)); color: rgb(var(--tw-text-300)); }
.v2-cy-post .cm-teaser:hover { color: rgb(var(--tw-text-100)); }
.v2-cy-post .cm-teaser-posters { display: flex; flex: 0 0 auto; gap: 4px; }
.v2-cy-post .cm-teaser-posters img { width: 46px; height: 60px; border-radius: .375rem; object-fit: cover; background: rgb(var(--tw-fore-700)); }
.v2-cy-post .cm-teaser-meta { min-width: 0; font-size: 11px; font-weight: 600; }
.v2-cy-post .cm-teaser-meta i, .v2-cy-post .cm-teaser-meta .v2-cy-ic { margin-right: 5px; color: rgb(var(--tw-blue-100)); }
.v2-cy-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 10px 0 0 -8px; }
.v2-cy-acts .dropdown { display: inline-block; }
.v2-cy-acts .cm-post-save.active { color: rgb(var(--tw-blue-100)); }
.v2-cy-acts i.mr-2 { margin-right: 5px !important; }
.v2-cy-pager.btn.d-flex { display: flex; justify-content: center; width: 100%; padding: 0; margin: 0 0 15px; border: 0; background: none; }
.v2-cy-pager.btn.d-flex:focus { box-shadow: none; }
@media (max-width: 500px) {
.v2-cy-post { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 12px; }
.v2-cy-post.v2-cy-is-pinned { padding-left: 9px; }
.v2-cy-post-title { font-size: 15px; }
.v2-cy-acts .v2-cy-act-label { display: none; }
.v2-cy-acts .v2-cy-act i, .v2-cy-acts .v2-cy-act .v2-cy-ic { margin-right: 0; }
.v2-cy-pins { padding: 12px; }
}

/* ── 3. Post ───────────────────────────────────────────────────────────── */

.v2-cy-post-h1 { margin: 0 0 12px; font-size: 25px; font-weight: 700; line-height: 1.2; color: rgb(var(--tw-text-100)); overflow-wrap: anywhere; }
.v2-cy-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 20px; font-size: 12px; color: rgb(var(--tw-text-300)); }
.v2-cy-byline .v2-cy-name { font-size: 14px; }
.v2-cy-byline .v2-cy-score-line { margin-left: auto; }
.v2-cy-byline .v2-cy-score-line strong { color: rgb(var(--tw-text-100)); }
.v2-cy-text { color: rgb(var(--tw-text-100)); font-size: 14px; font-weight: 400; line-height: 1.6; overflow-wrap: anywhere; }
.v2-cy-text > :last-child { margin-bottom: 0; }
.v2-cy-text p { margin: 0 0 12px; }
.v2-cy-text a { color: rgb(var(--tw-blue-100)); }
.v2-cy-text a:hover { text-decoration: underline; }
.v2-cy-text strong, .v2-cy-text b { font-weight: 700; }
.v2-cy-text blockquote { margin: 0 0 12px; padding: 4px 0 4px 12px; border-left: 3px solid rgb(var(--tw-fore-600)); color: rgb(var(--tw-text-300)); }
.v2-cy-text img { max-width: 100%; height: auto; border-radius: .375rem; }
.v2-cy-text ul, .v2-cy-text ol { padding-left: 22px; }
.v2-cy-text code { padding: 1px 5px; border-radius: .375rem; background: rgb(var(--tw-back-900)); font-size: 12px; }
.v2-cy-text .cm-spoil, .v2-cy-text .spoil, .v2-cy-text .spoiler { border-radius: .375rem; background: rgb(var(--tw-text-300)); color: transparent; cursor: pointer; transition: color .15s, background .15s; }
.v2-cy-text .cm-spoil.show, .v2-cy-text .spoil.show, .v2-cy-text .spoiler.show, .v2-cy-text .cm-spoil:hover { background: rgb(var(--tw-back-900)); color: rgb(var(--tw-text-100)); }
.v2-cy-article .v2-cy-acts { margin-top: 20px; padding-top: 12px; border-top: 1px solid rgb(var(--tw-fore-600)); }
.v2-cy-article .lp-btn-vote[data-type="1"].active { color: rgb(var(--tw-blue-100)); }
.v2-cy-article .lp-btn-vote[data-type="0"].active { color: #dc3545; }
.v2-cy-share { margin-top: 12px; }
/* Comments: the anime page's strip head, then the shared widget on the
   page background (animeunity-comments.css). */
.v2-cy-comments { margin-top: 20px; }
#content-comments-community .v2-cy-loading { border-radius: .375rem; background: rgb(var(--tw-fore-800)); }
@media (max-width: 500px) {
.v2-cy-post-h1 { font-size: 20px; }
.v2-cy-byline .v2-cy-score-line { margin-left: 0; width: 100%; }
}

/* ── 4. Post formats (inset box on the page colour) ────────────────────── */

.v2-cy-fmt { margin: 0 0 20px; padding: 15px; border-radius: .375rem; background: rgb(var(--tw-back-900)); }
.v2-cy-fmt .cm-poll-head { margin-bottom: 10px; color: rgb(var(--tw-text-300)); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.v2-cy-fmt .cm-poll-head i, .v2-cy-fmt .cm-poll-head .v2-cy-ic { margin-right: 6px; color: rgb(var(--tw-blue-100)); }
.v2-cy-fmt .cm-poll-head i.v2-cy-headic { display: inline-flex; font-style: normal; vertical-align: -.2em; }
.v2-cy-fmt .cm-poll-head i.v2-cy-headic .v2-cy-ic { margin-right: 0; vertical-align: 0; }

/* Poll */
.cm-poll-row { display: flex; align-items: stretch; gap: 6px; margin-bottom: 6px; }
.cm-poll-row:last-child { margin-bottom: 0; }
.cm-poll-opt { display: grid; flex: 1 1 auto; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; padding: 6px; border: 0; border-radius: .375rem; background: rgb(var(--tw-fore-800)); color: rgb(var(--tw-text-300)); font-family: inherit; text-align: left; cursor: pointer; transition: background .15s, box-shadow .15s; }
.cm-poll-opt.v2-cy-noimg { grid-template-columns: minmax(0, 1fr); padding-left: 12px; }
.cm-poll-opt:hover { background: rgba(var(--tw-blue-100), .1); }
.cm-poll-opt:focus { outline: none; }
.cm-poll-opt.is-mine { box-shadow: inset 3px 0 0 rgb(var(--tw-blue-100)); }
.cm-poll-poster img { display: block; width: 40px; height: 57px; border-radius: .375rem; object-fit: cover; background: rgb(var(--tw-fore-700)); }
.cm-poll-body { display: block; min-width: 0; }
.cm-poll-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgb(var(--tw-text-100)); font-size: 13px; font-weight: 600; }
.cm-poll-bar { display: none; height: 6px; margin: 6px 0 4px; border-radius: .375rem; background: rgb(var(--tw-back-900)); overflow: hidden; }
.cm-poll-bar > span { display: block; height: 100%; border-radius: .375rem; background: rgb(var(--tw-blue-100)); transition: width .3s; }
.cm-poll-opt.is-mine .cm-poll-bar > span { background: rgb(var(--tw-blue-300)); }
.cm-poll-opt.is-revealed .cm-poll-bar { display: block; }
.cm-poll-meta { display: block; margin-top: 2px; color: rgb(var(--tw-text-300)); font-size: 11px; font-weight: 600; }
.cm-poll-link, .v2-page a.cm-poll-link { display: flex; flex: 0 0 30px; align-items: center; justify-content: center; border-radius: .375rem; background: rgb(var(--tw-fore-800)); color: rgb(var(--tw-text-300)); }
.v2-page a.cm-poll-link:hover { color: rgb(var(--tw-blue-100)); }

/* Matchup */
.cm-matchup-row { display: flex; align-items: center; justify-content: center; gap: 15px; }
.cm-matchup-card { position: relative; display: flex; flex: 0 1 200px; flex-direction: column; align-items: center; min-width: 0; padding: 0; border: 0; border-radius: .375rem; background: none; color: rgb(var(--tw-text-300)); font-family: inherit; cursor: pointer; }
.cm-matchup-card:focus { outline: none; }
.cm-matchup-card img { display: block; width: 100%; aspect-ratio: 381 / 541; border-radius: .375rem; object-fit: cover; background: rgb(var(--tw-fore-700)); transition: opacity .15s; }
.cm-matchup-ph { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 381 / 541; border-radius: .375rem; background: rgb(var(--tw-fore-700)); color: #6c757d; font-size: 28px; }
.cm-matchup-card:hover img { opacity: .85; }
.cm-matchup-card.is-mine img { outline: 2px solid rgb(var(--tw-blue-100)); outline-offset: 2px; }
.cm-matchup-title { display: block; width: 100%; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgb(var(--tw-text-100)); font-size: 13px; font-weight: 600; text-align: center; }
.cm-matchup-cta { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); padding: 3px 8px; border-radius: .375rem; background: rgba(17, 22, 29, .8); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.cm-matchup-pct { display: block; margin-top: 4px; color: rgb(var(--tw-blue-100)); font-size: 20px; font-weight: 700; line-height: 1.2; }
.cm-matchup-votes { display: block; color: rgb(var(--tw-text-300)); font-size: 11px; font-weight: 600; }
.cm-matchup-vs { display: flex; flex: 0 0 40px; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(var(--tw-blue-300)); color: #fff; font-size: 14px; font-weight: 800; }

/* Tier list (read-only) — row colours are the author's (tl-c-*). */
.tl-c-red { --tl: #ff7f7f; } .tl-c-orange { --tl: #ffbf7f; } .tl-c-amber { --tl: #ffdf7f; } .tl-c-yellow { --tl: #f7e15b; }
.tl-c-green { --tl: #7fdf7f; } .tl-c-teal { --tl: #6fd6c6; } .tl-c-blue { --tl: #7fbfff; } .tl-c-purple { --tl: #b49cf0; }
.tl-c-pink { --tl: #ff8fc7; } .tl-c-gray { --tl: #b0bec5; }
.tl-view .tl-row { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 2px; margin-bottom: 2px; }
.tl-view .tl-label { display: flex; align-items: center; justify-content: center; padding: 6px; border-radius: .375rem 0 0 .375rem; background: var(--tl, #b0bec5); color: #11161d; font-size: 14px; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.tl-view .tl-items { display: flex; flex-wrap: wrap; gap: 4px; min-height: 78px; padding: 4px; border-radius: 0 .375rem .375rem 0; background: rgb(var(--tw-fore-800)); }
.tl-view .tl-item img, .tl-view .tl-item-gone { display: block; width: 50px; height: 70px; border-radius: .375rem; object-fit: cover; background: rgb(var(--tw-fore-700)); }
.tl-view .tl-item:hover img { opacity: .8; }
.tl-view .tl-empty { align-self: center; padding: 0 8px; color: rgb(var(--tw-text-300)); font-size: 11px; }

/* Seasonal ranking */
.cm-seasonal-list { margin: 0; padding: 0; list-style: none; }
.cm-seasonal-list > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgb(var(--tw-fore-600)); }
.cm-seasonal-list > li:last-child { border-bottom: 0; }
.cm-seasonal-rank { color: rgb(var(--tw-text-100)); font-size: 18px; font-weight: 700; text-align: center; }
.cm-seasonal-list > li.is-top .cm-seasonal-rank { color: rgb(var(--tw-blue-100)); }
.cm-seasonal-list a { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 8px; color: rgb(var(--tw-text-100)); font-size: 12px; font-weight: 700; }
.cm-seasonal-list a:hover { color: rgb(var(--tw-blue-100)); }
.cm-seasonal-list img { display: block; width: 48px; height: 70px; border-radius: .375rem; object-fit: cover; background: rgb(var(--tw-fore-700)); }
.cm-seasonal-gone { color: rgb(var(--tw-text-300)); font-size: 12px; }

/* Recommendation */
.cm-rec-refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 15px; }
.cm-rec-item, .v2-page a.cm-rec-item { display: block; min-width: 0; color: rgb(var(--tw-text-300)); }
.cm-rec-item img { display: block; width: 100%; aspect-ratio: 381 / 541; border-radius: .375rem; object-fit: cover; background: rgb(var(--tw-fore-700)); }
.cm-rec-item span { display: block; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.v2-page a.cm-rec-item:hover { color: rgb(var(--tw-blue-100)); }
@media (max-width: 500px) {
.v2-cy-fmt { padding: 10px; }
.cm-matchup-row { gap: 8px; }
.cm-matchup-vs { flex-basis: 32px; width: 32px; height: 32px; font-size: 12px; }
.tl-view .tl-row { grid-template-columns: 56px minmax(0, 1fr); }
.tl-view .tl-label { font-size: 12px; }
.tl-view .tl-item img, .tl-view .tl-item-gone { width: 40px; height: 56px; }
.tl-view .tl-items { min-height: 64px; }
.cm-rec-refs { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
}

/* ── 5. Create / edit ──────────────────────────────────────────────────── */

.v2-cy-form .v2-cy-field { margin-bottom: 18px; }
.v2-cy-form .invalid-feedback { display: block; font-size: 12px; }
.v2-cy-tagset { display: flex; flex-wrap: wrap; gap: .5rem; }
.v2-cy-tagset .cp-tag { position: relative; display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.v2-cy-tagset .cp-tag input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.v2-cy-tagset .cp-tag small { padding: 0 4px; border-radius: .375rem; background: rgba(0, 0, 0, .15); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.v2-cy-tagset .cp-tag:focus-within { outline: 1px solid rgb(var(--tw-blue-100)); }
.v2-cy-tagset .cp-tag.is-on .v2-cy-dot { box-shadow: 0 0 0 2px #fff; }
.v2-cy-fmtbar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.v2-cy-fmtbar .cp-fmt-btn { height: 1.75rem; padding: 0 .5625rem; font-size: .75rem; }
.v2-cy-fmtbar .cp-fmt-btn i, .v2-cy-fmtbar .cp-fmt-btn .v2-cy-ic { margin-right: 5px; }
@media (max-width: 500px) {
.v2-cy-fmtbar .cp-fmt-btn span { display: none; }
.v2-cy-fmtbar .cp-fmt-btn i, .v2-cy-fmtbar .cp-fmt-btn .v2-cy-ic { margin-right: 0; }
}
.v2-cy-md-help { margin: 6px 0 0; font-size: 11px; color: rgb(var(--tw-text-300)); }
.v2-cy-md-help code { margin-right: 6px; padding: 1px 5px; border-radius: .375rem; background: rgb(var(--tw-back-900)); color: rgb(var(--tw-text-100)); font-size: 11px; }
.v2-cy-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 15px; margin-top: 20px; }
.v2-cy-form-foot .v2-cy-mana { margin-left: auto; font-size: 12px; color: rgb(var(--tw-text-300)); }
.v2-cy-form-foot .v2-cy-mana i, .v2-cy-form-foot .v2-cy-mana .v2-cy-ic { margin-right: 5px; color: rgb(var(--tw-blue-100)); }
.v2-cy-builder { margin-bottom: 18px; }
.v2-cy-builder-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-bottom: 8px; }
.v2-cy-builder-head .v2-cy-lbl { margin: 0; }
.v2-cy-builder-head .tl-limits, .v2-cy-builder-head #poll-builder-hint { font-size: 11px; color: rgb(var(--tw-text-300)); }

/* Tier list builder (rows re-rendered by community.min.js). */
.tl-builder .tl-brow { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 2px; margin-bottom: 2px; }
.tl-builder .tl-label { display: flex; align-items: center; justify-content: center; padding: 4px; border-radius: .375rem 0 0 .375rem; background: var(--tl, #b0bec5); }
.tl-builder .tl-label-input { width: 100%; height: auto; padding: 4px 2px; border: 0; border-radius: .375rem; background: transparent; color: #11161d; font-size: 14px; font-weight: 700; text-align: center; }
.tl-builder .tl-label-input:focus { outline: 1px dashed rgba(17, 22, 29, .5); background: rgba(255, 255, 255, .3); }
.tl-builder .tl-bitems { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 78px; padding: 4px; background: rgb(var(--tw-fore-800)); }
.tl-builder .tl-bitem { position: relative; }
.tl-builder .tl-bitem img, .tl-builder .tl-bitem-ph { display: block; width: 50px; height: 70px; border-radius: .375rem; object-fit: cover; background: rgb(var(--tw-fore-700)); }
.tl-builder .tl-bitem-ph { padding: 4px; overflow: hidden; color: #fff; font-size: 9px; line-height: 1.2; }
.tl-builder .tl-bitem-x { position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: #dc3545; color: #fff; font-size: 9px; line-height: 18px; text-align: center; cursor: pointer; opacity: 0; transition: opacity .15s; }
.tl-builder .tl-bitem:hover .tl-bitem-x, .tl-builder .tl-bitem-x:focus { opacity: 1; }
.tl-builder .tl-add-item { width: 50px; height: 70px; padding: 0; border: 1px dashed rgb(var(--tw-fore-600)); border-radius: .375rem; background: none; color: rgb(var(--tw-text-300)); cursor: pointer; }
.tl-builder .tl-add-item:hover { border-color: rgb(var(--tw-blue-100)); color: rgb(var(--tw-blue-100)); }
.tl-builder .tl-rowtools { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 2px 4px; border-radius: 0 .375rem .375rem 0; background: rgb(var(--tw-fore-800)); }
.tl-builder .tl-tool { display: block; width: 24px; height: 18px; border-radius: .375rem; color: rgb(var(--tw-text-300)); font-size: 11px; line-height: 18px; text-align: center; }
.tl-builder .tl-tool:hover { background: rgba(0, 0, 0, .1); color: rgb(var(--tw-blue-100)); }
.tl-builder .tl-tool.is-off { opacity: .3; pointer-events: none; }
.tl-builder .tl-remove-row:hover { color: #dc3545; }
.tl-toolbar, .poll-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.tl-count, .poll-count { font-size: 12px; color: rgb(var(--tw-text-300)); }

/* Poll / matchup / seasonal / recommendation builder. */
.poll-season-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.poll-season-bar select, .poll-season-bar input { width: auto; }
.poll-season-bar #poll-year { width: 90px; }
.poll-options .poll-opt { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; padding: 6px; border-radius: .375rem; background: rgb(var(--tw-fore-800)); }
.poll-options .poll-rank { flex: 0 0 28px; color: rgb(var(--tw-text-100)); font-size: 14px; font-weight: 700; text-align: center; }
.poll-options .poll-opt img, .poll-options .poll-opt-ph { display: block; width: 40px; height: 57px; border-radius: .375rem; object-fit: cover; background: rgb(var(--tw-fore-700)); }
.poll-options .poll-opt-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgb(var(--tw-text-100)); font-size: 13px; font-weight: 600; }
.poll-options .poll-opt-tools { display: flex; gap: 2px; }
.poll-options .poll-opt-tools a, .poll-options .poll-opt-tools button { display: inline-block; width: 26px; height: 26px; padding: 0; border: 0; border-radius: .375rem; background: none; color: rgb(var(--tw-text-300)); font-size: 12px; line-height: 26px; text-align: center; cursor: pointer; }
.poll-options .poll-opt-tools a:hover, .poll-options .poll-opt-tools button:hover { background: rgba(0, 0, 0, .1); color: rgb(var(--tw-blue-100)); }
.poll-options .poll-opt-x:hover { color: #dc3545 !important; }
.poll-options .poll-empty { padding: 12px; border-radius: .375rem; background: rgb(var(--tw-fore-800)); color: rgb(var(--tw-text-300)) !important; font-size: 12px; text-align: center; }
.poll-type-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.poll-type-switch .poll-switch { padding: 4px 10px; font-size: 12px; }
.poll-type-switch .poll-switch.btn-secondary { border-color: rgb(var(--tw-fore-600)); background: rgb(var(--tw-fore-800)); color: rgb(var(--tw-text-100)); }

/* The anime search dialog community.min.js appends to <body>. */
#tl-search-modal .modal-dialog { max-width: 560px; }
#tl-search-modal .modal-content { width: 100%; margin: 0; font-family: Overpass, sans-serif; font-size: 14px; }
#tl-search-modal .modal-header { align-items: center; padding: 20px 24px 10px; border: 0; }
#tl-search-modal .modal-title, #tl-search-modal .modal-header h5 { font-size: 18px; font-weight: 700; color: rgb(var(--tw-text-100)); }
#tl-search-modal .modal-body { padding: 10px 24px 24px; }
#tl-search-modal #tl-search-input { width: 100%; }
#tl-search-modal #tl-search-results { max-height: 50vh; margin-top: 10px; overflow-y: auto; }
#tl-search-modal .tl-search-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: .375rem; background: none; color: rgb(var(--tw-text-100)); text-align: left; cursor: pointer; }
#tl-search-modal .tl-search-item:hover { background: rgb(var(--tw-blue-100)); color: #fff; }
#tl-search-modal .tl-search-item img { width: 40px; height: 57px; flex: 0 0 40px; border-radius: .375rem; object-fit: cover; background: rgb(var(--tw-fore-700)); }
#tl-search-modal .tl-search-name { flex: 1 1 auto; min-width: 0; font-size: 14px; }
#tl-search-modal .tl-search-state { font-size: 12px; font-weight: 400; }
#tl-search-modal .tl-search-item.is-added { opacity: .55; }
#tl-search-modal .tl-search-hint { padding: 10px 0; color: rgb(var(--tw-text-300)); font-size: 12px; text-align: center; }
#tl-search-modal .close { color: rgb(var(--tw-text-100)); opacity: .8; }

/* ── 6. La mia zona ────────────────────────────────────────────────────── */

.v2-cy-zone .mz-post-row { display: block; padding: 12px 0; border-bottom: 1px solid rgb(var(--tw-fore-600)); }
.v2-cy-zone .mz-post-row:first-child { padding-top: 0; }
.v2-cy-zone .mz-post-row:last-child { border-bottom: 0; padding-bottom: 0; }
.v2-cy-zone .mz-title { display: block; margin: 4px 0 6px; font-size: 14px; font-weight: 700; line-height: 1.3; color: rgb(var(--tw-text-100)); overflow-wrap: anywhere; }
.v2-cy-zone .mz-title:hover { color: rgb(var(--tw-blue-100)); }
.v2-cy-zone .mz-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12px; color: rgb(var(--tw-text-300)); }
.v2-cy-zone .mz-foot i, .v2-cy-zone .mz-foot .v2-cy-ic { margin-right: 4px; }
.v2-cy-zone .mz-acts { display: flex; gap: 6px; margin-left: auto; }
.v2-cy-zone .mz-hidden { padding: 1px 5px; border-radius: .375rem; background: #6c757d; color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.v2-cy-zone .mz-older { margin-top: 15px; }
.v2-cy-card { text-align: center; }
.v2-cy-card .v2-cy-av-100 { display: block; margin: 0 auto 12px; }
.v2-cy-card-name { display: block; font-size: 20px; font-weight: 700; line-height: 1.2; color: rgb(var(--tw-text-100)); overflow-wrap: anywhere; }
.v2-cy-card-rank { margin-top: 6px; font-size: 12px; color: rgb(var(--tw-text-300)); }
.v2-cy-card-rank .badg-level { vertical-align: -3px; }
.v2-cy-mana { margin-top: 15px; text-align: left; }
.v2-cy-mana-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: rgb(var(--tw-text-300)); }
.v2-cy-mana-head strong { font-size: 14px; color: rgb(var(--tw-text-100)); }
.v2-cy-bar { height: 6px; margin: 6px 0; border-radius: .375rem; background: rgb(var(--tw-back-900)); overflow: hidden; }
.v2-cy-bar > span { display: block; height: 100%; border-radius: .375rem; background: rgb(var(--tw-blue-100)); }
.v2-cy-mana-foot { margin: 0; font-size: 11px; color: rgb(var(--tw-text-300)); }
.v2-cy-card-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 15px; }
.v2-cy-ladder .v2-cy-row { opacity: .6; }
.v2-cy-ladder .v2-cy-row.is-reached { opacity: 1; }
.v2-cy-ladder .v2-cy-row.is-current .v2-cy-row-title { color: rgb(var(--tw-blue-100)); }
.v2-cy-ladder .v2-cy-row img { display: block; width: 16px; height: 16px; object-fit: contain; }
.v2-cy-ledger .is-pos { color: #4cca51; }
.v2-cy-ledger .is-neg { color: #dc3545; }
.v2-cy-ledger .v2-cy-mana { margin: 0 0 12px; }

/* ── 7. Super X + leaderboard ──────────────────────────────────────────── */

.v2-cy-boards .v2-cy-tabs-sm { margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid rgb(var(--tw-fore-600)); }
.v2-cy-boards .tab-content > .tab-pane { display: none; }
.v2-cy-boards .tab-content > .tab-pane.active { display: block; }
.wv-ul:not(.expand) > .v2-cy-row:nth-child(n+6) { display: none; }
.wv-loadmore { margin-top: 12px; }
.v2-cy-quote, .v2-page a.v2-cy-quote { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: rgb(var(--tw-text-100)); font-size: 12px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.v2-page a.v2-cy-quote:hover { color: rgb(var(--tw-blue-100)); }
.v2-cy-tally { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 10px; color: rgb(var(--tw-text-300)); white-space: nowrap; }
.v2-cy-tally i, .v2-cy-tally .v2-cy-ic { margin-right: 3px; }
.v2-cy-sx-foot { max-width: 350px; margin: 20px auto 0; }
@media (max-width: 991.98px) {
.v2-cy-boards > [class*="col-"] { margin-bottom: 14px; }
.v2-cy-sx-foot { margin-top: 6px; }
}

/* ── v2 layout touches over the ported sections ────────────────────────── */

/* Super X: three boards side by side from the lg container up. */
.v2-cy-boards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 1040px) { .v2-cy-boards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.v2-cy-boards .v2-cy-box + .v2-cy-box { margin-top: 0; }
.v2-page .v2-cy-boards .v2-cy-tabs-sm { margin-bottom: 1rem; padding-bottom: .125rem; border-bottom: 1px solid rgb(var(--tw-fore-600)); }
.v2-page a.v2-cy-more.v2-cy-sx-foot { max-width: 350px; margin: 1.5rem auto 0; background: rgb(var(--tw-fore-800)); }
.wv-loadmore .btn.v2-cy-more { margin-top: 0; }

/* Create / edit form rhythm. */
.v2-cy-form .v2-cy-field { margin-bottom: 1.125rem; }
.v2-cy-form .v2-label, .v2-cy-form .v2-cy-field > .v2-label { margin-bottom: .4rem; }
.v2-cy-form .invalid-feedback { color: #ef4444; }
.v2-cy-form .is-invalid { box-shadow: inset 0 0 0 1px #ef4444; }
.v2-cy-fmtbar .cp-fmt-btn { background: rgb(var(--tw-fore-700)); }
.v2-cy-md-help code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.v2-cy-form-foot .v2-cy-mana { display: inline-flex; align-items: center; }

/* The anime search dialog community.min.js appends to <body> (Bootstrap markup:
   .modal-dialog.modal-dialog-centered > .modal-content > .modal-header + .modal-body)
   drawn as the v2 dialog card. */
#tl-search-modal .modal-dialog { display: flex; align-items: center; max-width: 560px; min-height: calc(100% - 1rem); margin: .5rem auto; padding: 0 .5rem; }
#tl-search-modal .modal-content { position: relative; width: 100%; padding: 1.75rem 1.5rem 1.5rem; font-family: Overpass, sans-serif; font-size: 14px; color: rgb(var(--tw-text-100)); background: rgb(var(--tw-fore-800)); border-radius: 4px; box-shadow: 0 10px 30px rgb(0 0 0 / .35); }
#tl-search-modal .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 0 1rem; border: 0; }
#tl-search-modal .modal-title, #tl-search-modal .modal-header h5 { margin: 0; font-size: 1.25rem; line-height: 1.25; font-weight: 700; color: rgb(var(--tw-text-100)); }
#tl-search-modal .close { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; margin: -.25rem -.5rem 0 0; padding: 0; font-size: 1.5rem; line-height: 1; color: rgb(var(--tw-text-300)); background: transparent; border: 0; border-radius: .375rem; opacity: 1; cursor: pointer; }
#tl-search-modal .close:hover { color: rgb(var(--tw-text-100)); background: rgb(var(--tw-fore-700)); }
#tl-search-modal .modal-body { padding: 0; }
#tl-search-modal #tl-search-input { display: block; width: 100%; height: 2.25rem; padding: .5rem 1rem; font-family: Overpass, sans-serif; font-size: .875rem; color: rgb(var(--tw-text-100)); background: rgb(var(--tw-fore-600)); border: 0; border-radius: 3px; outline: 0; box-shadow: none; }
#tl-search-modal #tl-search-input:focus { background: rgb(var(--tw-fore-500)); }
#tl-search-modal #tl-search-input::placeholder { color: rgb(var(--tw-text-300)); }
#tl-search-modal .tl-search-item:hover { color: #fff; background: rgb(var(--tw-blue-300)); }
#tl-search-modal .tl-search-name { font-weight: 600; }
