/**
 * Tell Me Home v2 — Fase 1 (Instagram / Netflix inspired)
 * Scoped: body.tell-me-page logged-in hero
 */

body.tell-me-page {
    --tell-me-v2-bg: #050505;
    --tell-me-v2-surface: #111111;
    --tell-me-v2-text: #ffffff;
    --tell-me-v2-text-secondary: #a0a0a0;
    --tell-me-v2-accent: #22ff88;
    --bg-night: #050505;
    --bg-night-2: #111111;
    background: var(--tell-me-v2-bg) !important;
    color: var(--tell-me-v2-text);
}

/* Header compatto */
body.tell-me-page .hero-tell-me-v2 .hero-guest-section {
    background: transparent !important;
    min-height: 0 !important;
    height: auto !important;
    padding:
        max(12px, env(safe-area-inset-top, 0px))
        16px
        8px !important;
}

body.tell-me-page .hero-tell-me-v2 .hero-overlay {
    display: none !important;
}

/* Feed top bar (Fase 2 leggera) */
body.tell-me-page .tell-me-feed-topbar {
    position: sticky;
    top: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    margin: 0 0 4px;
    padding: 2px 0 6px;
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body.tell-me-page .tell-me-feed-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    text-decoration: none !important;
    color: var(--tell-me-v2-text);
    -webkit-tap-highlight-color: transparent;
}

body.tell-me-page .tell-me-feed-brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
}

body.tell-me-page .tell-me-feed-brand-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: lowercase;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body.tell-me-page .tell-me-feed-topbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

body.tell-me-page .tell-me-feed-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--tell-me-v2-text);
    font-size: 22px;
    line-height: 1;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
    transition: background 180ms ease, transform 180ms ease;
}

body.tell-me-page .tell-me-feed-icon-btn:hover,
body.tell-me-page .tell-me-feed-icon-btn:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

body.tell-me-page .tell-me-feed-icon-btn:active {
    transform: scale(0.94);
}

body.tell-me-page .tell-me-feed-notif-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff3040;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-sizing: border-box;
    pointer-events: none;
}

body.tell-me-page .tell-me-feed-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 2px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 180ms ease, transform 180ms ease;
}

body.tell-me-page .tell-me-feed-profile-btn:active {
    transform: scale(0.94);
}

body.tell-me-page .tell-me-feed-profile-initial {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: var(--tell-me-v2-text);
}

body.tell-me-page .tell-me-greeting-secondary {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--tell-me-v2-text-secondary);
}

/* Search pill — più sottile stile feed */
body.tell-me-page .tell-me-search-pill-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 48px;
    margin: 0 0 12px 0;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(17, 17, 17, 0.55);
    color: var(--tell-me-v2-text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
    -webkit-tap-highlight-color: transparent;
}

body.tell-me-page .tell-me-search-pill-v2:hover,
body.tell-me-page .tell-me-search-pill-v2:focus-visible {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(17, 17, 17, 0.85);
}

body.tell-me-page .tell-me-search-pill-v2:active {
    transform: scale(0.98);
}

body.tell-me-page .tell-me-search-pill-icon {
    font-size: 15px;
    color: var(--tell-me-v2-text-secondary);
    flex-shrink: 0;
}

/* Hero card — post compatto (Today Hub v2.1) */
body.tell-me-page .hero-tell-me-v2 #today-hub.today-hub-hero-card-v2 {
    border-radius: 20px !important;
    background: var(--tell-me-v2-surface) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35) !important;
    margin: 0 !important;
    overflow: hidden;
}

body.tell-me-page .hero-tell-me-v2 #today-hub-content .today-hub-hero-media {
    height: 220px;
    min-height: 220px;
    border-radius: 20px 20px 0 0;
}

body.tell-me-page .hero-tell-me-v2 #today-hub-content .today-hub-hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(5, 5, 5, 0.08) 0%,
        rgba(5, 5, 5, 0.35) 50%,
        rgba(5, 5, 5, 0.88) 100%
    ) !important;
}

body.tell-me-page .hero-tell-me-v2 #today-hub-content .today-hub-hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 220px;
    padding: 16px 16px 18px;
    box-sizing: border-box;
}

body.tell-me-page .hero-tell-me-v2 #today-hub-content .today-hub-block-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.22 !important;
    margin-bottom: 4px !important;
}

