/* ================================================================
   PG THEME — Custom CSS per RoleFootball
   Complementa Tailwind CSS con glow, animazioni e componenti custom
   ================================================================ */

/* ── Variabili ── */
:root {
  --pg-dark:    #0B0F1A;
  --pg-surface: #0D1E35;
  --pg-blue:    #1A6BB5;
  --pg-cyan:    #29AECE;
  --pg-hover:   #2FC4E8;
  --pg-border:  #1C3A55;
  --pg-text:    #A3B5C6;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--pg-dark);
  color: #fff;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--pg-dark); }
::-webkit-scrollbar-thumb { background: var(--pg-blue); border-radius: 3px; }

/* ── Glow ── */
.glow-cyan  { box-shadow: 0 0 18px rgba(41,174,206,.35); }
.glow-blue  { box-shadow: 0 0 18px rgba(26,107,181,.4); }
.text-glow  { text-shadow: 0 0 22px rgba(41,174,206,.6); }

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(90deg, #29AECE, #1A6BB5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Nav blur ── */
.nav-blur {
  backdrop-filter: blur(12px);
  background: rgba(11,15,26,.88);
  border-bottom: 1px solid rgba(28,58,85,.8);
}

/* ── Divider ── */
.pg-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pg-border), transparent);
  margin: 0 1.5rem;
}

/* ── Card hover ── */
.card-hover {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-hover:hover {
  transform: translateY(-3px);
  border-color: var(--pg-cyan) !important;
  box-shadow: 0 0 22px rgba(41,174,206,.18);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .65rem 1.5rem;
  border-radius: .75rem;
  background: linear-gradient(135deg, var(--pg-blue), var(--pg-cyan));
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .875rem;
  border: none; cursor: pointer;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .88; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .65rem 1.5rem;
  border-radius: .75rem;
  background: transparent;
  border: 1px solid var(--pg-border);
  color: var(--pg-text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--pg-cyan); color: #fff; }

.btn-danger {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem;
  border-radius: .5rem;
  background: rgba(248,81,73,.15);
  border: 1px solid rgba(248,81,73,.4);
  color: #F85149;
  font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: background .2s;
}
.btn-danger:hover { background: rgba(248,81,73,.3); }

.btn-success {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem;
  border-radius: .5rem;
  background: rgba(57,255,20,.12);
  border: 1px solid rgba(57,255,20,.3);
  color: #39FF14;
  font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: background .2s;
}
.btn-success:hover { background: rgba(57,255,20,.25); }

/* ── Form inputs ── */
.pg-input {
  width: 100%;
  padding: .7rem 1rem;
  background: var(--pg-dark);
  border: 1px solid var(--pg-border);
  border-radius: .6rem;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.pg-input:focus {
  border-color: var(--pg-cyan);
  box-shadow: 0 0 0 3px rgba(41,174,206,.12);
}
.pg-input::placeholder { color: var(--pg-text); }

.pg-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--pg-text);
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.pg-select {
  padding: .6rem .9rem;
  background: var(--pg-dark);
  border: 1px solid var(--pg-border);
  border-radius: .5rem;
  color: #fff;
  font-size: .875rem;
  cursor: pointer;
  outline: none;
}
.pg-select:focus { border-color: var(--pg-cyan); }

/* ── Card ── */
.pg-card {
  background: var(--pg-surface);
  border: 1px solid var(--pg-border);
  border-radius: 1rem;
  padding: 1.5rem;
}

/* ── Table ── */
.pg-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.pg-table th {
  padding: .75rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--pg-cyan);
  background: var(--pg-dark);
  border-bottom: 1px solid var(--pg-border);
  text-align: left;
}
.pg-table td {
  padding: .8rem 1rem;
  font-size: .875rem;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(28,58,85,.5);
}
.pg-table tr:hover td { background: rgba(26,107,181,.06); }

/* ── Stat bar ── */
.stat-bar-bg {
  height: 6px;
  background: var(--pg-dark);
  border-radius: 3px;
  overflow: hidden;
  flex: 1;
}
.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pg-blue), var(--pg-cyan));
  border-radius: 3px;
  transition: width .6s ease;
}

