body { background: #f4f6f9; }
.card { border: 0; box-shadow: 0 8px 22px rgba(15, 23, 42, .06); }
.table th { white-space: nowrap; }
.required::after { content: " *"; color: #dc3545; }
.stat-card { border-left: 5px solid #0d6efd; }
.form-section-title { font-weight: 700; color: #0d6efd; margin: 1rem 0 .75rem; }
.print-table { width: 100%; border-collapse: collapse; }
.print-table th, .print-table td { border: 1px solid #ccc; padding: 6px; }
.brand-ball {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #0d6efd;
    background: #fff;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
}
.table-responsive {
    -webkit-overflow-scrolling: touch;
}
.dt-container .dt-search,
.dt-container .dt-length,
.dt-container .dt-info,
.dt-container .dt-paging {
    padding: .35rem 0;
}
.dt-container .dt-search input,
.dt-container .dt-length select {
    border-radius: 999px;
}
.dt-container .dt-paging .pagination {
    margin-bottom: 0;
}
.upload-preview {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}
.table-thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}
.help-page {
    max-width: 1180px;
    margin: 0 auto;
}
.help-lead {
    margin: 1rem 0 0;
    color: #6b7280;
    font-size: 1.05rem;
}
.help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.manual-nav {
    display: grid;
    gap: .6rem;
}
.manual-nav-title {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #111827;
    font-size: 1rem;
    font-weight: 900;
}
.manual-nav-title i {
    color: #0d6efd;
}
.manual-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}
.manual-nav-links a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .85rem;
    border-radius: 999px;
    background: #eef5ff;
    color: #0d6efd;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid #d7e7ff;
}
.manual-nav-links a:hover {
    background: #0d6efd;
    color: #fff;
}
.manual-section {
    margin-bottom: 1rem;
    scroll-margin-top: 86px;
}
.help-grid h2 {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: .85rem;
}
.manual-section h2 {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: .8rem;
}
.manual-section p {
    color: #374151;
}
.manual-note {
    padding: .85rem 1rem;
    border-left: 4px solid #0d6efd;
    border-radius: 10px;
    background: #eef5ff;
    color: #1f2937;
    font-weight: 700;
}
.manual-code {
    padding: .85rem 1rem;
    border-radius: 10px;
    background: #0f172a;
    color: #e5e7eb;
    font-size: .9rem;
    overflow-x: auto;
}
.manual-figure {
    margin: 1rem 0 0;
}
.manual-figure img {
    display: block;
    width: 100%;
    max-width: 920px;
    height: auto;
    border: 1px solid #d9e2ef;
    border-radius: 14px;
    background: #f8fafc;
}
.manual-figure figcaption {
    margin-top: .45rem;
    color: #6b7280;
    font-size: .9rem;
}
.help-list p,
.help-steps li {
    color: #374151;
    margin-bottom: .65rem;
}
.help-steps {
    padding-left: 1.25rem;
    margin-bottom: 0;
}
.btn-success { background: #198754; }
.btn-danger { background: #dc3545; }
.btn-outline-primary:hover,
.btn-outline-danger:hover { color: #fff; }
.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-bg-type: #f8fbff; }
.module-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #084298);
}
.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.leader-card {
    height: 100%;
    overflow: hidden;
    position: relative;
}
.leader-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #0d6efd;
}
.leader-primary::before { background: #0d6efd; }
.leader-danger::before { background: #dc3545; }
.leader-success::before { background: #198754; }
.leader-info::before { background: #0dcaf0; }
.leader-warning::before { background: #ffc107; }
.leader-secondary::before { background: #6c757d; }
.leader-dark::before { background: #212529; }
.leader-icon {
    color: rgba(13, 110, 253, .18);
    font-size: 2.6rem;
}
.leader-danger .leader-icon { color: rgba(220, 53, 69, .2); }
.leader-success .leader-icon { color: rgba(25, 135, 84, .2); }
.leader-info .leader-icon { color: rgba(13, 202, 240, .24); }
.leader-warning .leader-icon { color: rgba(255, 193, 7, .28); }
.leader-secondary .leader-icon { color: rgba(108, 117, 125, .24); }
.leader-dark .leader-icon { color: rgba(33, 37, 41, .2); }
.leader-value {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
}
.leader-value span {
    font-size: .8rem;
    color: #6b7280;
    font-weight: 700;
}

.navbar .nav-link.active {
    color: #fff;
    font-weight: 700;
    position: relative;
}
.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: .75rem;
    right: .75rem;
    bottom: .25rem;
    height: 3px;
    border-radius: 999px;
    background: #fff;
}
.sports-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1rem;
    max-width: 1320px;
    margin: 0 auto;
}
.sports-shell-wide {
    grid-template-columns: minmax(0, 1fr);
}
.sports-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
    padding: 1.25rem;
}
.sports-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.sports-header h1 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    font-weight: 800;
    color: #111827;
}
.sports-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #dc3545;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.sports-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
    padding: 1rem 0;
}
.sports-filter .form-select {
    max-width: 220px;
    border-radius: 999px;
}
.leader-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.leader-board {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}
.leader-board-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .7rem .85rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    font-weight: 800;
}
.leader-board-title strong,
.stat-number,
.rank {
    color: #0d6efd;
}
.leader-stack {
    display: grid;
    gap: .95rem;
}
.stats-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1rem 0 0;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    font-weight: 800;
    color: #9ca3af;
}
.stats-tabs span {
    padding: .75rem;
}
.stats-tabs .active {
    color: #111827;
    border-bottom: 3px solid #dc3545;
}
.stats-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
}
.stats-section-title {
    margin: .2rem 0 .85rem;
    font-size: 1.05rem;
    font-weight: 900;
}
.leader-more {
    display: block;
    padding: .65rem .85rem;
    color: #0d6efd;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    border-top: 1px solid #eef2f7;
    background: #fff;
}
.leader-more:hover {
    background: #f8fbff;
}
.stats-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}
.stats-link-grid h2 {
    font-size: 1rem;
    font-weight: 900;
}
.stats-link-grid a {
    display: block;
    padding: .38rem 0;
    color: #0d6efd;
    text-decoration: none;
    font-weight: 700;
}
.sports-table {
    font-size: .92rem;
}
.sports-table thead th {
    color: #374151;
    font-size: .74rem;
    text-transform: uppercase;
    border-bottom: 2px solid #dc3545;
}
.sports-table tbody tr:hover > * {
    background: #f8fbff;
}
.team-line,
.matchup {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.matchup small {
    color: #6b7280;
    font-weight: 700;
}
.team-badge {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #0d6efd;
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}
.diff-pos { color: #15803d !important; font-weight: 800; }
.diff-neg { color: #dc2626 !important; font-weight: 800; }
.sports-glossary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: .86rem;
}
.sports-rail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.sports-rail h2 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: .75rem;
}
.sports-rail a {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem 0;
    color: #0d6efd;
    font-weight: 700;
    text-decoration: none;
    border-top: 1px solid #eef2f7;
}
.sports-rail p {
    color: #6b7280;
    font-size: .92rem;
}
.schedule-day {
    margin-top: 1.2rem;
}
.schedule-day h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: .65rem;
}
.next-game-card {
    display: grid;
    gap: .2rem;
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d6efd, #003b95);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(13, 110, 253, .22);
}
.next-game-card span {
    color: #facc15;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.next-game-card strong {
    font-size: 1.25rem;
    font-weight: 900;
}
.next-game-card small {
    color: rgba(255, 255, 255, .82);
    font-weight: 700;
}
.next-game-card:hover {
    color: #fff;
    transform: translateY(-1px);
}
.next-game-row > * {
    background: #fff7ed !important;
    box-shadow: inset 4px 0 0 #f59e0b;
}
.next-game-row .matchup span {
    font-weight: 900;
}
.next-game-label {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-top: .25rem;
    padding: .18rem .5rem;
    border-radius: 999px;
    background: #f59e0b;
    color: #111827;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    min-width: 92px;
    justify-content: center;
    border-radius: 999px;
    padding: .22rem .55rem;
    font-size: .75rem;
    font-weight: 800;
    background: #e5e7eb;
    color: #374151;
}
.status-en,
.status-en.curso,
.status-en\ curso { background: #dbeafe; color: #1d4ed8; }
.status-finalizado { background: #dcfce7; color: #166534; }
.status-cancelado { background: #fee2e2; color: #991b1b; }
.empty-sports {
    display: grid;
    place-items: center;
    gap: .35rem;
    min-height: 190px;
    color: #6b7280;
    text-align: center;
}
.empty-sports i {
    color: #dc3545;
    font-size: 2.25rem;
}
.teams-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.teams-directory {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 2rem;
    margin-top: 1.25rem;
}
.teams-directory .team-card {
    border-width: 0 0 1px;
    border-radius: 0;
    padding: .85rem 0;
    box-shadow: none;
}
.team-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
.team-logo {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 18px;
    background: var(--team-color);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .14);
}
.team-logo-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: .35rem;
}
.team-card h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}
.team-card p {
    margin: .2rem 0 .55rem;
    color: #6b7280;
}
.team-links {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}
.team-links a {
    color: #0d6efd;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}
.team-links i {
    color: #6b7280;
}
.sports-name-link {
    color: #0d6efd;
    text-decoration: none;
}
.sports-name-link:hover {
    text-decoration: underline;
}
.results-list,
.dashboard-results {
    display: grid;
    gap: .75rem;
}
.score-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 1fr);
    gap: 1px;
    overflow-x: auto;
    margin: 1rem -1.25rem 0;
    background: #e5e7eb;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}
.score-strip-item {
    display: grid;
    gap: .18rem;
    padding: .65rem .8rem;
    background: #fff;
    color: #111827;
    text-decoration: none;
    min-height: 84px;
}
.score-strip-item span {
    color: #dc3545;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}
.score-strip-item strong {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    font-size: .82rem;
}
.result-card,
.dashboard-result {
    display: grid;
    gap: .45rem;
    padding: .85rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
}
.result-card {
    grid-template-columns: minmax(260px, 1fr) minmax(190px, .75fr);
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}
.result-score {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 94px;
    gap: .75rem;
    padding: .9rem;
    border-right: 1px dashed #e5e7eb;
}
.result-status {
    justify-self: start;
    padding: .18rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 900;
    background: #e5e7eb;
    color: #374151;
}
.result-score .result-status {
    grid-column: 1 / -1;
}
.result-lines {
    display: grid;
    gap: .35rem;
}
.result-team {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    color: #475569;
}
.result-team.winner {
    color: #111827;
    font-weight: 900;
}
.result-team strong {
    font-size: 1.15rem;
}
.result-rhe {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-content: start;
    gap: .22rem .45rem;
    text-align: center;
    font-size: .78rem;
}
.result-rhe span {
    color: #6b7280;
    font-size: .68rem;
    font-weight: 900;
}
.result-rhe strong {
    color: #111827;
}
.result-meta,
.dashboard-result small {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    color: #6b7280;
    font-size: .86rem;
}
.result-meta {
    flex-direction: column;
    justify-content: center;
    padding: .9rem;
}
.result-actions {
    display: grid;
    gap: .45rem;
}
.result-actions a {
    display: inline-flex;
    justify-content: center;
    border: 1px solid #0d6efd;
    border-radius: 999px;
    padding: .28rem .8rem;
    color: #0d6efd;
    font-weight: 800;
    text-decoration: none;
}
.result-actions a:hover {
    background: #0d6efd;
    color: #fff;
}
.dashboard-result {
    color: inherit;
}
.dashboard-result span {
    color: #dc3545;
    font-weight: 900;
}
.dashboard-result strong {
    color: #111827;
}
.dashboard-live-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr);
    gap: 1rem;
    align-items: stretch;
}
.dashboard-panel {
    height: 100%;
}
.dashboard-results-compact {
    gap: .55rem;
}
.dashboard-results-compact .dashboard-result {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: .35rem .75rem;
    padding: .7rem .85rem;
    border-radius: 10px;
}
.dashboard-results-compact .dashboard-result span {
    grid-row: span 2;
    display: grid;
    place-items: center;
    min-height: 46px;
    border-radius: 9px;
    background: #fef2f2;
    color: #dc3545;
    font-size: .78rem;
    text-transform: uppercase;
}
.dashboard-results-compact .dashboard-result strong {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    font-size: .98rem;
}
.dashboard-results-compact .dashboard-result em {
    font-style: normal;
    color: #4b5563;
}
.dashboard-results-compact .dashboard-result em.winner {
    color: #111827;
    font-weight: 900;
}
.dashboard-results-compact .dashboard-result b {
    color: #9ca3af;
}
.dashboard-results-compact .dashboard-result small {
    justify-content: flex-start;
}
.dashboard-standings {
    font-size: .92rem;
}
.dashboard-standings thead th {
    color: #374151;
    font-size: .74rem;
    text-transform: uppercase;
}
.dashboard-standings tbody tr:first-child td {
    background: #f8fbff;
}
.dashboard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.dashboard-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: flex-end;
}
.player-profile-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.player-profile-head img,
.player-avatar {
    width: 110px;
    height: 110px;
    border-radius: 22px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}
