:root {
    --navy: #1f3a73;
    --navy-soft: #2f5db2;
    --royal: #2d6cdf;
    --orange: #ff8f3d;
    --green: #2fbf71;
    --red: #ef5d5d;
    --teal: #20a7b6;
    --bg: #f5f9ff;
    --card: #ffffff;
    --text: #1f2b3d;
    --muted: #5f6d85;
    --border: #dae4fa;
    --shadow: 0 16px 34px rgba(58, 87, 150, 0.10);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #f8fbff 0%, #eeeeff 100%);
    color: var(--text);
}

.public-body {
    background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d1b3d, #213b7d);
}

.login-card {
    width: min(100%, 440px);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.login-topbar {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-badge {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--orange), var(--royal));
    color: white;
    font-size: 2rem;
}

.login-topbar h2 {
    margin: 0;
    font-weight: 800;
    color: var(--navy);
}

.login-topbar p {
    color: var(--muted);
    margin-top: 0.35rem;
}

.app-shell {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
    color: white;
    padding: 1.25rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--orange), var(--royal));
    font-size: 1.2rem;
}

.brand-box h5 {
    margin: 0;
    font-size: 1rem;
}

.brand-box small {
    color: rgba(255,255,255,0.7);
}

.sidebar-nav {
    margin-top: 1.25rem;
    display: grid;
    gap: 0.5rem;
}

