body {
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.18), transparent 35%),
        #111827;
    color: white;
    margin: 0;
    padding: 0;
}

.page {
    min-height: 100vh;
    padding: 0 16px 32px;
    box-sizing: border-box;
}

.page-home {
    max-width: 980px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    margin: 30px auto 32px;
    max-width: 760px;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 14px;
    border: 1px solid #374151;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.85);
    color: #93c5fd;
    font-size: 14px;
}

h1 {
    margin: 0 0 14px;
    font-size: 54px;
    line-height: 1.05;
}

h2, h3 {
    margin-top: 0;
}

.subtitle {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.search-panel {
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid #374151;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.panel-header {
    margin-bottom: 22px;
}

.panel-header h2 {
    margin-bottom: 8px;
    font-size: 28px;
}

.panel-header p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.5;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.input-group {
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #dbeafe;
    font-size: 14px;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #374151;
    background: #1f2937;
    color: white;
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

.extra-titles-toggle-wrap {
    display: none;
}

.extra-titles-toggle {
    background: transparent;
    border: 1px solid rgba(147, 197, 253, 0.28);
    color: #93c5fd;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.extra-titles-toggle:hover {
    background: rgba(147, 197, 253, 0.08);
}

button {
    padding: 13px 18px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.08s ease, opacity 0.15s ease;
}

button:hover {
    opacity: 0.96;
}

button:active {
    transform: translateY(1px);
}

.form-actions {
    margin-top: 22px;
}

.form-actions-v2 {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.add-title-btn {
    display: none;
}

.primary-submit-btn {
    flex: 1;
}

.add-title-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 22px;
    cursor: pointer;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 0;
    line-height: 1;

    transition: all 0.2s ease;
}

.add-title-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.4);
}

.suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 10px;
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.suggestion-item {
    cursor: pointer;
    padding: 10px 12px;
    border-bottom: 1px solid #374151;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #374151;
}

.helper-box {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(31, 41, 55, 0.9);
    border: 1px solid #374151;
    color: #cbd5e1;
    line-height: 1.5;
}

.rec-card {
    display: flex;
    gap: 16px;
    background: #1f2937;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #374151;
    margin-bottom: 12px;
}

.rec-poster img {
    width: 120px;
    border-radius: 8px;
}

.rec-content {
    flex: 1;
}

.why {
    color: #93c5fd;
}

.back-link {
    color: #60a5fa;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

@media (max-width: 760px) {
    h1 {
        font-size: 40px;
    }

    .subtitle {
        font-size: 16px;
    }

    .search-panel {
        padding: 20px;
    }

    .search-panel {
        padding: 20px 16px;
    }

    .panel-kicker,
    .section-kicker {
        letter-spacing: 0.07em;
    }

    .panel-header-v2 h2 {
        font-size: 20px;
        line-height: 1.08;
        margin: 0 0 8px;
    }

    .panel-header-v2 p {
        font-size: 13px;
        line-height: 1.45;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .rec-card {
        flex-direction: column;
    }

    .rec-poster img {
        width: 140px;
    }

    .panel-header-v2 {
        margin-bottom: 10px;
    }

    .mode-switch-v2 {
        gap: 8px;
        margin-bottom: 10px;
    }

    .mode-label {
        margin-bottom: 0;
        font-size: 13px;
    }

    .mode-option {
        padding: 7px 10px;
        min-height: 40px;
    }

    .input-group label {
        margin-bottom: 4px;
        font-size: 12px;
    }

    .input-group input {
        padding: 9px 12px;
        font-size: 14px;
    }

    .form-grid {
        gap: 10px;
    }

    .form-actions {
        margin-top: 10px;
    }

    .helper-box-v2 {
        margin-top: 12px;
        padding: 12px 14px;
        font-size: 12px;
        line-height: 1.35;
    }  

    .extra-titles {
        display: none;
    }

    .extra-titles.is-open {
        display: contents;
    }

    .extra-titles-toggle-wrap {
        display: block;
        margin-top: 2px;
        margin-bottom: 2px;
    }

    .extra-titles-toggle {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
        font-size: 13px;
        min-height: 40px;
    }  

}

.page-results {
    max-width: 1180px;
    margin: 0 auto;
}

@media (min-width: 761px) {
    .extra-titles {
        display: contents;
    }

    .add-title-btn {
        display: none !important;
    }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin: 24px 0 28px;
}

.results-actions {
    flex-shrink: 0;
}

.back-button {
    display: inline-block;
    padding: 12px 16px;
    border: 1px solid #374151;
    border-radius: 12px;
    background: rgba(31, 41, 55, 0.92);
    text-decoration: none;
    font-weight: 700;
}

.results-top-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 30px;
}

.info-panel {
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid #374151;
    border-radius: 18px;
    padding: 20px;
}

.info-panel h2 {
    margin-bottom: 14px;
    font-size: 22px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.seed-tag,
.missing-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    border: 1px solid #374151;
}

.seed-tag {
    background: rgba(37, 99, 235, 0.18);
    color: #dbeafe;
}

.missing-tag {
    background: rgba(239, 68, 68, 0.14);
    color: #fecaca;
}

.muted-text {
    color: #94a3b8;
    margin: 0;
}

.results-section-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 16px;
}

