/* ============================================================
   tierlist.css — pages viewer Tierlist (famille POMMU, indigo)
   Préfixe : tlg-
   ============================================================ */
.tlg { padding-bottom: var(--space-12); --tl-accent: #7c83ff; }

.tlg-section { margin-bottom: var(--space-10, 40px); }
.tlg-section__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.tlg-section__title { font-family: 'Bebas Neue', sans-serif; font-size: 1.25rem; letter-spacing: 3px; color: var(--gold); }
.tlg-section__line { flex: 1; height: 1px; background: var(--border); }

.tlg-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 14px); padding: var(--space-5, 20px) var(--space-6, 24px); }
.tlg-box--empty { text-align: center; }
.tlg-box--live { border-color: rgba(124, 131, 255, .45); }
.tlg-big { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.5rem; margin: 0 0 var(--space-2); }
.tlg-sub { font-size: .82rem; color: var(--muted-2); line-height: 1.6; margin: 0 0 var(--space-2); }
.tlg-note { font-size: .74rem; color: var(--muted); line-height: 1.6; margin-top: var(--space-3); }

.tlg-btn { display: inline-flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', sans-serif; letter-spacing: 2px; font-size: 1rem; padding: 10px 20px; border-radius: var(--radius-md, 10px); border: 1px solid rgba(124, 131, 255, .45); background: transparent; color: var(--text); cursor: pointer; text-decoration: none; transition: var(--transition, .2s ease); }
.tlg-btn:hover { border-color: var(--tl-accent); color: #fff; }
.tlg-btn--primary { background: var(--tl-accent); border-color: var(--tl-accent); color: #0d0f33; }
.tlg-btn--primary:hover { background: var(--gold); border-color: var(--gold); color: #241003; }
.tlg-btn[disabled] { opacity: .35; cursor: not-allowed; }

/* ----- tableau de tiers ----- */
.tlg-board { display: flex; flex-direction: column; gap: 6px; }
.tlg-row { display: flex; min-height: 54px; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.tlg-row__k { width: 76px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #1a1a1a; text-align: center; padding: 4px; }
.tlg-row__k b { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 2rem; line-height: 1; }
.tlg-row__k small { font-size: .56rem; line-height: 1.1; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlg-row__c { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-content: center; gap: 5px; padding: 6px 10px; }
.tlg-chip { font-size: .72rem; padding: 3px 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
.tlg-chip--cur { background: var(--gold); color: #412402; }
.tlg-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.tlg-duo h3 { font-family: 'Bebas Neue', sans-serif; letter-spacing: 3px; font-size: 1.1rem; font-weight: 400; margin: 0 0 var(--space-2); }

/* ----- en direct ----- */
.tlg-live-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-4); }
.tlg-pill { font-size: .72rem; padding: 5px 14px; border-radius: 999px; background: rgba(124, 131, 255, .18); color: var(--tl-accent); }
.tlg-prog { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: var(--space-2); }
.tlg-prog b { display: block; height: 100%; background: var(--tl-accent); transition: width .4s; }

/* ----- listes terminées ----- */
.tlg-lists { list-style: none; margin: 0; padding: 0; }
.tlg-lists li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 12px 2px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tlg-lists a { color: var(--text); text-decoration: none; font-weight: 500; }
.tlg-lists a:hover { color: var(--tl-accent); }
.tlg-lists em { font-style: normal; font-size: .72rem; color: var(--muted); margin-left: 8px; }

.tlg-gap { display: flex; gap: var(--space-3); align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--border); font-size: .84rem; flex-wrap: wrap; }
.tlg-gap__name { flex: 1 1 160px; }
.tlg-tag { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; width: 2em; text-align: center; border-radius: 6px; color: #1a1a1a; }
.tlg-gap small { color: var(--muted); font-size: .68rem; }

/* ----- proposition ----- */
.tlg-form { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.tlg-input { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md, 10px); color: var(--text); font-family: inherit; font-size: .85rem; padding: 10px 14px; min-width: 0; }
.tlg-input:focus { outline: none; border-color: var(--tl-accent); }
#tlg-p-name { flex: 1 1 220px; }
.tlg-msg { flex-basis: 100%; font-size: .78rem; min-height: 1em; }
.tlg-msg--ok { color: #3cffb4; }
.tlg-msg--err { color: #ff3c6e; }
.tlg-mine { list-style: none; margin: var(--space-4) 0 0; padding: 0; }
.tlg-mine li { display: flex; justify-content: space-between; gap: var(--space-3); padding: 9px 2px; border-bottom: 1px solid var(--border); font-size: .82rem; }
.tlg-mine em { font-style: normal; color: var(--muted); margin-left: 8px; font-size: .72rem; }
.tlg-chipst { font-size: .68rem; padding: 3px 10px; border-radius: 999px; white-space: nowrap; align-self: center; }
.tlg-chipst--pending { background: rgba(255, 209, 102, .14); color: var(--gold); }
.tlg-chipst--approved { background: rgba(60, 255, 180, .12); color: #3cffb4; }
.tlg-chipst--rejected { background: rgba(255, 60, 110, .12); color: #ff3c6e; }

@media (max-width: 720px) { .tlg-duo { grid-template-columns: 1fr; } .tlg-row__k { width: 56px; } .tlg-row__k b { font-size: 1.5rem; } }
