/* ============================================================
   FANTAUML — PREVIEW CLASSIFICHE / INFO-BAR / SPONSOR
   File nuovo: non sovrascrive nulla di esistente.
   Palette: vinaccia #120028 · rosa #ff19ff · viola #790cfd
   ============================================================ */

/* ---------- Griglia: le due preview affiancate ---------- */
.fanta-previews {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 8px auto 22px;
    width: 100%;
    box-sizing: border-box;
}

/* ---------- Card preview (stile card-vinaccia) ---------- */
.fp-card {
    background: rgba(18, 0, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 10px 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    min-width: 0; /* consente il troncamento testo dentro la griglia */
}

.fp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-bottom: 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 25, 255, 0.25);
}

.fp-title {
    font-family: 'DrukWide', sans-serif;
    font-style: italic;
    color: var(--rosa-elettrico);
    font-size: 0.76rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
    white-space: nowrap;
}

.fp-viewall {
    font-family: 'HelveticaBold', sans-serif;
    font-size: 0.5rem;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 25, 255, 0.12);
    border: 1px solid rgba(255, 25, 255, 0.5);
    border-radius: 20px;
    padding: 3px 9px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.fp-viewall:hover {
    background: linear-gradient(45deg, #ff19ff, #790cfd);
    box-shadow: 0 0 10px rgba(255, 25, 255, 0.45);
    color: #fff;
}

/* ---------- Righe ---------- */
.fp-table { width: 100%; }

.fp-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.fp-row:last-child { border-bottom: none; }
.fp-row:nth-child(even) { background: rgba(121, 12, 253, 0.10); }
.fp-row:hover { background: rgba(255, 25, 255, 0.12); }

.fp-pos {
    font-family: 'DrukWide', sans-serif;
    font-style: italic;
    color: var(--rosa-elettrico);
    font-size: 0.62rem;
    width: 16px;
    flex-shrink: 0;
    text-align: center;
}

/* logo squadra (preview classifica) */
.fp-logo {
    width: 22px; height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--rosa-elettrico);
    flex-shrink: 0;
    background: rgba(0,0,0,0.2);
}

/* divisa giocatore (preview giocatori) */
.fp-jersey {
    width: 24px; height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.fp-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* contro il text-align:center globale del body */
    text-align: left;
    min-width: 0;
    flex-grow: 1;
    line-height: 1.15;
}
.fp-name,
.fp-sub { text-align: left; }
.fp-name {
    font-family: 'HelveticaBold', sans-serif;
    font-size: 0.56rem;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fp-sub {
    font-size: 0.48rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 3px;
}
.fp-sub-logo {
    width: 9px; height: 9px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.fp-role {
    font-family: 'DrukWide', sans-serif;
    font-style: italic;
    font-size: 0.44rem;
    color: var(--rosa-elettrico);
    background: rgba(121, 12, 253, 0.22);
    border-radius: 4px;
    padding: 1px 4px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.fp-pts {
    font-family: 'DrukWide', sans-serif;
    font-style: italic;
    font-size: 0.6rem;
    color: #fff;
    flex-shrink: 0;
    text-align: right;
    min-width: 36px;
}

.fp-empty {
    text-align: center;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 16px 0;
}

/* ---------- Info-bar (tasti Regolamento / Premi) ---------- */
.fp-info-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 22px;
    flex-wrap: wrap;
}
.fp-info-btn {
    font-family: 'DrukWide', sans-serif;
    font-style: italic;
    text-transform: uppercase;
    background: rgba(255, 25, 255, 0.08);
    color: #fff;
    border: 1px solid var(--rosa-elettrico);
    padding: 9px 22px;
    font-size: 0.74rem;
    letter-spacing: 0.6px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 25, 255, 0.2);
    transition: all 0.25s ease;
}
.fp-info-btn:hover {
    background: linear-gradient(45deg, #ff19ff, #790cfd);
    box-shadow: 0 0 14px rgba(255, 25, 255, 0.6);
    transform: translateY(-1px);
}

/* ---------- Sponsor (rettangoli bianchi arrotondati) ---------- */
.sponsor-section {
    margin: 6px auto 24px;
    text-align: center;
}
.sponsor-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.sponsor-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 18px;
    width: 150px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sponsor-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(255, 25, 255, 0.35);
}
.sponsor-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.sponsor-cta {
    margin-top: 18px;
    font-family: 'HelveticaBold', sans-serif;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 560px) {
    .fanta-previews { grid-template-columns: 1fr; gap: 12px; }
    .fp-title { font-size: 0.86rem; }
    .fp-name { font-size: 0.64rem; }
    .fp-sub  { font-size: 0.54rem; }
    .fp-sub-logo { width: 11px; height: 11px; }
    .fp-pos  { font-size: 0.7rem; width: 18px; }
    .fp-pts  { font-size: 0.7rem; min-width: 42px; }
    .fp-role { font-size: 0.52rem; }
    .fp-logo, .fp-jersey { width: 28px; height: 28px; }
    .fp-viewall { font-size: 0.56rem; }

    .sponsor-box { width: calc(50% - 8px); height: 82px; }
}

@media (max-width: 360px) {
    .sponsor-box { width: 100%; height: 88px; }
}