/*
 * Share modal on the free scoreboards (scorekeeper/partials/share-upsell-modal +
 * share-upsell/*). Extracted from the partial's inline <style>. Shared by football,
 * hockey, soccer and basketball boards. No build step — bump asset_version on change.
 */
#share-upsell-modal { padding: 1rem; }
#share-upsell-modal .score-modal-backdrop {
    position: absolute; inset: 0;
    cursor: pointer;
}
#share-upsell-modal .score-modal {
    position: relative; z-index: 1;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    max-width: 460px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    color: #e2e8f0;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}
#share-upsell-modal .score-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.85rem 1.1rem; border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
#share-upsell-modal .score-modal-title {
    margin: 0; font-size: 1rem; color: #f8fafc;
    display: inline-flex; align-items: center; gap: 0.5rem;
}
#share-upsell-modal .score-modal-close {
    background: transparent; border: none;
    color: #94a3b8; font-size: 1.05rem; cursor: pointer;
    padding: 4px 8px; border-radius: 6px;
}
#share-upsell-modal .score-modal-close:hover { background: rgba(148,163,184,0.1); color: #f1f5f9; }
#share-upsell-modal .score-modal-body { padding: 1rem 1.2rem 1.2rem; }

#share-upsell-modal .share-upsell { text-align: center; }
#share-upsell-modal .share-upsell-icon {
    width: 56px; height: 56px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, #2ba8ff, #3b82f6);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}
#share-upsell-modal .share-upsell h3 {
    font-size: 1.2rem; margin: 0 0 0.4rem;
    color: #f8fafc; font-weight: 600;
}
#share-upsell-modal .share-upsell h3 em {
    font-style: normal;
    background: linear-gradient(120deg, #2ba8ff, #3b82f6, #8b5cf6);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; font-weight: 700;
}
#share-upsell-modal .share-upsell p {
    color: rgba(255,255,255,0.72);
    font-size: 0.85rem; line-height: 1.45;
    margin: 0 0 1rem;
}
#share-upsell-modal .share-preview {
    margin: 0 0 1rem;
    padding: 0.75rem;
    background: rgba(15,23,42,0.55);
    border: 1px dashed rgba(148,163,184,0.28);
    border-radius: 12px;
    position: relative;
}
#share-upsell-modal .share-preview-link {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.45rem 0.6rem;
    background: rgba(30,41,59,0.85);
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 8px;
    font-size: 0.72rem; color: rgba(255,255,255,0.55);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    margin-bottom: 0.5rem;
}
#share-upsell-modal .share-preview-link i { color: rgba(148,163,184,0.7); font-size: 0.7rem; }
#share-upsell-modal .share-preview-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
#share-upsell-modal .share-preview-lock-pill {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    background: rgba(148,163,184,0.18); border-radius: 50%;
    color: rgba(255,255,255,0.55); font-size: 0.6rem;
}
#share-upsell-modal .share-preview-actions {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}
#share-upsell-modal .share-preview-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
    padding: 0.5rem 0.4rem;
    background: rgba(30,41,59,0.7);
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 8px;
    color: rgba(255,255,255,0.45);
    font-size: 0.72rem; font-weight: 600;
    cursor: not-allowed; opacity: 0.7;
}
#share-upsell-modal .share-preview-btn i { font-size: 0.78rem; }
#share-upsell-modal .share-preview-caption {
    margin-top: 0.55rem;
    font-size: 0.7rem; color: rgba(255,255,255,0.6);
    display: inline-flex; align-items: center; gap: 0.35rem;
    text-align: left; line-height: 1.3;
}
#share-upsell-modal .share-preview-caption i { color: #f59e0b; font-size: 0.65rem; }
#share-upsell-modal .share-preview-caption strong { color: #fde68a; font-weight: 600; }

#share-upsell-modal .share-upsell-perks {
    list-style: none; padding: 0.7rem; margin: 0 0 1rem;
    text-align: left;
    background: linear-gradient(135deg, rgba(43,168,255,0.08), rgba(139,92,246,0.08));
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 12px;
    display: grid; gap: 0.65rem;
}
#share-upsell-modal .share-upsell-perks li {
    display: flex; align-items: flex-start; gap: 0.6rem;
}
#share-upsell-modal .share-upsell-perks .perk-icon {
    flex-shrink: 0; width: 28px; height: 28px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; color: #fff; margin-top: 1px;
}
#share-upsell-modal .perk-spectator .perk-icon { background: linear-gradient(135deg,#f59e0b,#f97316); box-shadow: 0 2px 6px rgba(245,158,11,0.4); }
#share-upsell-modal .perk-coscorer  .perk-icon { background: linear-gradient(135deg,#8b5cf6,#6366f1); box-shadow: 0 2px 6px rgba(139,92,246,0.35); }
#share-upsell-modal .perk-cloud     .perk-icon { background: linear-gradient(135deg,#2ba8ff,#3b82f6); box-shadow: 0 2px 6px rgba(59,130,246,0.35); }
#share-upsell-modal .perk-overlay   .perk-icon { background: linear-gradient(135deg,#10b981,#059669); box-shadow: 0 2px 6px rgba(16,185,129,0.35); }
#share-upsell-modal .share-upsell-perks .perk-text {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 2px;
}
#share-upsell-modal .share-upsell-perks .perk-title {
    font-size: 0.82rem; font-weight: 700; color: #f8fafc;
    line-height: 1.2;
    display: inline-flex; align-items: center; gap: 0.35rem;
    flex-wrap: wrap;
}
#share-upsell-modal .share-upsell-perks .perk-flag {
    font-size: 0.55rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    background: linear-gradient(135deg,#f59e0b,#f97316);
    color: #fff; padding: 1px 5px; border-radius: 4px; line-height: 1.4;
}
#share-upsell-modal .share-upsell-perks .perk-desc {
    font-size: 0.74rem; color: rgba(255,255,255,0.72); line-height: 1.35;
}
#share-upsell-modal .share-upsell-perks .perk-desc strong { color: #fff; font-weight: 600; }
#share-upsell-modal .share-upsell-perks .perk-desc em { font-style: italic; color: #fde68a; font-weight: 500; }

#share-upsell-modal .share-btn-primary {
    display: flex; width: 100%;
    background: linear-gradient(135deg,#2ba8ff,#3b82f6);
    color: #fff; border: none;
    padding: 0.7rem 1rem; border-radius: 10px;
    font-size: 0.9rem; font-weight: 600;
    text-decoration: none;
    align-items: center; justify-content: center; gap: 0.4rem;
}
#share-upsell-modal .share-btn-primary:hover { opacity: 0.94; }
#share-upsell-modal .share-upsell-readmore {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.78rem; font-weight: 500;
    color: #93c5fd; text-decoration: none;
    margin-top: 0.6rem;
}
#share-upsell-modal .share-upsell-readmore:hover { color: #c7dbff; text-decoration: underline; }
#share-upsell-modal .share-upsell-readmore i { font-size: 0.7rem; }
#share-upsell-modal .share-upsell-note {
    font-size: 0.72rem; color: rgba(255,255,255,0.5);
    margin: 0.6rem 0 0;
}

/* Entitled viewers (Season Pass / Pro): a plain back button styled like the read-more link. */
#share-upsell-modal button.share-upsell-readmore {
    background: none; border: 0; padding: 0;
    font: inherit; font-size: 0.78rem; cursor: pointer;
}
#share-upsell-modal .share-upsell-entitled .share-upsell-icon {
    background: linear-gradient(135deg, #2ba8ff, #0066cc);
}
