/* ==========================================================================
   VOLLEYSCORE — Le Mag
   ========================================================================== */
.mg-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:12px; padding:12px; }
.mg-grid.three { grid-template-columns:repeat(3, minmax(0, 1fr)); padding:0; }
.mg-card { display:flex; flex-direction:column; text-align:left; background:var(--bg-card); border:1px solid var(--border); border-radius:3px; overflow:hidden; transition:box-shadow 160ms; }
.mg-card:hover { box-shadow:0 6px 20px rgba(15,17,21,.12); }
.mg-card:hover strong { color:var(--red); }
.mg-card.lead { display:grid; grid-template-columns:minmax(0, 1.2fr) minmax(0, 1fr); margin:12px; }
.mg-vis { position:relative; display:flex; align-items:center; justify-content:center; gap:14px; aspect-ratio:16/9; overflow:hidden; }
.mg-vis.crests { background:linear-gradient(115deg, var(--c1) 0 49.6%, var(--c2) 50.4% 100%); }
.mg-vis.crests::after { content:''; position:absolute; inset:0; background:radial-gradient(circle at 50% 120%, rgba(0,0,0,.35), transparent 60%); }
.mg-vis.crests > * { position:relative; z-index:1; filter:drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.mg-vis.crests i { font-style:normal; font-family:'Barlow Condensed',sans-serif; font-weight:900; font-size:22px; color:#fff; text-shadow:0 2px 8px rgba(0,0,0,.5); }
.mg-vis.crests .crest-img { background:rgba(255,255,255,.92); border-radius:50%; padding:8px; }
.mg-vis.player { background:linear-gradient(160deg, #0F1115, #2A1216); align-items:flex-end; }
.mg-vis.player > img { height:100%; width:auto; object-fit:cover; }
.mg-vis.player > svg.jersey { height:88%; width:auto; }
.mg-txt { display:flex; flex-direction:column; gap:6px; padding:12px 14px 14px; }
.mg-txt em { font-style:normal; font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--red); }
.mg-txt strong { font-family:Georgia, 'Times New Roman', serif; font-size:19px; line-height:1.25; color:var(--text-main); }
.mg-card.lead .mg-txt { justify-content:center; padding:18px 22px; }
.mg-card.lead .mg-txt strong { font-size:28px; }
.mg-txt span { font-size:14px; line-height:1.5; color:var(--text-muted); }
.k-potd .mg-txt em { color:#B8860B; }
.v2-mag { margin:20px 0; }

.mg-article { overflow:hidden; }
.mg-hero .mg-vis { aspect-ratio:21/8; }
.mg-head { padding:22px 26px 6px; max-width:780px; }
.mg-head em { font-style:normal; font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--red); }
.mg-head h1 { font-family:Georgia, 'Times New Roman', serif; font-size:36px; line-height:1.15; margin:8px 0 10px; }
.mg-dek { font-size:18px; line-height:1.5; color:var(--text-muted); margin:0; }
.mg-body { padding:6px 26px 18px; max-width:780px; font-size:17px; line-height:1.7; }
.mg-body h2 { font-family:'Barlow Condensed',sans-serif; font-size:18px; letter-spacing:.04em; text-transform:uppercase; margin:20px 0 4px; }
.mg-body p { margin:0 0 10px; }
.mg-moves { display:flex; flex-direction:column; }
.mg-mv { display:grid; grid-template-columns:30px auto minmax(0,1fr) 48px 40px; align-items:center; gap:8px; padding:8px 12px; border-bottom:1px solid var(--border); text-align:left; font-size:14px; }
.mg-mv:hover { background:var(--bg-hover); }
.mg-mv em { font-style:normal; font-family:'JetBrains Mono',monospace; font-weight:800; font-size:12px; }
.mg-mv em.up { color:var(--green); } .mg-mv em.down { color:#A50D25; } .mg-mv em.eq { color:var(--text-dim); }

@media (max-width: 760px) {
  .mg-card.lead { grid-template-columns:1fr; }
  .mg-card.lead .mg-txt strong { font-size:22px; }
  .mg-grid.three { grid-template-columns:1fr; }
  .mg-head { padding:16px 14px 4px; }
  .mg-head h1 { font-size:26px; }
  .mg-body { padding:4px 14px 14px; font-size:16px; }
  .mg-hero .mg-vis { aspect-ratio:16/9; }
}
/* Visuel photo des articles (photo libre d'un club ou illustration) + écussons */
.mg-vis.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mg-vis.photo .s2-crests { left: 10px; bottom: 10px; }
/* Photos d'action du Mag (30/11) : toujours une vraie photo ; joueur du jour posé dessus */
.mg-vis.photo { background: #0B0E14; }
.mg-vis.photo > img { object-position: center 35%; }
.mg-vis.photo.loading { background: linear-gradient(110deg, #11151C 30%, #1A2029 50%, #11151C 70%); background-size: 200% 100%; animation: mgload 1.4s linear infinite; }
@keyframes mgload { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .mg-vis.photo.loading { animation: none; } }
.mg-vis .s2-crests, .mg-vis .cr-credit { z-index: 2; }
.mg-potd-tag { position: absolute; z-index: 2; left: 10px; top: 10px; display: grid; gap: 1px; padding: 6px 10px; border-radius: 8px; background: rgba(5, 7, 10, .72); color: #fff; backdrop-filter: blur(4px); }
.mg-potd-tag em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #F5B301; }
.mg-potd-tag b { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 17px; line-height: 1.05; text-transform: uppercase; }
.mg-hero .mg-potd-tag b { font-size: 24px; }