body.tell-me-page .hero-tell-me-v2 #today-hub-content .today-hub-block-desc {
    font-size: 13px !important;
    color: var(--tell-me-v2-text-secondary) !important;
    margin-bottom: 12px !important;
}

body.tell-me-page .hero-tell-me-v2 #today-hub-content .today-hub-cta-link {
    background: var(--tell-me-v2-accent) !important;
    color: #050505 !important;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 16px;
    box-shadow: 0 4px 16px rgba(34, 255, 136, 0.28) !important;
}

body.tell-me-page .hero-tell-me-v2 #today-hub-content .today-hub-cta-arrow {
    color: #050505 !important;
}

/* C2: tag giorno neutro (no viola legacy) */
body.tell-me-page .hero-tell-me-v2 #today-hub-content .today-hub-day-tag {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: none !important;
    color: var(--tell-me-v2-text) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.tell-me-page .hero-tell-me-v2 #today-hub-content .today-hub-kicker-rest {
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    color: var(--tell-me-v2-text-secondary) !important;
    text-shadow: none !important;
}

body.tell-me-page .hero-tell-me-v2 #today-hub-content .today-hub-kicker-row {
    margin-bottom: 8px !important;
}

/* A1: Continua fuori dalla card hero */
body.tell-me-page .today-hub-stories-host-v2 {
    --today-hub-pad-inline: 16px;
    margin: 0 0 12px;
    padding: 0 var(--today-hub-pad-inline);
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(6px);
}

body.tell-me-page .today-hub-stories-host-v2 .today-hub-stories-v2 {
    margin-top: 0;
    padding: 0 0 4px;
    border-top: none;
    background: transparent;
}

body.tell-me-page .today-hub-stories-host-v2 .today-hub-stai-guardando-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

body.tell-me-page .today-hub-stories-host-v2 .today-hub-stai-guardando-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

body.tell-me-page .today-hub-stories-host-v2 .today-hub-stai-guardando-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tell-me-v2-text-secondary);
    flex-shrink: 0;
    margin: 0;
}

body.tell-me-page .today-hub-stories-host-v2 .today-hub-stories-all-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--tell-me-v2-accent);
    text-decoration: none;
    padding: 4px 2px;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

body.tell-me-page .today-hub-stories-host-v2 .today-hub-calendar-btn--compact {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    flex-shrink: 0;
}

body.tell-me-page .today-hub-stories-host-v2 .today-hub-in-progress-scroll.today-hub-stories-scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 12px;
    margin: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

body.tell-me-page .today-hub-stories-host-v2 .today-hub-stories-scroll::after {
    display: none !important;
}

body.tell-me-page .today-hub-stories-host-v2 .today-hub-stories-scroll .today-hub-story-item {
    width: 76px;
    min-width: 76px;
    max-width: 76px;
    flex: 0 0 76px;
    margin: 0;
}

body.tell-me-page .today-hub-stories-host-v2 .today-hub-story-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

body.tell-me-page .today-hub-stories-host-v2 .today-hub-story-ring {
    box-sizing: border-box;
    width: 72px;
    height: 72px;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--tell-me-v2-accent) 0%,
        #00c96a 55%,
        rgba(34, 255, 136, 0.45) 100%
    );
    flex-shrink: 0;
}

body.tell-me-page .today-hub-stories-host-v2 .today-hub-story-ring--featured {
    padding: 3.5px;
    background: linear-gradient(135deg, #22ff88 0%, #00ffaa 40%, #00c96a 100%);
    box-shadow: 0 0 16px rgba(34, 255, 136, 0.35);
}

body.tell-me-page .today-hub-stories-host-v2 .today-hub-story-ring--idle {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

body.tell-me-page .today-hub-stories-host-v2 .today-hub-story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #1a1a1a;
    border: 2px solid var(--tell-me-v2-bg);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.tell-me-page .today-hub-stories-host-v2 .today-hub-story-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.tell-me-page .today-hub-stories-host-v2 .today-hub-story-title {
    display: block;
    width: 100%;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--tell-me-v2-text);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.tell-me-page .today-hub-stories-host-v2 .today-hub-story-ep {
    display: block;
    width: 100%;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--tell-me-v2-text-secondary);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.tell-me-page .today-hub-stories-host-v2 .today-hub-stories-hint {
    font-size: 13px;
    font-weight: 500;
    color: var(--tell-me-v2-text-secondary);
    line-height: 1.45;
    margin-bottom: 12px;
}

body.tell-me-page .today-hub-stories-host-v2 .today-hub-suggest-suspend {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--tell-me-v2-text-secondary);
    line-height: 1.45;
}

/* Card tap — caroselli e card principali */
body.tell-me-page .carousel-card,
body.tell-me-page .tell-me-card-v2 {
    border-radius: 20px !important;
    transition: transform 200ms ease, box-shadow 200ms ease !important;
}

body.tell-me-page .carousel-card:active,
body.tell-me-page .tell-me-card-v2:active {
    transform: scale(1.03);
}

body.tell-me-page #step-2-content {
    border-radius: 20px !important;
}