.player-avatar {
    display: grid;
    place-items: center;
    color: #0d6efd;
    font-size: 3rem;
}
.player-profile-head h1 {
    margin: .25rem 0;
    font-weight: 900;
}
.player-profile-head p {
    margin: 0;
    color: #6b7280;
    font-weight: 700;
}
.player-hero {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 300px;
    gap: 1rem;
    align-items: center;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #d1d5db;
    padding-top: .85rem;
    padding-bottom: .85rem;
}
.player-photo-panel {
    display: grid;
    place-items: center;
    min-height: 112px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    border-radius: 14px;
    overflow: hidden;
}
.player-photo-panel img,
.player-avatar-xl {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 18px;
}
.player-identity h1 {
    margin: .25rem 0;
    font-size: clamp(1.85rem, 3.4vw, 2.55rem);
    font-weight: 900;
    line-height: 1;
}
.player-identity p {
    margin: 0;
    color: #374151;
    font-weight: 800;
}
.player-status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .65rem;
    color: #374151;
    font-weight: 800;
}
.player-status span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #16a34a;
}
.player-season-card {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
}
.player-season-card > strong {
    display: block;
    padding: .42rem;
    background: #0ea5e9;
    color: #fff;
    font-size: .82rem;
    text-transform: uppercase;
}
.player-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.player-stat-grid div {
    padding: .45rem .35rem;
    border-left: 1px solid #e5e7eb;
}
.player-stat-grid div:first-child {
    border-left: 0;
}
.player-stat-grid span {
    display: block;
    color: #6b7280;
    font-size: .72rem;
    font-weight: 900;
}
.player-stat-grid b {
    display: block;
    font-size: 1.35rem;
    line-height: 1.1;
}
.player-tabs {
    display: flex;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: .55rem 1rem;
    background: #fff;
    border-bottom: 1px solid #d1d5db;
    overflow-x: auto;
}
.player-tabs a {
    color: #111827;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.player-tabs a.active {
    color: #dc3545;
}
.player-content-grid {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 1rem;
}
.player-side h2 {
    font-size: 1rem;
    font-weight: 900;
}
.player-info-list {
    display: grid;
    gap: .55rem;
}
.player-info-list div {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding-top: .55rem;
    border-top: 1px solid #eef2f7;
}
.player-info-list span {
    color: #6b7280;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}
.player-info-list strong {
    text-align: right;
}
.player-stat-panels {
    display: grid;
    gap: 1rem;
}
.player-last-game {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .95fr);
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}
.player-last-score {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: .75rem;
    align-items: center;
    text-align: center;
}
.player-last-score span {
    grid-column: 1 / -1;
    color: #374151;
    font-size: .78rem;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
}
.player-last-score strong {
    font-size: 1.5rem;
    font-weight: 900;
}
.player-last-score b {
    color: #6b7280;
}
.player-game-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
}
.player-game-tiles div {
    padding: .65rem;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f8fbff;
    text-align: center;
}
.player-game-tiles span {
    display: block;
    color: #0d6efd;
    font-size: .75rem;
    font-weight: 900;
}
.player-game-tiles b {
    display: block;
    font-size: 1.45rem;
    line-height: 1.1;
}
.player-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}
.player-info-grid div {
    padding: .75rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}
