/*
 * AnimeSaturn — shared component styles (resources/views/components/frontend/*).
 * Cards, hero slide, compact rows, episode pills, pagination, filter dropdown,
 * avatar cosmetics, title chips, share box, comment composer, hover tooltip,
 * ad slots. Uses the --as-* tokens defined in base.css.
 */

/* ============================================================ anime card */
.as-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform .26s cubic-bezier(.16, 1, .3, 1);
}
.as-card:hover { transform: translateY(-5px); }
.as-card__poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    isolation: isolate;
    /* Shown while the poster loads, or for good if it fails to load. */
    background:
        radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--as-brand) 32%, transparent), transparent 70%),
        linear-gradient(160deg, var(--as-elev), var(--as-soft));
    border-radius: var(--as-r-lg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px -8px rgba(134, 61, 186, .12);
}
/* A broken image keeps its alt text for screen readers but never paints it
   over the card. */
.as-card__poster img { color: transparent; font-size: 0; }
.as-card__poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.16, 1, .3, 1), filter .2s ease;
}
.as-card:hover .as-card__poster img { transform: scale(1.06); filter: brightness(1.06); }
.as-card__poster::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, .8) 100%);
    transition: opacity .22s;
    pointer-events: none;
}
.as-card:hover .as-card__poster::after { opacity: 1; }
.as-card__topbar {
    position: absolute;
    top: .5rem;
    left: .5rem;
    right: .5rem;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .375rem;
    pointer-events: none;
}
.as-card__poster .as-badge {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    padding: .2rem .45rem;
    font-size: .6875rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    border-radius: var(--as-r-sm);
    white-space: nowrap;
}
.as-card__poster .as-badge--type,
.as-card__poster .as-badge--ep { background: var(--as-brand); }
.as-card__poster .as-badge--dub { background: #10b981; }
.as-card__poster .as-badge--ep,
.as-card__poster .as-badge--score { position: absolute; right: .5rem; bottom: .5rem; z-index: 2; }
.as-card__poster .as-badge--score {
    background: rgba(0, 0, 0, .72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.as-card__poster .as-badge--score i { font-size: .625rem; color: #f59e0b; }
.as-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    font-size: 1.05rem;
    color: #fff;
    background: var(--as-brand);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(134, 61, 186, .55);
    opacity: 0;
    transform: translate(-50%, -50%) scale(.85);
    transition: opacity .22s ease, transform .28s cubic-bezier(.34, 1.56, .64, 1);
    pointer-events: none;
}
.as-card__play i { margin-left: 3px; }
.as-card:hover .as-card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.as-card__body { min-width: 0; margin-top: .5rem; padding-inline: .125rem; }
.as-card__title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.3;
}
.as-card__title a { color: var(--as-ink); text-decoration: none; transition: color .15s; }
.as-card:hover .as-card__title a, .as-card__title a:hover, .as-card__title a:focus-visible { color: var(--as-brand); }
.as-card__title a:focus-visible { outline: 2px solid var(--as-brand-ring); outline-offset: 2px; border-radius: 2px; }
.as-card__meta { margin: .125rem 0 0; font-size: .75rem; color: var(--as-ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-card__status {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin: .375rem 0 0;
    padding: .1rem .5rem;
    font-size: .6875rem;
    font-weight: 600;
    color: var(--as-brand);
    background: var(--as-brand-soft);
    border-radius: 999px;
}
.as-card__genres { display: none; margin: .375rem 0 0; font-size: .75rem; color: var(--as-ink-dim); }
.as-card__genres a { color: var(--as-ink-mute); text-decoration: none; }
.as-card__genres a:hover { color: var(--as-brand); }
@media (hover: none) {
    .as-card:hover { transform: none; }
    .as-card:hover .as-card__poster img { transform: none; }
    .as-card__play, .as-card__poster::after { display: none; }
}

/* List display modes (main.js DisplayModes adds .mode2 / .mode3) — list rows for the public
   watch list only; catalogue grids (#list-items) use browse.css's compact / large grids. */
.mode2:not(#list-items) > .as-card, .mode3:not(#list-items) > .as-card {
    flex-direction: row;
    align-items: center;
    gap: .875rem;
    padding: .5rem;
    background: var(--as-soft);
    border: 1px solid var(--as-border);
    border-radius: var(--as-r-lg);
}
.mode2:not(#list-items) > .as-card:hover, .mode3:not(#list-items) > .as-card:hover { transform: none; background: var(--as-hover); }
.mode2:not(#list-items) > .as-card .as-card__poster { flex: 0 0 72px; width: 72px; border-radius: var(--as-r-md); }
.mode3:not(#list-items) > .as-card .as-card__poster { flex: 0 0 48px; width: 48px; border-radius: var(--as-r-sm); }
.mode2:not(#list-items) > .as-card .as-card__body, .mode3:not(#list-items) > .as-card .as-card__body { flex: 1; margin: 0; }
.mode2:not(#list-items) > .as-card .as-card__genres { display: block; }
.mode2:not(#list-items) > .as-card .as-card__topbar, .mode3:not(#list-items) > .as-card .as-card__topbar,
.mode2:not(#list-items) > .as-card .as-card__play, .mode3:not(#list-items) > .as-card .as-card__play,
.mode3:not(#list-items) > .as-card .as-badge--ep, .mode3:not(#list-items) > .as-card .as-badge--score { display: none; }
.mode2:not(#list-items) > .as-card .as-badge--ep, .mode2:not(#list-items) > .as-card .as-badge--score { right: .25rem; bottom: .25rem; font-size: .625rem; padding: .1rem .3rem; }

/* ============================================================ hero slide */
.as-hero-slide {
    position: relative;
    width: 100%;
    height: clamp(340px, 34vw, 480px);
    overflow: hidden;
    background: #07060b;
    border-radius: var(--as-r-2xl);
}
.as-hero-slide__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
/* Slides past the first load their image lazily (home.js swaps data-src in). */
.as-hero-slide__bg:not([src]) { visibility: hidden; }
.as-hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(7, 6, 11, .92) 0%, rgba(7, 6, 11, .55) 45%, rgba(7, 6, 11, .1) 85%, rgba(7, 6, 11, 0) 100%),
        linear-gradient(rgba(7, 6, 11, 0) 30%, rgba(7, 6, 11, .05) 60%, rgba(7, 6, 11, .85) 100%);
    pointer-events: none;
}
.as-hero-slide__body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 2.5rem 4.5rem;
    color: #fff;
}
.as-hero-slide__inner { width: 100%; max-width: 680px; }
.as-hero-slide__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .25rem .625rem;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--as-brand);
    border-radius: 999px;
}
.as-hero-slide__eyebrow i { font-size: .625rem; }
.as-hero-slide__title {
    display: -webkit-box;
    margin: .5rem 0 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: "Manrope", "Inter", system-ui, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .7);
    text-wrap: balance;
}
.as-hero-slide__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; font-size: .8125rem; }
.as-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .625rem;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.as-hero-pill__star { font-size: .7rem; color: #f59e0b; }
.as-hero-pill--dub { background: rgba(16, 185, 129, .85); border-color: transparent; font-weight: 700; font-size: .72rem; letter-spacing: .04em; }
.as-hero-slide__desc {
    display: -webkit-box;
    max-width: 560px;
    margin: .875rem 0 0;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: .9375rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .85);
}
.as-hero-slide__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.125rem; }
.as-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 2.5rem;
    padding-inline: 1.25rem;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--as-r-md);
    cursor: pointer;
    transition: background-color .18s, border-color .18s, transform .18s cubic-bezier(.16, 1, .3, 1), box-shadow .18s;
}
.as-hero-btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--as-brand-ring); }
.as-hero-btn--play { color: #fff; background: var(--as-brand); box-shadow: 0 4px 12px rgba(134, 61, 186, .45); }
.as-hero-btn--play:hover { color: #fff; background: var(--as-brand-hover); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(134, 61, 186, .55); }
.as-hero-btn--info {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.as-hero-btn--info:hover { color: #fff; background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .35); }
@media (max-width: 1023.98px) {
    .as-hero-slide__body { padding: 2rem 2.5rem; }
}
@media (max-width: 767.98px) {
    .as-hero-slide { height: 380px; border-radius: var(--as-r-xl); }
    .as-hero-slide::after {
        background: linear-gradient(rgba(7, 6, 11, .15) 0%, rgba(7, 6, 11, .55) 45%, rgba(7, 6, 11, .94) 100%);
    }
    .as-hero-slide__body { align-items: flex-end; padding: 1.25rem 1.125rem 2.5rem; }
    .as-hero-slide__meta { font-size: .75rem; gap: .375rem; }
    .as-hero-slide__desc { -webkit-line-clamp: 2; font-size: .875rem; }
    .as-hero-btn { height: 2.375rem; padding-inline: 1rem; }
}

/* ================================================ compact rows (side / top) */
.as-side-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem;
    color: inherit;
    text-decoration: none;
    border-radius: var(--as-r-md);
    transition: background-color .18s, transform .18s;
}
.as-side-item:hover { color: inherit; background: var(--as-brand-soft); transform: translateX(2px); }
.as-side-item:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--as-brand-ring); }
.as-side-item__rank {
    flex: 0 0 2rem;
    font-family: "Manrope", "Inter", system-ui, sans-serif;
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    color: var(--as-ink-dim);
    font-variant-numeric: tabular-nums;
}
.as-side-item--top .as-side-item__rank {
    background: var(--as-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.as-side-item__poster {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    height: 72px;
    overflow: hidden;
    background: var(--as-soft);
    border-radius: .4rem;
    box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .4);
}
.as-side-item__poster img { width: 100%; height: 100%; object-fit: cover; }
.as-side-item__body { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: .375rem; min-width: 0; }
.as-side-item__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--as-ink);
    transition: color .15s;
}
.as-side-item:hover .as-side-item__title { color: var(--as-brand); }
.as-side-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; font-size: .72rem; color: var(--as-ink-dim); }
.as-side-item__tag {
    display: inline-flex;
    align-items: center;
    padding: .1rem .4rem;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--as-brand);
    background: var(--as-brand-soft);
    border-radius: .3rem;
}
.as-side-item__score { display: inline-flex; align-items: center; gap: .2rem; font-weight: 700; color: var(--as-ink); }
.as-side-item__score i { font-size: .65rem; color: #f59e0b; }
.as-side-item__dim { white-space: nowrap; }
.as-side-item__dim::before { content: "·"; margin-right: .375rem; color: var(--as-ink-dim); }

/* ============================================================ ep status */
.as-ep-status { display: inline-flex; align-items: center; gap: .25rem; }
.as-ep-status .ep-status {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    height: 1.25rem;
    padding: 0 .4rem;
    font-size: .6875rem;
    font-weight: 700;
    line-height: 1;
    border-radius: .3rem;
    font-variant-numeric: tabular-nums;
}
.as-ep-status .ep-status i { font-size: .625rem; }
.as-ep-status .ep-status.sub { color: #fff; background: var(--as-brand); }
.as-ep-status .ep-status.dub { color: #fff; background: #10b981; }
.as-ep-status .ep-status.total { color: var(--as-ink-mute); background: var(--as-hover); }

/* ============================================================ pagination */
.as-pagination { display: flex; justify-content: center; margin: 2rem 0; }
.as-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .375rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding-inline: .75rem;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--as-ink);
    text-decoration: none;
    background: var(--as-soft);
    border: 1px solid var(--as-border);
    border-radius: var(--as-r-md);
    transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.pagination a.page-link:hover { color: var(--as-brand); background: var(--as-hover); border-color: var(--as-brand); transform: translateY(-1px); }
.pagination a.page-link:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--as-brand-ring); }
.pagination .page-item.active .page-link { color: #fff; background: var(--as-brand); border-color: var(--as-brand); }
.pagination .page-item.disabled .page-link { color: var(--as-ink-dim); background: transparent; border-color: transparent; min-width: 1.5rem; padding-inline: .25rem; }
.pagination .page-link i { font-size: .8rem; }
@media (max-width: 479.98px) {
    .pagination .page-link { min-width: 2.25rem; height: 2.25rem; padding-inline: .5rem; font-size: .875rem; }
    .as-pagination .pagination { gap: .25rem; }
}

/* ======================================================= filter dropdown */
.as-dd { position: relative; min-width: 0; }
.as-dd .dropdown { position: relative; }
.as-dd .as-dd__toggle {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 2.5rem;
    padding: 0 .75rem 0 .875rem;
    font-size: .8125rem;
    font-weight: 500;
    text-align: left;
    color: var(--as-ink);
    background: var(--as-soft);
    border: 1px solid var(--as-border);
    border-radius: var(--as-r-md);
    box-shadow: none;
}
.as-dd .as-dd__toggle:hover { background: var(--as-soft); border-color: var(--as-border-strong); }
.as-dd .show > .as-dd__toggle, .as-dd .as-dd__toggle:focus-visible { border-color: var(--as-brand); box-shadow: 0 0 0 3px var(--as-brand-ring); }
.as-dd .as-dd__toggle .value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-dd__chev { flex-shrink: 0; font-size: .7rem; color: var(--as-ink-dim); transition: transform .2s; }
.as-dd .show .as-dd__chev { transform: rotate(180deg); }
.as-dd .as-dd__menu {
    min-width: 100%;
    max-height: 18rem;
    margin-top: .25rem;
    padding: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: var(--as-r-lg);
}
.as-dd .as-dd__menu ul { margin: 0; padding: 0; list-style: none; }
/* Floats, not flex: the dropdown plugin toggles the menu with slideDown/slideUp,
   which writes display:block inline. */
.as-dd .as-dd__menu::after, .as-dd .as-dd__menu ul::after { content: ""; display: block; clear: both; }
.as-dd .as-dd__menu li { float: left; width: 100%; }
.as-dd .as-dd__menu.c2 li { width: 50%; }
.as-dd .as-dd__menu.c3 li { width: 33.3333%; }
.as-dd .as-dd__menu.c4 li { width: 25%; }
.as-dd .as-dd__menu.md { width: 22rem; }
.as-dd .as-dd__menu.lg { width: 38rem; }
@media (max-width: 767.98px) {
    .as-dd .as-dd__menu.md, .as-dd .as-dd__menu.lg { width: min(92vw, 22rem); }
    .as-dd .as-dd__menu.c3 li, .as-dd .as-dd__menu.c4 li { width: 50%; }
}

/* ===================================================== avatar cosmetics */
.avatar-clip {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: transparent;
    border: 0 !important;
    border-radius: 50%;
    outline: none !important;
}
.avatar-clip .avatar-clip-img, .avatar-clip .user-avatar-img, .avatar-clip img {
    position: absolute !important;
    inset: 0 !important;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    border-radius: 50%;
}
.avatar-decoration, .avatar-frame-overlay {
    position: absolute !important;
    top: -10% !important;
    left: -10% !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 2;
    width: 120% !important;
    height: 120% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    pointer-events: none;
    user-select: none;
}
.profile-avatar.has-cosmetics, .avatar.has-cosmetics, .umc-avatar.has-cosmetics, .ph-avatar.has-cosmetics, .user-avatar.has-cosmetics {
    position: relative;
    overflow: visible !important;
    background: transparent !important;
}
.profile-avatar.has-cosmetics::before, .avatar.has-cosmetics::before, .user-avatar.has-cosmetics::before { display: none; }
.user-edit-avatar.has-cosmetics { overflow: visible !important; }
.user-edit-avatar.has-cosmetics > .avatar-decoration {
    top: calc(20px - (100% - 40px) * .1) !important;
    left: calc(20px - (100% - 40px) * .1) !important;
    z-index: 3;
    width: calc((100% - 40px) * 1.2) !important;
    height: calc((100% - 40px) * 1.2) !important;
}
.user-mana-card { overflow: visible; }
.layout-award .ph-avatar.has-cosmetics, .top-profile .avatar.has-cosmetics, .user .avatar.has-cosmetics { position: relative; overflow: visible !important; }
.profile-avatar-links {
    position: relative;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding-top: 2px;
    font-size: .82rem;
    line-height: 1.35;
}
.user-sidebar .profile-avatar-links { justify-content: center; }
.profile-avatar-links a { color: var(--as-brand); text-decoration: none; white-space: nowrap; }
.profile-avatar-links a:hover, .profile-avatar-links a:focus { color: var(--as-brand-hover); }
.profile-avatar-links span { color: var(--as-ink-dim); }

/* ============================================ user title chip / level badge */
.ak-title-eq {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 6px;
    padding: .12rem .5rem;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    vertical-align: middle;
    color: #ffe29a;
    background: rgba(255, 181, 38, .14);
    border: 1px solid rgba(255, 181, 38, .45);
    border-radius: 999px;
}
.ak-title-eq i { font-size: .65rem; opacity: .9; }
.ak-title-eq.is-shop { color: #e0d0ff; background: rgba(179, 157, 219, .16); border-color: rgba(179, 157, 219, .5); }
.ak-title-eq.is-shop.ak-tc-crimson, .ak-title.ak-tc-crimson { color: #ffc0c8; background: rgba(255, 107, 122, .16); border-color: rgba(255, 107, 122, .5); }
.ak-title-eq.is-shop.ak-tc-coral, .ak-title.ak-tc-coral { color: #ffd0c2; background: rgba(255, 138, 101, .16); border-color: rgba(255, 138, 101, .5); }
.ak-title-eq.is-shop.ak-tc-amber, .ak-title.ak-tc-amber { color: #ffe0b0; background: rgba(255, 183, 77, .16); border-color: rgba(255, 183, 77, .5); }
.ak-title-eq.is-shop.ak-tc-gold, .ak-title.ak-tc-gold { color: #fff0b8; background: rgba(255, 213, 79, .16); border-color: rgba(255, 213, 79, .5); }
.ak-title-eq.is-shop.ak-tc-lime, .ak-title.ak-tc-lime { color: #e4f5c8; background: rgba(174, 213, 129, .16); border-color: rgba(174, 213, 129, .5); }
.ak-title-eq.is-shop.ak-tc-mint, .ak-title.ak-tc-mint { color: #c8ffe4; background: rgba(105, 240, 174, .16); border-color: rgba(105, 240, 174, .5); }
.ak-title-eq.is-shop.ak-tc-teal, .ak-title.ak-tc-teal { color: #c4f4f8; background: rgba(77, 208, 225, .16); border-color: rgba(77, 208, 225, .5); }
.ak-title-eq.is-shop.ak-tc-sky, .ak-title.ak-tc-sky { color: #c8eafc; background: rgba(79, 195, 247, .16); border-color: rgba(79, 195, 247, .5); }
.ak-title-eq.is-shop.ak-tc-azure, .ak-title.ak-tc-azure { color: #cfe4fc; background: rgba(100, 181, 246, .16); border-color: rgba(100, 181, 246, .5); }
.ak-title-eq.is-shop.ak-tc-indigo, .ak-title.ak-tc-indigo { color: #d4d8f0; background: rgba(121, 134, 203, .16); border-color: rgba(121, 134, 203, .5); }
.ak-title-eq.is-shop.ak-tc-violet, .ak-title.ak-tc-violet { color: #e0d0ff; background: rgba(179, 157, 219, .16); border-color: rgba(179, 157, 219, .5); }
.ak-title-eq.is-shop.ak-tc-orchid, .ak-title.ak-tc-orchid { color: #f0d8f4; background: rgba(206, 147, 216, .16); border-color: rgba(206, 147, 216, .5); }
.ak-title-eq.is-shop.ak-tc-pink, .ak-title.ak-tc-pink { color: #fcd8e6; background: rgba(244, 143, 177, .16); border-color: rgba(244, 143, 177, .5); }
.ak-title-eq.is-shop.ak-tc-rose, .ak-title.ak-tc-rose { color: #f8d4d4; background: rgba(239, 154, 154, .16); border-color: rgba(239, 154, 154, .5); }
.ak-title-eq.is-shop.ak-tc-salmon, .ak-title.ak-tc-salmon { color: #ffe0d4; background: rgba(255, 171, 145, .16); border-color: rgba(255, 171, 145, .5); }
.ak-title-eq.is-shop.ak-tc-peach, .ak-title.ak-tc-peach { color: #ffe8cc; background: rgba(255, 204, 128, .16); border-color: rgba(255, 204, 128, .5); }
.ak-title-eq.is-shop.ak-tc-sand, .ak-title.ak-tc-sand { color: #fff3c8; background: rgba(255, 224, 130, .16); border-color: rgba(255, 224, 130, .5); }
.ak-title-eq.is-shop.ak-tc-slate, .ak-title.ak-tc-slate { color: #d8e0e4; background: rgba(144, 164, 174, .16); border-color: rgba(144, 164, 174, .5); }
.ak-title-eq.is-shop.ak-tc-silver, .ak-title.ak-tc-silver { color: #eceff1; background: rgba(207, 216, 220, .16); border-color: rgba(207, 216, 220, .5); }
.ak-title-eq.is-shop.ak-tc-ice, .ak-title.ak-tc-ice { color: #e0f7fa; background: rgba(178, 235, 242, .16); border-color: rgba(178, 235, 242, .5); }
/* The pale chip inks are tuned for dark surfaces; on light ones the text
   switches to the page ink while the tinted pill keeps the colour.
   [class][class] lifts specificity above the .is-shop.ak-tc-* variants. */
html:not(.dark) .ak-title-eq[class][class], html:not(.dark) .ak-title[class*="ak-tc-"][class] { color: var(--as-ink); }
.user-name .ak-title-eq { margin-left: 8px; }
.user-name span.ak-title-eq { display: inline-flex; }
.umc-identity .ak-title-eq, .cat-heading + .ak-title-eq { margin-left: 10px; font-size: 12px; }

.badg-level { display: inline-block; flex-shrink: 0; width: auto; vertical-align: middle; object-fit: contain; }
.badg-aura { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }

/* ============================================================ share box */
.bsharing {
    padding: 1rem 1.25rem;
    text-align: center;
    background: var(--as-soft);
    border: 1px solid var(--as-border);
    border-radius: var(--as-r-xl);
}
.as-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .625rem 1rem; }
.as-share__lead { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-size: .8125rem; color: var(--as-ink-mute); }
.as-share__lead i { color: var(--as-brand); }
.bsharing .sharethis-inline-share-buttons { display: inline-block !important; min-height: 32px; }

/* ===================================================== comment composer */
.as-composer { position: relative; }
.as-composer .comment-container:focus-within { border-color: var(--as-brand) !important; }
.block_area-comment .as-composer .ci-buttons .btn-primary,
.as-composer .ci-buttons .btn-primary {
    color: #fff !important;
    background: var(--as-brand) !important;
    border-radius: var(--as-r-md);
}
.block_area-comment .as-composer .ci-buttons .btn-primary:hover,
.as-composer .ci-buttons .btn-primary:hover { background: var(--as-brand-hover) !important; filter: none; }
.as-composer .ci-buttons .btn-secondary { border-radius: var(--as-r-md); }
.as-composer .btn-spoil { font: inherit; cursor: pointer; }
.as-composer .cm-fmt-btn:focus-visible, .as-composer .cb-icon:focus-visible { outline: 2px solid var(--as-brand-ring); outline-offset: 1px; }

/* ===================================================== hover tooltip card */
.tooltipster-base.tooltipster-sidetip .tooltipster-box {
    background: var(--as-elev);
    border: 1px solid var(--as-border);
    border-radius: var(--as-r-xl);
    box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .6);
}
.tooltipster-base.tooltipster-sidetip .tooltipster-content {
    padding: 1rem 1.125rem;
    font-size: .8125rem;
    line-height: 1.5;
    color: var(--as-ink-mute);
}
.as-tip__title {
    margin: 0 0 .5rem;
    font-family: "Manrope", "Inter", system-ui, sans-serif;
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--as-ink);
}
.as-tip__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; margin-bottom: .625rem; }
.as-tip__pill {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    height: 1.25rem;
    padding: 0 .45rem;
    font-size: .6875rem;
    font-weight: 700;
    color: var(--as-ink-mute);
    background: var(--as-hover);
    border-radius: .3rem;
}
.as-tip__pill--brand { color: #fff; background: var(--as-brand); letter-spacing: .04em; }
.as-tip__pill--score { color: var(--as-ink); }
.as-tip__pill--score i { font-size: .625rem; color: #f59e0b; }
.as-tip__synopsis {
    display: -webkit-box;
    margin: 0 0 .625rem;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.as-tip__facts { display: grid; gap: .25rem; margin: 0 0 .875rem; padding-top: .625rem; border-top: 1px solid var(--as-border); }
.as-tip__facts > div { display: flex; gap: .375rem; min-width: 0; }
.as-tip__facts dt { flex-shrink: 0; margin: 0; color: var(--as-ink-dim); }
.as-tip__facts dt::after { content: ":"; }
.as-tip__facts dd { margin: 0; min-width: 0; color: var(--as-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-tip__facts a { color: var(--as-ink); text-decoration: none; }
.as-tip__facts a:hover { color: var(--as-brand); }
.as-tip__actions { display: flex; align-items: center; gap: .5rem; }
.as-tip__watch {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 2.5rem;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: var(--as-brand);
    border-radius: var(--as-r-md);
    transition: background-color .15s;
}
.as-tip__watch:hover { color: #fff; background: var(--as-brand-hover); }
.as-tip__fav { position: relative; }
.as-tip__fav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--as-ink);
    background: var(--as-soft);
    border: 1px solid var(--as-border);
    border-radius: var(--as-r-md);
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.as-tip__fav-btn:hover, .as-tip__fav.show .as-tip__fav-btn { color: var(--as-brand); border-color: var(--as-brand); }
.as-tip__fav .dropdown-menu { min-width: 10rem; max-width: 12rem; max-height: 180px; overflow-y: auto; }
.as-tip__fav .dropdown-item { overflow: hidden; text-overflow: ellipsis; }

/* ============================================================== ad slots */
.ak-ad { display: block; max-width: 100%; overflow: hidden; text-align: center; }
.ak-ad:empty { display: none; }
.ak-ad > * { max-width: 100%; }
.ak-ad.as-ad-box { margin: 0 0 1.5rem; padding: .625rem; }
.ak-ad--player {
    position: absolute;
    left: 50%;
    bottom: 60px;
    z-index: 40;
    overflow: visible;
    transform: translateX(-50%);
    pointer-events: none;
}
.ak-ad--player > * { pointer-events: auto; }
@media (max-width: 767.98px) { .ak-ad--player { bottom: 46px; } }