@media (prefers-reduced-motion: reduce) {
    body.tell-me-page .carousel-card:active,
    body.tell-me-page .tell-me-search-pill-v2:active {
        transform: none;
    }
}

@media (max-width: 380px) {
    body.tell-me-page .tell-me-feed-brand-text {
        font-size: 18px;
    }

    body.tell-me-page .tell-me-greeting-secondary {
        font-size: 12px;
    }

    body.tell-me-page .hero-tell-me-v2 #today-hub-content .today-hub-hero-media,
    body.tell-me-page .hero-tell-me-v2 #today-hub-content .today-hub-hero-inner {
        min-height: 200px;
        height: 200px;
    }
}

/* ── Fase 2: Stories = Continua a guardare (host esterno) ── */
body.tell-me-page .hero-tell-me-v2 .today-hub-stories-all-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--tell-me-v2-accent);
    text-decoration: none;
    padding: 4px 2px;
    -webkit-tap-highlight-color: transparent;
}

body.tell-me-page .hero-tell-me-v2 .today-hub-stories-all-link:hover,
body.tell-me-page .hero-tell-me-v2 .today-hub-stories-all-link:focus-visible {
    opacity: 0.85;
}

body.tell-me-page .hero-tell-me-v2 .today-hub-calendar-btn--compact {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    font-size: 14px;
    line-height: 1;
    border-radius: 10px;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

body.tell-me-page .hero-tell-me-v2 .today-hub-calendar-btn--compact i {
    font-size: 14px;
}

body.tell-me-page .hero-tell-me-v2 .today-hub-stories-scroll {
    gap: 14px;
    padding: 4px 0 12px;
    scroll-snap-type: x mandatory;
}

body.tell-me-page .hero-tell-me-v2 .today-hub-stories-scroll::after {
    display: none !important;
}

body.tell-me-page .hero-tell-me-v2 .today-hub-stories-scroll .today-hub-story-item {
    width: 76px;
    min-width: 76px;
    max-width: 76px;
    flex: 0 0 76px;
}

body.tell-me-page .hero-tell-me-v2 .today-hub-story-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: transform 180ms ease;
}

body.tell-me-page .hero-tell-me-v2 .today-hub-story-link:active {
    transform: scale(0.96);
}

body.tell-me-page .hero-tell-me-v2 .today-hub-story-ring {
    box-sizing: border-box;
    width: 72px;
    height: 72px;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--tell-me-v2-accent) 0%,
        #00c96a 55%,
        rgba(34, 255, 136, 0.45) 100%
    );
    flex-shrink: 0;
}

body.tell-me-page .hero-tell-me-v2 .today-hub-story-ring--featured {
    padding: 3.5px;
    background: linear-gradient(
        135deg,
        #22ff88 0%,
        #00ffaa 40%,
        #00c96a 100%
    );
    box-shadow: 0 0 16px rgba(34, 255, 136, 0.35);
}

body.tell-me-page .hero-tell-me-v2 .today-hub-story-ring--idle {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

body.tell-me-page .hero-tell-me-v2 .today-hub-story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #1a1a1a;
    border: 2px solid var(--tell-me-v2-bg);
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.tell-me-page .hero-tell-me-v2 .today-hub-story-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.tell-me-page .hero-tell-me-v2 .today-hub-story-poster-placeholder {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.45);
}

