.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 1rem; } .modal { background: #161616; border: 1px solid #2a2a2a; border-radius: 12px; width: 100%; max-width: 680px; max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; } /* Header */ .header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid #2a2a2a; flex-shrink: 0; } .teamInfo { display: flex; align-items: center; gap: 0.75rem; } .teamInfo h2 { font-size: 1.15rem; font-weight: 700; color: #fff; } .crest { width: 40px; height: 40px; object-fit: contain; } .close { background: none; border: none; color: #666; font-size: 1.1rem; cursor: pointer; padding: 0.25rem 0.5rem; border-radius: 4px; line-height: 1; } .close:hover { color: #fff; background: #2a2a2a; } /* Body */ .body { overflow-y: auto; padding: 1.25rem 1.5rem; flex: 1; } .error { color: #e74c3c; padding: 1rem 0; } /* Sections */ .section + .section { margin-top: 1.75rem; } .sectionTitle { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: #666; margin-bottom: 0.75rem; } /* Match rows */ .matchList { list-style: none; display: flex; flex-direction: column; gap: 2px; } .matchRow { display: grid; grid-template-columns: 56px 32px 1fr 64px 1fr; align-items: center; gap: 0.5rem; padding: 0.55rem 0.75rem; border-radius: 6px; font-size: 0.85rem; color: #bbb; background: #1a1a1a; } .matchRow:hover { background: #202020; } .matchDate { font-size: 0.78rem; color: #666; white-space: nowrap; } .matchday { font-size: 0.72rem; color: #555; text-align: center; } /* Teams */ .team { display: flex; align-items: center; gap: 0.4rem; overflow: hidden; } .homeTeam { justify-content: flex-end; } .awayTeam { justify-content: flex-start; } .homeTeam span, .awayTeam span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .miniCrest { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; } .highlighted { color: #fff; font-weight: 600; } /* Score */ .score { text-align: center; font-weight: 700; font-size: 0.9rem; color: #888; font-variant-numeric: tabular-nums; white-space: nowrap; } .win { color: #2ecc71; } .draw { color: #888; } .loss { color: #e74c3c; } /* Spinner */ .spinner { text-align: center; padding: 3rem; color: #e87722; } .spinnerCircle { width: 36px; height: 36px; border: 3px solid #333; border-top-color: #e87722; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 1rem; } @keyframes spin { to { transform: rotate(360deg); } }