/*
 * `animeworld` theme — the home's additions (frontend/home.blade.php). animeworld.ac's own rules for the home are
 * in the vendored css/all.css and css/pages/index-index.css; this file holds only what the CMS adds or needs:
 *
 *   1. Genres          CMS genre names can be longer than animeworld's: one line each, cut with an ellipsis
 *   2. Calendario      the widget while its body loads (aw-home.js), a day with no releases, past rows
 *   3. Continua a guardare (CMS, members)   the progress rule and the remove button on animeworld's poster card
 *   4. Ultimi commenti (CMS)                the sidebar widget: tabs, on/off switch, rows
 *   5. Slider          a title of the CMS can be one long word
 * Every rule is scoped to `#app.home` or to a class of its own.
 */

/* 1. Genres */
#app.home .widget.genres ul li a { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* 2. Calendario */
#app.home .widget.schedule .aw-schedule-loading { display: flex; justify-content: center; padding: 40px 0; }
#app.home .widget.schedule .aw-schedule-loading .spinner-border { width: 3rem; height: 3rem; color: #367dc3; }
#app.home .widget.schedule .timeline .item.aw-empty-day .info { margin-left: 0; padding: 4px 5px; }
#app.home .widget.schedule .timeline .item.aw-empty-day .name { color: #8c8c8c; cursor: default; }
#app.home .widget.schedule .timeline .item.aw-past .calendar-time { opacity: .6; }
#app.home .widget.schedule .slider .item { cursor: pointer; }
#app.home .widget.schedule .slider .item:focus-visible { outline: 2px solid #367dc3; outline-offset: -2px; }

/* 3. Continua a guardare */
.aw-cw .widget-title .more { margin-left: 6px; }
.aw-cw .film-list .item .inner { position: relative; }
.aw-cw .aw-cw-rule { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0, 0, 0, .45); }
.aw-cw .aw-cw-rule > span { display: block; height: 100%; background: #367dc3; }
.aw-cw .aw-cw-remove { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; line-height: 24px; opacity: 0; transition: opacity .2s ease-in-out, background-color .2s ease-in-out; }
.aw-cw .film-list .item:hover .aw-cw-remove, .aw-cw .aw-cw-remove:focus { opacity: 1; }
.aw-cw .aw-cw-remove:hover { background: #ef4343; }
@media (hover: none) { .aw-cw .aw-cw-remove { opacity: 1; } }

/* 4. Ultimi commenti */
.aw-discussion .widget-title { position: relative; }
.aw-discussion .aw-hd-tabs .tab { cursor: pointer; }
.aw-discussion .aw-hd-toggle { position: absolute; top: 50%; right: 8px; margin-top: -10px; }
.aw-discussion .aw-hd-toggle .switch { cursor: pointer; }
.aw-discussion .aw-hd-toggle .switch:focus-visible { outline: 2px solid #367dc3; outline-offset: 2px; }
.aw-discussion #home-discussion.is-on .aw-hd-toggle .slider { background-color: #000; }
.aw-discussion #home-discussion.is-on .aw-hd-toggle .slider:before { transform: translateX(13px); }
.aw-discussion #home-discussion.is-off .hd-body { display: none; }
.aw-discussion .hd-body { padding-bottom: 0; }
.aw-discussion .aw-hd-loading { display: none; }
.aw-discussion .aw-hd-list { margin: 0; padding: 0; list-style: none; }
.aw-discussion .aw-hd-list .item { overflow: hidden; padding: 10px 0; border-bottom: 1px solid #eee; }
.aw-discussion .aw-hd-list .item:last-child { border-bottom: 0; }
.aw-discussion .aw-hd-list .item .aw-hd-avatar { float: left; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.aw-discussion .aw-hd-list .item .info { margin-left: 50px; font-size: .9rem; color: #8c8c8c; }
.aw-discussion .aw-hd-list .item .aw-hd-user { display: block; font-size: 1rem; font-weight: 500; color: #555; }
.aw-discussion .aw-hd-list .item .aw-hd-user.is-staff { color: #367dc3; }
.aw-discussion .aw-hd-list .item .aw-hd-time { margin-left: 4px; font-size: .8rem; font-weight: 400; color: #a2a2a2; }
.aw-discussion .aw-hd-list .item .aw-hd-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 3px 0; color: #6d6d6d; overflow-wrap: anywhere; }
.aw-discussion .aw-hd-list .item .aw-hd-on { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #367dc3; }
.aw-discussion .aw-hd-list .item .aw-hd-on:hover { color: #165fa7; }
body.dark .aw-discussion .aw-hd-list .item { border-color: #333; }
body.dark .aw-discussion .aw-hd-list .item .aw-hd-user { color: #e0e0e0; }
body.dark .aw-discussion .aw-hd-list .item .aw-hd-text { color: #a8a8a8; }

/* 5. Slider */
#app.home .widget.slider .item .info .name, #app.home .widget.slider .item .info p { overflow-wrap: anywhere; }