/* ── Badge ── */
.pg-badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border-radius: 9999px;
  font-size: .7rem;
  font-weight: 600;
  font-family: 'Roboto Mono', monospace;
}
.badge-cyan  { background: rgba(41,174,206,.15); color: var(--pg-cyan); }
.badge-blue  { background: rgba(26,107,181,.2); color: #7DC2F0; }
.badge-red   { background: rgba(248,81,73,.15); color: #F85149; }
.badge-green { background: rgba(57,255,20,.12); color: #39FF14; }
.badge-gold   { background: rgba(212,175,55,.15); color: #D4AF37; }
.badge-purple { background: rgba(163,113,247,.15); color: #A371F7; }
.badge-orange { background: rgba(248,132,55,.15); color: #F88437; }
.badge-teal   { background: rgba(32,178,170,.15); color: #20B2AA; }
.badge-gray   { background: rgba(139,148,158,.15); color: #8B949E; }

/* ── Live pulse ── */
.badge-live::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pg-cyan);
  margin-right: .4rem;
  animation: pulse-live 2s infinite;
}
@keyframes pulse-live {
  0%,100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ── Serie badge gradient ── */
.serie-a-badge { background: linear-gradient(135deg, var(--pg-blue), var(--pg-cyan)); }
.serie-b-badge { background: linear-gradient(135deg, #1A4B8C, var(--pg-blue)); }
.serie-c-badge { background: linear-gradient(135deg, #0D2B4A, #1A4B8C); }

/* ── Tab active ── */
.tab-btn {
  padding: .6rem 1.4rem;
  border-radius: .5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  border: 1px solid var(--pg-border);
  color: var(--pg-text);
  background: transparent;
  transition: all .2s;
}
.tab-btn:hover { border-color: var(--pg-cyan); color: #fff; }
.tab-btn.active {
  background: linear-gradient(135deg, var(--pg-blue), var(--pg-cyan));
  border-color: transparent;
  color: #fff;
}

/* ── Page title ── */
.pg-page-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: #fff;
  margin-bottom: .4rem;
}
.pg-section-label {
  font-family: 'Roboto Mono', monospace;
  font-size: .7rem;
  color: var(--pg-cyan);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .5rem;
  display: block;
}

/* ── Cookie banner ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(13,30,53,.97);
  border-top: 1px solid var(--pg-border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 9999;
  font-size: .875rem;
  color: var(--pg-text);
}

/* ── TinyMCE override ── */
.tox-tinymce { border-radius: .6rem !important; border-color: var(--pg-border) !important; }

/* ── Alert / Error ── */
.pg-alert-error {
  padding: .65rem 1rem;
  border-radius: .5rem;
  background: rgba(248,81,73,.1);
  border: 1px solid rgba(248,81,73,.3);
  color: #F85149;
  font-size: .875rem;
}
.pg-alert-warning {
  padding: .65rem 1rem;
  border-radius: .5rem;
  background: rgba(212,175,55,.1);
  border: 1px solid rgba(212,175,55,.3);
  color: #D4AF37;
  font-size: .875rem;
}
.pg-alert-success {
  padding: .65rem 1rem;
  border-radius: .5rem;
  background: rgba(63,185,80,.1);
  border: 1px solid rgba(63,185,80,.3);
  color: #3FB950;
  font-size: .875rem;
}

/* ── Nascondi (compatibilità JS esistente) ── */
.Nascondi { display: none !important; }

/* ── Responsive padding per navbar fissa ── */
.pg-content { padding-top: 4rem; min-height: calc(100vh - 4rem); }

/* ── Textarea ── */
.pg-textarea {
  width: 100%;
  padding: .7rem 1rem;
  background: var(--pg-dark);
  border: 1px solid var(--pg-border);
  border-radius: .6rem;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  resize: vertical;
  outline: none;
  transition: border-color .2s;
}
.pg-textarea:focus { border-color: var(--pg-cyan); }

/* ── Player card photo ── */
.player-photo {
  width: 100%; max-width: 200px;
  border-radius: .75rem;
  border: 2px solid var(--pg-border);
  object-fit: cover;
}

/* ── Ban status colors ── */
.status-banned { color: #F85149; }
.status-ok     { color: #39FF14; }
.status-locked { color: var(--pg-text); }

/* ── Gestioni dropdown — touch support ── */
#gestioni-dropdown.force-open .gestioni-menu { display: block !important; }

/* ── Dropdown menu items ── */
.dropdown-item {
  width: 100%; text-align: left; padding: 8px 14px;
  background: none; border: none; color: #e6edf3; font-size: 12px; cursor: pointer;
  transition: background .15s;
}
.dropdown-item:hover { background: rgba(255,255,255,.05); }
.dropdown-item-danger {
  width: 100%; text-align: left; padding: 8px 14px;
  background: none; border: none; color: #f85149; font-size: 12px; cursor: pointer;
  transition: background .15s;
}
.dropdown-item-danger:hover { background: rgba(248,81,73,.1); }

/* ── Overflow-x scroll shadow hint ── */
.overflow-x-scroll-hint {
  overflow-x: auto;
  background:
    linear-gradient(to right, var(--pg-surface) 30%, transparent) left center,
    linear-gradient(to left,  var(--pg-surface) 30%, transparent) right center,
    radial-gradient(ellipse at left,  rgba(0,0,0,.25) 0%, transparent 70%) left center,
    radial-gradient(ellipse at right, rgba(0,0,0,.25) 0%, transparent 70%) right center;
  background-size: 40px 100%, 40px 100%, 14px 60%, 14px 60%;
  background-repeat: no-repeat;
  background-attachment: local, local, scroll, scroll;
}

/* ── Cookie banner — mobile ── */
@media (max-width: 480px) {
  #btn-cookie-ok, #btn-cookie-rifiuta {
    min-height: 44px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   HOME REDESIGN — status strip, card Mercato/Rassegna, paginazione
   ════════════════════════════════════════════════════════════════ */

/* ── Status strip ── */
.status-chip {
  flex: 1 1 180px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-border);
  border-radius: .75rem;
  padding: .8rem 1.1rem;
}
.status-chip .num {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pg-cyan);
  line-height: 1.2;
}
.status-chip .lbl {
  font-size: .68rem;
  color: var(--pg-text);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Rail "In breve" ── */
.rail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.rail-list li a {
  display: block;
  color: #e6edf3;
  text-decoration: none;
  font-size: .83rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(28,58,85,.5);
  transition: color .15s;
}
.rail-list li a:hover { color: var(--pg-cyan); }
.rail-list li:last-child a { border-bottom: none; }

/* ── Card News Mercato ── */
.m-card {
  position: relative;
  border-left: 4px solid var(--accent, var(--pg-cyan));
  border-top: 1px solid var(--pg-border);
  border-right: 1px solid var(--pg-border);
  border-bottom: 1px solid var(--pg-border);
  background: var(--pg-surface);
  border-radius: .9rem;
  padding: 1.1rem 1.2rem;
  overflow: hidden;
}
.m-card.tipo-rinnovo       { --accent: #D4AF37; }
.m-card.tipo-trasferimento { --accent: #1A6BB5; }
.m-card.tipo-svincolo      { --accent: #F85149; }
.m-card.tipo-prestito      { --accent: #39FF14; }
.m-card.tipo-rumors        { --accent: #29AECE; }
.m-card .watermark {
  position: absolute; right: -6px; top: -10px;
  font-size: 3.4rem; opacity: .06; line-height: 1; pointer-events: none;
}
.m-card.featured { padding: 1.6rem 1.7rem; grid-column: 1 / -1; }
@media (min-width: 768px) { .m-card.featured { grid-column: span 2; } }
.m-card.featured .headline { font-size: 1.05rem; }
.m-card-rumor { border-style: dashed; opacity: .82; }
.m-card .top-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.m-card .headline { font-size: .88rem; color: #e6edf3; margin: 0; line-height: 1.45; }
.m-card .crest-row { display: flex; align-items: center; gap: .6rem; margin: .5rem 0 .7rem; }
.m-card .crest-img { width: 36px; height: 36px; object-fit: contain; border-radius: .4rem; background: var(--pg-dark); border: 1px solid var(--pg-border); }
.m-card .crest-arrow { color: var(--pg-cyan); font-weight: 800; font-size: 1.1rem; }

/* ── Card Rassegna Stampa ── */
.r-card {
  position: relative;
  background: var(--pg-surface);
  border: 1px solid var(--pg-border);
  border-radius: .9rem;
  padding: 1.3rem 1.4rem;
  overflow: hidden;
}
.r-card .quote {
  position: absolute; left: 4px; top: -14px;
  font-family: 'Montserrat', sans-serif; font-size: 4.5rem;
  color: var(--pg-cyan); opacity: .08; pointer-events: none;
}
.r-card.premiazione {
  border: 1px solid rgba(212,175,55,.4);
  background: linear-gradient(160deg, rgba(212,175,55,.10), var(--pg-surface) 60%);
}
.r-card.premiazione::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #D4AF37, #F5D67B, #D4AF37);
}
.r-card.hero-full { grid-column: 1 / -1; }
.r-card .body-text { font-size: .85rem; color: #dbe6f0; margin: 0; position: relative; line-height: 1.55; }

/* ── Griglie Mercato/Rassegna ── */
.grid-mercato { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 768px)  { .grid-mercato { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-mercato { grid-template-columns: 1fr 1fr 1fr; } }
.grid-rassegna { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-rassegna { grid-template-columns: 1fr 1fr; } }

/* ── Paginazione "Carica altri" ── */
.load-more-wrap { text-align: center; margin-top: 1.6rem; }
.load-more-error { display: none; color: #F85149; font-size: .82rem; margin-top: .6rem; }
.load-more-done  { color: var(--pg-text); font-size: .82rem; }
.skeleton-card {
  border-radius: .9rem; height: 150px; border: 1px solid var(--pg-border);
  background: linear-gradient(90deg, var(--pg-surface) 25%, #132844 37%, var(--pg-surface) 63%);
  background-size: 400% 100%;
  animation: pg-shimmer 1.4s ease infinite;
}
@keyframes pg-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes pg-fade-in-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.pg-fade-in { animation: pg-fade-in-up .25s ease both; }

/* ── Classifica: riga della propria squadra ── */
.riga-mia-squadra { background: rgba(41,174,206,.08); }
.riga-mia-squadra td:first-child { border-left: 2px solid var(--pg-cyan); }

/* ── Ticker mercato (marquee), ispirato al breaking-news di FM ── */
.mkt-ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--pg-border);
  border-bottom: 1px solid var(--pg-border);
  background: rgba(41,174,206,.05);
  margin: 1rem 0 1.4rem;
  padding: .6rem 0;
}
.mkt-ticker-track {
  display: flex; gap: 3rem; white-space: nowrap; width: max-content;
  font-size: .8rem; color: #e6edf3;
  animation: pg-ticker-scroll 32s linear infinite;
}
.mkt-ticker-wrap:hover .mkt-ticker-track,
.mkt-ticker-wrap:focus-within .mkt-ticker-track { animation-play-state: paused; }
@keyframes pg-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mkt-ticker-track { animation: none; } }
.mkt-ticker-track .hl { color: var(--pg-cyan); font-weight: 700; margin-right: .4rem; }

/* ════════════════════════════════════════════════════════════════
   ROLE FOOTBALL PORTAL — breaking bar, azioni richieste, club card,
   match centre, player/club spotlight
   ════════════════════════════════════════════════════════════════ */

/* ── Breaking bar (compatta, subito sotto la hero) ── */
.breaking-bar {
  display: flex; align-items: center; gap: .9rem;
  background: rgba(248,81,73,.06);
  border-top: 1px solid var(--pg-border); border-bottom: 1px solid var(--pg-border);
  padding: .6rem 0; overflow: hidden;
}
.breaking-bar .breaking-label {
  flex-shrink: 0; font-family: 'Roboto Mono', monospace; font-size: .68rem; font-weight: 700;
  color: #F85149; background: rgba(248,81,73,.15); border-radius: 4px; padding: .2rem .55rem;
  letter-spacing: .06em;
}
.breaking-bar-track {
  display: flex; gap: 2.6rem; white-space: nowrap; width: max-content; font-size: .82rem; color: #e6edf3;
  animation: pg-ticker-scroll 26s linear infinite;
}
.breaking-bar:hover .breaking-bar-track, .breaking-bar:focus-within .breaking-bar-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .breaking-bar-track { animation: none; } }

/* ── Azioni richieste ── */
.action-item {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .8rem 0; border-bottom: 1px solid rgba(28,58,85,.5);
  text-decoration: none; color: inherit;
}
.action-item:last-child { border-bottom: none; }
.action-item .dot {
  flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; margin-top: .35rem;
}
.action-item .dot.stato-urgente   { background: #F85149; }
.action-item .dot.stato-attenzione{ background: #D4AF37; }
.action-item .dot.stato-info      { background: #7DC2F0; }
.action-item .dot.stato-ok        { background: #39FF14; }
.action-item .titolo { font-weight: 700; font-size: .85rem; color: #e6edf3; margin: 0; }
.action-item .desc   { font-size: .78rem; color: var(--pg-text); margin: 2px 0 0; }
.action-item .scadenza { font-size: .7rem; color: var(--pg-text); font-family: 'Roboto Mono', monospace; flex-shrink: 0; white-space: nowrap; }
.action-item:hover .titolo { color: var(--pg-cyan); }

/* ── Il tuo Club ── */
.club-card-header { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; }
.club-crest { width: 48px; height: 48px; object-fit: contain; border-radius: .6rem; background: var(--pg-dark); border: 1px solid var(--pg-border); flex-shrink: 0; }
.club-stat-row { display: flex; justify-content: space-between; font-size: .82rem; padding: .4rem 0; border-bottom: 1px solid rgba(28,58,85,.4); }
.club-stat-row:last-child { border-bottom: none; }
.forma-row { display: flex; gap: .3rem; }
.forma-dot {
  width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 800; color: #04101c;
}
.forma-dot.V { background: #39FF14; }
.forma-dot.P { background: #D4AF37; }
.forma-dot.S { background: #F85149; color: #fff; }

/* ── Match Centre ── */
.match-row { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid rgba(28,58,85,.4); font-size: .85rem; }
.match-row:last-child { border-bottom: none; }
.match-row .squadra { flex: 1; }
.match-row .squadra.casa { text-align: right; }
.match-row .risultato { flex-shrink: 0; padding: 0 .8rem; font-weight: 700; color: var(--pg-cyan); font-family: 'Roboto Mono', monospace; white-space: nowrap; }

/* ── Player Spotlight ── */
.spotlight-card { display: flex; align-items: center; gap: 1.2rem; }
.spotlight-avatar {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--pg-blue), var(--pg-cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.4rem; color: #fff;
}
.spotlight-stats { display: flex; gap: 1.4rem; margin-top: .5rem; }
.spotlight-stats .stat-num { font-family: 'Roboto Mono', monospace; font-weight: 700; font-size: 1.1rem; color: var(--pg-cyan); }
.spotlight-stats .stat-lbl { font-size: .68rem; color: var(--pg-text); text-transform: uppercase; }

/* ════════════════════════════════════════════════════════════════
   ROLE FOOTBALL PORTAL — sistema di card unificato (bento grid),
   ispirato al concept fornito dal PO. Tutte le classi sono prefissate
   "rfp-" per non entrare in conflitto con le classi precedenti (alcune
   delle quali restano in uso per le sezioni Mercato/Rassegna paginate
   più in basso nella pagina).
   ════════════════════════════════════════════════════════════════ */
:root {
  --rfp-gold:      #D4AF37;
  --rfp-gold-soft: #F5D67B;
}

/* ── Season bar (slim strip, solo home) ── */
.rfp-seasonbar {
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  padding: .55rem 0; font-size: .74rem; font-weight: 700; color: var(--pg-text);
  border-top: 1px solid rgba(255,255,255,.03); border-bottom: 1px solid var(--pg-border);
}
.rfp-seasonbar strong { color: #e8eef8; }
.rfp-seasonbar .rfp-live { color: #ff7474 !important; display: inline-flex; align-items: center; gap: .35rem; }
.rfp-seasonbar .rfp-live::before {
  content: ''; width: 7px; height: 7px; background: #ff5656; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,86,86,.11); flex-shrink: 0;
}

/* ── Hero: sfondo decorativo (solo CSS, nessun asset esterno) ── */
.rfp-hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6,14,26,.94) 0%, rgba(6,14,26,.72) 45%, rgba(6,14,26,.15) 100%),
    linear-gradient(140deg, #13213a 0%, #1a3456 45%, #4a2f28 100%);
  border-radius: 1.4rem; border: 1px solid var(--pg-border);
}
.rfp-hero::after {
  content: ''; position: absolute; right: -110px; bottom: -110px; width: 430px; height: 430px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.017);
  pointer-events: none;
}
.rfp-eyebrow {
  text-transform: uppercase; letter-spacing: .14em; color: var(--rfp-gold);
  font-size: .72rem; font-weight: 900; margin-bottom: .7rem;
}

/* ── Breaking ticker (stile "wire") ── */
.rfp-ticker { border: 1px solid var(--pg-border); background: #0c1726; border-radius: .8rem; display: flex; align-items: center; overflow: hidden; }
.rfp-ticker-label { flex-shrink: 0; padding: .65rem .9rem; background: #d84141; font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.rfp-ticker-track { flex: 1; overflow: hidden; white-space: nowrap; }
.rfp-ticker-text { display: inline-block; padding-left: 100%; animation: rfp-ticker-scroll 55s linear infinite; color: #c7d1df; font-size: .78rem; font-weight: 700; }
@keyframes rfp-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .rfp-ticker-text { animation: none; } }
.rfp-ticker:hover .rfp-ticker-text, .rfp-ticker:focus-within .rfp-ticker-text { animation-play-state: paused; }

/* ── Section head ── */
.rfp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem; margin: 1.8rem 0 .9rem; }
.rfp-section-head h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.01em; font-family: 'Montserrat', sans-serif; font-weight: 800; }
.rfp-section-head p { margin: .2rem 0 0; color: var(--pg-text); font-size: .8rem; }

/* ── Bento grid ── */
/* Non più un'unica griglia continua ad auto-flow (con card di altezze molto
   diverse produceva righe sghembe e "quadratoni sparsi"): ogni riga è un
   mini-grid dedicato, dimensionato in base al peso reale del contenuto che
   contiene. auto-fit + minmax fa collassare la riga in modo pulito quando
   una card condizionale (es. "Il tuo Club") non è presente. */
.rfp-row + .rfp-row { margin-top: 1rem; }
.rfp-row-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.rfp-row-2col  { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.rfp-row-2-1   { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
@media (max-width: 780px) { .rfp-row-2-1 { grid-template-columns: 1fr; } }

/* ── Giocatori più contesi ── */
.rfp-contesi-row { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .8rem; }
.rfp-contesi-row:last-child { border-bottom: 0; }
.rfp-contesi-row .rfp-fuoco { letter-spacing: -.1em; }

/* ── Player Spotlight: selettore categoria (gol/assist/gialli/rossi) ── */
.rfp-spotlight-tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.rfp-spotlight-tab {
  font-size: .65rem; font-weight: 700; padding: .25rem .55rem; border-radius: .4rem;
  background: rgba(255,255,255,.05); border: 1px solid var(--pg-border); color: var(--pg-text);
  cursor: pointer; transition: all .15s;
}
.rfp-spotlight-tab:hover { border-color: var(--rfp-gold); color: #fff; }
.rfp-spotlight-tab.active { background: var(--rfp-gold); border-color: transparent; color: #1a1408; }

/* ── Panel (componente base di ogni widget) ── */
.rfp-panel {
  border: 1px solid var(--pg-border);
  background: linear-gradient(180deg, rgba(20,33,54,.96), rgba(13,25,42,.98));
  border-radius: 1rem; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.16);
  display: flex; flex-direction: column;
}
.rfp-panel-head { padding: .9rem 1rem; border-bottom: 1px solid var(--pg-border); display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.rfp-panel-head h3 { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; font-family: 'Montserrat', sans-serif; font-weight: 800; }
.rfp-panel-head span { color: #8493a8; font-size: .68rem; font-weight: 800; }
.rfp-panel-body { padding: 1rem; flex: 1; }

/* ── Il tuo club ── */
.rfp-club-card { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; }
.rfp-club-logo { width: 56px; height: 56px; border-radius: .9rem; object-fit: contain; background: var(--pg-dark); border: 2px solid rgba(255,255,255,.14); }
.rfp-club-card h4 { margin: 0 0 .25rem; font-size: 1.15rem; font-family: 'Montserrat', sans-serif; font-weight: 800; }
.rfp-club-meta { color: var(--pg-text); font-size: .8rem; line-height: 1.6; }
.rfp-rank { text-align: right; }
.rfp-rank strong { display: block; font-size: 1.8rem; line-height: 1; font-family: 'Roboto Mono', monospace; }
.rfp-rank span { color: #8493a8; font-size: .65rem; font-weight: 800; text-transform: uppercase; }

/* ── Azioni / feed / trattative / mercato — righe compatte condivise ── */
.rfp-list-item {
  display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06); text-decoration: none; color: inherit;
}
.rfp-list-item:last-child { border-bottom: 0; }
.rfp-list-item:hover .rfp-item-title { color: var(--pg-cyan); }
.rfp-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: .3rem; flex-shrink: 0; }
.rfp-dot.rosso  { background: #d84141; }
.rfp-dot.giallo { background: #f1c85b; }
.rfp-dot.verde  { background: #4bc784; }
.rfp-dot.blu    { background: #2f69d9; }
.rfp-item-title { display: block; font-size: .82rem; font-weight: 700; color: #e8eef8; }
.rfp-item-desc  { color: #8392a8; font-size: .76rem; margin-top: .2rem; display: block; line-height: 1.45; }
.rfp-item-meta  { color: #6f7f95; font-size: .7rem; margin-left: auto; flex-shrink: 0; white-space: nowrap; padding-top: .1rem; }

/* ── Feed generico (Role Football World / notizie personali) ── */
.rfp-feed-tag { width: 68px; flex-shrink: 0; color: #9eabc0; font-size: .62rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 900; padding-top: .1rem; }

/* ── Transfer Centre ── */
.rfp-transfer-item { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: .7rem; }
.rfp-transfer-time { color: #77869c; font-size: .68rem; font-weight: 900; font-family: 'Roboto Mono', monospace; }
.rfp-transfer-badge { padding: .2rem .5rem; border-radius: 999px; background: rgba(255,255,255,.05); font-size: .6rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 900; color: #bcc8d7; flex-shrink: 0; }

/* ── Classifica spotlight (prime posizioni) ── */
.rfp-standing-row { display: grid; grid-template-columns: 22px 1fr 32px; align-items: center; gap: .5rem; border-bottom: 1px solid rgba(255,255,255,.06); padding: .55rem 0; font-size: .78rem; }
.rfp-standing-row:last-child { border-bottom: 0; }
.rfp-standing-row .rfp-pos { color: #77869c; font-weight: 900; font-family: 'Roboto Mono', monospace; }
.rfp-standing-row .rfp-pts { text-align: right; font-weight: 900; color: #fff; font-family: 'Roboto Mono', monospace; }
.rfp-standing-row .rfp-form { color: #92a2b8; text-align: right; font-family: 'Roboto Mono', monospace; font-size: .7rem; }
.rfp-standing-row.rfp-mia-riga { background: rgba(212,175,55,.08); box-shadow: inset 3px 0 0 var(--rfp-gold); }

/* ── Match Centre ── */
.rfp-score-row { display: grid; grid-template-columns: 1fr 34px 1fr 42px; align-items: center; gap: .5rem; border-bottom: 1px solid rgba(255,255,255,.06); padding: .55rem 0; font-size: .78rem; }
.rfp-score-row:last-child { border-bottom: 0; }
.rfp-score-row .rfp-score { text-align: center; font-weight: 900; color: #fff; font-family: 'Roboto Mono', monospace; }

/* ── Spotlight (Player + Club) ── */
.rfp-spotlight-panel {
  background:
    linear-gradient(180deg, rgba(11,21,37,.28), rgba(11,21,37,.98)),
    radial-gradient(circle at 50% 20%, rgba(212,175,55,.25), transparent 36%),
    linear-gradient(140deg, #223a5c, #101b2e);
}
.rfp-player-figure { height: 130px; margin: -1rem -1rem .9rem; position: relative; display: grid; place-items: end center; overflow: hidden; }
.rfp-player-photo { height: 130px; object-fit: cover; border-radius: 0; }
.rfp-silhouette { width: 90px; height: 122px; border-radius: 50px 50px 16px 16px; background: linear-gradient(180deg, #6b788c, #202d41); opacity: .9; position: relative; }
.rfp-silhouette::before { content: ''; position: absolute; width: 48px; height: 48px; border-radius: 50%; background: #7e8b9f; top: -15px; left: 21px; }
.rfp-player-name { font-size: 1.05rem; font-weight: 900; margin-bottom: .2rem; font-family: 'Montserrat', sans-serif; }
.rfp-player-meta { color: #93a2b7; font-size: .74rem; margin-bottom: .9rem; }
.rfp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.rfp-stat { padding: .6rem; border: 1px solid var(--pg-border); background: rgba(255,255,255,.035); border-radius: .6rem; text-align: center; }
.rfp-stat strong { display: block; font-size: 1rem; font-family: 'Roboto Mono', monospace; }
.rfp-stat span { color: #7f8ea3; font-size: .6rem; text-transform: uppercase; font-weight: 900; }

/* ── Stato di forma (allenamenti) ── */
.rfp-training-row { display: flex; align-items: center; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .78rem; }
.rfp-training-row:last-child { border-bottom: 0; }