.results-section-title h2 {
    margin: 0;
}

.results-section-title p {
    margin: 0;
    color: #94a3b8;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.enhanced-card {
    position: relative;
    display: grid;
    grid-template-columns: 52px 150px 1fr;
    align-items: stretch;
    gap: 18px;
    background: rgba(31, 41, 55, 0.96);
    border: 1px solid #374151;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.rec-rank {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid #3b82f6;
    color: #dbeafe;
    font-weight: 800;
    font-size: 20px;
}

.rec-poster {
    width: 150px;
}

.rec-poster img,
.poster-fallback {
    width: 150px;
    height: 225px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
}

.poster-fallback {
    background: #111827;
    border: 1px dashed #475569;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    box-sizing: border-box;
}

.rec-title-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    margin-bottom: 10px;
}

.rec-title-row h3 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.metric-box {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-label {
    color: #94a3b8;
    font-size: 13px;
}

.metric-value {
    color: white;
    font-weight: 800;
    font-size: 18px;
}

.empty-panel {
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid #374151;
    border-radius: 18px;
    padding: 24px;
}

.empty-panel p {
    color: #cbd5e1;
    margin-bottom: 18px;
}

@media (max-width: 980px) {
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }

    .results-top-grid {
        grid-template-columns: 1fr;
    }

    .enhanced-card {
        grid-template-columns: 1fr;
    }

    .rec-rank {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .rec-poster {
        width: 100%;
    }

    .rec-poster img,
    .poster-fallback {
        width: 160px;
        height: 240px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .rec-title-row h3 {
        font-size: 24px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

.suggestion-item mark {
    background: rgba(96, 165, 250, 0.22);
    color: #dbeafe;
    padding: 0 2px;
    border-radius: 4px;
}

.rec-overview {
    margin-top: 10px;
    margin-bottom: 0;
    color: #cbd5e1;
    line-height: 1.55;
    font-size: 15px;
    max-width: 900px;
}

.matched-keywords {
    margin-top: 8px;
    font-size: 13px;
    color: #9ec5ff;
}

.rec-badge {
    display: inline-block;
    margin: 0 0 8px 0;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    background: rgba(125, 211, 252, 0.15);
    color: #7dd3fc;
    font-weight: 600;
}

.rec-badge.top {
    background: rgba(250, 204, 21, 0.18);
    color: #facc15;
}

.rec-badge.highlight {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
}

.rec-badge.keyword {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
}

.result-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.signal-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #eaf2ff;
    font-size: 13px;
    line-height: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.signal-pill:hover {
    transform: translateY(-1px);
}

.signal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    flex-shrink: 0;
}

.signal-text strong {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.signal-text strong {
    color: #ffffff;
    font-weight: 600;
}

.signal-match {
    background: rgba(56, 189, 248, 0.10);
    border-color: rgba(56, 189, 248, 0.24);
}

.signal-genere,
.signal-genre {
    background: rgba(168, 85, 247, 0.10);
    border-color: rgba(168, 85, 247, 0.24);
}

.signal-temi {
    background: rgba(244, 114, 182, 0.10);
    border-color: rgba(244, 114, 182, 0.24);
}

.signal-pubblico {
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.24);
}

.signal-vibe {
    background: rgba(250, 204, 21, 0.10);
    border-color: rgba(250, 204, 21, 0.24);
}

.result-explanation {
    margin-top: 6px;
    line-height: 1.5;
    color: #b8c4d9;
    font-size: 15px;
    max-width: 850px;
}

.taste-block {
    margin-bottom: 18px;
}

.taste-block:last-child {
    margin-bottom: 0;
}

.tag {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    line-height: 1;
    color: #e5eefc;
}

.feedback-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.feedback-btn {
    border: none;
    background: rgba(255,255,255,0.08);
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

.feedback-btn:hover {
    background: rgba(255,255,255,0.2);
}

.feedback-btn.active {
    background: #4CAF50;
    color: white;
    transform: scale(1.1);
}

.feedback-btn[data-type="liked"].active {
    background: #4CAF50;
    color: white;
}

.feedback-btn[data-type="disliked"].active {
    background: #ff5252;
    color: white;
}

.feedback-btn[data-type="seen"].active {
    background: #607d8b;
    color: white;
}

.home-v2 {
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: 40px;
}

.home-hero {
    margin-bottom: 0;
    position: relative;
}

.home-hero::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: rgba(37, 99, 235, 0.25);
    filter: blur(120px);
    z-index: 0;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero-trending-strip {
    margin: 2px 0 16px;
}

.section-heading-compact {
    margin-bottom: 8px;
}

.section-heading-compact h2 {
    font-size: 24px;
    margin: 0;
}

.hero-trending-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 40px 10px 40px;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hero-trending-row::-webkit-scrollbar {
    display: none;
}

.trend-mini-card {
    position: relative;
    min-width: 132px;
    width: 132px;
    height: 188px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: rgba(17, 24, 39, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.20);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, filter 0.22s ease;
}

.trend-mini-card:hover {
    transform: translateY(-4px) scale(1.035);
    border-color: rgba(96, 165, 250, 0.32);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.30);
    z-index: 2;
}

.trend-mini-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.trend-mini-card:hover img {
    transform: scale(1.04);
}

.trend-mini-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 8px 8px 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.94), rgba(0,0,0,0.10));
}

