/* ============================================================
   SpoiLock — assets/css/pages/series.css
   Cartella: /assets/css/pages/
   Hub della serie. Progettato prima per lo smartphone
   (colonna unica, schede fisse, aree di tocco da 44 px);
   su schermi grandi la stessa interfaccia si allarga.
   ============================================================ */

.st-hub { --st-hub-max: 820px; }
.st-hub .container { max-width: var(--st-hub-max); }

/* ---------- Copertina ---------- */
.st-hub-hero {
    position: relative;
    padding-top: 1.25rem;
    overflow: hidden;
    isolation: isolate;
}
.st-hub-backdrop {
    position: absolute;
    inset: -40px;
    z-index: -1;
    background-size: cover;
    background-position: center 25%;
    filter: blur(28px) saturate(130%);
    opacity: .45;
    transform: scale(1.1);
}
.st-hub-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 10, 11, .15) 0%, rgba(10, 10, 11, .75) 55%, var(--st-ink) 100%);
}

/* SpoiLock Studio: immagine di copertina nitida come banner (solo serie gestite con Studio) */
.st-hub-banner {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: var(--st-banner-h);
    z-index: -1;
    background-size: cover;
    background-position: center 30%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.st-hub-hero.has-banner { --st-banner-h: 190px; padding-top: calc(var(--st-banner-h) - 70px); }
.st-hub-hero.has-banner .st-hub-backdrop { opacity: .3; }
.st-hub-hero.has-banner::after { background: linear-gradient(180deg, transparent 0%, transparent calc(var(--st-banner-h) - 110px), rgba(10, 10, 11, .7) calc(var(--st-banner-h) - 20px), var(--st-ink) 100%); }
@media (min-width: 768px) { .st-hub-hero.has-banner { --st-banner-h: 300px; padding-top: calc(var(--st-banner-h) - 130px); } }
@media (min-width: 1400px) { .st-hub-hero.has-banner { --st-banner-h: 340px; } }

.st-hub-hero-inner {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}
.st-hub-poster {
    width: 112px;
    height: auto;
    flex-shrink: 0;
    border-radius: var(--st-radius);
    box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .8);
}
.st-hub-heading { min-width: 0; padding-bottom: .15rem; }

