/* Packs de mods des teams : liste des packs et page d'un pack. Couleurs du site (vert #32c776 / violet #5a48e2). */
.pm-packs { max-width: 1180px; margin: 10px auto 60px; padding: 0 16px; text-align: left; color: var(--text-page, #e0e0e0); }
.pm-pack-card, .pm-pack-item, .pm-pack-card h3, .pm-pack-item__name, .pm-pack-item__btn--ghost, .pm-pack-others__head h2, .pm-packs__head h1 { color: var(--card-text, #eee); }
.pm-packs__head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.pm-packs__logo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.pm-packs__kicker { margin: 0; color: #62d392; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.pm-packs__head h1 { margin: 2px 0 4px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.pm-packs__intro { margin: 0; color: var(--text-muted, #a9b0b8); }
.pm-packs__empty { padding: 40px; text-align: center; border-radius: 16px; background: var(--card-bg, #1d1f23); color: var(--text-muted, #a9b0b8); }
.pm-packs__empty i { display: block; font-size: 2rem; margin-bottom: 8px; opacity: .6; }

.pm-pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.pm-pack-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--card-bg, #1d1f23); border: 1px solid rgba(255,255,255,.07); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.pm-pack-card:hover { transform: translateY(-3px); border-color: rgba(98,211,146,.4); box-shadow: 0 14px 30px rgba(0,0,0,.35); color: var(--card-text, #eee); }
.pm-pack-card__cover { position: relative; aspect-ratio: 16/9; background: #111; }
.pm-pack-card__mosaic { display: grid; width: 100%; height: 100%; gap: 2px; }
.pm-pack-card__mosaic--2 { grid-template-columns: 1fr 1fr; }
.pm-pack-card__mosaic--3, .pm-pack-card__mosaic--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.pm-pack-card__mosaic--3 img:first-child { grid-row: span 2; }
.pm-pack-card__mosaic img { width: 100%; height: 100%; object-fit: cover; }
.pm-pack-card__empty { display: grid; place-items: center; font-size: 2.2rem; color: rgba(255,255,255,.25); }
.pm-pack-card__count, .pm-pack-card__private { position: absolute; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-size: .8rem; font-weight: 600; }
.pm-pack-card__count { left: 10px; }
.pm-pack-card__private { right: 10px; }
.pm-pack-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.pm-pack-card__game { color: #62d392; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pm-pack-card__body h3 { margin: 0; font-size: 1.08rem; }
.pm-pack-card__body p { margin: 0; color: var(--text-muted, #a9b0b8); font-size: .9rem; }
.pm-pack-card__open { margin-top: auto; padding-top: 6px; color: #62d392; font-weight: 600; font-size: .9rem; }

.pm-pack-hero { position: relative; overflow: hidden; margin-bottom: 18px; border-radius: 20px; background: #15171b; border: 1px solid rgba(255,255,255,.07); }
.pm-pack-hero::before { content: ''; position: absolute; inset: 0; background: var(--pm-pack-bg) center/cover no-repeat; filter: blur(18px) saturate(1.2); opacity: .35; transform: scale(1.1); }
.pm-pack-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,11,14,.95) 0%, rgba(10,11,14,.75) 60%, rgba(10,11,14,.55) 100%); }
.pm-pack-hero__inner { position: relative; z-index: 1; padding: clamp(22px, 4vw, 40px); color: #fff; text-align: left; }
.pm-pack-hero h1 { color: #fff; }
.pm-pack-hero__team { display: inline-flex; align-items: center; gap: 10px; color: #cfd4da; text-decoration: none; font-size: .92rem; }
.pm-pack-hero__team img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.pm-pack-hero__team:hover { color: #fff; }
.pm-pack-hero h1 { margin: 12px 0 8px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.pm-pack-hero__desc { max-width: 820px; margin: 0 0 14px; color: #d6dade; line-height: 1.55; }
.pm-pack-hero__stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pm-pack-hero__stats li, .pm-pack-hero__stats a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: #e8ebee; font-size: .86rem; text-decoration: none; }
.pm-pack-hero__stats li:has(a) { padding: 0; background: none; }
.pm-pack-hero__stats i { color: #62d392; }

.pm-pack-hint { margin: 0 0 12px; color: var(--text-muted, #a9b0b8); font-size: .9rem; }
.pm-pack-hint i { color: #5a48e2; }
.pm-pack-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.pm-pack-item { display: grid; grid-template-columns: 44px 150px 1fr auto; align-items: center; gap: 16px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--card-bg, #1d1f23); border: 1px solid rgba(255,255,255,.06); transition: border-color .2s, background-color .2s; }
.pm-pack-item:hover { border-color: rgba(98,211,146,.35); }
.pm-pack-item__rank { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(90,72,226,.18); color: #b9b0ff; font-weight: 800; }
.pm-pack-item__thumb img { display: block; width: 150px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }
.pm-pack-item__info { min-width: 0; }
.pm-pack-item__name { display: block; color: inherit; font-weight: 700; font-size: 1.02rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-pack-item__name:hover { color: #62d392; }
.pm-pack-item__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; color: var(--text-muted, #a9b0b8); font-size: .84rem; }
.pm-pack-item__meta i { opacity: .8; margin-right: 3px; }
.pm-pack-item__wip { padding: 1px 8px; border-radius: 999px; background: rgba(255,193,7,.15); color: #ffcd4d; }
.pm-pack-item__actions { display: flex; gap: 8px; }
.pm-pack-item__btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: #32c776; color: #0d1a12; font-weight: 700; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.pm-pack-item__btn:hover { background: #46d987; color: #0d1a12; }
.pm-pack-item__btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.pm-pack-item__btn--ghost:hover { background: rgba(127,127,127,.12); color: var(--card-text, #eee); }
.pm-pack-others { margin-top: 40px; }
.pm-pack-others__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pm-pack-others__head h2 { margin: 0; font-size: 1.25rem; }
.pm-pack-others__head a { color: #62d392; text-decoration: none; font-weight: 600; }

@media (max-width: 760px) {
  .pm-pack-item { grid-template-columns: 34px 96px 1fr; }
  .pm-pack-item__thumb img { width: 96px; }
  .pm-pack-item__rank { width: 30px; height: 30px; font-size: .85rem; }
  .pm-pack-item__actions { grid-column: 1 / -1; justify-content: flex-end; }
}

html[data-theme="light"] .pm-pack-card, html[data-theme="light"] .pm-pack-item, html[data-theme="light"] .pm-packs__empty { background: #fff; border-color: rgba(0,0,0,.08); }
html[data-theme="light"] .pm-pack-item__btn--ghost { box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
html[data-theme="light"] .pm-pack-item__rank { color: #4a3bc4; }
