/* Puntate — tema scuro ispirato alle app di tracking (Trakt & co.) */
:root {
    --bg: #0b0b10;
    --bg-2: #101018;
    --surface: #15151f;
    --surface-2: #1c1c29;
    --surface-3: #252536;
    --border: #2a2a3c;
    --text: #ececf3;
    --muted: #9b9bb2;
    --faint: #6c6c84;
    --accent: #f43f5e;
    --accent-2: #a855f7;
    --accent-soft: rgba(244, 63, 94, .14);
    --good: #22c55e;
    --good-soft: rgba(34, 197, 94, .14);
    --warn: #f59e0b;
    --grad: linear-gradient(90deg, var(--accent), var(--accent-2));
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --top: 64px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 var(--font);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 750; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0 0 12px; }
code { font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.center { text-align: center; justify-content: center; }
.ico { flex: none; }
[hidden] { display: none !important; }

/* ------------------------------------------------ barra in alto */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 11, 16, .82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar-inner {
    max-width: 1280px; margin: 0 auto; height: var(--top);
    display: flex; align-items: center; gap: 22px; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.mainnav { display: flex; gap: 4px; }
.mainnav a {
    padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 550; font-size: 14.5px;
    transition: color .15s, background .15s;
}
.mainnav a:hover { color: var(--text); background: var(--surface); }
.mainnav a.active { color: var(--text); background: var(--surface-2); }
.topsearch {
    margin-left: auto; position: relative; display: flex; align-items: center;
    background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
    padding: 0 14px; width: 260px; color: var(--muted); transition: border-color .15s, width .2s;
}
.topsearch:focus-within { border-color: var(--accent); width: 320px; }
.topsearch input { background: none; border: 0; color: var(--text); padding: 9px 8px; width: 100%; font: inherit; outline: none; }
.icon-link { color: var(--muted); padding: 8px; border-radius: 10px; display: flex; }
.icon-link:hover, .icon-link.active { color: var(--text); background: var(--surface-2); }

/* barra in basso su telefono */
.tabbar { display: none; }

.main { max-width: 1280px; margin: 0 auto; padding: 28px 24px 80px; }
.page-show .main { max-width: none; padding: 0 0 80px; }
.bare { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 20% -10%, rgba(168, 85, 247, .18), transparent), radial-gradient(900px 500px at 100% 110%, rgba(244, 63, 94, .16), transparent); }

/* ------------------------------------------------ sezioni */
.section { margin-bottom: 44px; }
.section.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head .more { margin-left: auto; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 2px; }
.section-head .more:hover { color: var(--text); }
.pill { background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; padding: 2px 10px; border-radius: 999px; }

/* ------------------------------------------------ pulsanti */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 16px; border-radius: 11px; border: 1px solid var(--border);
    background: var(--surface-2); color: var(--text); font: 600 14px/1.2 var(--font);
    cursor: pointer; transition: background .15s, border-color .15s, transform .08s, opacity .15s;
    white-space: nowrap;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 20px rgba(244, 63, 94, .28); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface); }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn.big { padding: 13px 20px; font-size: 15px; width: 100%; }