.trend-mini-overlay span {
    display: inline-block;
    margin-bottom: 3px;
    font-size: 9px;
    font-weight: 700;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.trend-mini-overlay strong {
    display: block;
    font-size: 12px;
    line-height: 1.15;
    color: #fff;
}

.hero-subtitle {
    max-width: 720px;
    font-size: 17px;
}


.home-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 8px 0 28px;
}

.highlight-card {
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.72);
    border: 1px solid rgba(71, 85, 105, 0.55);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.highlight-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.16);
    font-size: 18px;
    flex-shrink: 0;
}

.highlight-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.highlight-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.5;
    font-size: 14px;
}

.search-panel-v2 {
    box-shadow: 0 0 0 1px rgba(59,130,246,0.15),
                0 20px 50px rgba(0,0,0,0.35);
}

.panel-header-v2 {
    margin-bottom: 18px;
}

.panel-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #6ea8fe, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.panel-header-v2 h2 {
    margin: 8px;
    font-size: 22px;
    line-height: 1.08;
}

.panel-header-v2 p {
    max-width: 760px;
    font-size: 14px;
    line-height: 1.45;
}

.mode-switch-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.mode-label {
    width: 100%;
    margin-bottom: 2px;
    font-size: 14px;
}

.mode-option {
    min-width: 140px;
}

