/* C:\xampp\shawtain\public\assets\css\team.css */

.team-head { display: flex; align-items: center; gap: 18px; }
.team-head img { object-fit: contain; }
.team-head h1 { font-size: 1.6rem; }
.team-meta { color: var(--muted); margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }

.team-section { margin-top: 16px; padding: 0; overflow: hidden; }
.team-section > h2 { font-size: 1.05rem; padding: 12px 16px; background: var(--card-alt); border-bottom: 1px solid var(--border); }
.team-pad { padding: 16px; }

/* سطر مباراة */
.tm-row {
    display: grid;
    grid-template-columns: 96px 1fr 80px 1fr;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
}
.tm-row:last-child { border-bottom: 0; }
.tm-row:hover { background: var(--card-alt); }
.tm-date { color: var(--muted); font-size: .85rem; }
.tm-home, .tm-away { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.tm-home { justify-content: flex-start; }
.tm-away { justify-content: flex-start; }
.tm-score { text-align: center; font-weight: 800; }
.tm-empty { padding: 16px; color: var(--muted); }

/* ترتيب الفريق */
.tm-stand { width: 100%; border-collapse: collapse; }
.tm-stand th, .tm-stand td { padding: 11px 8px; text-align: center; border-bottom: 1px solid var(--border); }
.tm-stand th { color: var(--muted); font-size: .8rem; background: var(--card-alt); }
.tm-stand td:first-child, .tm-stand th:first-child { text-align: start; padding-inline-start: 16px; }
.tm-stand tr:last-child td { border-bottom: 0; }
.tm-stand .pts { font-weight: 800; color: var(--accent); }

@media (max-width: 640px) {
    .tm-row { grid-template-columns: 1fr 60px 1fr; }
    .tm-date { grid-column: 1 / -1; }
}