body.tell-me-page .hero-tell-me-v2 .today-hub-story-title {
    display: block;
    width: 100%;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--tell-me-v2-text);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.tell-me-page .hero-tell-me-v2 .today-hub-story-ep {
    display: block;
    width: 100%;
    margin-top: -2px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--tell-me-v2-text-secondary);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.tell-me-page .hero-tell-me-v2 .today-hub-stories-empty-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    padding-bottom: 2px;
    line-height: 1.45;
}

@media (max-width: 768px) {
    body.tell-me-page .today-hub-stories-host-v2 .today-hub-stories-scroll {
        margin-inline: calc(-1 * var(--today-hub-pad-inline, 16px));
        width: calc(100% + 2 * var(--today-hub-pad-inline, 16px));
        max-width: none;
        padding-inline: var(--today-hub-pad-inline, 16px);
        box-sizing: border-box;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.tell-me-page .hero-tell-me-v2 .today-hub-story-link:active {
        transform: none;
    }
}

/* ── Tipografia sezioni (quick win) ── */
body.tell-me-page {
    --tell-me-v2-section-gap: 24px;
    --tell-me-v2-section-inner-gap: 12px;
}

body.tell-me-page .section-title-harmony,
body.tell-me-page .section-header h2 {
    margin: 0 0 4px 0 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
    color: var(--tell-me-v2-text) !important;
    text-shadow: none !important;
}

body.tell-me-page .tell-me-section-subtitle {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--tell-me-v2-text-secondary);
}

body.tell-me-page .tell-me-section-meta {
    margin: 6px 0 0 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.02em;
    color: rgba(160, 160, 160, 0.88);
}

body.tell-me-page .tell-me-section-heading {
    margin-bottom: var(--tell-me-v2-section-inner-gap) !important;
}

body.tell-me-page .section-header {
    padding: 0;
    margin-bottom: var(--tell-me-v2-section-inner-gap);
}

body.tell-me-page #upcoming-trailers-section,
body.tell-me-page .upcoming-trailers-section {
    margin-top: var(--tell-me-v2-section-gap) !important;
}

body.tell-me-page #step-2-content .tell-me-section-heading + .carousel-container,
body.tell-me-page #step-2-content .tell-me-section-heading + #carousel-series,
body.tell-me-page #step-2-content .tell-me-section-heading + #carousel-movies {
    margin-top: 0;
}

body.tell-me-page .carousel-switch-row {
    font-size: 13px !important;
    color: var(--tell-me-v2-text-secondary) !important;
}

body.tell-me-page #carousel-switch-current {
    font-weight: 500;
    color: var(--tell-me-v2-text-secondary);
}

body.tell-me-page .carousel-switch-link {
    color: var(--tell-me-v2-text) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

body.tell-me-page #carousel-switch-badge-series,
body.tell-me-page #carousel-switch-badge-movies {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--tell-me-v2-accent) !important;
}

body.tell-me-page #unified-what-next-box h3 {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: var(--tell-me-v2-text) !important;
}

body.tell-me-page #unified-what-next-box p {
    font-size: 13px !important;
    color: var(--tell-me-v2-text-secondary) !important;
}

body.tell-me-page .taste-teaser-profile--tell_me {
    margin-top: var(--tell-me-v2-section-gap, 24px);
}

body.tell-me-page .taste-teaser-profile--tell_me .taste-teaser-profile-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tell-me-v2-text-secondary);
}

body.tell-me-page .taste-teaser-profile--tell_me .taste-teaser-profile-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--tell-me-v2-text);
}

body.tell-me-page .taste-teaser-profile--tell_me .taste-teaser-profile-sub {
    font-size: 13px;
    color: var(--tell-me-v2-text-secondary);
}

body.tell-me-page .hero-tell-me-v2 .today-hub-continua-a-guardare-label {
    display: none !important;
}

/* --- In arrivo: stories strip + reel carousel (Instagram) --- */
body.tell-me-page .upcoming-trailers-section--instagram {
    margin-top: var(--tell-me-v2-section-gap) !important;
    padding: 0 0 16px 0 !important;
}