.mode-label {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    font-size: 14px;
}

.mode-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 10px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid #374151;
    cursor: pointer;
}

.mode-option input {
    margin: 0;
}

.primary-submit-btn {
    min-width: 180px;
}

.helper-box-v2 {
    margin-top: 20px;
}

.home-picks {
    margin-top: 12px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: 30px;
}

.section-link {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 600;
}

.section-link:hover {
    text-decoration: underline;
}

.home-picks-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.pick-card {
    overflow: hidden;
    border-radius: 20px;
    background: rgba(17, 24, 39, 0.82);
    border: 1px solid rgba(71, 85, 105, 0.5);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 12px;
    overflow: hidden;
}

.pick-card:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.pick-poster {
    position: relative;
    height: 220px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.35);
    overflow: hidden;
    border-radius: 12px;
}

.pick-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
}

.poster-gradient-1 {
    background:
        linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.35)),
        linear-gradient(135deg, #1d4ed8, #0f172a);
}

.poster-gradient-2 {
    background:
        linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.35)),
        linear-gradient(135deg, #7c3aed, #111827);
}

.poster-gradient-3 {
    background:
        linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.35)),
        linear-gradient(135deg, #0f766e, #111827);
}

.poster-gradient-4 {
    background:
        linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.35)),
        linear-gradient(135deg, #b45309, #111827);
}

.pick-body {
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.pick-tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.pick-body h3 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.25;
}

.pick-body p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.5;
    font-size: 14px;
}

/* ── CAROSELLO PERSONALE HOME ─────────────────────────────────────────── */
.home-personal-strip {
    margin-bottom: 4px;
    margin-top: 0;
}

.personal-strip-header {
    margin-bottom: 8px;
}

.personal-strip-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
}

.personal-strip-wrap {
    position: relative;
}

.personal-strip-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2px 2px 10px;
    -webkit-overflow-scrolling: touch;
}

.personal-strip-row::-webkit-scrollbar { display: none; }
.personal-strip-row { scrollbar-width: none; }

/* Card personale */
.personal-card {
    position: relative;
    min-width: 130px;
    width: 130px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: rgba(17, 24, 39, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
}

.personal-card:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 14px 30px rgba(0,0,0,0.32);
    z-index: 2;
}

.personal-card-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    background: rgba(30,41,59,.8);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.personal-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.personal-card:hover .personal-card-poster img {
    transform: scale(1.05);
}

.personal-card-no-poster {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted, #94a3b8);
}

/* Badge tipo (Film/Serie TV) */
.personal-card-type {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}
.badge-movie {
    background: rgba(59,130,246,0.85);
    color: #fff;
}
.badge-tv {
    background: rgba(139,92,246,0.85);
    color: #fff;
}

/* Score badge */
.personal-card-score {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 9px;
    font-weight: 700;
    color: #fcd34d;
    background: rgba(0,0,0,0.65);
    padding: 2px 5px;
    border-radius: 7px;
    backdrop-filter: blur(6px);
}