.btn.nuvio { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.btn.nuvio:hover { background: rgba(255, 255, 255, .14); }
.btn[disabled], .busy .btn { opacity: .6; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.icon-btn { background: none; border: 0; color: var(--faint); padding: 8px; border-radius: 10px; cursor: pointer; display: flex; }
.icon-btn:hover { color: var(--accent); background: var(--accent-soft); }

.check-btn {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
    border: 2px solid var(--border); background: var(--surface); color: var(--faint);
    cursor: pointer; transition: all .15s;
}
.check-btn:hover { border-color: var(--good); color: var(--good); }
.check-btn.on { background: var(--good); border-color: var(--good); color: #06150b; }
.check-btn.on:hover { background: transparent; color: var(--good); }
.busy .check-btn { animation: pulse .8s infinite; }
@keyframes pulse { 50% { opacity: .45; } }

.chip {
    display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px;
    background: var(--accent); color: #fff; border: 1px solid transparent; font: 600 12.5px/1 var(--font); cursor: pointer;
}
.chip.ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.chip:hover { filter: brightness(1.1); }

.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); font-size: 12px; font-weight: 600; }
.tag.live { background: var(--good-soft); color: var(--good); }

/* ------------------------------------------------ continua a guardare */
.upnext-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.upnext {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    position: relative; transition: transform .18s, box-shadow .18s, opacity .25s;
}
.upnext:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.upnext.leaving { opacity: 0; transform: scale(.96); }
.upnext-media { display: block; position: relative; aspect-ratio: 16/9; background: var(--surface-2); }
.upnext-media img { width: 100%; height: 100%; object-fit: cover; }
.upnext-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .65)); }
.upnext-code {
    position: absolute; left: 10px; bottom: 9px; z-index: 1; font-weight: 800; font-size: 13px; letter-spacing: .02em;
    background: rgba(0, 0, 0, .55); padding: 3px 8px; border-radius: 7px; backdrop-filter: blur(4px);
}
.upnext-left { position: absolute; right: 10px; bottom: 9px; z-index: 1; font-size: 12px; font-weight: 600; color: #fff; opacity: .9; }
.upnext-body { display: flex; align-items: center; gap: 12px; padding: 12px 14px 14px; }
.upnext-text { min-width: 0; flex: 1; }
.upnext-show { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upnext-show:hover { color: var(--accent); }
.upnext-ep { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upnext-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .06); }
.upnext-bar span, .poster-progress span, .progress .bar span { display: block; height: 100%; background: var(--grad); border-radius: inherit; }

/* ------------------------------------------------ righe scorrevoli e miniature */
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.row-scroll > * { scroll-snap-align: start; }
.ep-thumb-img { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); margin-bottom: 8px; }
.ep-thumb-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ep-thumb:hover img { transform: scale(1.05); }
.ep-thumb-show { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-badge { position: absolute; top: 7px; right: 7px; background: var(--accent-2); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.src-badge.inline { position: static; display: inline-block; margin-left: 6px; vertical-align: 1px; }

/* in uscita */
.soon-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.soon { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: background .15s; }
.soon:hover { background: var(--surface-2); }
.soon img { width: 40px; height: 60px; object-fit: cover; border-radius: 6px; background: var(--surface-3); }
.soon-date { width: 74px; flex: none; font-size: 12.5px; color: var(--accent); line-height: 1.25; }
.soon-text { min-width: 0; }
.soon-show { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------ locandine */
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
.poster-card { display: block; }
.poster { position: relative; aspect-ratio: 2/3; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transition: transform .2s, box-shadow .2s; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-card:hover .poster { transform: translateY(-4px); box-shadow: var(--shadow); }
.poster-empty { display: grid; place-items: center; height: 100%; padding: 12px; text-align: center; color: var(--muted); font-weight: 600; }
.poster-title { margin-top: 9px; font-weight: 650; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.poster-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .5); }
.badge { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; background: rgba(34, 197, 94, .92); color: #04140a; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.poster-wrap { display: flex; flex-direction: column; }
.quick-add { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

.bigsearch { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 18px; margin-bottom: 28px; color: var(--muted); }
.bigsearch:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.bigsearch input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font: 500 18px var(--font); padding: 12px 0; }

/* ------------------------------------------------ pagina serie */
.show-hero { position: relative; isolation: isolate; padding: 64px 24px 40px; min-height: 480px; display: flex; align-items: flex-end; }
.show-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg) var(--hero, none) center 20% / cover no-repeat; }
.show-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 11, 16, .97) 0%, rgba(11, 11, 16, .82) 45%, rgba(11, 11, 16, .45) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 45%); }
.hero-inner { max-width: 1232px; margin: 0 auto; width: 100%; display: flex; gap: 36px; align-items: flex-end; }
.hero-poster { width: 230px; flex: none; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); background: var(--surface-2); aspect-ratio: 2/3; }
.hero-info { min-width: 0; flex: 1; max-width: 760px; }
.eyebrow { color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.hero-info h1 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; letter-spacing: -.025em; }
.original { margin-top: 4px; font-size: 14px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--muted); font-size: 14px; margin: 14px 0 16px; }
.rating { display: inline-flex; align-items: center; gap: 5px; color: #fbbf24; font-weight: 700; }
.rating .ico { fill: currentColor; }
.overview { color: #d5d5e0; font-size: 15.5px; line-height: 1.6; max-width: 70ch; }
.overview.clamped, .season-overview.clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.status-group { display: flex; gap: 10px; flex-wrap: wrap; }
.segmented { display: inline-flex; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 3px; flex-wrap: wrap; }
.segmented button { background: none; border: 0; color: var(--muted); padding: 8px 12px; border-radius: 9px; font: 600 13.5px var(--font); cursor: pointer; }
.segmented button:hover { color: var(--text); }
.segmented button.on { background: var(--grad); color: #fff; }
.hero-progress { margin-top: 20px; max-width: 460px; }

.progress .bar { height: 7px; background: rgba(255, 255, 255, .09); border-radius: 999px; overflow: hidden; }
.progress .bar span { transition: width .4s ease; }
.progress.done .bar span { background: var(--good); }
.progress-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: 6px; }
.progress-label b { color: var(--text); }

.show-body { max-width: 1232px; margin: 0 auto; padding: 8px 24px 0; }
.next-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(90deg, var(--accent-soft), rgba(168, 85, 247, .1)); border: 1px solid rgba(244, 63, 94, .3); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 26px; }
.next-box.upcoming { background: var(--surface); border-color: var(--border); }
.next-box.done { background: var(--good-soft); border-color: rgba(34, 197, 94, .3); }
.next-box.done .eyebrow { color: var(--good); }
.next-title { font-size: 17px; }
.next-title b { margin-right: 6px; }

.season-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: thin; }
.season-tabs a { flex: none; display: flex; flex-direction: column; align-items: center; padding: 8px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-weight: 600; font-size: 14px; line-height: 1.25; }
.season-tabs a small { font-size: 11.5px; font-weight: 600; color: var(--faint); }
.season-tabs a.complete small { color: var(--good); }
.season-tabs a:hover { color: var(--text); border-color: var(--surface-3); }
.season-tabs a.on { background: var(--surface-3); color: var(--text); border-color: var(--accent); }
.season-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.season-overview { max-width: 80ch; }