body.tell-me-page .upcoming-trailers-instagram {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Non ereditare opacity:0 dell'hero — altrimenti strip invisibile ma con altezza (~120px vuoto) */
body.tell-me-page .upcoming-trailers-stories-host.today-hub-stories-host-v2 {
    opacity: 1;
    transform: none;
    margin-bottom: 4px;
}

body.tell-me-page .upcoming-trailers-stories-host .upcoming-trailers-stories-scroll {
    padding: 2px 0 8px;
}

body.tell-me-page .upcoming-trailers-stories-host .upcoming-trailer-story-link {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

body.tell-me-page .upcoming-trailers-reel-scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(8px, calc((100% - min(78vw, 320px)) / 2));
    padding: 4px 0 8px;
    overscroll-behavior-x: contain;
}

body.tell-me-page .upcoming-trailer-reel-card {
    flex: 0 0 min(78vw, 320px);
    width: min(78vw, 320px);
    min-width: min(78vw, 320px);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    border-radius: 18px;
    overflow: hidden;
    background: var(--tell-me-card-bg);
    border: 1px solid var(--tell-me-card-border);
    box-shadow: var(--tell-me-card-shadow);
    position: relative;
}

body.tell-me-page .upcoming-trailer-reel-media {
    position: relative;
    aspect-ratio: 9 / 16;
    background: #111;
    overflow: hidden;
}

body.tell-me-page .upcoming-trailer-reel-poster,
body.tell-me-page .upcoming-trailer-reel-poster-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.tell-me-page .upcoming-trailer-reel-poster-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.35);
}

body.tell-me-page .upcoming-trailer-reel-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.05) 35%,
        rgba(0, 0, 0, 0.45) 68%,
        rgba(0, 0, 0, 0.88) 100%
    );
    pointer-events: none;
}

body.tell-me-page .upcoming-trailer-reel-yt-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

body.tell-me-page .upcoming-trailer-reel-yt-badge .fab.fa-youtube {
    color: #ff0033;
    font-size: 14px;
}

body.tell-me-page .upcoming-trailer-reel-play-btn {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.2s ease, background 0.2s ease;
}

body.tell-me-page .upcoming-trailer-reel-play-btn .fa-play {
    margin-left: 3px;
    font-size: 18px;
}

body.tell-me-page .upcoming-trailer-reel-play-btn:active {
    transform: translate(-50%, -50%) scale(0.96);
}

body.tell-me-page .upcoming-trailer-reel-skeleton {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.tell-me-page .upcoming-trailer-reel-skeleton[hidden] {
    display: none !important;
}

body.tell-me-page .upcoming-trailer-reel-skeleton-pulse {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: rgba(255, 255, 255, 0.85);
    animation: upcoming-reel-spin 0.9s linear infinite;
}

@keyframes upcoming-reel-spin {
    to { transform: rotate(360deg); }
}

body.tell-me-page .upcoming-trailer-reel-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding: 12px 14px 14px;
    box-sizing: border-box;
}

body.tell-me-page .upcoming-trailer-reel-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.tell-me-page .upcoming-trailer-reel-date {
    margin: 0 0 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
}

body.tell-me-page .upcoming-trailer-reel-overlay .upcoming-trailer-platform-badge {
    margin-bottom: 6px;
    font-size: 10px;
}

body.tell-me-page .upcoming-trailer-reel-cta {
    width: 100%;
}

body.tell-me-page .upcoming-trailer-reel-cta--guarda {
    background: linear-gradient(135deg, var(--watchies-green-primary), var(--watchies-green-hover)) !important;
    border-color: transparent !important;
}

body.tell-me-page .upcoming-trailer-reel-cta--loading .upcoming-trailer-reel-cta-label--loading {
    opacity: 0.75;
}

body.tell-me-page .upcoming-trailers-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 2px 0 4px;
}

body.tell-me-page .upcoming-trailers-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