.nav-item {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: .2s ease;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.logout {
    margin-top: 1rem;
    background: rgba(234, 67, 53, 0.12);
}

.main-panel {
    flex: 1;
    padding: 1.5rem;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.topbar h2 {
    margin: 0;
    font-weight: 800;
    color: var(--navy);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.welcome-text {
    color: var(--muted);
    font-weight: 600;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(43, 182, 115, 0.1);
    color: var(--green);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.container-fluid {
    max-width: 1400px;
}

.panel-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.panel-header h4 {
    margin: 0;
    color: var(--navy);
    font-weight: 800;
}

.table-title-group {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.table-type-icon {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
    filter: drop-shadow(0 3px 8px rgba(31, 58, 115, 0.12));
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card);
    border-radius: 18px;
    padding: 1.2rem 1.1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.stat-card.navy { border-left: 6px solid var(--navy); }
.stat-card.blue { border-left: 6px solid var(--royal); }
.stat-card.orange { border-left: 6px solid var(--orange); }
.stat-card.green { border-left: 6px solid var(--green); }
.stat-card.red { border-left: 6px solid var(--red); }
.stat-card.teal { border-left: 6px solid var(--teal); }

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    color: white;
    background: linear-gradient(135deg, var(--royal), var(--navy));
}

.navy .stat-icon { background: linear-gradient(135deg, var(--navy), #3250a5); }
.blue .stat-icon { background: linear-gradient(135deg, var(--royal), #4ea5ff); }
.orange .stat-icon { background: linear-gradient(135deg, var(--orange), #ffba52); }
.green .stat-icon { background: linear-gradient(135deg, var(--green), #5ad79d); }
.red .stat-icon { background: linear-gradient(135deg, var(--red), #ff7d6d); }
.teal .stat-icon { background: linear-gradient(135deg, var(--teal), #67d5d0); }

.stat-label {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}

.stat-value {
    font-weight: 800;
    font-size: 1.9rem;
    color: var(--navy);
}

.status-badge,
.event-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-badge.active {
    background: rgba(43, 182, 115, 0.12);
    color: var(--green);
}

.status-badge.inactive {
    background: rgba(234, 67, 53, 0.12);
    color: var(--red);
}

.event-badge.pistol {
    background: rgba(255, 159, 28, 0.12);
    color: #b86d00;
}

.event-badge.rifle {
    background: rgba(45, 108, 223, 0.12);
    color: var(--royal);
}

.action-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.score-entry-card {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.series-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
}

.series-box label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.series-input,
.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid #d7dfea;
    padding: 0.75rem 0.9rem;
}

.total-row {
    background: rgba(13, 27, 61, 0.04);
    border-radius: 16px;
    padding: 1rem;
}

.total-label {
    letter-spacing: 0.1rem;
    margin: 0;
    font-weight: 800;
    color: var(--navy);
}

.total-display {
    background: linear-gradient(135deg, var(--navy), var(--royal));
    color: white;
    border-radius: 14px;
    font-size: 2rem;
    font-weight: 800;
    padding: 0.8rem 1.2rem;
    text-align: center;
    min-height: 72px;
    display: grid;
    place-items: center;
}

.tenx-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem 0.8rem;
}

.tenx-wrap label {
    font-weight: 700;
    margin: 0;
}

.event-type-box {
    min-height: 52px;
    border-radius: 12px;
    background: rgba(45, 108, 223, 0.08);
    border: 1px solid rgba(45, 108, 223, 0.15);
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--navy);
    font-weight: 700;
}

.event-type-box.accent {
    background: rgba(255, 159, 28, 0.08);
    border-color: rgba(255, 159, 28, 0.18);
    color: #9a5b00;
}

.scoreboard-hero {
    background: linear-gradient(135deg, #f2f7ff 0%, #edf4ff 28%, #eef8ff 100%);
    color: var(--navy);
    padding: 1.2rem 0 1rem;
    border-bottom: 1px solid rgba(78, 102, 156, 0.12);
}

.scoreboard-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand-side {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    flex: 0 0 auto;
}

.hero-logo {
    display: block;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 6px 12px rgba(31, 58, 115, 0.08));
}

.champ-logo {
    width: 68px;
    height: 68px;
    padding: 0;
}

.cbse-logo {
    width: 74px;
    height: 74px;
    padding: 0;
}

.header-copy {
    text-align: center;
    flex: 1 1 260px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    font-size: 0.64rem;
    opacity: 0.8;
    margin: 0;
    color: var(--royal);
    font-weight: 800;
}

.scoreboard-hero h1 {
    margin: 0.15rem 0 0;
    font-size: clamp(1.5rem, 2.4vw, 2.3rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--navy);
}

.championship-info {
    display: flex;
    flex-direction: column;
    /* gap: 0.12rem;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    opacity: 0.94;
    line-height: 1.4; */
}

.championship-info strong {
    font-size: 1.0rem;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    box-shadow: none;
    animation: none;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.scoreboard-view-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.scoreboard-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.72rem 1.15rem;
    border-radius: 12px;
    border: 1px solid rgba(31, 58, 115, 0.16);
    background: rgba(255, 255, 255, 0.7);
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.scoreboard-view-btn:hover,
.scoreboard-view-btn:focus-visible {
    text-decoration: none;
    color: var(--navy);
    border-color: rgba(31, 58, 115, 0.24);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(31, 58, 115, 0.08);
}

.scoreboard-view-btn.active {
    background: linear-gradient(135deg, var(--royal), #2d6cdf);
    border-color: var(--royal);
    color: white;
}

.category-type-panel {
    padding: 1.25rem;
}

.category-type-panel .panel-header {
    margin-bottom: 1rem;
}

.event-ranking-card {
    background: linear-gradient(180deg, #f9fbff 0%, #f4f8ff 100%);
    border: 1px solid rgba(31, 58, 115, 0.12);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.event-ranking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.event-ranking-header small {
    color: #536179;
    font-weight: 600;
}

.category-table {
    width: 100%;
    min-width: 760px;
    margin: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.92rem;
}

.category-table thead th {
    background: #eef4ff;
    color: var(--navy);
    white-space: nowrap;
    font-size: 0.75rem;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid rgba(31, 58, 115, 0.18);
}

.category-table tbody td {
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    border-top: 1px solid rgba(31, 58, 115, 0.10);
    border-bottom: 1px solid rgba(31, 58, 115, 0.10);
}

.category-table th:nth-child(1),
.category-table td:nth-child(1) {
    width: 70px;
    white-space: nowrap;
    text-align: center;
}

.category-table th:nth-child(2),
.category-table td:nth-child(2),
.category-table th:nth-child(4),
.category-table td:nth-child(4) {
    width: 18%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.category-table th:nth-child(3),
.category-table td:nth-child(3) {
    width: 20%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.category-table th:nth-child(5),
.category-table td:nth-child(5),
.category-table th:nth-child(6),
.category-table td:nth-child(6),
.category-table th:nth-child(7),
.category-table td:nth-child(7),
.category-table th:nth-child(8),
.category-table td:nth-child(8) {
    width: 58px;
    min-width: 58px;
    text-align: center;
    white-space: nowrap;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.category-table th:nth-child(9),
.category-table td:nth-child(9) {
    width: 78px;
    min-width: 78px;
    text-align: center;
    white-space: nowrap;
}

.category-table th:nth-child(10),
.category-table td:nth-child(10) {
    width: 58px;
    min-width: 58px;
    text-align: center;
    white-space: nowrap;
}

.category-table tbody td:nth-child(5),
.category-table tbody td:nth-child(6),
.category-table tbody td:nth-child(7),
.category-table tbody td:nth-child(8) {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a2d59;
    background: transparent !important;
    border-top: 1px solid rgba(31, 58, 115, 0.10) !important;
    border-bottom: 1px solid rgba(31, 58, 115, 0.10) !important;
    border-radius: 0;
    box-shadow: none !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.category-table .event-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06rem;
}

.category-table .event-badge.rifle {
    background: rgba(45, 108, 223, 0.12);
    color: #1147ad;
}

.category-table .event-badge.pistol {
    background: rgba(255, 159, 28, 0.12);
    color: #9a5b00;
}

.live-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef3d4d;
    box-shadow: 0 0 10px rgba(239, 61, 77, 0.55);
    animation: liveDotBlink 0.75s steps(2, start) infinite;
    flex-shrink: 0;
}

@keyframes liveBadgeGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(217, 4, 22, 0.58), 0 0 24px rgba(217, 4, 22, 0.55);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(217, 4, 22, 0), 0 0 34px rgba(255, 39, 51, 0.9);
        filter: brightness(1.16);
    }
}

@keyframes liveDotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.scoreboard-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: var(--navy);
}

.summary-group {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-toggle {
    display: none;
}

.table-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.table-panel {
    overflow: hidden;
    max-width: 100%;
}

.scoreboard-table-shell {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-sizing: border-box;
}

.scoreboard-table,
.scoreboard-table > thead,
.scoreboard-table > tbody,
.scoreboard-table > tfoot,
.scoreboard-table > tr,
.scoreboard-table > * {
    box-sizing: border-box;
}

.scoreboard-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.scoreboard-table th,
.scoreboard-table td {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    border-bottom: 1px solid rgba(31, 58, 115, 0.12);
}

.scoreboard-table thead th {
    white-space: nowrap;
    text-align: center;
    border-bottom: 1px solid rgba(31, 58, 115, 0.18);
}

.scoreboard-table tbody td {
    border-bottom: 1px solid rgba(31, 58, 115, 0.10);
}

.scoreboard-table th:nth-child(n + 3),
.scoreboard-table td:nth-child(n + 3) {
    width: 9%;
    min-width: 0;
    text-align: center;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.scoreboard-table tbody td:nth-child(n + 3) {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a2d59;
    background: transparent !important;
    border-bottom: 1px solid rgba(31, 58, 115, 0.10) !important;
    border-radius: 0;
    box-shadow: none !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.scoreboard-table th:nth-child(7),
.scoreboard-table td:nth-child(7) {
    width: 12%;
}

.scoreboard-table th:nth-child(8),
.scoreboard-table td:nth-child(8) {
    width: 8%;
}

.scoreboard-table th:nth-child(2),
.scoreboard-table td:nth-child(2) {
    width: 19%;
}

.scoreboard-table th:nth-child(1),
.scoreboard-table td:nth-child(1) {
    width: 25%;
}

.data-table-search {
    max-width: 220px;
    min-width: 160px;
}

.table-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.site-footer {
    background: linear-gradient(180deg, #0f1f3d 0%, #162d58 100%);
    color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2rem;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.4rem 0;
}

.footer-brand,
.footer-address,
.footer-copyright {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.footer-brand {
    align-items: center;
}

.footer-brand > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-brand strong,
.footer-brand span,
.footer-address p,
.footer-copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.footer-brand strong {
    font-size: 0.96rem;
}

.footer-brand span,
.footer-address p,
.footer-copyright p {
    font-size: 0.82rem;
    opacity: 0.9;
}

.footer-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.45rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.footer-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.footer-address,
.footer-copyright {
    display: block;
}

.page-btn {
    border: 1px solid #d7dfea;
    background: white;
    color: var(--navy);
    min-width: 40px;
    height: 36px;
    padding: 0 0.8rem;
    border-radius: 10px;
    font-weight: 700;
}

.page-btn.active {
    background: var(--royal);
    color: white;
    border-color: var(--royal);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.scoreboard-table thead th {
    background: #eef4ff;
    color: var(--navy);
    font-size: 0.78rem;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.scoreboard-table thead th:hover {
    background: #e4edff;
}

.scoreboard-table tbody tr.hidden-row {
    display: none;
}

.rank-cell {
    font-weight: 800;
    color: var(--orange);
}

@media (max-width: 991px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
    }

    .sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-address,
    .footer-copyright {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .scoreboard-summary {
        display: flex;
        justify-content: flex-start;
    }

    .summary-group {
        width: 100%;
        justify-content: flex-start;
    }

    .live-pill {
        width: fit-content;
        max-width: 100%;
        min-height: 28px;
        padding: 0;
        font-size: 0.64rem;
        letter-spacing: 0.08rem;
        gap: 0.35rem;
        margin-right: auto;
        justify-content: flex-start;
    }

    .live-dot {
        width: 8px;
        height: 8px;
        flex-shrink: 0;
    }

    .series-grid {
        grid-template-columns: 1fr 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .summary-group {
        flex-direction: column;
    }

    .scoreboard-header-row {
        align-items: center;
        text-align: center;
    }

    .brand-side {
        min-width: 70px;
    }

    .champ-logo,
    .cbse-logo {
        width: 72px;
        height: 72px;
    }

    .header-copy {
        order: 3;
        width: 100%;
    }

    .filter-toggle {
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

    .scoreboard-filters {
        display: none;
    }

    .scoreboard-filters.is-open {
        display: block;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-toolbar {
        width: 100%;
        justify-content: space-between;
        flex-direction: column;
        align-items: stretch;
    }

    .data-table-search {
        max-width: 100%;
        width: 100%;
    }

    .btn-group {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .btn-group .btn {
        width: 100%;
    }

    .scoreboard-table {
        table-layout: fixed;
    }

    .scoreboard-table tbody td:nth-child(n + 3) {
        min-width: 0;
        font-size: 0.8rem;
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
        background: rgba(32, 167, 182, 0.06);
    }

    .category-table tbody td:nth-child(5),
    .category-table tbody td:nth-child(6),
    .category-table tbody td:nth-child(7),
    .category-table tbody td:nth-child(8),
    .category-table tbody td:nth-child(9),
    .category-table tbody td:nth-child(10) {
        min-width: 54px;
        font-size: 0.8rem;
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
        background: rgba(32, 167, 182, 0.06);
    }

    .category-table tbody td:nth-child(9) {
        min-width: 70px;
        white-space: nowrap;
    }

    .category-table tbody td:nth-child(10) {
        min-width: 54px;
        white-space: nowrap;
    }

    .category-table thead th:nth-child(2),
    .category-table tbody td:nth-child(2),
    .category-table thead th:nth-child(3),
    .category-table tbody td:nth-child(3),
    .category-table thead th:nth-child(4),
    .category-table tbody td:nth-child(4) {
        min-width: 0;
        width: 22%;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 575px) {
    .series-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .main-panel {
        padding: 1rem;
    }

    .scoreboard-hero {
        padding: 1.8rem 0 1.4rem;
    }

    .scoreboard-header-row {
        gap: 0.75rem;
    }

    .scoreboard-hero h1 {
        font-size: 2rem;
    }

    .championship-info {
        font-size: 0.82rem;
    }

    .championship-info strong {
        font-size: 0.9rem;
    }

    .eyebrow {
        letter-spacing: 0.12rem;
    }

    .champ-logo,
    .cbse-logo {
        width: 62px;
        height: 62px;
    }

    .table-title-group {
        width: 100%;
    }

    .table-type-icon {
        width: 30px;
        height: 30px;
    }

    .table-pagination {
        justify-content: center;
    }

    .page-btn {
        min-width: 36px;
        padding: 0 0.6rem;
    }
}