.st-hub-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .55rem; }
.st-hub-tag {
    padding: .15rem .55rem;
    border-radius: 999px;
    background: rgba(242, 242, 243, .1);
    color: var(--st-text);
    font-size: .75rem;
    font-weight: 600;
}
.st-hub-tag--ongoing  { background: rgba(74, 222, 128, .14); color: #86EFAC; }
.st-hub-tag--upcoming { background: rgba(242, 181, 68, .16); color: var(--st-spoiler); }
/* Pillola "Gestisci questa serie" (SpoiLock Studio): discreta, a contorno */
.st-hub-tag--studio { display: inline-flex; align-items: center; gap: .25rem; background: transparent; box-shadow: inset 0 0 0 1px rgba(242, 242, 243, .22); color: var(--st-muted); text-decoration: none; }
.st-hub-tag--studio:hover, .st-hub-tag--studio:focus-visible { color: var(--st-text); box-shadow: inset 0 0 0 1px rgba(242, 242, 243, .5); }
/* SpoiLock Studio: «Gestita da…» */
.st-hub-tag--managed { display: inline-flex; align-items: center; gap: .3rem; background: rgba(77, 163, 255, .14); color: #9CCBFF; max-width: 100%; white-space: normal; text-align: left; line-height: 1.25; }
.st-hub-tag--managed i { color: #4DA3FF; }

.st-hub-title {
    margin: 0 0 .25rem;
    font-size: clamp(1.6rem, 1.2rem + 2.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}
.st-hub-original { margin: 0 0 .2rem; color: var(--st-muted); font-size: .85rem; }
.st-hub-followers { margin: 0; color: var(--st-muted); font-size: .85rem; }

.st-hub-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-block: 1.1rem .5rem;
}
.st-hub-follow { flex: 1 1 auto; min-height: 44px; }
.st-hub-share { flex-shrink: 0; background: var(--st-surface); border: 1px solid var(--st-line); }

/* "Da guardare" (chi non segue la serie) e stato della serie (chi la segue) */
.st-hub-todo, .st-hub-state {
    flex: 1 1 auto; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .45rem 1rem; border-radius: 999px; font-weight: 700; font-size: .95rem; white-space: nowrap; text-decoration: none;
}
.st-hub-todo { border: 1px solid var(--st-line); background: transparent; color: var(--st-text); }
.st-hub-todo:hover { border-color: #4a4a50; color: var(--st-text); background: var(--st-surface); }
.st-hub-todo[hidden], .st-hub-state[hidden] { display: none; }
.st-hub-state.is-todo    { background: rgba(242, 181, 68, .14); color: #F2B544; border: 1px solid rgba(242, 181, 68, .45); }
.st-hub-state.is-started { background: rgba(96, 165, 250, .14); color: #93C5FD; border: 1px solid rgba(96, 165, 250, .45); }
.st-hub-state.is-done    { background: rgba(34, 197, 94, .14);  color: #4ADE80; border: 1px solid rgba(34, 197, 94, .45); }
.st-hub-follow { white-space: nowrap; }

@media (min-width: 576px) {
    .st-hub-poster { width: 150px; }
    .st-hub-follow { flex: 0 0 auto; min-width: 170px; }
    .st-hub-todo, .st-hub-state { flex: 0 0 auto; min-width: 170px; }
}

/* ---------- Corpo ---------- */
.st-hub-body { padding-bottom: 2rem; }

/* Barra di avanzamento */
.st-bar {
    display: block;
    height: 6px;
    border-radius: 999px;
    background: var(--st-raised);
    overflow: hidden;
}
.st-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--st-accent);
    transition: width .35s ease;
}

.st-hub-progress { margin: .5rem 0 1rem; }
.st-hub-progress-text {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .45rem;
    color: var(--st-muted);
    font-size: .88rem;
}
.st-hub-progress-text strong { color: var(--st-text); font-variant-numeric: tabular-nums; }

/* Prossimo episodio */
.st-next {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(218, 9, 21, .45);
    border-radius: var(--st-radius);
    background: linear-gradient(135deg, rgba(218, 9, 21, .14), rgba(218, 9, 21, .04));
    color: var(--st-text);
    text-decoration: none;
}
.st-next:hover { color: var(--st-text); border-color: var(--st-accent); }
.st-next-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(218, 9, 21, .18);
    color: var(--st-accent-hi);
    font-size: 1.15rem;
}
.st-next-info { display: flex; flex-direction: column; gap: .1rem; min-width: 0; flex: 1 1 auto; }
.st-next-info small { color: var(--st-accent-hi); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.st-next-info strong { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-next-info .st-ep-code { font-size: .72rem; margin-right: .25rem; }
.st-next-date { color: var(--st-muted); font-size: .8rem; }
.st-countdown {
    flex-shrink: 0;
    font-family: var(--st-font-display);
    font-weight: 700;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
    line-height: 1.1;
}
.st-countdown small { display: block; color: var(--st-muted); font-family: var(--st-font-body); font-size: .7rem; font-weight: 600; }

/* Invito ospiti */
.st-hub-guest {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-surface);
}
.st-hub-guest p { margin: .25rem 0 .8rem; color: var(--st-muted); font-size: .9rem; }
.st-hub-guest-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- Schede (fisse sotto la barra in alto) ---------- */
.st-tabs {
    position: sticky;
    top: calc(var(--st-topbar-h) + var(--st-safe-top));
    z-index: 10;
    display: flex;
    margin-inline: calc(var(--bs-gutter-x) * -.5);
    padding-inline: calc(var(--bs-gutter-x) * .5);
    background: rgba(10, 10, 11, .94);
    border-bottom: 1px solid var(--st-line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.st-tab {
    position: relative;
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 48px;
    border: 0;
    background: none;
    color: var(--st-muted);
    font-weight: 600;
    font-size: .95rem;
}
.st-tab.is-active { color: #fff; }
.st-tab.is-active::after {
    content: "";
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--st-accent);
}
.st-tab-count {
    padding: 0 .4rem;
    border-radius: 999px;
    background: var(--st-raised);
    font-size: .72rem;
    line-height: 1.5;
}

.st-panel { padding-top: 1.1rem; }
.st-panel:focus { outline: none; }
.st-panel-intro { color: var(--st-muted); font-size: .9rem; }
.st-panel-title { font-size: 1.05rem; margin: 1.25rem 0 .6rem; }
.st-panel-title:first-child { margin-top: 0; }

/* ---------- Stagioni ---------- */
.st-seasons {
    display: flex;
    gap: .4rem;
    margin-inline: calc(var(--bs-gutter-x) * -.5);
    padding: 0 calc(var(--bs-gutter-x) * .5) .25rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.st-seasons::-webkit-scrollbar { display: none; }
.st-season-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 40px;
    padding: 0 .8rem;
    border: 1px solid var(--st-line);
    border-radius: 999px;
    color: var(--st-muted);
    font-family: var(--st-font-display);
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    scroll-snap-align: start;
}
.st-season-chip:hover { color: var(--st-text); }
.st-season-chip.is-active { border-color: var(--st-accent); background: var(--st-accent); color: #fff; }

.st-season-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .25rem .75rem;
    margin: 1rem 0 .4rem;
}
.st-season-head > div { display: flex; align-items: baseline; gap: .6rem; min-width: 0; }
.st-season-title { margin: 0; font-size: 1.15rem; white-space: nowrap; }
.st-season-progress { color: var(--st-muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.st-season-mark {
    --bs-btn-padding-x: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 36px;
    margin-left: auto;
    border-color: #3A3A40;
    font-size: .82rem;
    font-weight: 600;
}
.st-season-mark .bi { font-size: 1rem; color: var(--st-accent-hi); }
.st-season-mark[data-done="1"] .bi { color: var(--st-muted); }

/* "Segna tutta la serie come vista" (sopra le stagioni) */
.st-series-mark {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 40px;
    margin: .25rem 0 .9rem;
    font-weight: 600;
}
.st-series-mark .bi { font-size: 1.05rem; }

/* Computer: le stagioni vanno a capo invece di scorrere in orizzontale
   (con il mouse una fila che scorre senza barra non si può spostare) */
@media (min-width: 768px), (hover: hover) and (pointer: fine) {
    .st-seasons {
        flex-wrap: wrap;
        margin-inline: 0;
        padding: 0 0 .25rem;
        overflow: visible;
    }
}

/* ---------- Episodi ---------- */
.st-ep-list { margin: 0; padding: 0; list-style: none; }
.st-ep-list[aria-busy="true"] { opacity: .5; }

.st-ep-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(44, 44, 48, .7);
}
.st-ep-row:last-child { border-bottom: 0; }

.st-ep-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 60px;
    padding: .55rem 0;
    color: var(--st-text);
    text-decoration: none;
}
.st-ep-link:hover { color: #fff; }
.st-ep-link .st-ep-code { flex-shrink: 0; min-width: 76px; justify-content: center; }
.st-ep-info { display: flex; flex-direction: column; min-width: 0; }
.st-ep-info strong { font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-ep-info small { color: var(--st-muted); font-size: .78rem; }

.st-ep-row.is-watched .st-ep-code { border-color: rgba(218, 9, 21, .5); color: var(--st-accent-hi); }
.st-ep-row.is-watched .st-ep-info strong { color: var(--st-muted); }
.st-ep-row.is-upcoming .st-ep-link { opacity: .65; }

.st-watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: #55555C;
    font-size: 1.35rem;
    transition: color .15s ease, transform .15s ease;
}
.st-watch:hover { color: var(--st-text); }
.st-watch[aria-pressed="true"] { color: var(--st-accent); }
.st-watch:active { transform: scale(.88); }
.st-watch.is-disabled { color: #45454B; font-size: 1.1rem; }

/* ---------- Info ---------- */
.st-overview { color: #D4D4D8; line-height: 1.65; }
.st-details {
    margin: 0;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-surface);
}
.st-details > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--st-line);
}
.st-details > div:last-child { border-bottom: 0; }
.st-details dt { color: var(--st-muted); font-weight: 500; }
.st-details dd { margin: 0; text-align: right; font-weight: 600; }

/* Stato vuoto delle discussioni */
#panel-discussions .st-empty .st-ico { display: block; margin: 0 auto .9rem; }

/* Pulsante "Scrivi un post" nelle discussioni */
.st-panel-action { margin-bottom: 1rem; }

/* ---------- Voti ---------- */
/* Media sotto il titolo */
.st-hub-rating { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .3rem 0 0; color: var(--st-muted); font-size: .85rem; }
.st-hub-rating strong { color: var(--st-text); font-family: var(--st-font-display); font-size: 1rem; }
/* Voto di TMDB: si tocca per vedere la fonte */
.st-hub-rating-src { display: inline-flex; align-items: center; gap: .35rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.st-hub-rating-note { flex-basis: 100%; color: var(--st-muted); font-size: .75rem; }
/* Fonte dei dati del catalogo, in fondo alla pagina */
.st-hub-tmdb { margin: 2rem 0 .5rem; color: var(--st-muted); font-size: .75rem; line-height: 1.4; text-align: center; }

/* Riquadro "Il tuo voto" */
.st-rate {
    margin: 0 0 1rem;
    padding: .85rem 1rem;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-surface);
}
.st-rate.is-busy { opacity: .6; pointer-events: none; }
/* Voto già dato: riquadro chiuso in una riga (si apre per modificare) */
.st-rate-fold { display: flex; align-items: center; flex-wrap: nowrap; gap: .3rem .6rem; width: 100%; padding: 0; border: 0; background: none; color: var(--st-text); text-align: left; }
.st-rate-fold strong { font-size: .95rem; }
.st-rate-fold-stars { display: inline-flex; gap: .1rem; color: var(--st-spoiler, #F2B544); font-size: .9rem; }
.st-rate-fold-stars .bi-star { color: #55555C; }
.st-rate-fold-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--st-muted); font-size: .84rem; }
.st-rate-fold strong, .st-rate-fold-stars { flex: none; }
.st-rate-fold-edit { flex: none; margin-left: auto; color: var(--st-muted); font-size: .84rem; white-space: nowrap; }
.st-rate-fold-edit .bi { display: inline-block; transition: transform .2s ease; }
.st-rate:not(.is-folded) .st-rate-fold { margin-bottom: .6rem; }
.st-rate:not(.is-folded) .st-rate-fold-edit .bi { transform: rotate(180deg); }
.st-rate-fold + .st-rate-body .st-rate-head strong { display: none; }
.st-rate-fold + .st-rate-body .st-rate-head { justify-content: flex-end; }
@media (max-width: 420px) { .st-rate-fold-label { display: none; } .st-rate-fold { gap: .3rem .5rem; } }
.st-rate-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.st-rate-head strong { font-size: .95rem; }
.st-rate-remove { padding: .2rem 0; border: 0; background: none; color: var(--st-muted); font-size: .82rem; text-decoration: underline; text-underline-offset: .2em; }
.st-rate-stars { display: flex; gap: .15rem; }
.st-rate-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--st-spoiler);
    font-size: 1.75rem;
    transition: transform .12s ease;
}
.st-rate-star .bi-star { color: #55555C; }
.st-rate-star:not(:disabled):hover { transform: scale(1.12); }
.st-rate-star:not(:disabled):active { transform: scale(.9); }
.st-rate-star:disabled { cursor: not-allowed; opacity: .55; }
.st-rate-note { display: flex; align-items: flex-start; gap: .45rem; margin: .4rem 0 0; color: var(--st-muted); font-size: .84rem; }
.st-rate-note .bi { margin-top: .1rem; }
/* Recensione: due righe facoltative sotto le stelle (compaiono nel feed) */
.st-rate-review { margin-top: .6rem; padding-top: .7rem; border-top: 1px solid var(--st-line); }
.st-rate-review-label { display: block; margin-bottom: .35rem; font-size: .88rem; font-weight: 600; }
.st-rate-review textarea { resize: vertical; min-height: 64px; }
.st-rate-review-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; margin-top: .5rem; }
.st-rate-review-spoiler { margin: 0; font-size: .85rem; }
.st-rate-review-count { margin-left: auto; color: var(--st-muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.st-rate-review-hint { margin: .5rem 0 0; color: var(--st-muted); font-size: .8rem; }
.st-rate-review-hint .bi { margin-right: .3rem; }
.st-rate-review-hint a { margin-left: .3rem; white-space: nowrap; }
.st-rate-review-hint a { color: var(--st-text); text-decoration: underline; text-underline-offset: .2em; }

/* Serie simili in fondo alle schede */
.st-panel .st-series-strip { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--st-line); }

/* ---------- Dove guardarla (TMDB/JustWatch) ---------- */
/* SpoiLock Studio: link ufficiali «Guarda su…» (sopra il riquadro di TMDB) */
.st-official-watch { margin: 0 0 .8rem; padding: .85rem 1rem; background: var(--st-surface); border: 1px solid var(--st-line); border-radius: var(--st-radius); }
.st-official-watch-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; margin: 0 0 .65rem; font-weight: 700; color: var(--st-text); }
.st-official-watch-head i { color: #4DA3FF; }
.st-official-watch-head span { font-size: .8rem; font-weight: 400; color: var(--st-muted); }
.st-official-watch-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.st-official-watch-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 42px; padding: .5rem .95rem; border-radius: 999px; background: var(--st-accent); color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; max-width: 100%; }
.st-official-watch-btn span, .st-official-watch-btn { overflow-wrap: anywhere; }
.st-official-watch-btn .bi-box-arrow-up-right { font-size: .75rem; opacity: .8; }
.st-official-watch-btn:hover, .st-official-watch-btn:focus-visible { background: var(--st-accent-hi); color: #fff; }

.st-wtw { margin: 0 0 1.1rem; background: var(--st-surface); border: 1px solid var(--st-line); border-radius: var(--st-radius); }
.st-wtw { padding: 0; }
.st-wtw-head {
    display: flex; align-items: center; gap: .55rem; padding: .85rem 1rem;
    list-style: none; cursor: pointer; user-select: none; border-radius: var(--st-radius);
}
.st-wtw-head::-webkit-details-marker { display: none; }
.st-wtw-head:focus-visible { outline: 2px solid var(--st-accent-hi); outline-offset: 2px; }
.st-wtw-title { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: 1rem; font-weight: 700; color: var(--st-text); }
.st-wtw-peek { display: flex; margin-left: auto; }
.st-wtw-peek img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; border: 2px solid var(--st-surface); margin-left: -6px; background: var(--st-raised); }
.st-wtw[open] .st-wtw-peek { visibility: hidden; }
.st-wtw-chev { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--st-raised); color: var(--st-text); font-size: .85rem; transition: transform .2s ease; }
.st-wtw-head:not(:has(.st-wtw-peek)) .st-wtw-chev { margin-left: auto; }
.st-wtw[open] .st-wtw-chev { transform: rotate(180deg); }
.st-wtw-body { padding: 0 1rem .9rem; }
.st-wtw[open] .st-wtw-body { animation: st-wtw-open .2s ease; }
@keyframes st-wtw-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.st-wtw-title .bi { color: var(--st-accent-hi); }
.st-wtw-country { color: var(--st-muted); font-size: .8rem; white-space: nowrap; }
.st-wtw-label { margin: .55rem 0 .4rem; color: var(--st-muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.st-wtw-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.st-wtw-item { display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 58px; color: var(--st-text); text-decoration: none; }
.st-wtw-item img, .st-wtw-noimg { width: 46px; height: 46px; border-radius: 11px; object-fit: cover; background: var(--st-raised); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .15s ease; }
.st-wtw-noimg { display: grid; place-items: center; font-weight: 800; }
.st-wtw-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .7rem; color: var(--st-muted); }
.st-wtw-list.is-small .st-wtw-item { width: 46px; }
.st-wtw-list.is-small img, .st-wtw-list.is-small .st-wtw-noimg { width: 36px; height: 36px; border-radius: 9px; }
.st-wtw-foot { margin: .7rem 0 0; color: var(--st-muted); font-size: .76rem; }
.st-wtw-foot a { color: var(--st-text); }

/* Recensioni nella scheda della serie: le ultime 3 (voto + due righe) */
.st-hub-reviews { margin: 0 0 1rem; padding: .85rem 1rem; border: 1px solid var(--st-line); border-radius: var(--st-radius); background: var(--st-surface); }
.st-hub-reviews-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .4rem; }
.st-hub-reviews-head h2 { margin: 0; font-size: .95rem; font-weight: 700; }
.st-hub-reviews-head h2 .bi { color: var(--st-spoiler); }
.st-hub-reviews-head h2 span { color: var(--st-muted); font-weight: 500; }
.st-hub-reviews-head a { color: var(--st-text); font-size: .84rem; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.st-hub-reviews-list { list-style: none; margin: 0; padding: 0; }
.st-hub-reviews-list li + li { border-top: 1px solid var(--st-line); }
.st-hub-review { display: flex; align-items: flex-start; gap: .65rem; padding: .6rem 0; color: inherit; text-decoration: none; }
.st-hub-review:hover .st-hub-review-text { color: var(--st-text); }
.st-hub-review img { flex-shrink: 0; width: 32px; height: 32px; }
.st-hub-review-main { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.st-hub-review-top { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .55rem; font-size: .9rem; }
.st-hub-review-top .st-review-stars { font-size: .85rem; gap: .1rem; }
.st-hub-review-text { color: var(--st-muted); font-size: .88rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.st-hub-review-text.is-spoiler { color: var(--st-spoiler); }

/* ============================================================
   "Segna tutta la serie come vista" accanto a Segui / Da guardare:
   su computer sulla stessa riga, su telefono sotto a tutta larghezza
   ============================================================ */
.st-hub-actions { flex-wrap: wrap; }
.st-hub-mark {
    order: 10;                       /* telefono: dopo Condividi, su una riga sua */
    flex: 1 0 100%;
    min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .45rem 1rem; border-radius: 999px; font-weight: 700; font-size: .95rem; white-space: nowrap;
    border: 1px solid rgba(218, 9, 21, .55); background: rgba(218, 9, 21, .1); color: var(--st-text);
    transition: background-color .15s ease, border-color .15s ease;
}
.st-hub-mark:hover { background: rgba(218, 9, 21, .2); border-color: var(--st-accent); }
.st-hub-mark .bi { font-size: 1.05rem; color: var(--st-accent-hi); }
.st-hub-mark.is-done { border-color: var(--st-line); background: transparent; color: var(--st-muted); }
.st-hub-mark.is-done .bi { color: var(--st-muted); }
.st-hub-mark:disabled { opacity: .6; }
@media (min-width: 576px) {
    .st-hub-mark { order: 0; flex: 0 0 auto; }
    .st-hub-share { order: 1; }
}
}

/* ============================================================
   Elenco delle puntate: a sinistra si apre la stanza (freccia "›"),
   a destra la pillola "Visto?" / "Visto", separate da una linea
   ============================================================ */
.st-ep-link { padding-right: .6rem; border-radius: 10px; transition: background-color .15s ease; }
.st-ep-link:hover { background: rgba(255, 255, 255, .04); }
.st-ep-info { flex: 1 1 auto; }
.st-ep-go { flex-shrink: 0; margin-left: auto; color: #6b6b73; font-size: .95rem; transition: transform .15s ease, color .15s ease; }
.st-ep-link:hover .st-ep-go { color: var(--st-text); transform: translateX(2px); }
.st-ep-posts .bi { font-size: .8em; }

.st-ep-row .st-watch {
    width: auto; height: 34px; gap: .3rem;
    margin-left: .55rem; padding: 0 .75rem 0 .6rem;
    border: 1px solid #3a3a40; border-radius: 999px;
    color: var(--st-muted); font-size: .82rem; font-weight: 700; white-space: nowrap;
    position: relative;
}
.st-ep-row .st-watch::before {     /* linea verticale tra le due zone */
    content: ''; position: absolute; left: calc(-.55rem / 2 - 1px); top: 4px; bottom: 4px;
    width: 1px; background: rgba(255, 255, 255, .08); pointer-events: none;
}
.st-ep-row .st-watch .bi { font-size: 1rem; }
.st-ep-row .st-watch:hover { color: var(--st-text); border-color: #5a5a62; background: rgba(255, 255, 255, .04); }
.st-ep-row .st-watch.is-on { border-color: rgba(34, 197, 94, .55); background: rgba(34, 197, 94, .14); color: #4ADE80; }
.st-ep-row .st-watch.is-on:hover { background: rgba(34, 197, 94, .22); }
.st-ep-row .st-watch.is-busy { opacity: .55; pointer-events: none; }
.st-ep-row .st-watch.is-disabled { width: 34px; padding: 0; border-color: transparent; }
.st-ep-row .st-watch.is-disabled::before { display: none; }
.st-ep-row.is-watched .st-ep-code { border-color: rgba(34, 197, 94, .45); color: #4ADE80; }
@media (max-width: 380px) {
    .st-ep-link .st-ep-code { min-width: 62px; }
    .st-ep-row .st-watch { padding: 0 .55rem 0 .45rem; }
}

/* Suggerimento (una volta sola) */
.st-ep-hint {
    display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem;
    margin: 0 0 .9rem; padding: .7rem .9rem;
    border: 1px solid rgba(242, 181, 68, .35); border-radius: var(--st-radius-sm, 10px); background: rgba(242, 181, 68, .07);
    font-size: .88rem;
}
.st-ep-hint[hidden] { display: none; }
.st-ep-hint > .bi { color: #F2B544; font-size: 1.1rem; }
.st-ep-hint > span { flex: 1 1 200px; }

/* Finestra "Hai visto anche le puntate precedenti?" */
.st-prev-title { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 700; }
.st-prev-title .bi { color: var(--st-accent-hi); margin-right: .2rem; }
.st-prev-actions { gap: .5rem; flex-wrap: wrap; }
@media (max-width: 420px) { .st-prev-actions { flex-direction: column-reverse; align-items: stretch; } .st-prev-actions .btn { width: 100%; margin: 0; } }

/* ---------- Trailer dello studio: ▶ sulla locandina e finestra sopra la pagina ---------- */
.st-hub-poster-btn { position: relative; flex-shrink: 0; padding: 0; border: 0; background: none; border-radius: var(--st-radius); cursor: pointer; }
.st-hub-poster-btn .st-hub-poster { display: block; }
.st-hub-poster-btn::after { content: ''; position: absolute; inset: 0; border-radius: var(--st-radius); background: rgba(0, 0, 0, .18); transition: background .15s; }
.st-hub-poster-btn:hover::after { background: rgba(0, 0, 0, .3); }
.st-hub-play {
    position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
    background: rgba(10, 10, 11, .55); border: 2px solid rgba(255, 255, 255, .9); color: #fff; font-size: 1.9rem;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .55); backdrop-filter: blur(4px); transition: transform .15s, background .15s;
}
.st-hub-play .bi { margin-left: 3px; }
.st-hub-poster-btn:hover .st-hub-play, .st-hub-poster-btn:focus-visible .st-hub-play { transform: translate(-50%, -50%) scale(1.08); background: var(--st-accent); border-color: var(--st-accent); }
.st-hub-play-label {
    position: absolute; z-index: 1; left: 50%; bottom: .5rem; transform: translateX(-50%); padding: .1rem .5rem; border-radius: 999px;
    background: rgba(10, 10, 11, .7); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.st-hub-poster-btn:focus-visible { outline: 2px solid var(--st-accent-hi); outline-offset: 3px; }
@media (min-width: 576px) { .st-hub-play { width: 64px; height: 64px; font-size: 2.2rem; } }

.st-trailer-on { overflow: hidden; }
.st-trailer-modal {
    position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 1rem;
    background: rgba(0, 0, 0, .86); backdrop-filter: blur(6px); animation: st-trailer-in .18s ease-out;
}
@keyframes st-trailer-in { from { opacity: 0; } }
.st-trailer-box { width: min(100%, 1100px, calc((100vh - 7rem) * var(--ratio, 1.7778))); }
.st-trailer-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .55rem; }
.st-trailer-bar .st-trailer-head { margin: 0; min-width: 0; }
.st-trailer-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; font-weight: 800; color: #fff; }
.st-trailer-head > .bi { color: var(--st-accent-hi); }
.st-trailer-head span { color: var(--st-muted); font-size: .8rem; font-weight: 600; }
.st-trailer-head span .bi { color: #4DA3FF; }
.st-trailer-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.1rem; }
.st-trailer-x:hover { background: rgba(255, 255, 255, .22); }
.st-trailer-media { position: relative; width: 100%; aspect-ratio: var(--ratio, 1.7778); max-height: calc(100vh - 7rem); border-radius: 12px; overflow: hidden; background: #000; }
.st-trailer-frame, .st-trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: contain; background: #000; }

/* Post fissato in alto, prima delle schede: compatto */

/* Campanella della serie seguita, dentro "Segui già": tutto / solo nuovi episodi / niente + Non seguire più */
.st-hub-follow-wrap { flex: 1 1 auto; display: flex; min-width: 0; }
.st-hub-follow-wrap .st-hub-follow { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.st-hub-follow-caret { font-size: .75rem; opacity: .7; }
.st-hub-follow-caret[hidden] { display: none; }
.st-hub-follow.dropdown-toggle::after { display: none; }
@media (min-width: 576px) {
    .st-hub-follow-wrap { flex: 0 0 auto; }
}
.st-bell-menu { min-width: 280px; }
.st-bell-menu .dropdown-item { display: flex; align-items: flex-start; gap: .65rem; padding: .55rem .9rem; white-space: normal; }
.st-bell-menu .dropdown-item > .bi { margin-top: .15rem; font-size: 1.05rem; }
.st-bell-menu .dropdown-item span { display: flex; flex-direction: column; }
.st-bell-menu .dropdown-item small { color: var(--st-muted); font-size: .78rem; }
.st-bell-menu .dropdown-item.active { background: rgba(218, 9, 21, .14); color: #fff; }
.st-bell-menu .dropdown-item.active small { color: #d6d6da; }
.st-bell-menu .st-bell-unfollow { color: #f87171; }

/* Telefono (in fondo al file: deve valere sopra le regole generali di .st-hub-follow-wrap)
   - 1ª riga: Segui (o Segui già con la campanella), della misura che serve,
     e "Da guardare" / "Iniziata · 102/103" / "Vista", che prende tutto il resto
   - 2ª riga: "Segna tutta la serie come vista / non vista" e accanto Condividi
   Senza il pulsante "Segna tutta la serie", Condividi resta sulla 1ª riga */
@media (max-width: 575.98px) {
    .st-hub-actions > .st-hub-follow-wrap,
    .st-hub-actions > .st-hub-follow { flex: 0 0 auto; order: 0; }
    .st-hub-actions .st-hub-follow { padding-inline: .9rem; gap: .35rem; }
    .st-hub-actions > .st-hub-todo,
    .st-hub-actions > .st-hub-state { flex: 1 1 0; min-width: 0; order: 0; padding-inline: .7rem; gap: .35rem; }
    .st-hub-todo > span, .st-hub-state > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .st-hub-actions > .st-hub-mark { order: 10; flex: 1 1 calc(100% - 44px - .5rem); min-width: 0; padding-inline: .8rem; }
    .st-hub-mark > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .st-hub-actions > .st-sharebox { order: 11; flex: 0 0 auto; }
}