.player-info-grid span {
    display: block;
    color: #6b7280;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}
.player-info-grid strong {
    display: block;
    margin-top: .2rem;
}

@media (max-width: 991.98px) {
    .navbar .nav-link.active::after { display: none; }
    .sports-shell,
    .leader-grid,
    .teams-grid,
    .teams-directory,
    .stats-columns,
    .stats-link-grid,
    .player-hero,
    .player-content-grid,
    .help-grid {
        grid-template-columns: 1fr;
    }
    .sports-filter .form-select {
        max-width: none;
        width: 100%;
    }
    .sports-filter .btn {
        width: 100%;
    }
    .sports-card,
    .card-body {
        padding: 1rem;
    }
    .player-hero {
        border-radius: 14px;
    }
    .sports-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .sports-header .action-bar,
    .sports-header .btn {
        width: 100%;
    }
    .dashboard-live-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .dashboard-action-buttons {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }
    .player-last-game,
    .player-last-score {
        grid-template-columns: 1fr;
    }
    .player-game-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
    .action-bar,
    .form-actions {
        width: 100%;
    }
    .action-bar .btn,
    .form-actions .btn {
        flex: 1 1 100%;
    }
}

.scorekeeper {
    max-width: 1400px;
    margin: 0 auto;
}
.scorekeeper-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: stretch;
    padding: 1.4rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #0b1f5e, #0d6efd);
    color: #fff;
    box-shadow: 0 18px 40px rgba(13, 110, 253, .18);
}
.scorekeeper-hero h1 {
    margin: .35rem 0;
    font-weight: 900;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
}
.scorekeeper-hero h1 span {
    display: inline-grid;
    min-width: 54px;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,.16);
}
.scorekeeper-hero p {
    margin: 0;
    color: rgba(255,255,255,.82);
}
.game-state {
    display: grid;
    min-width: 180px;
    align-content: center;
    gap: .65rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255,255,255,.12);
    text-align: center;
}
.game-state strong {
    font-size: 1.2rem;
}
.scoreboard-card {
    margin: 1rem 0;
    padding: .75rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}
