/* Improved frontend styles for SportsDB plugin */
.sdb-table, .sdb-table table { width:100% !important; border-collapse: collapse; table-layout: auto; font-family: inherit; }
.sdb-table th, .sdb-table td { vertical-align: middle; padding: 10px 14px; color: #374151; border-bottom: 1px solid #e6eef5; font-size: 14px; }
.sdb-table thead th { background: #ffffff; color: #0f172a; font-weight: 600; padding:16px 14px; font-size:15px; }
.sdb-team-cell { display:flex; align-items:center; gap:10px; min-width:0; }
.sdb-team-cell img, .sdb-table img.team-logo { width:36px; height:36px; object-fit:contain; display:inline-block; vertical-align:middle; border-radius:4px; background:#fff; }
.sdb-team-name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:220px; display:inline-block; }
.sdb-score { font-weight:600; color:#111827; text-align:center; white-space:nowrap; }
.sdb-status { text-align:center; white-space:nowrap; }
.sdb-blank-column, .sdb-overlay-column { display:none !important; visibility:hidden !important; }
.sdb-table tbody tr:nth-child(odd) { background:#fbfdff; }
.sdb-table tbody tr:hover { background:#f3f9ff; }
.sdb-table-wrap { overflow-x:auto; -webkit-overflow-scrolling: touch; }
@media (max-width:720px){ .sdb-team-name { max-width:120px } .sdb-table th, .sdb-table td { padding:8px 10px; font-size:13px } .sdb-team-cell img { width:28px; height:28px } }
.sdb-table img { max-width:100%; height:auto; }
.sdb-pagination{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;padding:10px 0;margin-top:8px;}
.sdb-pagination a{display:inline-block;padding:6px 10px;border-radius:6px;border:1px solid #e6eef5;margin:0;min-width:36px;text-align:center;color:#0f172a;text-decoration:none;}
.sdb-pagination a.current{background:#0f172a;color:#fff;border-color:#0f172a;}
.sdb-pagination a:hover{background:#eef6ff;border-color:#cfe6ff;}



/* Strong enforcement: small logos everywhere */
img.sdb-badge, img.team-logo, img.sdb-team-logo, .sdb-team-cell img, .sdb-table img, .sdb-widget img, .sdb-block img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  object-fit: contain !important;
  display: inline-block !important;
}

/* Smaller for very small screens */
@media (max-width: 480px) {
  img.sdb-badge, img.team-logo, img.sdb-team-logo, .sdb-team-cell img, .sdb-table img, .sdb-widget img {
    width: 28px !important;
    height: 28px !important;
    max-width:28px !important;
    max-height:28px !important;
  }
}

/* Force league/group headings bold */
.sdb-league-title, .sdb-caption, .sdb-group-header, .sdb-group-title, .sdb-block .sdb-caption, .sdb-table .sdb-caption {
  font-weight: 700 !important;
  font-size: 1rem !important;
  color: inherit !important;
}

/* Ensure widgets inherit caption style when grouped */
.sdb-widget .sdb-caption, .wp-block-sdb-livescore .sdb-caption, .wp-block-sdb-standings .sdb-caption {
  font-weight:700 !important;
}

