/*
 * animeunity-v2 home — the home's CMS extras on top of the vendored app.css
 * (the page itself is the reference's Tailwind class lists, verbatim):
 * the hero's cross-fade,
 * the latest-episodes grid while a page loads, the Palinsesto placeholder,
 * "CONTINUA A GUARDARE" (members) and "ULTIMI COMMENTI" (the CMS's box).
 */

/* Hero: the slides cross-fade over 700 ms (the reference's Transition). */
.v2-hero [data-v2-slide] { transition: opacity .7s ease-in-out; }
.v2-hero [data-v2-slide].v2-slide-out { opacity: 0; }

/* Latest episodes: the grid dims while a page or a tab loads. */
.v2-latest-grid.is-loading { opacity: .5; pointer-events: none; transition: opacity .2s; }
.v2-latest-grid { transition: opacity .2s; }

/* Palinsesto. */
/* The day's rows dim while another day loads; the backdrop never takes clicks. */
[data-v2-palinsesto].is-loading [data-v2-day-body] { opacity: .5; transition: opacity .2s; }
.v2-pal-backdrop { pointer-events: none; }

/* CONTINUA A GUARDARE (members, main.js HomeContinueWatching). */
.v2-cw-item { position: relative; }
.v2-cw-rule { position: absolute; left: 0; right: 0; bottom: 0; z-index: 25; display: block; height: 3px; background: rgb(0 0 0 / .4); }
.v2-cw-item .v2-cw-rule { top: auto; }
.v2-cw-rule > span { display: block; height: 100%; background: rgb(var(--tw-blue-200)); }
.v2-cw-remove { position: absolute; top: 6px; right: 6px; z-index: 30; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: rgb(var(--tw-text-100)); background: rgba(var(--tw-back-900), .85); border: 0; border-radius: 5px; cursor: pointer; opacity: 0; transition: opacity .2s; }
.v2-cw-item:hover .v2-cw-remove, .v2-cw-remove:focus-visible { opacity: 1; }
@media (pointer: coarse) { .v2-cw-remove { opacity: 1; } }

/* ULTIMI COMMENTI (notifications-bell.js fills [data-hd-list]). */
.v2-hd-tab { color: rgb(var(--tw-text-300)); }
.v2-hd-tab.active { color: #fff; background: rgb(var(--tw-blue-300)); }
.v2-hd-switch { display: inline-flex; align-items: center; width: 30px; height: 16px; margin: 0 .25rem; padding: 2px; background: rgb(var(--tw-fore-600)); border-radius: 9999px; cursor: pointer; }
.v2-hd-switch > span { display: block; width: 12px; height: 12px; background: #fff; border-radius: 9999px; transition: transform .2s; }
.v2-hd-switch[aria-checked="true"] { background: rgb(var(--tw-blue-300)); }
.v2-hd-switch[aria-checked="true"] > span { transform: translateX(14px); }
#home-discussion.is-off .v2-hd-body { display: none; }
.v2-hd-list { display: flex; flex-direction: column; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.v2-hd-list .au-hd-row { display: flex; gap: .6rem; padding: .5rem; border-radius: .375rem; background: rgb(var(--tw-fore-700)); }
.v2-hd-list .au-hd-avatar { width: 32px; height: 32px; border-radius: 9999px; object-fit: cover; flex: 0 0 32px; }
.v2-hd-list .au-hd-body { min-width: 0; font-size: 13px; }
.v2-hd-list .au-hd-about { display: flex; gap: .5rem; align-items: baseline; }
.v2-hd-list .au-hd-user { color: rgb(var(--tw-text-100)); }
.v2-hd-list .au-hd-user.is-staff { color: rgb(var(--tw-blue-200)); }
.v2-hd-list .au-hd-time { font-size: 11px; color: rgb(var(--tw-text-300)); }
.v2-hd-list .au-hd-text { margin: .2rem 0; color: rgb(var(--tw-text-200)); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.v2-hd-list .au-hd-on { font-size: 12px; color: rgb(var(--tw-text-300)); }
.v2-hd-list .au-hd-on:hover { color: rgb(var(--tw-blue-200)); }
.v2-hd-list .au-empty { padding: .5rem; font-size: 13px; color: rgb(var(--tw-text-300)); text-align: center; }
.au-hd-loading { display: none; }