.scoreboard-table th,
.scoreboard-table td {
    vertical-align: middle;
}
.scoreboard-table thead th {
    color: #6b7280;
    font-size: .76rem;
    text-transform: uppercase;
}
.scoreboard-table tbody td {
    font-size: 1rem;
}
.scoreboard-table small {
    color: #6b7280;
    font-weight: 700;
}
.score-tabs {
    gap: .5rem;
    margin-bottom: 1rem;
}
.score-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #0b1f5e;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-weight: 800;
}
.score-tabs .nav-link.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}
.score-card h2 {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 900;
}
.scorekeeper-form label {
    margin-bottom: .3rem;
    color: #374151;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}
.half-outs-summary {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: -.25rem 0 1rem;
}
.half-outs-summary span {
    padding: .38rem .7rem;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-weight: 800;
}
.half-outs-summary span.active {
    border-color: #0d6efd;
    background: #e8f1ff;
    color: #084298;
}
.half-outs-summary strong {
    color: #0f172a;
}
.timeline-list {
    display: grid;
    gap: .75rem;
    max-height: 680px;
    overflow: auto;
    padding-right: .25rem;
}
.timeline-group-title {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: .35rem .55rem;
    border-left: 5px solid #0d6efd;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
}
.timeline-item {
    display: grid;
    gap: .2rem;
    padding: .75rem;
    border-left: 4px solid #0d6efd;
    border-radius: 10px;
    background: #f8fafc;
}
.timeline-item span {
    color: #6b7280;
}
.lineup-list {
    display: grid;
    gap: .45rem;
    margin: 0;
    padding-left: 1.2rem;
}
.lineup-list li {
    padding: .45rem .2rem;
    border-bottom: 1px solid #eef2f7;
}
.lineup-list li.lineup-substituted {
    margin-left: -.35rem;
    padding: .55rem .45rem;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    opacity: .72;
}
.lineup-list li.lineup-substituted strong {
    color: #64748b;
    text-decoration: line-through;
}
.lineup-list span {
    display: block;
    color: #6b7280;
    font-size: .86rem;
}
.lineup-status {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-top: .2rem;
    padding: .12rem .45rem;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: .75rem;
    font-weight: 800;
}
.game-list {
    display: grid;
    gap: .85rem;
    margin-top: 1rem;
}
.game-list-card {
    display: grid;
    grid-template-columns: 86px minmax(260px, 1fr) minmax(180px, .55fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}
.next-game-list-card {
    border-color: #f59e0b;
    background: #fff7ed;
    box-shadow: 0 12px 28px rgba(245, 158, 11, .15);
}
.next-game-list-card .game-date {
    background: #f59e0b;
    color: #111827;
}
.next-game-list-card .game-date span {
    color: rgba(17, 24, 39, .72);
}
.game-date {
    display: grid;
    place-items: center;
    min-height: 76px;
    border-radius: 14px;
    background: #0b1f5e;
    color: #fff;
}
.game-date strong {
    font-size: 1.7rem;
    line-height: 1;
}
.game-date span {
    font-size: .78rem;
    color: rgba(255,255,255,.76);
}
.game-match {
    display: grid;
    gap: .35rem;
}
.game-match div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .75rem;
}
.game-match span {
    font-weight: 800;
    color: #111827;
}
.game-match strong {
    display: inline-grid;
    width: 44px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #f1f5f9;
    color: #0b1f5e;
}
.game-meta {
    display: grid;
    gap: .35rem;
    color: #6b7280;
    font-weight: 700;
}
.game-actions {
    display: flex;
    justify-content: flex-end;
}
.inning-history-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    border-bottom: 1px solid #d8e1ef;
}
.inning-history-tabs .nav-link {
    white-space: nowrap;
    font-weight: 800;
    color: #475569;
}
.inning-history-tabs .nav-link.active {
    color: #0d6efd;
    border-color: #d8e1ef #d8e1ef #fff;
}

