/* Team pages: schedule, roster, depth chart, staff */
.th-msg { display: flex; gap: 10px; align-items: center; padding: 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.th-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold); animation: thspin .8s linear infinite; }
@keyframes thspin { to { transform: rotate(360deg); } }
.th-sched-top { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.th-pill { padding: 12px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.th-pill small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.th-pill b { display: block; margin-top: 3px; font-size: 18px; font-weight: 900; color: #fff; }
.th-pill.gold { box-shadow: inset 0 0 0 1px rgba(244,196,67,.55); }
.th-pill.gold b { color: var(--gold-l); }
.th-months { margin-bottom: 14px; overflow-x: auto; flex-wrap: nowrap; display: flex; gap: 8px; }
.th-games { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.th-game { display: grid; grid-template-columns: 120px 1fr 1fr 110px; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.th-game.done { opacity: .82; }
.th-date { font-weight: 800; color: var(--silver); font-size: 14px; }
.th-opp { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; min-width: 0; }
.th-opp img { width: 28px; height: 28px; object-fit: contain; }
.th-opp b { color: #fff; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-opp em { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: var(--gold); color: var(--night); }
.th-venue { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-result { text-align: right; font-weight: 800; color: #fff; }
.th-res { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 12px; color: #fff; margin-right: 4px; }
.th-res.w { background: #1f9d55; } .th-res.l { background: #c0392b; } .th-res.t { background: #5d6d7e; }
.th-tabs { margin-bottom: 18px; }
.th-sub { color: var(--muted); font-weight: 700; margin: 0 0 6px; }
.th-grp { margin: 22px 0 10px; font-size: 15px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.th-grp small { color: var(--muted); font-weight: 700; letter-spacing: 0; margin-left: 6px; }
.th-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.th-player { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--tc, var(--gold)); }
.th-player img, .th-player i { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--panel2); display: grid; place-items: center; font-style: normal; font-weight: 900; color: var(--silver); }
.th-player b { display: block; color: #fff; font-weight: 800; line-height: 1.2; }
.th-player span { font-size: 13px; color: var(--muted); font-weight: 600; }
.th-depth { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.th-slot { display: flex; gap: 12px; padding: 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.th-pos { flex: none; display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 6px; border-radius: 12px; font-weight: 900; color: var(--night); background: linear-gradient(180deg,var(--gold-l),var(--gold) 45%,var(--gold-d)); }
.th-slot ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.th-slot li.starter { color: #fff; font-weight: 800; }
.th-slot small { color: var(--muted); margin-right: 5px; font-weight: 700; }
.th-staff-top, .th-staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.th-staff-top .th-staff { box-shadow: inset 0 0 0 1px rgba(244,196,67,.5); }
.th-staff { padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.th-staff small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.th-staff b { display: block; margin-top: 4px; color: #fff; font-weight: 800; }
.th-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.th-map { position: relative; height: 420px; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 2px rgba(199,142,30,.55), 0 20px 50px rgba(0,0,0,.35); }
@media (max-width: 720px) {
  .th-game { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .th-venue { grid-column: 1 / -1; order: 3; }
  .th-result { order: 2; }
  .th-map { height: 320px; }
}
