/* ================================================================
   MAITRELEEE.COM — V4.9
   Correctifs réellement appliqués : navigation, Live sans scroll,
   planning quadrillé, Bon plan, créateurs compacts, LEEE.A sidebar.
   ================================================================ */

/* Sidebar : neuf entrées restent lisibles. */
.v46-nav{gap:3px!important}
.v46-nav a{min-height:36px!important;padding:6px 10px!important}
.v46-nav a b{font-size:13px!important}
.v46-nav a span{width:24px!important;height:24px!important;font-size:12px!important}

/* Le bandeau LEEE.A de l'accueil est définitivement supprimé. */
#persistent-leeea-card,.v471-leeea-banner{display:none!important}

/* Accueil : carte roue dans l'espace disponible sous les jeux. */
#home-wheel-promo[hidden]{display:none!important}
#home-wheel-promo{display:block;margin-top:10px;min-height:0}
#home-wheel-promo a{grid-template-columns:190px minmax(0,1fr)!important;padding:12px!important;align-items:center!important}
#home-wheel-promo img{width:190px!important;height:180px!important;object-fit:contain!important;background:#111827!important;border-radius:12px!important}

/* Les jeux indisponibles gardent leurs couleurs. */
.v471-game-link.is-offline,.v47-app-card.is-offline,.v46-app-card.is-offline{opacity:1!important;filter:none!important;grayscale:0!important;background:linear-gradient(145deg,rgba(13,13,31,.94),rgba(16,8,30,.92))!important;border-color:rgba(255,52,138,.24)!important}
.v471-game-link.is-offline .icon{opacity:1!important;filter:none!important;background:rgba(255,37,132,.12)!important}
.v471-game-link.is-offline h3{color:#fff!important}
.v471-game-link.is-offline p{color:#8fa0bd!important}
.v471-game-link.is-offline .state.offline{color:#8393ae!important}

/* ---------------------------------------------------------------
   LIVE — lecteur + chat + bandeau : tout sur un écran desktop.
   --------------------------------------------------------------- */
body.v47-live-route{height:100vh!important;overflow:hidden!important}
body.v47-live-route .v47-main{height:100vh!important;min-height:0!important;overflow:hidden!important;padding-top:8px!important;padding-bottom:8px!important;display:grid!important;grid-template-rows:minmax(0,1fr) 132px!important;gap:8px!important}
body.v47-live-route .v47-persistent-zone{height:100%!important;min-height:0!important;margin:0!important;display:grid!important;grid-template-columns:minmax(0,1.65fr) minmax(300px,.72fr)!important;gap:8px!important}
body.v47-live-route .v47-live-panel,body.v47-live-route .v47-chat-panel{height:100%!important;min-height:0!important;display:grid!important}
body.v47-live-route .v47-live-panel{grid-template-rows:auto minmax(0,1fr) auto!important}
body.v47-live-route .v47-chat-panel{grid-template-rows:auto minmax(0,1fr)!important}
body.v47-live-route .v47-player-wrap,body.v47-live-route .v47-chat-frame-wrap{height:100%!important;min-height:0!important;aspect-ratio:auto!important}
body.v47-live-route #route-content{height:132px!important;min-height:132px!important;margin:0!important;overflow:hidden!important}
body.v47-live-route .v48-live-band{height:132px!important;min-height:132px!important;padding:10px 12px!important;align-items:center!important}
body.v47-live-route .v48-live-band-title h1{font-size:clamp(20px,1.8vw,28px)!important}
body.v47-live-route .v48-live-band-title p{font-size:8px!important}
body.v47-live-route .v48-live-band-card{padding:8px!important}

/* ---------------------------------------------------------------
   Univers : toujours cadrer le visage du personnage.
   --------------------------------------------------------------- */
.v46-category img,.v47-universe-hero>img{object-fit:cover!important}
.v46-category.horror img,.v48-face-focus.horror{object-position:64% 23%!important}
.v46-category.survival img,.v48-face-focus.survival{object-position:58% 20%!important}
.v46-category.simulation img,.v48-face-focus.simulation{object-position:60% 20%!important}
.v47-universe-hero{min-height:255px!important;max-height:310px!important;position:relative!important}
.v47-universe-hero>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
.v471-universe-switcher{position:sticky;top:8px;z-index:30;backdrop-filter:blur(12px)}

/* ---------------------------------------------------------------
   Planning public : vraies lignes de 2 h + images visibles.
   --------------------------------------------------------------- */
.v47-planning-page .v46-full-planning{overflow:hidden}
.v47-planning-page .v46-planning-full{max-height:none!important;overflow:auto!important;padding:0 0 8px!important}
.v47-timeline.full{min-width:1050px!important;width:100%!important;grid-template-columns:78px repeat(7,minmax(130px,1fr))!important}
.v47-timeline.preview{grid-template-columns:68px repeat(7,minmax(104px,1fr))!important}
.v47-day-track,.v47-time-axis{background-image:repeating-linear-gradient(to bottom,rgba(75,142,239,.22) 0 1px,transparent 1px var(--hour-h))!important;background-size:100% var(--hour-h)!important}
.v47-day-track{border-left:1px solid rgba(61,139,240,.16)!important}
.v47-time-axis{border-right:1px solid rgba(61,139,240,.22)!important}
.v47-time-range{left:3px!important;right:3px!important;transform:none!important;height:var(--hour-h);display:flex!important;align-items:flex-start!important;gap:3px;padding-top:4px!important;border-top:1px solid rgba(75,142,239,.22)!important}
.v47-time-range b{font:800 10px Rajdhani;color:#a7b9d7}.v47-time-range small{font-size:7px;color:#637595}
.v46-event.v48-event-with-image{min-height:36px!important;border-width:1px!important;background:#091326!important}
.v46-event.v48-event-with-image .v48-event-bg{opacity:.7!important;object-fit:cover!important}
.v46-event.v48-event-with-image::after{background:linear-gradient(180deg,rgba(4,7,17,.12),rgba(4,7,17,.94))!important}
.v48-event-copy{padding:6px 7px!important}.v48-event-copy strong{font-size:12px!important}.v48-event-copy small{font-size:8px!important}

/* ---------------------------------------------------------------
   Page MaitreLeee : Content Creator compacts et homogènes.
   --------------------------------------------------------------- */
.v471-creator-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
.v471-creator-card{min-height:170px!important;height:170px!important;padding:12px!important;display:grid!important;grid-template-columns:130px minmax(0,1fr)!important;gap:13px!important;align-items:center!important}
.v471-creator-card.dbd{grid-template-columns:150px minmax(0,1fr)!important}
.v471-creator-card img{width:130px!important;height:120px!important;object-fit:contain!important;border-radius:10px!important;margin:0!important}
.v471-creator-card.dbd img{width:150px!important;height:120px!important;background:#03040a!important}
.v471-creator-card h2{font:900 21px Rajdhani!important;margin:2px 0 3px!important}
.v471-creator-card p{font-size:8.5px!important;line-height:1.35!important;margin:0!important;color:#93a4c2!important}
.v49-species-logo{width:130px;height:118px;border-radius:11px;display:grid;place-items:center;align-content:center;text-align:center;background:radial-gradient(circle at 50% 30%,rgba(84,181,255,.16),transparent 44%),linear-gradient(145deg,#07101d,#03070e);border:1px solid rgba(68,174,255,.3);font:900 18px Rajdhani;letter-spacing:.08em;color:#d8f3ff}.v49-species-logo span{display:block;color:#60d6ff;font-size:22px}
.v471-partners-section{margin-top:14px!important}.v471-partner-cards{gap:10px!important}.v471-partner-card{min-height:120px!important;padding:13px!important}.v48-partner-img{width:95px!important;height:62px!important}.v471-partner-logo{width:95px!important;height:62px!important;font-size:16px!important}

/* Présentation compacte sur l'accueil. */
.v471-home-about{min-height:160px!important;padding:16px 20px!important}.v471-home-about>img{height:135px!important;width:135px!important;object-fit:contain!important}.v471-about-copy h2{font-size:28px!important}.v471-about-copy p{font-size:9px!important;line-height:1.45!important}.v471-home-partners{margin-top:12px!important}

/* Auth : six fournisseurs. */
.v47-provider-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.v47-provider.x>span{background:#111!important;color:#fff!important}

/* Admin/public deal cards stay compact. */
.v48-deals-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.v48-wheel-card{min-height:340px!important;grid-template-columns:minmax(320px,38%) minmax(0,1fr)!important;align-items:center!important}.v48-wheel-media{display:grid!important;place-items:center!important}.v48-wheel-media img{width:min(100%,360px)!important;height:330px!important;object-fit:contain!important}

@media(max-width:1350px){
  .v471-creator-grid{grid-template-columns:1fr 1fr!important}
  .v471-creator-card{height:160px!important;min-height:160px!important}
}
@media(max-width:1050px){
  body.v47-live-route{overflow:auto!important;height:auto!important}
  body.v47-live-route .v47-main{height:auto!important;display:block!important;overflow:visible!important}
  body.v47-live-route #route-content{height:auto!important;min-height:0!important;overflow:visible!important}
  body.v47-live-route .v48-live-band{height:auto!important;min-height:0!important}
  .v471-creator-grid{grid-template-columns:1fr!important}
  .v471-creator-card{height:auto!important;min-height:150px!important}
}
@media(max-width:720px){
  .v471-creator-card,.v471-creator-card.dbd{grid-template-columns:110px minmax(0,1fr)!important}
  .v471-creator-card img,.v471-creator-card.dbd img,.v49-species-logo{width:105px!important;height:100px!important}
  .v48-deals-grid{grid-template-columns:1fr!important}
}
.v49-inline-link{display:inline-block;margin-top:6px;color:#67d6ff;text-decoration:none;font-size:8px;font-weight:900}.v49-inline-link:hover{color:#ff6dad}
.v471-brand-badge.species{border-color:rgba(77,191,255,.3)!important}.v471-brand-badge.species strong{color:#72d8ff!important}

/* V4.9.1 — Roue cadeaux agrandie sans recadrage. */
@media(max-width:900px){#home-wheel-promo a{grid-template-columns:140px minmax(0,1fr)!important}#home-wheel-promo img{width:140px!important;height:132px!important}.v48-wheel-card{grid-template-columns:1fr!important}.v48-wheel-media img{height:280px!important}}

/* V4.9.3 — logo partenaire GoCleCD fourni par MaitreLeee */
.v49-goclecd-logo{overflow:hidden;padding:0!important;background:#101722!important;display:flex!important;align-items:center!important;justify-content:center!important}
.v49-goclecd-logo img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}

/* ======================================================================
   V4.10.0 — Accueil, catégories Steam, liens jaquette, Route Live ETS2
   ====================================================================== */

/* Accueil plus lisible : les catégories ont maintenant leur propre onglet. */
.v410-home-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.v410-home-intro .v46-btn{flex:0 0 auto}
.v410-home-deals{margin-top:12px;padding:15px}
.v410-home-deals-grid{margin-top:10px}
.v410-home-no-deals{grid-column:1/-1}

/* Rappel LEEE.A compact sous la présentation de MaitreLeee. */
.v410-leeea-reminder{margin-top:8px;display:grid;grid-template-columns:120px minmax(0,1fr);align-items:center;gap:13px;padding:10px 14px;border:1px solid rgba(146,65,255,.22);border-radius:13px;background:linear-gradient(105deg,rgba(64,24,116,.15),rgba(6,12,27,.88));box-shadow:inset 0 0 24px rgba(91,43,198,.05)}
.v410-leeea-reminder img{width:110px;height:38px;object-fit:contain;object-position:left center}
.v410-leeea-reminder strong{display:block;font:900 16px Rajdhani;color:#e8ddff}
.v410-leeea-reminder p{margin:2px 0 0;color:#899aba;font-size:8.5px;line-height:1.42}

/* Partenaires et Content Creator : deux blocs distincts. */
.v410-home-brands{margin-top:12px}
.v410-home-brands>header h2{font:900 23px Rajdhani;margin:2px 0 8px}
.v410-brand-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.v410-brand-grid.creators{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.v410-brand-grid .v471-brand-badge{min-height:84px!important;padding:10px 12px!important;display:grid!important;grid-template-columns:90px minmax(0,1fr)!important;align-items:center!important;gap:12px!important;text-align:left!important}
.v410-brand-grid .v471-brand-badge>img{width:90px!important;height:58px!important;object-fit:contain!important;border-radius:8px!important;background:rgba(255,255,255,.025)!important}
.v410-brand-grid .v471-brand-badge.goclecd>img{object-fit:contain!important;background:#101722!important;padding:2px!important}
.v410-brand-grid .v471-brand-badge strong{font-size:15px!important;display:block!important}
.v410-brand-grid .v471-brand-badge small{font-size:7px!important;display:block!important;margin-top:2px!important}
.v410-species-mini{width:90px;height:58px;display:grid;place-items:center;align-content:center;border-radius:8px;background:#06101d;border:1px solid rgba(85,190,255,.22);font:900 12px Rajdhani;letter-spacing:.07em;color:#dff7ff}.v410-species-mini span{display:block;color:#62d8ff;font-size:14px}

/* Live : suppression des deux anciennes cartes explicatives. */
body.v47-live-route .v47-main{grid-template-rows:minmax(0,1fr) 76px!important}
body.v47-live-route #route-content{height:76px!important;min-height:76px!important}
body.v47-live-route .v410-live-band{height:76px!important;min-height:76px!important;display:flex!important;align-items:center!important;padding:8px 13px!important}
body.v47-live-route .v410-live-band .v48-live-band-title{width:100%!important}
body.v47-live-route .v410-live-band .v48-live-band-title h1{font-size:23px!important}

/* Route Live ETS2 est désormais une carte dans Jeux, plus d'iframe géante. */
.v46-games-full.v47-games-full{grid-template-columns:repeat(4,minmax(0,1fr))}

/* Jaquettes : le clic se fait directement sur l'image. */
.v410-game-card{position:relative;overflow:visible!important}
.v410-game-cover{position:relative;display:block;overflow:visible!important;background:#07101f}
.v410-game-card>.v410-game-cover{height:130px}
.v46-recent-full .v410-game-card>.v410-game-cover{height:220px}
.v410-game-cover img{width:100%;height:100%;object-fit:cover;display:block}
.v410-game-cover-direct{text-decoration:none;color:inherit;cursor:pointer;overflow:hidden!important}
.v410-game-cover-choice>button{width:100%;height:100%;padding:0;border:0;background:transparent;display:block;cursor:pointer;color:inherit}
.v410-game-cover-choice>button img{pointer-events:none}
.v410-cover-hint{position:absolute;right:7px;bottom:7px;z-index:4;padding:5px 7px;border-radius:7px;background:rgba(3,8,18,.86);border:1px solid rgba(85,194,255,.28);color:#dff7ff;font:900 7px Inter;letter-spacing:.04em;opacity:.25;transition:.18s ease;backdrop-filter:blur(8px)}
.v410-game-cover:hover .v410-cover-hint,.v410-game-cover-choice>button:focus-visible .v410-cover-hint{opacity:1}
.v410-game-link-menu{position:absolute;z-index:80;left:7px;right:7px;bottom:7px;display:flex;gap:5px;flex-wrap:wrap;padding:7px;border:1px solid rgba(87,166,255,.28);border-radius:10px;background:rgba(4,9,22,.96);box-shadow:0 12px 30px #000a;backdrop-filter:blur(10px)}
.v410-game-link-menu[hidden]{display:none!important}
.v410-game-link-menu a{flex:1 1 85px;display:flex;align-items:center;justify-content:center;min-height:30px;padding:6px 8px;border-radius:8px;border:1px solid rgba(80,151,255,.2);background:#0a1730;color:#fff!important;text-decoration:none!important;font:900 8px Inter!important;text-align:center}
.v410-game-link-menu a.steam{border-color:rgba(85,190,255,.38);background:rgba(24,75,116,.5)}
.v410-game-link-menu a.deal{border-color:rgba(255,75,151,.4);background:rgba(108,24,69,.45)}
.v410-game-link-menu a.special{border-color:rgba(170,95,255,.4);background:rgba(70,30,116,.46)}
.v410-game-card .info{position:relative;z-index:1}

/* Cartes catalogue : plus aucun petit lien texte sous la jaquette. */
.v410-catalog-card{overflow:visible!important;position:relative}
.v410-catalog-card>.v410-game-cover{height:118px;border-radius:11px 11px 0 0}
.v410-catalog-card>.v410-game-cover-direct{overflow:hidden!important}
.v410-card-categories{display:block;color:#5acfff;font-size:6.8px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;margin-bottom:3px}

/* Onglet Catégories : catégories historiques + nouvelles catégories détectées par Steam. */
.v410-categories-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.v410-category-card{position:relative;min-height:220px;overflow:hidden;border:1px solid rgba(75,145,255,.18);border-radius:17px;background:#06101f;color:#fff;text-decoration:none;box-shadow:0 18px 44px #0004}
.v410-category-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .28s ease}
.v410-category-card:hover img{transform:scale(1.045)}
.v410-category-card .shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,7,16,.96),rgba(2,7,16,.52) 64%,rgba(2,7,16,.15)),linear-gradient(0deg,rgba(2,6,14,.62),transparent 58%)}
.v410-category-card>div{position:absolute;z-index:3;left:18px;right:16px;bottom:17px}
.v410-category-card small{color:#62d4ff;font:900 7px Inter;letter-spacing:.13em}
.v410-category-card h2{margin:2px 0 4px;font:900 29px Rajdhani;text-transform:uppercase}
.v410-category-card p{margin:0 0 9px;color:#b7c4da;font-size:9px}
.v410-category-card b{font-size:8px;color:#fff}
.v410-category-card.horror{border-color:rgba(255,70,112,.32)}.v410-category-card.horror small{color:#ff668a}
.v410-category-card.survival{border-color:rgba(79,230,135,.28)}.v410-category-card.survival small{color:#67e79a}
.v410-category-card.simulation{border-color:rgba(68,188,255,.3)}

.v410-dynamic-category .v471-universe-switcher{display:flex;gap:6px;overflow:auto;padding-bottom:5px}
.v410-dynamic-category .v471-universe-switcher a{white-space:nowrap}
.v410-category-head{margin-top:9px!important}

@media(max-width:1250px){
  .v46-games-full.v47-games-full{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v410-categories-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v410-brand-grid.creators{grid-template-columns:1fr 1fr!important}
}
@media(max-width:780px){
  .v410-home-intro{display:block}.v410-home-intro .v46-btn{margin-top:10px}
  .v410-leeea-reminder{grid-template-columns:90px minmax(0,1fr)}.v410-leeea-reminder img{width:85px}
  .v410-brand-grid,.v410-brand-grid.creators{grid-template-columns:1fr!important}
  .v410-categories-grid{grid-template-columns:1fr}
  .v46-games-full.v47-games-full{grid-template-columns:1fr}
  .v410-game-link-menu{left:5px;right:5px}
}

/* V4.10.1 — visuel Species: Unknown fourni dans la conversation. */
.v410-species-creator-image{object-fit:contain!important;background:#07101f!important;padding:5px!important}
.v410-home-creators .v471-brand-badge.species>img{object-fit:contain!important;background:#07101f!important;padding:4px!important}

/* V4.11.3 — couleurs cohérentes pour toutes les catégories. */
.v410-category-card{border-color:color-mix(in srgb,var(--cat-color,#42b9ff) 62%,transparent)!important}
.v410-category-card small{color:var(--cat-color,#62d4ff)!important}
.v410-category-card:hover{box-shadow:0 18px 44px #0007,0 0 0 1px color-mix(in srgb,var(--cat-color,#42b9ff) 55%,transparent),0 0 28px color-mix(in srgb,var(--cat-color,#42b9ff) 16%,transparent)}
.v471-universe-switcher a[style]{border-color:color-mix(in srgb,var(--cat-color,#42b9ff) 30%,#1b3152)!important}
.v471-universe-switcher a[style].active{color:#fff!important;border-color:var(--cat-color,#42b9ff)!important;box-shadow:inset 0 0 22px color-mix(in srgb,var(--cat-color,#42b9ff) 18%,transparent),0 0 14px color-mix(in srgb,var(--cat-color,#42b9ff) 12%,transparent)!important}
.v46-event.v48-event-with-image{border-color:var(--cat-color,#42b9ff)!important;box-shadow:0 8px 20px #0007,0 0 0 1px color-mix(in srgb,var(--cat-color,#42b9ff) 18%,transparent)!important}

/* V4.11.5 — sous-titre visible dans les vignettes du planning public */
.v411-event-subtitle{display:block;margin-top:2px;color:#f1f5ff;font-size:9px;font-weight:700;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 4px #000}
.v48-event-copy small{margin-top:2px!important}

/* FIX Twitch embedded chat anti-obscuring */
body.v47-live-route .v47-chat-frame-wrap {
    position: relative !important;
    overflow: visible !important;
}

body.v47-live-route .v47-chat-frame-wrap iframe {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

body.v47-live-route .v47-chat-panel {
    overflow: visible !important;
}