@media (max-width: 767.98px) {
    .scorekeeper-hero {
        display: grid;
        padding: 1rem;
    }
    .scorekeeper-hero h1 span {
        min-width: 42px;
    }
    .game-state {
        min-width: 0;
        text-align: left;
    }
    .score-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .35rem;
    }
    .score-tabs .nav-link {
        white-space: nowrap;
    }
    .game-list-card {
        grid-template-columns: 1fr;
    }
    .game-actions {
        justify-content: stretch;
    }
    .game-actions .btn {
        width: 100%;
    }
    .scorekeeper-form .btn,
    .scorekeeper-form .form-control,
    .scorekeeper-form .form-select {
        min-height: 44px;
    }
    .scoreboard-card {
        padding: .5rem;
    }
    .scoreboard-table {
        min-width: 720px;
    }
    .sports-table,
    .standings-table {
        min-width: 760px;
    }
    .team-card {
        grid-template-columns: 56px minmax(0, 1fr);
    }
    .team-logo {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        font-size: .95rem;
    }
    .team-logo-img {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }
    .player-profile-head {
        align-items: flex-start;
    }
    .player-info-grid {
        grid-template-columns: 1fr;
    }
    .result-card,
    .result-score {
        grid-template-columns: 1fr;
    }
    .result-score {
        border-right: 0;
        border-bottom: 1px dashed #e5e7eb;
    }
    .score-strip {
        margin-left: -1rem;
        margin-right: -1rem;
    }
    .player-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