/* Body testo */
.personal-card-body {
    padding: 7px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.personal-card-title {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    color: #f1f5f9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.personal-card-reason {
    font-size: 10px;
    color: var(--muted, #94a3b8);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bottone + sovrapposto al poster (angolo in basso a sinistra) */
.personal-card-add-btn {
    position: absolute;
    bottom: 7px;
    left: 7px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.75);
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    padding: 0;
    opacity: 0;
    transform: scale(0.85);
}

.personal-card:hover .personal-card-add-btn {
    opacity: 1;
    transform: scale(1);
}

.personal-card-add-btn:hover {
    background: rgba(59,130,246,0.80);
    border-color: #fff;
    transform: scale(1.12) !important;
}

/* Stato attivo: titolo già nel form */
.personal-card-add-btn.is-added {
    opacity: 1;
    transform: scale(1);
    background: rgba(59,130,246,0.75);
    border-color: #60a5fa;
    color: #fff;
    font-size: 22px;
    font-weight: 300;
}

.personal-card-add-btn.is-added:hover {
    background: rgba(239,68,68,0.75);
    border-color: #f87171;
}

/* Skeleton loading */
.personal-card--skeleton {
    pointer-events: none;
}

.skeleton-pulse {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.10) 50%,
        rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite;
}

@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.personal-card--skeleton .personal-card-poster {
    aspect-ratio: 2/3;
}

.skeleton-line {
    display: block;
}

/* Mobile: nascondi reason per guadagnare spazio verticale */
@media (max-width: 760px) {
    .home-personal-strip {
        margin-bottom: 2px;
    }

    .personal-strip-row {
        gap: 8px;
        padding: 2px 2px 8px;
    }

    .personal-card {
        min-width: 110px;
        width: 110px;
        border-radius: 12px;
    }

    .personal-card-reason {
        display: none;
    }

    .personal-card-body {
        padding: 6px 7px 7px;
        gap: 3px;
    }

    .personal-card-title {
        font-size: 10px;
    }

    /* Su mobile il bottone + è sempre visibile (no hover) */
    .personal-card-add-btn {
        opacity: 1;
        transform: scale(1);
        width: 22px;
        height: 22px;
        font-size: 16px;
        bottom: 5px;
        left: 5px;
    }
}
/* ─────────────────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .home-picks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .home-v2 {
        padding-top: 0;
        padding-bottom: 28px;
    }

    .home-hero {
        margin-bottom: 0;
    }

    .hero-copy h1 {
        margin: 0 0 2px;
        font-size: 30px;
        line-height: 1.02;
        max-width: 260px;
    }

    .hero-trending-strip {
        margin: 0 0 8px;
    }

    .section-kicker {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .panel-header-v2 h2,
    .section-heading h2 {
        font-size: 26px;
    }

    .home-picks-grid {
        grid-template-columns: 1fr;
    }

    .search-panel-v2 {
        padding: 16px;
        border-radius: 20px;
    }

    .pick-poster {
        height: 180px;
    }

    .mode-switch-v2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 10px;
        align-items: center;
    }

    .mode-label {
        grid-column: 1 / -1;
        width: auto;
        margin-bottom: 2px;
        font-size: 13px;
    }

    .mode-option {
        width: 100%;
        min-width: 0;
        justify-content: center;
        padding: 7px 10px;
        min-height: 40px;
    }

    .panel-header-v2 {
        margin-bottom: 10px;
    }

    .panel-header-v2 h2 {
        font-size: 17px;
        line-height: 1.05;
        margin: 0 0 6px;
    }

    .panel-header-v2 p {
        font-size: 12px;
        line-height: 1.35;
        margin: 0;
    }    

    .input-group label {
        margin-bottom: 4px;
        font-size: 12px;
    }

    .input-group input {
        padding: 9px 12px;
        font-size: 14px;
    }

    .form-grid {
        gap: 10px;
    }

    .form-actions {
        margin-top: 10px;
    }

    .primary-submit-btn {
        width: 100%;
        min-width: 0;
        padding: 10px 14px;
        min-height: 42px;
    }

    .helper-box-v2 {
        margin-top: 12px;
        padding: 12px 14px;
        font-size: 12px;
        line-height: 1.35;
    }

    .add-title-btn {
        display: flex;
    }

}

.hero-copy h1 {
    background: linear-gradient(90deg, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 6px;
}

.pick-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-trending-wrap {
    position: relative;
    margin-top: 14px;
}

.hero-trending-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0 6px;
}

.hero-trending-row::-webkit-scrollbar {
    display: none;
}

.hero-trending-wrap::before,
.hero-trending-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 72px;
    pointer-events: none;
    z-index: 2;
}

.hero-trending-wrap::before {
    left: 0;
    background: linear-gradient(to right, rgba(7, 15, 35, 0.95), rgba(7, 15, 35, 0));
}

.hero-trending-wrap::after {
    right: 0;
    background: linear-gradient(to left, rgba(7, 15, 35, 0.95), rgba(7, 15, 35, 0));
}

.trend-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(20, 28, 48, 0.88);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.hero-trending-wrap:hover .trend-nav {
    opacity: 1;
    pointer-events: auto;
}

.trend-nav:hover {
    background: rgba(37, 99, 235, 0.95);
}

.trend-nav-left {
    left: 10px !important;
}

.trend-nav-right {
    right: 10px !important;
}

@media (max-width: 761px) {
    .trend-nav {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .trend-nav-left {
        left: 6px !important;
    }

    .trend-nav-right {
        right: 6px !important;
    }

    .hero-trending-wrap::before,
    .hero-trending-wrap::after {
        width: 44px;
    }

    .home-picks-grid {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
      }

      .pick-card {
        min-width: 68%;
        flex: 0 0 68%;
        scroll-snap-align: start;
      }

      .pick-poster img {
          height: 220px;
          object-fit: cover;
        }

        .pick-body {
          padding: 14px;
        }

        .pick-body h3 {
          font-size: 18px;
          line-height: 1.2;
        }

        .pick-body p {
          font-size: 14px;
          line-height: 1.4;
          display: none;
        }

}

/* ===== DASHBOARD MOBILE FIRST ===== */

/* ===== DASHBOARD MOBILE FIRST ===== */

.dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dashboard-section,
.dashboard-hero {
    padding: 20px;
}

.dashboard-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dashboard-kicker {
    color: #93c5fd;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 6px;
}

.dashboard-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
}

