/* ===========================
   RIL Manager – ECL Tennis
   =========================== */

.ril-manager-wrap { font-family: inherit; margin: 20px 0; }

.ril-header { background: #1a5276; color: #fff; padding: 16px 20px; border-radius: 6px; margin-bottom: 20px; }
.ril-header h2 { margin: 0 0 4px; font-size: 1.4em; }
.ril-header p  { margin: 0; opacity: .85; }

/* Tables */
.ril-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: .9em; }
.ril-table th { background: #2e86c1; color: #fff; padding: 8px 10px; text-align: left; }
.ril-table td { padding: 7px 10px; border-bottom: 1px solid #e0e0e0; }
.ril-table tr:last-child td { border-bottom: none; }
.ril-table tr.ril-highlight td { background: #d6eaf8; font-weight: bold; }
.ril-table tr:hover td { background: #f0f7ff; }

/* Matches */
.ril-matches h3, .ril-standings h3, .ril-team h3 { color: #1a5276; margin-bottom: 12px; }

.ril-match { display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
             padding: 10px 14px; margin-bottom: 6px; border-radius: 5px;
             border-left: 4px solid #bbb; background: #fafafa; }
.ril-played   { border-left-color: #aaa; }
.ril-upcoming { border-left-color: #2e86c1; background: #eaf4fc; }

.ril-match-date  { color: #666; font-size: .85em; min-width: 110px; }
.ril-match-teams { flex: 1; }
.ril-venue       { color: #999; font-size: .8em; }

.ril-result       { padding: 2px 8px; border-radius: 3px; font-size: .8em; font-weight: bold; }
.ril-result-v     { background: #d4efdf; color: #1e8449; }
.ril-result-d     { background: #fadbd8; color: #c0392b; }

/* Captain badge */
.ril-captain { display: inline-block; background: #f39c12; color: #fff;
               border-radius: 50%; width: 18px; height: 18px; line-height: 18px;
               text-align: center; font-size: .75em; margin-left: 4px; }

/* Error notice */
.ril-error { background: #fdf2f2; border: 1px solid #e74c3c; color: #c0392b;
             padding: 10px 14px; border-radius: 4px; }

@media (max-width: 600px) {
    .ril-match { flex-direction: column; align-items: flex-start; }
    .ril-table  { font-size: .78em; }
}
