/* ══ Bottom sheet mobile (cx-sheet) + rating popup (tc-rate) — portati dal tema SC ══ */
html.cx-sheet-open { overflow: hidden; }
.cx-sheet-overlay {
  position: fixed; inset: 0; z-index: 4000; background: rgba(0,0,0,.6);
  display: flex; align-items: flex-end; animation: cx-sheet-fade .2s ease;
}
@keyframes cx-sheet-fade { from { opacity: 0; } to { opacity: 1; } }
.cx-sheet {
  /* base font FISSA: il tema mette body{font-size:1.15vw} sotto 499px (≈4.7px) e gli em del
     pannello diventavano minuscoli. Qui ripartiamo da una base fissa (non il vw del tema). */
  font-size: 13px;
  width: 100%; background: #181818; color: #fff;
  border-radius: 14px 14px 0 0; padding: 18px 16px 0; /* niente padding sotto: lo gestisce la riga "Dettagli" */
  box-shadow: 0 -8px 30px rgba(0,0,0,.5); animation: cx-sheet-up .25s ease;
  max-height: 88vh; overflow-y: auto;
}
@keyframes cx-sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cx-sheet-head { display: flex; gap: 12px; position: relative; }
.cx-sheet-img { width: 27%; max-width: 108px; height: auto; object-fit: contain; border-radius: 6px; flex: none; background: #222; align-self: flex-start; }
.cx-sheet-info { flex: 1 1 auto; min-width: 0; padding-right: 28px; }
.cx-sheet-title { font-size: 1.85em; font-weight: 700; line-height: 1.15; }
.cx-sheet-meta { font-size: 1.05em; color: #b3b3b3; margin-top: .4em; display: flex; align-items: center; gap: .5em; }
.cx-sheet-sub { border: 1px solid #888; border-radius: 3px; padding: 0 .35em; font-size: .8em; }
.cx-sheet-plot { font-size: 1.05em; color: #d2d2d2; margin: .7em 0 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cx-sheet-close { position: absolute; top: 0; right: 0; background: rgba(120,120,120,.45); border: 0; color: #fff; padding: 0; border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; line-height: 0; }
.cx-sheet-close svg { width: 18px; height: 18px; display: block; }
.cx-sheet-actions { display: flex; justify-content: space-between; align-items: flex-start; margin: 20px 0 6px; max-width: 420px; }
.cx-sheet-act { display: flex; flex-direction: column; align-items: center; gap: .6em; color: #fff; text-decoration: none; font-size: 1em; flex: 1; }
.cx-sheet-icon { width: 3.2em; height: 3.2em; border-radius: 50%; background: #2b2b2b; border: 2px solid #4d4d4d; display: grid; place-items: center; font-size: 1em; }
.cx-sheet-play .cx-sheet-icon { background: #fff; color: #000; border-color: #fff; }
.cx-sheet-rcircle { position: relative; width: 3.2em; height: 3.2em; border-radius: 50%; display: grid; place-items: center; font-size: 1em; }
.cx-sheet-rcircle::after { content: ""; position: absolute; inset: 3px; background: #181818; border-radius: 50%; }
.cx-sheet-rval { position: relative; z-index: 1; font-weight: 700; font-size: .85em; }
/* "La mia lista"/"Valuta" sono <button> ora: reset aspetto da bottone */
button.cx-sheet-act { background: none; border: none; cursor: pointer; font: inherit; padding: 0; }
button.cx-sheet-act:disabled { opacity: .6; }
.cx-sheet-icon.cx-on { background: #fff; color: #000; border-color: #fff; }   /* lista aggiunta / titolo già votato */
.cx-sheet-act.cx-open .cx-sheet-icon { background: rgba(245,197,24,.25); }
/* riga stelle per il voto (compare al tap di "Valuta") */
.cx-sheet-rate { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 16px 0 2px; }
.cx-sheet-rate-lbl { font-size: 1.1em; color: #d2d2d2; }
.cx-sheet-stars { display: flex; gap: 8px; }
.cx-sheet-star { background: none; border: none; cursor: pointer; padding: 4px; line-height: 0; color: #f5c518; }
.cx-sheet-star:disabled { opacity: .6; }
/* riga "Episodi/Dettagli e altro": NON un pulsante, ma una riga a tutta larghezza con
   linea sopra (come l'originale), + spazio sotto per la safe-area del telefono */
.cx-sheet-details {
  display: flex; align-items: center; gap: .8em;
  margin: 18px -16px 0;                 /* bleed oltre il padding del sheet → full width */
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 10px)); /* spazio per il bordo del telefono */
  border-top: 1px solid rgba(255,255,255,.12);
  background: none;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 1.45em;
}
.cx-sheet-details svg { width: 1.6em; height: 1.6em; flex: none; }
.cx-sheet-details .cx-sheet-chev { margin-left: auto; opacity: .8; }

/* pannello: i link (azioni/dettagli) restano bianchi al tap/hover, mai azzurri */
.cx-sheet a,
.cx-sheet a:link,
.cx-sheet a:visited,
.cx-sheet a:hover,
.cx-sheet a:active,
.cx-sheet a:focus {
  color: #fff !important;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile: slider home con lo stesso margine sinistro dei Consigliati (~16px), non flush.
   Il Top 10 resta attaccato a sinistra come richiesto. */
@media screen and (max-width: 799px) {
  #home .slider-title { padding-left: 16px; }
  #home .slider-title.cx-top10 { padding-left: 0; }
}

/* pannello: ingrandisci le icone (play, +, ★) dentro i cerchi; il cerchio resta uguale */
.cx-sheet-icon svg { width: 1.8em; height: 1.8em; }

/* play: triangolo leggermente verso destra per apparire centrato nel cerchio */
.cx-sheet-play .cx-sheet-icon svg { margin-left: .28em; }

.tc-rate-wrap {
  position: relative;
}
/* stella del trigger gialla quando l'utente ha votato */
.tc-title-btn.tc-rated {
  color: #f5c518;
}
/* tooltip sotto il bottone */
.tc-rate-tooltip {
  position: absolute;
  top: calc(100% + 0.6em);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(20, 22, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2em;
  padding: 0.45em 0.8em;
  box-shadow: 0 0.5em 1.5em rgba(0, 0, 0, 0.5);
  z-index: 50;
  white-space: nowrap;
}
.tc-rate-tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 0.45em solid transparent;
  border-bottom-color: rgba(20, 22, 26, 0.95);
}
.tc-rate-clear {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  color: #ff6b6b;
  cursor: pointer;
  padding: 0;
  font-size: 1em;
}
.tc-rate-clear:hover {
  color: #ff8585;
}
/* stelle: layer vuoto (grigio) + layer pieno (giallo) clippato in larghezza */
.tc-rate-stars {
  position: relative;
  display: inline-block;
  cursor: pointer;
  line-height: 0;
}
.tc-rate-empty,
.tc-rate-full-inner {
  display: flex;
}
.tc-rate-empty {
  color: rgba(255, 255, 255, 0.3);
}
.tc-rate-full {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  color: #f5c518;
  pointer-events: none;
}

/* mobile: stelle del voto più grandi (tap comodo col dito), sia nel dettaglio che nel pannello */
@media (max-width: 799px) {
  .tc-rate-tooltip { padding: 0.7em 1.1em; gap: 0.7em; }
  .tc-rate-stars { font-size: 1.85em; }
  .tc-rate-empty, .tc-rate-full-inner { gap: 0.15em; }
  .tc-rate-clear { font-size: 1.5em; }
}
.tc-rate-stars .star {
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
}

/* ════════════════════ Area utente (tema alta) — aggiunto con l'area utente ════════════════════ */

/* palette area utente (scura, coerente col tema alta) */
.alta-main, .header .alta-user {
  --au-blue: var(--bs-primary, #0894D6);
  --au-blue-d: #0b7ab4;
  --au-card: #16181e;
  --au-fg: #eef0f3;
  --au-mut: #9aa1ab;
  --au-line: rgba(255,255,255,.08);
  --au-field: #0e1015;
  --au-fieldline: rgba(255,255,255,.14);
}

/* ── Header: colonna utente ── */
.header .alta-user { display: flex; align-items: center; gap: 12px; }
.alta-auth-link, .alta-auth-link:link, .alta-auth-link:visited { color: #eef0f3; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.alta-auth-link:hover { color: #fff; }
.alta-auth-btn, .alta-auth-btn:link, .alta-auth-btn:visited {
  display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 8px;
  background: var(--bs-primary, #0894D6); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .15s;
}
.alta-auth-btn:hover { background: #0b7ab4; color: #fff; }

/* ── Header: menu utente (loggato) ── scuro ── */
.header .user-menu { position: relative; }
.header .user-menu-toggle { display: flex; align-items: center; gap: 5px; background: none; border: 0; cursor: pointer; color: #eef0f3; font-weight: 600; font-size: 15px; padding: 6px 4px; line-height: 1; font-family: inherit; }
.header .user-menu-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header .user-menu-caret { transition: transform .2s ease; opacity: .8; }
.header .user-menu.open .user-menu-caret { transform: rotate(180deg); }
.header .user-menu-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px;
  background: #16181e; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 8px 0;
  box-shadow: 0 16px 40px rgba(0,0,0,.5); z-index: 1100; display: flex; flex-direction: column;
}
.header .user-menu-item { display: block; width: 100%; text-align: left; padding: 10px 20px; color: #cdd3da; font-size: 14px; font-weight: 500; background: none; border: 0; cursor: pointer; text-decoration: none; font-family: inherit; }
.header .user-menu-item:hover { background: rgba(8,148,214,.14); color: #fff; text-decoration: none; }
.header .user-menu-logout { color: #ff6b6b; border-top: 1px solid rgba(255,255,255,.08); margin-top: 4px; }
.header .user-menu-logout:hover { color: #ff8585; background: rgba(211,58,58,.12); }

/* ── Menu mobile (offcanvas): account ── */
.alta-maccount { margin-bottom: 18px; }
.alta-maccount-user { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.alta-maccount .alta-maccount-logout { color: #d33a3a; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; padding: .5rem .75rem; }

/* ════════════════════ Pagine auth (accedi/registrati/password) ════════════════════ */
.alta-main .auth-page { min-height: 70vh; padding: 60px 16px; display: flex; justify-content: center; align-items: flex-start; }
.alta-main .auth-wrap { width: 100%; max-width: 460px; }
.alta-main .auth-wrap.auth-wide { max-width: 620px; }
.alta-main .auth-card { background: var(--au-card); border: 1px solid var(--au-line); border-radius: 16px; padding: 36px 40px; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.alta-main .auth-card h1 { font-size: 26px; font-weight: 700; color: var(--au-fg); margin: 0 0 24px; }
.alta-main .auth-sub { color: var(--au-mut); font-size: 15px; margin: 20px 0 14px; line-height: 1.45; overflow-wrap: anywhere; }
.alta-main .auth-field { margin-bottom: 16px; }
.alta-main .auth-field label { display: block; color: var(--au-mut); font-size: 14px; margin-bottom: 6px; }
.alta-main .auth-field input { width: 100%; height: 44px; background: var(--au-field); border: 1px solid var(--au-fieldline); border-radius: 9px; color: var(--au-fg); padding: 0 12px; font-size: 15px; outline: none; }
.alta-main .auth-field input:focus { background: #0b0d12; border-color: var(--au-blue); box-shadow: 0 0 0 3px rgba(8,148,214,.2); }
.alta-main .otp { display: flex; gap: 8px; justify-content: center; }
.alta-main .otp .otp-box { flex: 0 0 auto; width: 44px; height: 50px; padding: 0; text-align: center; font-size: 20px; font-weight: 700; background: var(--au-field); border: 1px solid var(--au-fieldline); border-radius: 9px; color: var(--au-fg); outline: none; caret-color: var(--au-blue); }
.alta-main .otp .otp-box:focus { background: #0b0d12; border-color: var(--au-blue); box-shadow: 0 0 0 2px rgba(8,148,214,.3); }
.alta-main .auth-pwd { position: relative; }
.alta-main .auth-pwd input { padding-right: 42px; }
.alta-main .auth-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #8a9097; cursor: pointer; padding: 6px; line-height: 0; }
.alta-main .auth-eye:hover { color: var(--au-fg); }
.alta-main .auth-btn { width: 100%; height: 46px; background: var(--au-blue); color: #fff; border: 0; border-radius: 9px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 8px; }
.alta-main .auth-btn:hover { background: var(--au-blue-d); }
.alta-main .auth-btn:disabled { opacity: .65; cursor: default; }
.alta-main .auth-btn-alt { display: flex; align-items: center; justify-content: center; text-decoration: none; background: transparent; border: 1px solid var(--au-blue); color: var(--au-blue); margin-top: 10px; }
.alta-main .auth-btn-alt:hover { background: rgba(8,148,214,.1); }
.alta-main .auth-lost { background: rgba(8,148,214,.1); border: 1px solid rgba(8,148,214,.35); color: #bfe3f6; border-radius: 9px; padding: 10px 12px; font-size: 14px; line-height: 1.4; margin-bottom: 14px; }
.alta-main .auth-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.alta-main .auth-remember { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--au-mut); font-size: 15px; cursor: pointer; }
.alta-main .auth-remember input { margin: 0; width: 15px; height: 15px; }
.alta-main .auth-forgot, .alta-main .auth-forgot:link, .alta-main .auth-forgot:visited { color: var(--au-mut); font-size: 13px; text-decoration: none; }
.alta-main .auth-forgot:hover { color: var(--au-blue); text-decoration: underline; }
.alta-main .auth-foot { margin-top: 22px; color: var(--au-mut); font-size: 15px; }
.alta-main .auth-foot a, .alta-main .auth-foot a:link, .alta-main .auth-foot a:visited { color: var(--au-blue); font-weight: 600; text-decoration: none; }
.alta-main .auth-foot a:hover { text-decoration: underline; }
.alta-main .auth-error { background: rgba(220,53,69,.14); border: 1px solid rgba(220,53,69,.4); color: #ff8585; font-size: 14px; padding: 10px 14px; border-radius: 9px; margin-bottom: 18px; }

/* ════════════════════ Account ════════════════════ */
.alta-main .account-page { min-height: 60vh; padding: 48px 16px 80px; display: flex; justify-content: center; }
.alta-main .account-wrap { width: 100%; max-width: 710px; }
.alta-main .account-wrap h1 { font-size: 26px; font-weight: 700; color: var(--au-fg); margin: 0 0 24px; }
.alta-main .account-card { background: var(--au-card); border: 1px solid var(--au-line); border-radius: 14px; padding: 24px; }
.alta-main .account-card--sub { margin-top: 20px; }
.alta-main .profile-field { position: relative; padding-bottom: 15px; border-bottom: 1px solid var(--au-line); }
.alta-main .profile-field:not(:first-child) { padding-top: 15px; }
.alta-main .profile-field--last:last-child { border-bottom: none; padding-bottom: 0; }
.alta-main .profile-field__label { color: var(--au-fg); font-size: 16px; font-weight: 600; }
.alta-main .profile-field__value { color: var(--au-mut); font-size: 16px; margin-top: 4px; word-break: break-word; padding-right: 36px; }
.alta-main .profile-field__link { color: var(--au-blue); text-decoration: underline; }
.alta-main .profile-field__btn { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--au-mut); cursor: pointer; padding: 0; }
.alta-main .profile-field__btn:hover { color: var(--au-fg); }
.alta-main .account-actions { display: flex; justify-content: flex-end; margin-top: 22px; }
.alta-main .delete-account-btn { background: transparent; border: 1px solid rgba(211,58,58,.5); color: #ff6b6b; font-size: 14px; padding: 9px 16px; border-radius: 9px; cursor: pointer; }
.alta-main .delete-account-btn:hover { background: rgba(211,58,58,.12); }

/* Account: modale modifica campo (inline) — scuro */
.alta-main .acc-modal { background: var(--au-card); border: 1px solid var(--au-line); color: var(--au-fg); }
.alta-main .acc-modal-title { color: var(--au-fg); }
.alta-main .acc-modal-field span { color: var(--au-mut); }
.alta-main .acc-modal-field input { background: var(--au-field); border: 1px solid var(--au-fieldline); color: var(--au-fg); }
.alta-main .acc-modal-field input:focus { border-color: var(--au-blue); background: #0b0d12; }
.alta-main .acc-modal-cancel { color: #c9cdd3; border: 1px solid rgba(255,255,255,.18); background: transparent; }
.alta-main .acc-modal-cancel:hover { background: rgba(255,255,255,.06); }
.alta-main .acc-modal-save { background: var(--au-blue); color: #fff; }
.alta-main .acc-modal-save:hover:not(:disabled) { background: var(--au-blue-d); }

/* Account: modale Elimina account (testo + bottone rosso) */
.alta-main .acc-modal-text { color: var(--au-mut); font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.alta-main .acc-modal-text strong { color: #ff8585; }
.alta-main .acc-modal-del { border: 0; border-radius: 9px; font-size: 14px; font-weight: 700; padding: 10px 18px; cursor: pointer; background: #d33a3a; color: #fff; }
.alta-main .acc-modal-del:hover:not(:disabled) { background: #b32d2d; }
.alta-main .acc-modal-del:disabled { opacity: .6; cursor: default; }

/* ════════════════════ La mia lista (griglia alta) ════════════════════ */
.alta-main .alta-mylist-page { padding: 30px 0 70px; }
.alta-main .alta-mylist-title { font-size: 26px; font-weight: 800; margin: 0 0 22px; color: var(--au-fg); }
.alta-main .alta-mylist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.alta-main .alta-mylist-grid .swiper-slide { width: auto; margin: 0; }
.alta-main .alta-mylist-empty { color: var(--au-mut); padding: 50px 0; font-size: 15px; text-align: center; }
@media (max-width: 560px){ .alta-main .alta-mylist-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 12px; } }

/* ════════════════════ Continua a guardare (riga home alta) ════════════════════ */
.alta-main .alta-cw { padding: 10px 0 2px; }
.alta-main .alta-cw-head h2 { font-size: 19px; font-weight: 800; margin: 0 0 14px; color: var(--au-fg, #eef0f3); }
.alta-main .alta-cw-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.alta-main .alta-cw-item { flex: 0 0 150px; }
.alta-main .alta-cw-item .swiper-slide { width: auto; margin: 0; }
.alta-main .alta-cw-bar { width: 86%; height: 4px; background: #4e4e4e; border-radius: 3px; margin: 10px auto 2px; }
.alta-main .alta-cw-bar i { display: block; height: 100%; background: #0a9148; border-radius: 3px; }
@media (max-width: 560px){ .alta-main .alta-cw-item { flex-basis: 116px; } }

/* ════════════════════ Header alta: spazio top + ricerca inline + solo Accedi ════════════════════ */
.header { padding-top: 14px; }
.header-nav { align-items: center; }
.header-nav .alta-search { width: 240px; margin-left: 12px; }
.header-nav .alta-header-search { width: 100%; margin: 0; }
.header .alta-user { margin-left: 12px; }

/* ricerca header: input compatto + lente DENTRO l'input a destra (no lente esterna) */
.header-nav .alta-search { width: 240px; }
.header-nav .alta-header-search { position: relative; padding: 0 !important; margin: 0; width: 100%; display: block; }
.header-nav .alta-header-search label { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); margin: 0; z-index: 2; display: flex; align-items: center; pointer-events: none; opacity: .7; }
.header-nav .alta-header-search .form-control { height: 40px; padding: 0 36px 0 14px !important; width: 100%; }

/* Fix: su pagine corte (accedi/account) il backdrop del footer risaliva coprendo la card → alzo il contenuto sopra il footer */
.alta-main { position: relative; z-index: 1; }
.alta-main .auth-page, .alta-main .account-page { position: relative; z-index: 1; }

/* Fix clip form corto: niente min-height/flex sulla auth-page (scorre nel flusso), centrata via margin */
.alta-main .auth-page, .alta-main .account-page { min-height: 0 !important; display: block !important; padding: 44px 16px 90px !important; }
.alta-main .auth-wrap, .alta-main .account-wrap { margin-left: auto !important; margin-right: auto !important; }

/* Fix definitivo clip: main era flex:1 in colonna 100vh con overflow-y:auto → clippava le pagine corte.
   Lo rendo auto-dimensionato (cresce col contenuto); overflow-x:hidden resta (slider home ok). */
.alta-main { flex: none !important; height: auto !important; }

/* z-index espliciti: il contenuto (main) sopra il footer+backdrop */
.alta-main { position: relative; z-index: 2; }
footer.footer, .alta-main ~ footer, body > footer.footer { position: relative; z-index: 1; }
/* header: menu centrato verticalmente nella striscia (padding simmetrico) */
.header { padding-top: 10px !important; padding-bottom: 10px !important; }
.header .row { align-items: center; }

/* logo centrato verticalmente nella striscia (non tagliato) */
.header .header-logo { display: flex; align-items: center; }
.header .header-logo .logo { display: flex; align-items: center; }
.header .header-logo .logo img { max-height: 38px; width: auto; display: block; }

/* Header: cappo l'altezza del wrapper ricerca (era ~62px e gonfiava la riga spingendo il logo in cima/tagliato) */
.header .row { align-items: center !important; }
.header-nav { align-items: center !important; }
.header-nav .alta-search { height: 40px; min-height: 0; display: flex; align-items: center; width: 240px; }
.header-nav .alta-header-search { height: 40px; min-height: 0; display: flex; align-items: center; }
.header-nav .alta-header-search .form-control { height: 40px; }
.header .header-logo, .header .header-logo .logo { display: flex; align-items: center; }

/* Header flex-column (2 righe originali) ora a 1 riga: nav-link compatti + contenuto centrato in verticale */
.header { justify-content: center !important; }
.header-nav .nav-link { padding-top: 0 !important; padding-bottom: 0 !important; height: auto !important; min-height: 0 !important; display: inline-flex; align-items: center; }
.header-nav .dropdown { display: inline-flex; align-items: center; }
.header-nav .dropdown > .nav-link { height: auto !important; }
.header-nav { align-items: center !important; }

/* ════════════════════ Premium (stile alta, card — non la tabella SC) ════════════════════ */
.alta-main .alta-prem { padding: 42px 0 80px; }
.alta-main .alta-prem-head { text-align: center; margin-bottom: 22px; }
.alta-main .alta-prem-title { font-size: 30px; font-weight: 800; color: var(--au-fg); margin: 0 0 6px; }
.alta-main .alta-prem-sub { color: var(--au-mut); margin: 0; font-size: 15px; }
.alta-main .alta-prem-periods { display: flex; gap: 8px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.alta-main .alta-prem-period { background: #15171d; border: 1px solid var(--au-line); color: #cfd4db; font: inherit; font-weight: 600; padding: 9px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.alta-main .alta-prem-period.on { background: rgba(8,148,214,.16); border-color: rgba(8,148,214,.6); color: #fff; }
.alta-main .alta-prem-off { font-size: 12px; font-weight: 700; color: var(--au-blue); }
.alta-main .alta-prem-period.on .alta-prem-off { color: #bfe3f6; }
.alta-main .alta-prem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.alta-main .alta-plan { position: relative; background: #16181e; border: 1px solid var(--au-line); border-radius: 16px; padding: 26px 24px; display: flex; flex-direction: column; }
.alta-main .alta-plan.best { border-color: rgba(8,148,214,.6); box-shadow: 0 0 0 1px rgba(8,148,214,.45), 0 20px 50px rgba(8,148,214,.1); }
.alta-main .alta-plan-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--au-blue); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.alta-main .alta-plan-name { font-size: 20px; font-weight: 700; color: var(--au-fg); }
.alta-main .alta-plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 12px 0 4px; }
.alta-main .alta-plan-now { font-size: 32px; font-weight: 800; color: var(--au-fg); }
.alta-main .alta-plan-per { font-size: 14px; color: var(--au-mut); font-weight: 600; }
.alta-main .alta-plan-old { font-size: 14px; color: var(--au-mut); text-decoration: line-through; }
.alta-main .alta-plan-feats { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 11px; flex: 1; }
.alta-main .alta-plan-feats li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; color: #cfd4db; }
.alta-main .alta-plan-feats svg { color: var(--au-blue); flex: none; margin-top: 1px; }
.alta-main .alta-plan-btn { margin-top: auto; width: 100%; height: 46px; border: 0; border-radius: 10px; background: #23262d; color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.alta-main .alta-plan-btn:hover:not(:disabled) { background: #2b2f37; }
.alta-main .alta-plan.best .alta-plan-btn { background: var(--au-blue); }
.alta-main .alta-plan.best .alta-plan-btn:hover:not(:disabled) { background: var(--au-blue-d); }
.alta-main .alta-plan-btn:disabled { opacity: .6; cursor: default; }
@media (max-width: 560px){ .alta-main .alta-prem-grid { grid-template-columns: 1fr; } }

/* ════════════════════ Checkout (stile alta) ════════════════════ */
.alta-main .alta-ck { padding: 40px 0 80px; }
.alta-main .alta-ck-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; max-width: 920px; margin: 0 auto; align-items: start; }
.alta-main .alta-ck-step { margin-bottom: 24px; }
.alta-main .alta-ck-step h2 { font-size: 16px; font-weight: 700; color: var(--au-fg); margin: 0 0 12px; }
.alta-main .alta-ck-box { background: #16181e; border: 1px solid var(--au-line); border-radius: 14px; padding: 18px; }
.alta-main .alta-ck-periods { display: flex; gap: 8px; flex-wrap: wrap; }
.alta-main .alta-ck-period { background: #0f1116; border: 1px solid var(--au-line); color: #cfd4db; font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.alta-main .alta-ck-period.on { background: rgba(8,148,214,.16); border-color: rgba(8,148,214,.6); color: #fff; }
.alta-main .alta-ck-off { font-size: 12px; font-weight: 700; color: var(--au-blue); }
.alta-main .alta-ck-hint { color: var(--au-mut); font-size: 13px; margin: 12px 0 0; }
.alta-main .alta-ck-method { width: 100%; display: flex; align-items: center; gap: 14px; background: #16181e; border: 1px solid var(--au-line); border-radius: 12px; padding: 16px 18px; cursor: pointer; margin-bottom: 12px; color: var(--au-fg); font: inherit; }
.alta-main .alta-ck-method:hover:not(:disabled) { border-color: rgba(8,148,214,.5); }
.alta-main .alta-ck-method:disabled { opacity: .6; cursor: default; }
.alta-main .alta-ck-mname { font-weight: 700; font-size: 15px; }
.alta-main .alta-ck-micons { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.alta-main .alta-ck-coins i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 13px; font-weight: 700; }
.alta-main .alta-ck-marrow { color: var(--au-mut); font-size: 22px; line-height: 1; }
.alta-main .alta-ck-summary { background: #16181e; border: 1px solid var(--au-line); border-radius: 14px; padding: 20px; }
.alta-main .alta-ck-summary h2 { font-size: 16px; font-weight: 700; margin: 0 0 14px; color: var(--au-fg); }
.alta-main .alta-ck-sum-plan { font-weight: 700; font-size: 17px; color: var(--au-fg); }
.alta-main .alta-ck-sum-row { display: flex; justify-content: space-between; gap: 10px; color: var(--au-mut); font-size: 14px; margin: 10px 0; align-items: center; }
.alta-main .alta-ck-save { background: rgba(8,148,214,.15); color: var(--au-blue); font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.alta-main .alta-ck-sum-divider { height: 1px; background: var(--au-line); margin: 12px 0; }
.alta-main .alta-ck-sum-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; color: var(--au-fg); font-size: 18px; }
.alta-main .alta-ck-sum-old { font-size: 13px; color: var(--au-mut); text-decoration: line-through; font-weight: 500; margin-left: 8px; }
@media (max-width: 720px){ .alta-main .alta-ck-grid { grid-template-columns: 1fr; } }

/* Checkout: contorno a tutte le sezioni (ogni step in una card bordata) */
.alta-main .alta-ck-step { background: #16181e; border: 1px solid var(--au-line); border-radius: 14px; padding: 18px 20px; margin-bottom: 20px; }
.alta-main .alta-ck-step h2 { margin-top: 0; }
.alta-main .alta-ck-box { background: transparent; border: 0; padding: 0; }
.alta-main .alta-ck-method { background: #0f1116; }
.alta-main .alta-ck-method:last-child { margin-bottom: 0; }

/* Avatar rotondo nel menu utente (header alta) */
.header .user-menu-avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--au-blue, #0894D6), #55c0ef); color: #042c3e; font-weight: 800; font-size: 15px; line-height: 1; }
.header .user-menu-toggle { gap: 7px; padding: 3px; }

/* Avatar: icona persona bianca nel cerchio */
.header .user-menu-avatar { color: #fff; }
.header .user-menu-avatar svg { display: block; }

/* Continua a guardare stile SC: tile 16:9 con backdrop + titolo (override del poster) */
.alta-main .alta-cw-item { flex: 0 0 262px; }
.alta-main .alta-cw-tile { display: block; position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #1a1d24 center/cover no-repeat; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.alta-main .alta-cw-cap { position: absolute; inset: auto 0 0 0; padding: 28px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.86)); display: flex; flex-direction: column; gap: 2px; }
.alta-main .alta-cw-t { color: #fff; font-weight: 700; font-size: 14px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.alta-main .alta-cw-s { color: #cfd4db; font-size: 12px; }
.alta-main .alta-cw-play { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .15s; }
.alta-main .alta-cw-tile:hover .alta-cw-play { opacity: 1; }
.alta-main .alta-cw-play::before { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; transform: translateX(2px); }
.alta-main .alta-cw-bar { width: 100%; height: 4px; background: #4e4e4e; border-radius: 3px; margin: 8px 0 2px; }
.alta-main .alta-cw-bar i { display: block; height: 100%; background: #0a9148; border-radius: 3px; }
@media (max-width: 560px){ .alta-main .alta-cw-item { flex-basis: 220px; } }

/* CW: pill "Continua a guardare" in hover + meta tempo guardato */
.alta-main .alta-cw-resume { position: absolute; inset: 0; margin: auto; height: 34px; width: max-content; max-width: 90%; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; background: var(--au-blue, #0894D6); color: #fff; border-radius: 999px; font-size: 12.5px; font-weight: 700; opacity: 0; transition: opacity .15s; box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.alta-main .alta-cw-tile:hover .alta-cw-resume { opacity: 1; }
.alta-main .alta-cw-resume svg { width: 14px; height: 14px; flex: none; }
.alta-main .alta-cw-meta { color: #cfd4db; font-size: 12px; }

/* CW: barra progresso blu (non verde) + card più larga */
.alta-main .alta-cw-bar i { background: var(--au-blue, #0894D6); }
.alta-main .alta-cw-item { flex: 0 0 330px; }
@media (max-width: 560px){ .alta-main .alta-cw-item { flex-basis: 260px; } }

/* CW: niente badge in hover (card pulite come le altre righe) */
.alta-main .alta-cw-resume { display: none !important; }

/* CW: spazio sotto la riga così lo slider successivo non si attacca */
.alta-main .alta-cw { padding-bottom: 34px; }

/* CW: card un po' più piccole */
.alta-main .alta-cw-item { flex: 0 0 272px; }
@media (max-width: 560px){ .alta-main .alta-cw-item { flex-basis: 220px; } }

/* CW: barra avanzamento DENTRO la card, attaccata al bordo basso */
.alta-main .alta-cw-bar { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 4px; margin: 0; border-radius: 0; background: rgba(0,0,0,.5); z-index: 2; }
.alta-main .alta-cw-bar i { border-radius: 0; }

/* CW: avatar tondo prima del nome nel titolo "X, continua a guardare" */
.alta-main .alta-cw-head { display: flex; align-items: center; gap: 10px; }
.alta-main .alta-cw-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--au-blue, #0894D6); color: #fff; display: inline-grid; place-items: center; flex: none; }
.alta-main .alta-cw-avatar svg { width: 18px; height: 18px; }

/* CW titolo: solo sagoma omino azzurra (no cerchio), allineata al testo */
.alta-main .alta-cw-avatar { width: auto; height: auto; background: none !important; border-radius: 0 !important; color: var(--au-blue, #0894D6); display: inline-flex; align-items: center; }
.alta-main .alta-cw-avatar svg { width: 25px; height: 25px; }

/* CW titolo: allinea meglio l'omino col testo */
.alta-main .alta-cw-head { align-items: center; }
.alta-main .alta-cw-head h2 { margin: 0; line-height: 1.1; }
.alta-main .alta-cw-avatar { position: relative; top: -1px; }

/* CW titolo: omino più grande + centro allineato col centro del testo */
.alta-main .alta-cw-head { align-items: center; }
.alta-main .alta-cw-head h2 { margin: 0; line-height: 1; display: flex; align-items: center; }
.alta-main .alta-cw-avatar { top: 0; display: inline-flex; align-items: center; }
.alta-main .alta-cw-avatar svg { width: 30px; height: 30px; }

/* CW: più spazio tra titolo e card sottostanti */
.alta-main .alta-cw-head { margin-bottom: 20px; }