.dashboard-subtitle {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #cbd5e1;
}

.dashboard-hero-action {
    width: 100%;
    display: flex;
    gap: 10px;
}

.dashboard-hero-action .btn,
.dashboard-hero-action form {
    width: 100%;
}

.dashboard-hero-action .btn {
    display: flex;
    justify-content: center;
}

.dashboard-section .daily-picks-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 8px !important;
    width: 100% !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.dashboard-section .daily-picks-grid::-webkit-scrollbar {
    display: none;
}

.dashboard-section .dashboard-pick-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    min-width: 74% !important;
    max-width: 74% !important;
    flex: 0 0 74% !important;
    scroll-snap-align: start;
    align-items: stretch !important;
    padding: 12px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    background: rgba(255,255,255,0.03) !important;
    overflow: hidden !important;
}

.dashboard-section .dashboard-pick-poster {
    width: 100% !important;
    height: 210px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: rgba(255,255,255,0.04) !important;
}

.dashboard-section .dashboard-pick-poster img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.dashboard-section .dashboard-pick-content {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.dashboard-section .dashboard-pick-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.dashboard-pick-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dashboard-pick-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dashboard-pick-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
}

.dashboard-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 700;
}

.dashboard-editorial-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #f5f7ff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.dashboard-score {
    font-size: 12px;
    color: #93c5fd;
    font-weight: 700;
}

.dashboard-pick-reason {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #cbd5e1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 761px) {
    .dashboard-section,
    .dashboard-hero {
        padding: 18px;
        border-radius: 16px;
    }

    .dashboard-hero-action {
        width: auto;
    }

    .dashboard-hero-action .btn {
        width: auto;
    }

    .dashboard-section .daily-picks-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        overflow: visible !important;
        padding-bottom: 0 !important;
    }   

    .dashboard-section .daily-picks-grid::-webkit-scrollbar {
        display: none;
    }

    .dashboard-section .dashboard-pick-card {
        display: grid !important;
        grid-template-columns: 90px minmax(0, 1fr) !important;
        gap: 12px !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: initial !important;
        padding: 12px !important;
    }

    .dashboard-section .dashboard-pick-poster {
        width: 90px !important;
        min-width: 90px !important;
        max-width: 90px !important;
        height: 135px !important;
    }

    .dashboard-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .dashboard-section .daily-picks-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .dashboard-section .dashboard-pick-card {
        grid-template-columns: 96px minmax(0, 1fr) !important;
    }

    .dashboard-section .dashboard-pick-poster {
        width: 96px !important;
        min-width: 96px !important;
        max-width: 96px !important;
        height: 144px !important;
    }
}