.episodes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.episode { display: flex; gap: 16px; align-items: flex-start; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, background .2s; }
.episode:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.episode.watched { background: linear-gradient(90deg, rgba(34, 197, 94, .07), var(--surface) 40%); }
.episode.watched .ep-still img { filter: saturate(.6) brightness(.75); }
.episode.unaired { opacity: .55; }
.ep-still { position: relative; width: 210px; flex: none; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.ep-still img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.ep-num { position: absolute; left: 8px; top: 6px; font-weight: 800; font-size: 20px; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.ep-body { flex: 1; min-width: 0; }
.ep-title { font-weight: 700; font-size: 15.5px; }
.ep-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 2px 0 6px; }
.seen-when { color: var(--good); }
.ep-overview { color: #c4c4d2; font-size: 14px; line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ep-overview.open { -webkit-line-clamp: unset; }
.ep-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; color: var(--faint); padding: 6px; border-radius: 8px; display: flex; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { color: var(--text); background: var(--surface-2); }
.danger-zone { margin-top: 30px; }
.credit { margin-top: 18px; }
.credit a { text-decoration: underline; }

/* ------------------------------------------------ schede e liste */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 24px; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.tabs a { flex: none; padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a small { color: var(--faint); margin-left: 4px; font-weight: 600; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.diary-tabs { display: flex; }

.calendar { display: grid; gap: 14px; }
.cal-day { display: flex; gap: 18px; }
.cal-day.past { opacity: .6; }
.cal-date { width: 64px; flex: none; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 0; height: fit-content; position: sticky; top: calc(var(--top) + 12px); }
.cal-day.today .cal-date { background: var(--grad); border-color: transparent; }
.cal-dow, .cal-mon { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.cal-day.today .cal-dow, .cal-day.today .cal-mon { color: #fff; }
.cal-num { display: block; font-size: 24px; font-weight: 800; line-height: 1.15; }
.cal-items { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; align-content: start; }
.cal-label { grid-column: 1 / -1; font-weight: 700; color: var(--muted); font-size: 13px; }
.cal-item { position: relative; display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; transition: background .15s; }
.cal-item:hover { background: var(--surface-2); }
.cal-item img { width: 112px; aspect-ratio: 16/9; object-fit: cover; border-radius: 7px; background: var(--surface-3); flex: none; }
.cal-show { font-weight: 700; }
.seen-dot { position: absolute; top: 8px; right: 8px; background: var(--good); color: #04140a; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }

.day-title { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 26px 0 10px; }
.history-list { display: grid; gap: 8px; }
.history-row { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px 8px 8px; transition: opacity .25s; }
.history-row.leaving { opacity: 0; }
.history-img { width: 128px; flex: none; aspect-ratio: 16/9; border-radius: 7px; overflow: hidden; background: var(--surface-2); }
.history-img img { width: 100%; height: 100%; object-fit: cover; }
.history-text { flex: 1; min-width: 0; }
.history-show { font-weight: 700; }
.history-show:hover { color: var(--accent); }
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }

/* statistiche */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; position: relative; overflow: hidden; }
.tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
.tile-num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.tile-label { color: var(--muted); font-size: 13.5px; }
.stat-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 30px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-bottom: 16px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar-fill { width: 100%; max-width: 34px; min-height: 2px; background: var(--grad); border-radius: 6px 6px 2px 2px; }
.bar-val { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.bar-label { font-size: 11.5px; color: var(--faint); text-transform: uppercase; }
.hbars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: 82px 1fr 32px; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.hbar div { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; }
.hbar b { color: var(--text); text-align: right; }
.top-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.top-list li { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px 8px 8px; }
.top-list img { width: 44px; height: 66px; object-fit: cover; border-radius: 6px; background: var(--surface-3); }
.rank { width: 26px; text-align: center; font-weight: 800; font-size: 18px; color: var(--faint); }
.top-name { font-weight: 700; }

/* ------------------------------------------------ moduli */
.stack { display: grid; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label > span { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
label small { display: block; color: var(--muted); margin-top: 6px; font-size: 12.5px; }
label small a { color: var(--accent); }
input, select {
    width: 100%; background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
    border-radius: 10px; padding: 11px 12px; font: 14.5px var(--font); outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=file] { padding: 8px; }
.input-row { display: flex; gap: 8px; }
.input-row input { font: 12.5px ui-monospace, Menlo, monospace; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0; }
.inline-form input[type=file] { flex: 1; min-width: 200px; }

.setting-card { margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.card-head h2 .ico { color: var(--accent); }
.setting-card p { color: #cfcfdc; }
.copy-field { display: block; margin: 16px 0 12px; }
.steps { color: var(--muted); padding-left: 20px; margin: 14px 0; display: grid; gap: 6px; }
.steps b { color: var(--text); }
.steps a { color: var(--accent); text-decoration: underline; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.error-text { color: #fda4af; }
.log { margin: 10px 0 14px; font-size: 13px; }
.log summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.log ul { list-style: none; padding: 10px 0 0; margin: 0; display: grid; gap: 6px; }
.trakt-code { margin-top: 18px; text-align: center; background: var(--bg-2); border: 1px dashed var(--accent); border-radius: var(--radius); padding: 18px; }
.trakt-code a { color: var(--accent); text-decoration: underline; }
.trakt-code .code { font: 800 34px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .18em; margin: 6px 0 10px; }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch > span:last-child { margin: 0; font-weight: 500; }
.slider { position: relative; width: 44px; height: 26px; flex: none; background: var(--surface-3); border-radius: 999px; transition: background .2s; margin: 0 !important; }
.slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .slider { background: var(--good); }
.switch input:checked + .slider::after { transform: translateX(18px); }
.switch input:focus-visible + .slider { box-shadow: 0 0 0 3px var(--accent-soft); }

.alert { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.alert.error { background: rgba(244, 63, 94, .12); border: 1px solid rgba(244, 63, 94, .35); color: #fecdd3; }
.alert.warn { background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35); color: #fde68a; display: block; margin: 0; }

/* ------------------------------------------------ accesso */
.auth-card { width: 100%; max-width: 400px; background: rgba(21, 21, 31, .9); border: 1px solid var(--border); border-radius: 20px; padding: 34px 30px; box-shadow: var(--shadow); text-align: center; }
.auth-card.wide { max-width: 560px; text-align: left; }
.auth-card.wide .auth-logo, .auth-card.wide h1, .auth-card.wide > p { text-align: center; margin-left: auto; margin-right: auto; }
.auth-card h1 { margin: 14px 0 6px; font-size: 28px; }
.auth-card > p { margin-bottom: 22px; }
.auth-card form { text-align: left; }
.auth-logo { margin: 0 auto; }

/* ------------------------------------------------ vuoti e notifiche */
.empty { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }
.empty p { max-width: 460px; margin: 0 auto 14px; }
.empty.big, .hero-empty { padding: 56px 28px; }
.empty h2 { color: var(--text); margin-bottom: 8px; }
.empty-icon { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }

.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--surface-3); border: 1px solid var(--border); border-left: 4px solid var(--good); color: var(--text); padding: 11px 16px; border-radius: 11px; box-shadow: var(--shadow); font-weight: 550; font-size: 14px; animation: toast-in .25s ease, toast-out .3s ease 3.6s forwards; }
.toast.error { border-left-color: var(--accent); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ------------------------------------------------ telefono e tablet */
@media (max-width: 1020px) {
    .mainnav { display: none; }
    .topsearch { width: auto; flex: 1; }
    .topsearch:focus-within { width: auto; }
    .diary-tabs { display: flex; }
    .stat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    :root { --top: 56px; }
    body { font-size: 14.5px; }
    .topbar-inner { padding: 0 16px; gap: 12px; }
    .brand span { display: none; }
    .main { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); }
    .page-show .main { padding: 0 0 calc(96px + env(safe-area-inset-bottom)); }
    h1 { font-size: 22px; }
    .tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        background: rgba(16, 16, 24, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    }
    .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--faint); font-size: 10.5px; font-weight: 600; padding: 4px 0; }
    .tabbar a.active { color: var(--text); }
    .tabbar a.active .ico { color: var(--accent); }
    .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }

    .upnext-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; }
    .upnext { scroll-snap-align: center; }
    .upnext-grid, .row-scroll { scrollbar-width: none; }
    .upnext-grid::-webkit-scrollbar, .row-scroll::-webkit-scrollbar { display: none; }
    .upnext:hover { transform: none; }
    .row-scroll { grid-auto-columns: 168px; margin: 0 -16px; padding: 0 16px 8px; }
    .poster-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 10px; }
    .poster-title { font-size: 13px; }

    .show-hero { padding: 120px 16px 20px; min-height: 0; }
    .show-hero::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 11, 16, .85) 55%, rgba(11, 11, 16, .35) 100%); }
    .hero-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
    .hero-poster { width: 120px; }
    .hero-actions { width: 100%; }
    .segmented { width: 100%; }
    .segmented button { flex: 1; padding: 8px 6px; font-size: 12.5px; }
    .show-body { padding: 4px 16px 0; }
    .next-box { padding: 14px; }
    .episode {
        display: grid; gap: 2px 12px; padding: 10px; align-items: start;
        grid-template-columns: 116px 1fr auto;
        grid-template-areas: "still title actions" "still meta actions" "over over over";
    }
    .ep-body { display: contents; }
    .ep-still { grid-area: still; width: 116px; }
    .ep-num { font-size: 16px; }
    .ep-title { grid-area: title; font-size: 14.5px; line-height: 1.3; }
    .ep-meta { grid-area: meta; margin: 0; font-size: 12px; }
    .ep-overview { grid-area: over; margin-top: 8px; font-size: 13.5px; -webkit-line-clamp: 2; }
    .ep-actions { grid-area: actions; }
    .check-btn { width: 36px; height: 36px; }

    .cal-day { gap: 10px; }
    .cal-date { width: 50px; }
    .cal-num { font-size: 20px; }
    .cal-items { grid-template-columns: 1fr; }
    .cal-item img { width: 96px; }
    .soon-list { grid-template-columns: 1fr; }
    .history-img { width: 96px; }
    .grid-2 { grid-template-columns: 1fr; }
    .kv { grid-template-columns: 1fr; gap: 0; }
    .kv dd { margin-bottom: 8px; }
    .input-row { flex-direction: column; }
    .auth-card { padding: 28px 20px; }
}
.switch-note { margin: 8px 0 0 56px; }

/* ------------------------------------------------ scopri */
.providers { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 8px; scrollbar-width: none; }
.provider { flex: none; width: 52px; height: 52px; border-radius: 13px; overflow: hidden; border: 2px solid transparent; opacity: .85; transition: transform .15s, opacity .15s, border-color .15s; }
.provider img { width: 100%; height: 100%; object-fit: cover; }
.provider:hover { opacity: 1; transform: translateY(-2px); }
.provider.on { border-color: var(--accent); opacity: 1; box-shadow: 0 0 0 3px var(--accent-soft); }
.list-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; scrollbar-width: none; }
.list-chips a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-weight: 600; font-size: 13.5px; }
.list-chips a:hover { color: var(--text); }
.list-chips a.on { background: var(--grad); border-color: transparent; color: #fff; }
.filters { margin-bottom: 26px; }
.filters summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; padding: 6px 2px; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary:hover { color: var(--text); }
.filter-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; align-items: end; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-top: 10px; }
.filter-form .btn-row { margin: 0; }
.row-head { margin: 30px 0 14px; }
.poster-row { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.poster-row > * { scroll-snap-align: start; }
.where { display: flex; align-items: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.where-label { color: var(--muted); font-size: 13px; font-weight: 600; margin-right: 4px; }
.where img { border-radius: 9px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.ep-still img.fallback { filter: grayscale(.4) brightness(.55); }
@media (max-width: 720px) {
    .poster-row { grid-auto-columns: 112px; gap: 10px; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
    .provider { width: 46px; height: 46px; }
    .filter-form { grid-template-columns: 1fr 1fr; }
}
.badge { white-space: nowrap; max-width: calc(100% - 16px); }
.badge span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) {
    .badge { padding: 4px; }
    .badge span { display: none; }
}

/* ------------------------------------------------ film */
.type-switch { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 3px; margin-left: auto; }
.type-switch a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 9px; color: var(--muted); font-weight: 650; font-size: 14px; }
.type-switch a:hover { color: var(--text); }
.type-switch a.on { background: var(--surface-3); color: var(--text); }
.type-switch a.on .ico { color: var(--accent); }
.type-switch.big { display: flex; width: fit-content; margin: 0 0 18px; }
.type-switch.big a { padding: 9px 20px; font-size: 15px; }
.tagline { margin-top: 8px; color: #d6d6e4; font-style: italic; }
.seen-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 11px; background: var(--good-soft); color: var(--good); font-weight: 650; font-size: 14px; border: 1px solid rgba(34, 197, 94, .35); }
.btn.on-list { border-color: var(--good); color: var(--good); }
.release-box { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 8px; }
.release-box > div { display: flex; flex-direction: column; }
.release-box .eyebrow { margin-bottom: 2px; }
.release-box b { font-size: 17px; }
.release-box p { margin: 0; flex-basis: 100%; }
.cast-row { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 14px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
.cast { text-align: center; }
.cast-img { width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden; background: var(--surface-2); border: 2px solid var(--border); }
.cast-img img { width: 100%; height: 100%; object-fit: cover; }
.cast-name { font-weight: 650; font-size: 13px; line-height: 1.25; }
.history-img.is-movie { width: 52px; aspect-ratio: 2/3; }
@media (max-width: 720px) {
    .type-switch { margin-left: 0; }
    .cast-row { grid-auto-columns: 88px; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
    .cast-img { width: 76px; height: 76px; }
    .history-img.is-movie { width: 44px; }
}

/* ------------------------------------------------ profili */
.avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--c, var(--accent)); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); }
.avatar.big { width: 84px; height: 84px; border-radius: 22px; font-size: 34px; }
.center-av { margin: 14px auto 0; }
.profile-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 10px; }
.profile-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 650; color: var(--muted); transition: color .15s, transform .15s; }
.profile-tile:hover { color: var(--text); transform: translateY(-3px); }
.profile-tile:hover .avatar { box-shadow: 0 0 0 3px #fff; }
.profile-list { display: grid; gap: 8px; margin: 12px 0 14px; }
.profile-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; }
.push-right { margin-left: auto; }
.sub-form { margin-top: 10px; }
.sub-form summary { list-style: none; display: inline-flex; }
.sub-form summary::-webkit-details-marker { display: none; }
.sub-form[open] summary { margin-bottom: 12px; }

/* ------------------------------------------------ liste, trailer, ripresa, saghe, anno */
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 230px; background: var(--surface-3); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: grid; gap: 2px; }
.hero-actions .menu-panel { left: 0; right: auto; }
.menu-item, .list-opt { width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: 600 13.5px var(--font); padding: 9px 10px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.menu-item:hover, .list-opt:hover { background: var(--surface-2); }
.list-opt .box { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--border); display: grid; place-items: center; color: transparent; flex: none; }
.list-opt.on .box { background: var(--good); border-color: var(--good); color: #04140a; }
.new-list { display: flex; gap: 6px; padding: 6px 4px 2px; border-top: 1px solid var(--border); margin-top: 4px; }
.new-list input { padding: 7px 9px; font-size: 13px; }
.list-menu summary.btn { list-style: none; }
.list-menu summary::-webkit-details-marker { display: none; }
.minute-form { display: flex; align-items: center; gap: 8px; padding: 8px 10px; flex-wrap: wrap; font-size: 13px; }
.minute-form label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.minute-form input { width: 74px; padding: 6px 8px; }
.resume { margin: 6px 0 4px; }
.resume-bar { height: 4px; background: rgba(255, 255, 255, .08); border-radius: 999px; overflow: hidden; max-width: 260px; }
.resume-bar span { display: block; height: 100%; background: var(--warn); }
.resume-label { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--warn); font-weight: 600; margin-top: 4px; }
.upnext-resume { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 4px; background: rgba(0, 0, 0, .5); }
.upnext-resume span { display: block; height: 100%; background: var(--warn); }
.hero-resume { margin-top: 14px; }
.inline-details summary { cursor: pointer; list-style: none; }
.inline-details summary::-webkit-details-marker { display: none; }
.trailer-modal { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .85); display: grid; place-items: center; padding: 16px; animation: toast-in .2s; }
.trailer-modal .frame { width: min(1100px, 100%); aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.trailer-modal iframe { width: 100%; height: 100%; border: 0; }
.trailer-modal .close { position: absolute; top: 14px; right: 16px; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.saga-banner { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); margin: 20px 0 6px; }
.saga-banner::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--surface) var(--hero, none) center / cover; }
.saga-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 11, 16, .95), rgba(11, 11, 16, .6)); }
.saga-banner > div { display: flex; flex-direction: column; gap: 2px; }
.saga-banner b { font-size: 20px; }
.saga-item { position: relative; }
.saga-n { position: absolute; z-index: 2; top: -8px; left: -8px; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.show-hero.short { min-height: 320px; }
a.cast:hover .cast-name { color: var(--accent); }
.person-head { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 10px; }
.person-photo { width: 190px; flex: none; aspect-ratio: 2/3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.list-card { display: block; }
.list-covers { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .2s; }
.list-covers > div { background: var(--surface-2); overflow: hidden; }
.list-covers img { width: 100%; height: 100%; object-fit: cover; }
.list-card:hover .list-covers { transform: translateY(-3px); }
.list-name { font-weight: 700; margin-top: 10px; }
.new-list-big { display: flex; gap: 10px; margin-bottom: 26px; }
.health { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.health li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.health .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); }
.health li.warn .dot { background: var(--warn); }
.health b { font-weight: 600; text-align: right; }
code.block { display: block; padding: 10px 12px; margin-top: 6px; }
.log-list { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 4px; color: var(--muted); }
.wrapped-hero { text-align: center; margin: 10px 0 26px; }
.wrapped-year { font-size: clamp(64px, 12vw, 140px); font-weight: 900; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.list-chips.center { justify-content: center; margin-top: 14px; }
.wrapped-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 26px; }
.wtile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 2px; color: var(--muted); }
.wtile.big { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(244, 63, 94, .22), rgba(168, 85, 247, .22)); border-color: rgba(244, 63, 94, .35); color: var(--text); text-align: center; padding: 28px; }
.wnum { font-size: 34px; font-weight: 850; color: var(--text); letter-spacing: -.02em; }
.wtile.big .wnum { font-size: 64px; }
.wcard.wtop { position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; padding: 40px 28px; margin-bottom: 10px; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; }
.wcard.wtop::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--surface) var(--hero, none) center 25% / cover; filter: blur(2px) brightness(.55); transform: scale(1.05); }
.wcard.wtop h2 { font-size: 36px; }
.wrapped-grid { margin-top: 20px; }
.wrapped-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 10px 0 20px; }
.wfact { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.wfact .ico { color: var(--accent); margin-top: 2px; }
.wfact div { display: flex; flex-direction: column; }
.wfact span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 720px) {
    .person-head { flex-direction: column; align-items: center; text-align: center; }
    .person-photo { width: 140px; }
    .new-list-big { flex-direction: column; }
    .list-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .saga-banner { flex-direction: column; align-items: flex-start; }
    .wtile.big .wnum { font-size: 48px; }
    .menu-panel { position: fixed; left: 12px !important; right: 12px !important; top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); }
}
.menu.list-menu > summary.btn { padding: 10px 16px; color: var(--text); border-radius: 11px; }
.menu.list-menu > summary.btn:hover { background: rgba(255, 255, 255, .14); }