body.tell-me-page .upcoming-trailers-dot--active {
    background: var(--tell-me-v2-accent, #22ff88);
    transform: scale(1.25);
}

/* Viewer fullscreen stile Stories */
body.upcoming-trailer-viewer-open {
    overflow: hidden;
}

.upcoming-trailer-viewer {
    position: fixed;
    inset: 0;
    z-index: 12050;
    background: #000;
    color: #fff;
}

.upcoming-trailer-viewer[hidden] {
    display: none !important;
}

.upcoming-trailer-viewer-progress {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    gap: 4px;
}

.upcoming-trailer-viewer-progress-bar {
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

.upcoming-trailer-viewer-progress-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: inherit;
}

.upcoming-trailer-viewer-close {
    position: absolute;
    top: 22px;
    right: 12px;
    z-index: 4;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.upcoming-trailer-viewer-stage {
    position: relative;
    width: 100%;
    height: 100%;
}

.upcoming-trailer-viewer-slide {
    position: absolute;
    inset: 0;
}

.upcoming-trailer-viewer-poster-wrap,
.upcoming-trailer-viewer-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.upcoming-trailer-viewer-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upcoming-trailer-viewer-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 20px 16px max(20px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
}

.upcoming-trailer-viewer-yt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.upcoming-trailer-viewer-yt .fab.fa-youtube {
    color: #ff0033;
    font-size: 16px;
}

.upcoming-trailer-viewer-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
}

.upcoming-trailer-viewer-date {
    margin: 0 0 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.upcoming-trailer-viewer-cta {
    width: 100%;
    border-radius: 999px !important;
}

.upcoming-trailer-viewer-tap {
    position: absolute;
    top: 56px;
    bottom: 120px;
    width: 34%;
    z-index: 2;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.upcoming-trailer-viewer-tap--prev { left: 0; }
.upcoming-trailer-viewer-tap--next { right: 0; }

@media (min-width: 768px) {
    body.tell-me-page .upcoming-trailer-reel-card {
        flex-basis: 300px;
        width: 300px;
        min-width: 300px;
    }
}

/* --- Consigli serie: stories + reel (Step A Instagram) --- */
body.tell-me-page #carousel-series.carousel-series--instagram-recs .carousel-nav,
body.tell-me-page #carousel-series.carousel-series--instagram-recs .carousel-dots {
    display: none !important;
}

body.tell-me-page .tell-me-rec-instagram {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

body.tell-me-page .tell-me-rec-onboarding-row {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

body.tell-me-page .tell-me-rec-onboarding-row .tell-me-onboarding-strip-card {
    flex: none;
    min-width: 0;
    max-width: 100%;
}

body.tell-me-page .tell-me-rec-stories-host.tell-me-rec-stories-host-v2 {
    opacity: 1;
    transform: none;
    margin: 0;
    padding: 0;
}

body.tell-me-page .tell-me-rec-stories-host .tell-me-rec-stories-scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

body.tell-me-page .tell-me-rec-stories-host .tell-me-rec-story-item {
    width: 76px;
    min-width: 76px;
    max-width: 76px;
    flex: 0 0 76px;
    margin: 0;
}

body.tell-me-page .tell-me-rec-stories-host .tell-me-rec-story-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

body.tell-me-page .tell-me-rec-stories-host .today-hub-story-ring {
    box-sizing: border-box;
    width: 72px;
    height: 72px;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tell-me-v2-accent) 0%, #00c96a 55%, rgba(34, 255, 136, 0.45) 100%);
    flex-shrink: 0;
}

body.tell-me-page .tell-me-rec-stories-host .today-hub-story-ring--featured {
    padding: 3.5px;
    background: linear-gradient(135deg, #22ff88 0%, #00ffaa 40%, #00c96a 100%);
    box-shadow: 0 0 16px rgba(34, 255, 136, 0.35);
}

body.tell-me-page .tell-me-rec-stories-host .today-hub-story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #1a1a1a;
    border: 2px solid var(--tell-me-v2-bg, #0a0a0a);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.tell-me-page .tell-me-rec-stories-host .today-hub-story-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.tell-me-page .tell-me-rec-stories-host .today-hub-story-title,
body.tell-me-page .tell-me-rec-stories-host .today-hub-story-ep {
    display: block;
    width: 100%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.tell-me-page .tell-me-rec-stories-host .today-hub-story-title {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--tell-me-v2-text, #fff);
}

body.tell-me-page .tell-me-rec-stories-host .today-hub-story-ep {
    font-size: 10px;
    font-weight: 500;
    color: var(--tell-me-v2-text-secondary, rgba(255, 255, 255, 0.65));
}

body.tell-me-page .tell-me-rec-reel-scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(8px, calc((100% - min(78vw, 320px)) / 2));
    padding: 4px 0 8px;
    overscroll-behavior-x: contain;
    width: 100%;
}

body.tell-me-page .tell-me-rec-reel-item {
    flex: 0 0 min(78vw, 320px);
    width: min(78vw, 320px);
    min-width: min(78vw, 320px);
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

body.tell-me-page .tell-me-rec-reel-card {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #141414;
    border: 1px solid var(--tell-me-card-border);
    box-shadow: var(--tell-me-card-shadow);
    min-height: 0;
    padding: 0;
}

body.tell-me-page .tell-me-rec-reel-card:hover {
    transform: none;
}

body.tell-me-page .tell-me-rec-reel-media {
    position: relative;
    aspect-ratio: 9 / 16;
    background: #111;
    overflow: hidden;
}

body.tell-me-page .tell-me-rec-reel-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

body.tell-me-page .tell-me-rec-reel-hit-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: pointer;
    text-decoration: none;
    color: transparent;
    background: transparent;
}

body.tell-me-page .tell-me-rec-reel-gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 30%, rgba(0, 0, 0, 0.5) 65%, rgba(0, 0, 0, 0.9) 100%);
    pointer-events: none;
}

body.tell-me-page .tell-me-rec-reel-match-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

body.tell-me-page .tell-me-rec-reel-match-badge .fa-brain {
    color: var(--tell-me-v2-accent, #22ff88);
    font-size: 12px;
}

body.tell-me-page .tell-me-rec-reel-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding: 12px 12px 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

body.tell-me-page .tell-me-rec-reel-overlay * {
    pointer-events: auto;
}

body.tell-me-page .tell-me-rec-reel-platform-badge {
    font-size: 10px;
    margin: 0;
    align-self: flex-start;
}

body.tell-me-page .tell-me-rec-reel-title {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

body.tell-me-page .tell-me-rec-reel-emotional,
body.tell-me-page .tell-me-rec-reel-overview {
    margin: 0;
    font-size: 11px;
    font-style: italic;
    font-weight: 500;
    color: rgba(201, 255, 215, 0.95);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.tell-me-page .tell-me-rec-reel-overview {
    font-style: normal;
    color: rgba(255, 255, 255, 0.78);
}

body.tell-me-page .tell-me-rec-reel-actions {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    width: 100%;
    margin: 4px 0 0;
}

body.tell-me-page .tell-me-rec-reel-main-btn {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: clamp(11px, 2.8vw, 13px) !important;
    padding: 9px 12px !important;
    justify-content: center !important;
}

body.tell-me-page .tell-me-rec-reel-item--first .tell-me-rec-reel-main-btn {
    font-size: clamp(11px, 2.6vw, 14px) !important;
}

body.tell-me-page .tell-me-rec-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 2px 0 4px;
}

body.tell-me-page .tell-me-rec-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

body.tell-me-page .tell-me-rec-dot--active {
    background: var(--tell-me-v2-accent, #22ff88);
    transform: scale(1.25);
}

@media (min-width: 768px) {
    body.tell-me-page .tell-me-rec-reel-item {
        flex-basis: 300px;
        width: 300px;
        min-width: 300px;
    }
}

/* Override layout split-recs legacy in tell_me.html */
body.tell-me-page #carousel-series.carousel-series--instagram-recs .tell-me-series-bundle-slide {
    gap: 0 !important;
}

body.tell-me-page #carousel-series.carousel-series--instagram-recs .tell-me-rec-item.tell-me-rec-compact-card {
    flex: 0 0 min(78vw, 320px) !important;
    min-width: min(78vw, 320px) !important;
    max-width: none !important;
    min-height: 0 !important;
    align-self: stretch !important;
}

body.tell-me-page #carousel-series.carousel-series--instagram-recs .tell-me-rec-reel-scroll.tell-me-rec-bottom-strip {
    gap: 14px !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-inline: max(8px, calc((100% - min(78vw, 320px)) / 2)) !important;
}

body.tell-me-page #carousel-series.carousel-series--instagram-recs .tell-me-rec-reel-card {
    min-height: 0 !important;
    padding: 0 !important;
}

body.tell-me-page #carousel-series.carousel-series--instagram-recs .tell-me-compact-overlay {
    position: absolute !important;
    padding: 12px 12px 14px !important;
}

body.tell-me-page #carousel-series.carousel-series--instagram-recs .tell-me-rec-onboarding-row .tell-me-rec-strip-item {
    flex: none !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