/* ===== RECENT SEARCHES ===== */

.recent-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-chip-form {
    margin: 0;
    flex: 0 1 auto;
}

.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
}

.chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chip-type {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(110,168,254,0.15);
    color: #6ea8fe;
    letter-spacing: 0.04em;
}

.search-chip:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-1px);
}

@media (max-width: 760px) {
    .search-chip {
        max-width: 150px;
        font-size: 0.78rem;
        padding: 9px 12px;
    }
}

.liked-row {
    display: flex;
    gap: 10px;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    padding: 4px 8px 16px 20px;
    scrollbar-width: none;
    margin-left: -20px;
    margin-right: -20px;
}
.liked-row::-webkit-scrollbar { display: none; }
.liked-card {
    flex: 0 0 30% !important;
    min-width: 30% !important;
    max-width: 30% !important;
    height: auto !important;
    aspect-ratio: 2/3 !important;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.2s ease;
}
/* alta specificità — stesso pattern di daily-picks-grid */
.dashboard-section #likedRow {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
}

.dashboard-section #likedRow .liked-card {
    flex: 0 0 30% !important;
    min-width: 30% !important;
    max-width: 30% !important;
    height: auto !important;
    aspect-ratio: 2/3 !important;
}

.liked-row::-webkit-scrollbar {
    display: none;
}

.liked-card:hover {
    transform: scale(1.04);
}

.liked-poster {
    position: relative;
    width: 100%;
    height: 100%;
}

.liked-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.liked-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0.18));
    z-index: 2;
}

.liked-poster .poster-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.9rem;
    text-align: center;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.12);
}

.liked-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 6px;
}

.liked-type {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(76,175,80,0.18);
    color: #d8ffe0;
    font-size: 0.72rem;
    font-weight: 700;
}

.rec-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
}

.rec-poster {
    position: relative;
    width: 70px;
    min-width: 70px;
}

.rec-poster img {
    width: 100%;
    border-radius: 10px;
}

.rec-overlay {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.7);
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 12px;
}

.rec-info h3 {
    margin: 0;
    font-size: 15px;
}

.rec-type {
    font-size: 11px;
    opacity: 0.7;
}

.dashboard-pick-clickable {
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dashboard-pick-clickable:hover {
    transform: translateY(-2px);
    border-color: rgba(110, 168, 254, 0.35) !important;
    background: rgba(255,255,255,0.05) !important;
}

.dashboard-pick-more {
    margin-top: 4px;
    font-size: 12px;
    color: #93c5fd;
    font-weight: 600;
    opacity: 0.95;
}

.dashboard-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    padding: 24px 12px;
    box-sizing: border-box;
    overflow-y: auto;
}

.dashboard-modal.is-open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.dashboard-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 24, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.dashboard-modal-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    margin: 0;
    box-sizing: border-box;
    background: #121933;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.dashboard-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 18px;
    padding: 0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.dashboard-modal-poster-wrap {
    width: 100%;
    background: #0b1020;
}

.dashboard-modal-poster {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.dashboard-modal-content {
    padding: 18px;
    display: grid;
    gap: 12px;
}

.dashboard-modal-content h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
}

.dashboard-modal-content p {
    margin: 0;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .dashboard-modal-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 18px;
    }

    .dashboard-modal-poster {
        height: 280px;
    }

    .dashboard-modal-content {
        overflow-x: hidden;
    }

    .dashboard-modal-content h3 {
        font-size: 24px;
        word-break: break-word;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }
}