/* ------------------------------------------------ per te */
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.rec-card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; transition: opacity .25s, border-color .2s; }
.rec-card:hover { border-color: var(--surface-3); }
.rec-card.leaving { opacity: 0; }
.rec-poster { position: relative; width: 108px; flex: none; aspect-ratio: 2/3; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.rec-poster img { width: 100%; height: 100%; object-fit: cover; }
.match { position: absolute; top: 6px; left: 6px; background: rgba(0, 0, 0, .72); color: var(--good); font-weight: 800; font-size: 12px; padding: 2px 7px; border-radius: 999px; backdrop-filter: blur(4px); }
.poster .match { top: 8px; left: auto; right: 8px; }
.rec-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rec-title { font-weight: 750; font-size: 15.5px; line-height: 1.25; }
.rec-title:hover { color: var(--accent); }
.rec-why { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0 0; font-size: 13px; color: #e4e4ee; line-height: 1.4; }
.rec-why .ico { color: #fbbf24; fill: #fbbf24; margin-top: 2px; }
.rec-plan { margin: 2px 0 0; font-size: 12px; color: var(--good); font-weight: 600; }
.rec-prov { display: flex; gap: 5px; margin-top: 4px; }
.rec-prov img { border-radius: 6px; opacity: .55; }
.rec-prov img.mine { opacity: 1; box-shadow: 0 0 0 2px var(--good); }
.rec-actions { display: flex; gap: 6px; align-items: center; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.rec-actions form { display: flex; gap: 6px; flex-wrap: wrap; }
.rec-mini { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.35; }
.taste { margin-bottom: 18px; }
.taste h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.taste h3 .ico { color: #fbbf24; fill: #fbbf24; }
.taste-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.taste-row > span { width: 72px; color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.taste-row .tag { font-style: normal; }
.ghost-tag { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.prov-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.prov-opt { position: relative; cursor: pointer; }
.prov-opt input { position: absolute; opacity: 0; }
.prov-opt img { width: 46px; height: 46px; border-radius: 11px; opacity: .45; filter: grayscale(.6); transition: all .15s; border: 2px solid transparent; }
.prov-opt input:checked + img { opacity: 1; filter: none; border-color: var(--good); }
.prov-opt input:focus-visible + img { box-shadow: 0 0 0 3px var(--accent-soft); }
.prov-pick { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 14px 14px; margin-top: 10px; }
.foryou-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 18px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(244, 63, 94, .18), rgba(168, 85, 247, .18)); border: 1px solid rgba(244, 63, 94, .3); }
.foryou-banner > span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); }
.foryou-banner > span .ico { fill: #fff; }
.foryou-banner div { flex: 1; display: flex; flex-direction: column; }
.foryou-banner small { color: var(--muted); }
@media (max-width: 720px) {
    .rec-grid { grid-template-columns: 1fr; }
    .rec-poster { width: 92px; }
    .taste-row > span { width: 100%; }
}

/* Una serata, una scelta: spazio alle immagini e alle motivazioni. */
:root { --accent-2: #fb7185; --radius: 18px; --border: #292a34; }
:focus-visible { outline: 2px solid #fb7185; outline-offset: 4px; }
.section { margin-bottom: 52px; }
.evening-heading { align-items: flex-end; margin-bottom: 24px; }
.evening-heading .eyebrow { color: var(--accent-2); font-size: 10px; letter-spacing: .18em; margin-bottom: 10px; }
.evening-heading h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.045em; }
.evening-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.evening-filters label { flex: 1 1 150px; color: var(--muted); font-size: 12px; font-weight: 600; }
.evening-filters select, .mood-correction select { display: block; width: 100%; margin-top: 7px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); padding: 11px; color: var(--text); font: inherit; }
.evening-filters .evening-platforms { flex: 1 1 190px; display: flex; gap: 8px; align-items: center; min-height: 42px; }
.evening-platforms input { accent-color: var(--accent); width: 17px; height: 17px; }
.evening-note { margin: 10px 2px 22px; max-width: 850px; line-height: 1.65; }
.evening-hero { position: relative; isolation: isolate; min-height: 460px; display: flex; align-items: flex-end; overflow: hidden; border-radius: 24px; background: #181b28; border: 1px solid var(--border); }
.evening-backdrop { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.evening-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(10,12,19,.97), rgba(10,12,19,.74) 50%, rgba(10,12,19,.15)), linear-gradient(0deg, rgba(10,12,19,.7), transparent); }
.evening-content { padding: 48px; width: min(100%, 780px); }
.evening-kicker { display: inline-block; font-size: 10px; letter-spacing: .16em; font-weight: 750; color: #fecdd3; margin-bottom: 18px; }
.evening-content h2 { font-size: clamp(32px, 5vw, 60px); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.evening-meta { color: #bbbcc8; font-size: 13px; margin: 18px 0; }
.evening-reason { font-size: 17px; max-width: 530px; line-height: 1.65; }
.evening-content .btn-row { margin-top: 25px; flex-wrap: wrap; gap: 10px; }
.evening-secondary { background: #ffffff15; border-color: #ffffff30; }
.evening-detail { font-size: 13px; padding: 10px; text-decoration: underline; text-underline-offset: 4px; }
.evening-count { position: absolute; bottom: 20px; right: 24px; color: #d0d0db; font-size: 11px; }
.evening-empty { background: linear-gradient(120deg, #231820, #151823); padding: 44px; border: 1px solid var(--border); border-radius: 24px; }
.evening-empty h2 { margin: 14px 0; font-size: 30px; }
.evening-empty p { color: var(--muted); max-width: 560px; margin-bottom: 24px; }
.feedback-control { margin: 12px 0 0; font-size: 12px; width: 100%; }
.feedback-control summary { cursor: pointer; width: fit-content; color: #c9cad5; padding: 8px 0; }
.feedback-control form { padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.feedback-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mood-correction { display: block; color: var(--muted); }
.mood-correction select { margin-bottom: 8px; }
.rec-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.rec-card { display: flex; flex-direction: column; padding: 0; gap: 0; overflow: hidden; }
.rec-poster { width: 100%; aspect-ratio: 4/3; border-radius: 0; }
.rec-poster img { object-position: center 25%; }
.rec-body { padding: 20px; gap: 8px; }
.rec-title { font-size: 21px; letter-spacing: -.025em; }
.rec-why { line-height: 1.6; }
.rec-actions { padding-top: 12px; }
.rec-actions .feedback-control form { display: block; }
.rec-prov { gap: 8px; }
.poster-row { grid-auto-columns: 170px; gap: 22px; }
.poster-card .poster { border-radius: 14px; }
@media (min-width: 1100px) { .page-home .main { padding-top: 44px; } }
@media (max-width: 640px) {
    .evening-heading { display: block; }
    .evening-heading .more { display: inline-flex; margin-top: 14px; }
    .evening-filters { padding: 14px; gap: 12px; }
    .evening-filters label { flex-basis: calc(50% - 12px); min-width: 0; }
    .evening-filters > button { width: 100%; }
    .evening-content { padding: 160px 22px 42px; }
    .evening-hero::before { background: linear-gradient(0deg, #0a0c13 8%, rgba(10,12,19,.85) 55%, rgba(10,12,19,.15)); }
    .evening-hero { min-height: 490px; border-radius: 18px; }
    .evening-count { bottom: 12px; right: 20px; }
    .evening-empty { padding: 28px 22px; }
    .rec-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
    .poster-row { grid-auto-columns: 140px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* La libreria e i titoli da votare restano a portata di mano. */
.home-library { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 32px; }
.home-library a { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-size: 12px; color: var(--muted); }
.home-library a:hover { border-color: var(--accent); color: var(--text); }
.home-library b { width: 100%; color: var(--text); font-size: 23px; margin-top: 3px; }
.rate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 16px; }
.rate-card { display: flex; align-items: center; gap: 15px; padding: 14px; border: 1px solid var(--border); background: var(--surface); border-radius: 16px; }
.rate-poster { display: flex; align-items: center; justify-content: center; width: 64px; height: 96px; flex: none; background: var(--surface-2); border-radius: 7px; overflow: hidden; color: var(--muted); }
.rate-poster img { width: 100%; height: 100%; object-fit: cover; }
.rate-body { flex: 1; min-width: 0; }
.rate-title { display: block; font-size: 15px; font-weight: 650; margin-bottom: 5px; }
.rating-form { display: flex; align-items: center; gap: 8px; }
.rating-form label { flex: 1; min-width: 0; }
.rating-form select { width: 100%; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); border-radius: 8px; padding: 9px; font: inherit; font-size: 12px; }
.feedback-control .rating-form { margin-top: 10px; }
.rec-actions .feedback-control .rating-form { display: flex; }
.rating-pagination { margin-top: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1000px) { .home-library { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .home-library { gap: 8px; } .home-library a { padding: 10px; font-size: 10px; } .home-library a .ico { display: none; } .home-library b { font-size: 20px; } }

/* ================================================= v1.4 — Per te / Insieme / serata / voti */
.h2 { font-size: 22px; font-weight: 750; }
form.inline { display: inline-flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.btn.glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn.glass:hover { background: rgba(255, 255, 255, .18); }
.avatar.small { width: 24px; height: 24px; font-size: 11px; }
.empty.slim { padding: 18px; }
.empty.friendly .empty-icon { font-size: 34px; background: var(--surface-2); }
.leaving { opacity: 0 !important; transform: scale(.94); transition: opacity .25s, transform .25s; }

/* intestazioni di pagina */
.page-hero { display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 26px; padding: 26px 28px; border-radius: 22px; border: 1px solid var(--border);
    background: radial-gradient(600px 220px at 0% 0%, rgba(244, 63, 94, .16), transparent), radial-gradient(600px 240px at 100% 100%, rgba(168, 85, 247, .16), transparent), var(--surface); }
.page-hero h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.03em; margin: 2px 0 6px; }
.page-hero p { max-width: 640px; margin: 0; }
.page-hero .eyebrow { margin-bottom: 0; }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.together-hero { justify-content: flex-start; }
.together-hero .hero-side { margin-left: auto; }
.couple-avatars { display: flex; align-items: center; gap: 0; }
.couple-avatars .avatar.big { width: 70px; height: 70px; font-size: 28px; border-radius: 50%; box-shadow: 0 0 0 4px var(--surface); }
.couple-avatars .avatar.big + .heart + .avatar.big { margin-left: -14px; }
.couple-avatars .heart { position: relative; z-index: 2; margin: 0 -12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--accent); font-size: 15px; animation: heartbeat 2.4s ease-in-out infinite; }
@keyframes heartbeat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } }
.couple-stats { display: flex; gap: 14px; color: var(--muted); font-size: 13px; }
.couple-stats b { color: var(--text); font-size: 16px; }

/* serata */
.evening { margin-bottom: 30px; }
.evening-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 16px; }
.evening-title { margin-right: auto; }
.evening-title .eyebrow { margin-bottom: 2px; }
.evening-title h2 { font-size: 24px; letter-spacing: -.02em; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; white-space: nowrap; }
.seg label:hover span { color: var(--text); }
.seg input:checked + span { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.evening-hero { min-height: 400px; border-radius: 22px; }
.evening-content { padding: 40px; width: min(100%, 720px); }
.evening-content h3 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -.04em; margin: 12px 0 0; text-wrap: balance; }
.evening-content h3 a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.evening-reason { display: flex; gap: 8px; align-items: flex-start; font-size: 15.5px; line-height: 1.55; max-width: 560px; margin: 0 0 8px; }
.evening-reason .ico { color: #fbbf24; fill: #fbbf24; margin-top: 4px; flex: none; }
.match.big-match { position: static; display: inline-block; font-size: 13px; padding: 4px 10px; }
.rec-prov.big { margin: 6px 0 2px; }
.rec-prov.big img { opacity: 1; border-radius: 8px; }
.evening-content .btn-row { margin-top: 18px; }
.evening-content .fb { margin-top: 14px; }
.evening-empty { padding: 34px; border-radius: 22px; }
.evening-empty h3 { font-size: 24px; margin-bottom: 6px; }
.evening-empty .btn + .btn { margin-left: 6px; }
.together-banner, .foryou-banner { transition: transform .15s, border-color .15s; }
.together-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: -8px 0 34px; border-radius: var(--radius); border: 1px solid rgba(244, 63, 94, .3);
    background: linear-gradient(90deg, rgba(244, 63, 94, .14), rgba(168, 85, 247, .12)); }
.together-banner:hover, .foryou-banner:hover { transform: translateY(-2px); border-color: var(--accent); }
.together-banner div { flex: 1; display: flex; flex-direction: column; }
.together-banner small { color: var(--muted); }
.avatars { display: flex; }
.avatars .avatar { box-shadow: 0 0 0 3px var(--bg); }
.avatars .avatar + .avatar { margin-left: -8px; }

/* per te */
.big-tabs a { font-size: 15.5px; display: inline-flex; align-items: center; gap: 6px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -8px 0 20px; }
.filter-chips .chip { padding: 7px 12px; font-size: 13px; }
.chip-sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }
.foryou-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.foryou-tools h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.restore { margin-top: 12px; }
.restore summary { cursor: pointer; }
.restore form { margin-top: 8px; }
.onboarding { margin-bottom: 24px; border-color: rgba(251, 191, 36, .35); background: linear-gradient(180deg, rgba(251, 191, 36, .07), var(--surface) 60%); }
.onboarding-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.onboarding-emoji { font-size: 34px; animation: wave 2.2s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } }
.onboarding-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; margin-bottom: 10px; }
.ob-card { text-align: center; transition: opacity .25s, transform .25s; }
.ob-poster { aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.ob-poster img { width: 100%; height: 100%; object-fit: cover; }
.ob-title { font-size: 12.5px; font-weight: 650; margin: 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-actions { display: flex; justify-content: center; gap: 8px; }
.ob-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-size: 16px; cursor: pointer; transition: transform .12s, background .15s, color .15s; }
.ob-btn:hover { transform: scale(1.12); }
.ob-btn.like:hover { background: rgba(244, 63, 94, .2); color: var(--accent); border-color: var(--accent); }
.ob-btn.nope:hover { background: var(--surface-3); color: var(--text); }

/* il tuo parere */
.fb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.fb-quick { display: inline-flex; gap: 6px; margin: 0; }
.fb-btn { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); font: 600 12.5px var(--font); cursor: pointer; transition: all .15s; }
.fb-btn:hover { color: var(--text); border-color: var(--surface-3); background: var(--surface-2); }
.fb-btn.on.like { color: #fff; background: var(--accent); border-color: var(--accent); animation: pop .3s ease; }
.fb-btn.on.nope { color: var(--text); background: var(--surface-3); }
@keyframes pop { 50% { transform: scale(1.15); } }
.fb-more { font-size: 12.5px; }
.fb-more summary { cursor: pointer; color: var(--muted); font-weight: 600; list-style: none; padding: 5px 2px; }
.fb-more summary::-webkit-details-marker { display: none; }
.fb-more summary:hover { color: var(--text); }
.fb-panel { display: grid; gap: 10px; padding: 12px; margin-top: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.fb-tone { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; }
.score-form { margin: 0; }
.score-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.score-dot { width: 27px; height: 27px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-2); color: var(--muted); font: 700 11.5px var(--font); cursor: pointer; transition: transform .1s, background .15s, color .15s; padding: 0; }
.score-dot:hover { transform: scale(1.15); color: var(--text); }
.score-dot.on { color: #111; border-color: transparent; }
.score-dot.on.s1, .score-dot.on.s2, .score-dot.on.s3 { background: #f87171; }
.score-dot.on.s4, .score-dot.on.s5 { background: #fb923c; }
.score-dot.on.s6, .score-dot.on.s7 { background: #facc15; }
.score-dot.on.s8, .score-dot.on.s9, .score-dot.on.s10 { background: #4ade80; }
.score-dots:hover .score-dot { background: var(--bg-2); color: var(--muted); border-color: var(--border); }
.score-dots .score-dot:hover, .score-dots .score-dot:has(~ .score-dot:hover) { background: #fbbf24 !important; color: #111 !important; border-color: transparent !important; }
.rate-card { transition: opacity .25s, transform .25s; }
.rate-card .score-dot { width: 24px; height: 24px; font-size: 10.5px; }

/* insieme */
.nav-heart { color: #fda4af !important; }
.tabbar a.tab-heart.active .ico { color: var(--accent); fill: var(--accent); }
.together-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 9px 12px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; width: fit-content; max-width: 100%; }
.together-strip.on { border-color: rgba(244, 63, 94, .5); background: rgba(244, 63, 94, .12); }
.couple-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.couple-card { display: flex; gap: 14px; padding: 10px; background: var(--surface); border: 1px solid rgba(244, 63, 94, .25); border-radius: var(--radius); }
.cc-poster { width: 76px; flex: none; aspect-ratio: 2/3; border-radius: 9px; overflow: hidden; background: var(--surface-2); }
.cc-poster img { width: 100%; height: 100%; object-fit: cover; }
.cc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cc-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.couple-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px 14px; }
.couple-item .quick-add { justify-content: flex-start; }
.icon-chip { padding: 6px 9px !important; }
.seg-links { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; margin-left: auto; }
.seg-links a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg-links a.on { background: var(--surface-3); color: var(--text); }
.rec-card.couple { border-color: rgba(244, 63, 94, .22); }
.rec-why .who { flex: none; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; background: var(--c, var(--surface-3)); color: #fff; margin-top: 1px; }
.privacy-row { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); }
.rec-plan { color: #fda4af; }

@media (max-width: 1020px) {
    .foryou-tools { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .page-hero { padding: 20px; border-radius: 18px; }
    .hero-side { align-items: flex-start; width: 100%; }
    .together-hero .hero-side { margin-left: 0; }
    .couple-avatars .avatar.big { width: 54px; height: 54px; font-size: 22px; }
    .evening-bar { gap: 8px; }
    .evening-title { width: 100%; }
    .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
    .seg span { padding: 6px 10px; font-size: 12.5px; }
    .evening-content { padding: 150px 20px 30px; }
    .evening-hero { min-height: 0; }
    .evening-content h3 { font-size: 30px; }
    .filter-chips { flex-wrap: nowrap; overflow-x: auto; margin: -8px -16px 18px; padding: 0 16px 4px; scrollbar-width: none; }
    .filter-chips .chip { flex: none; }
    .couple-grid { grid-template-columns: 1fr; }
    .couple-list { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
    .onboarding-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .together-banner { margin-top: -14px; }
    .fb-btn span { display: none; }
    .fb-btn { width: 34px; justify-content: center; padding: 0; font-size: 14px; }
}
.evening-opts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 720px) {
    .evening-opts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; width: calc(100% + 32px); }
    .evening-opts::-webkit-scrollbar { display: none; }
    .evening-opts .seg, .evening-opts .switch { flex: none; }
    .evening-opts .seg { overflow: visible; }
}
.mainnav a { white-space: nowrap; }
@media (max-width: 1260px) {
    .topbar-inner { gap: 14px; }
    .mainnav a { padding: 8px 9px; }
    .topsearch { width: 200px; }
    .topsearch:focus-within { width: 240px; }
}
@media (max-width: 1160px) {
    .mainnav a[href*="p=calendar"], .mainnav a[href*="p=discover"] { display: none; }
}