.modal-title-big {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.modal-reason {
    font-size: 15px;
    color: #cbd5e1;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.modal-btn {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 999px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.modal-btn.primary {
    background: white;
    color: black;
}

.modal-btn.secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.modal-reason strong {
    color: #ffffff;
    font-weight: 800;
}

#dashboard-modal-why {
    margin-top: 2px;
    color: #d6e0f5;
    line-height: 1.6;
}

#dashboard-modal-why br {
    content: "";
}

.modal-btn.secondary.active {
    background: #4CAF50;
    color: white;
    border: none;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.dashboard-modal {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
}

.dashboard-modal-card,
.dashboard-modal-content,
.dashboard-modal-poster-wrap,
.dashboard-modal-poster {
    max-width: 100%;
}

@media (max-width: 760px) {
    .dashboard-modal {
        padding-left: 12px;
        padding-right: 12px;
    }

    .dashboard-modal-card {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ── SEZIONI CINEMA (In sala / Prossimamente) ────────────────────────────── */
.cinema-strip-section {
    margin-bottom: 4px;
}

/* Badge "Prossimamente" - colore ambra */
.badge-upcoming {
    background: rgba(245, 158, 11, 0.88);
    color: #fff;
    font-size: 8px;
}

/* Data di uscita sovrapposta in basso a destra sul poster */
.cinema-card-release-overlay {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 9px;
    font-weight: 700;
    color: #fcd34d;
    background: rgba(0,0,0,0.65);
    padding: 2px 5px;
    border-radius: 7px;
    backdrop-filter: blur(6px);
    letter-spacing: 0.02em;
}

/* Data sotto il titolo (now_playing) */
.cinema-card-date {
    font-size: 9px;
    color: var(--muted, #94a3b8);
    letter-spacing: 0.03em;
}

/* Card upcoming: leggero overlay scuro sul poster per dare senso di "attesa" */
.cinema-card--upcoming .personal-card-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.08) 60%,
        rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}
/* ─────────────────────────────────────────────────────────────────────────── */

/* Cinema cards — clickable */
.cinema-card {
    cursor: pointer;
}

/* ── TOP RATED CARD enhancements ─────────────────────────────────────────── */
.trend-mini-card--hot {
    cursor: pointer;
}

/* Score e type badge nell'overlay */
.trend-mini-overlay {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trend-mini-score {
    font-size: 10px;
    font-weight: 700;
    color: #fcd34d;
    margin-bottom: 2px;
}

.trend-type-movie {
    color: #93c5fd;
}

.trend-type-tv {
    color: #c4b5fd;
}
/* ─────────────────────────────────────────────────────────────────────────── */

/* personal-card-wrap removed — card is now directly an <a> */

/* ── NAV ARROWS: always visible on desktop for personal strip ────────────── */
.personal-strip-wrap--nav .trend-nav {
    opacity: 1;
    pointer-events: auto;
}

.personal-strip-wrap--nav .trend-nav-left {
    left: -18px;
}

.personal-strip-wrap--nav .trend-nav-right {
    right: -18px;
}

@media (max-width: 760px) {
    .personal-strip-wrap--nav .trend-nav {
        display: none;  /* su mobile si scorre con swipe */
    }
}
/* ─────────────────────────────────────────────────────────────────────────── */

/* ── NEWS GRID ───────────────────────────────────────────────────────────── */
.news-strip-section {
    margin-top: 8px;
    margin-bottom: 8px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.news-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(255,255,255,0.07);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(96,165,250,0.3);
    box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}

.news-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-color: rgba(255,255,255,0.04);
}

.news-card-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.news-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.news-card-source {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #93c5fd;
}

.news-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-summary {
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}
/* ─────────────────────────────────────────────────────────────────────────── */

/* ── Loading state bottone ricerca ──────────────────────────────────────── */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

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

.primary-submit-btn.is-loading {
    opacity: 0.85;
    cursor: not-allowed;
}
/* ──────────────────────────────────────────────────────────────────────── */

