/* point table css start */

/* ---------- Shared/General styles ---------- */
body {
    padding: 0;
    margin: 0;
    font-family: 'Arial Rounded MT Bold', Arial, Helvetica, sans-serif;
    background-color: #f5f8fb;
    color: #232323;
    transition: background 0.2s, color 0.2s;
}
.px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}
.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 0.3rem; }
.mt-22 {
    margin-top: 22px;
}

/* ---------- Main section & Scoreboard ---------- */
.main-section {
    background: #f8fbfd;
    padding: 18px 0;
    /* Overridden by more specific selector below - see responsive/main-section styles */
}
.main-section {
    /* Extra styling for .main-section */
    padding: 2.3rem 2rem 2rem 2rem;
    margin: 0 auto;
    width: 100%;
    max-width: 1160px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 3px 24px 2px rgba(28, 92, 164, 0.08);
}
.main-section h4 {
    padding: 0 0 1.8rem 0;
    margin: 0;
    text-align: center;
    color: #0a3659;
    font-weight: 600;
    font-size: 1.9rem;
    letter-spacing: .02em;
}
.main-section h4 span {
    font-size: 1.3rem;
    color: #304a77;
}

.scoreboard-title {
    font-weight:700;
    color:#013670;
    letter-spacing:1px;
    text-align: center;
    margin-bottom: 24px;
}
.match-result-row {
    padding:12px;
    margin-top: 32px;
    /* margin-top duplicated/combined here */
}

.winner-title {
    font-size:18px;
    color:#1b7b47;
    font-weight:600;
    color: #21994d; /* Duplicate, but this one is visually stronger. */
    font-size: 1.23em;
    text-shadow: 0px 2px 12px #83ceb848;
    margin-bottom: 8px;
}
.winner-title {
    /* Keep only visual enhancements from more specific version */
    font-weight: 700;
}

.winner-img {
    height:50px;
    width:50px;
    border-radius:50%;
    object-fit:cover;
    vertical-align: middle;
    border:2.5px solid #2adb7b;
    margin-right:9px;
    box-shadow:0 2px 9px #15ca9357;
    background: #fff;
}

.winner-team {
    font-weight: bold;
    color: #109d3e;
}
.loser-team {
    font-weight: normal;
    color: #888;
}

/* Winner/Highlight rows */
.winner-highlight-card {
    border: 2.5px solid #2adb7b;
    box-shadow: 0 3px 15px -8px #23ce9c4f;
    background: #f0fcf6;
}
.winner-row {
    border-bottom: 2px solid #26ba65;
}
.team-won {
    color: #25ae47 !important;
    font-weight: bold;
    text-shadow: 0 1.5px 0 #e4ffe4;
    font-size: 1.17em;
}
.won-status-badge {
    margin-left: 7px;
    margin-top: 4px;
    background: linear-gradient(90deg, #1bc369 45%, #4bdb96 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.87em;
    letter-spacing: 0.04em;
    padding: 3px 12px 3px 11px;
    border-radius: 13px;
    box-shadow: 0 1px 7px -2px #2df07933;
    display: inline-block;
    line-height: 1.2;
}

/* ---------- Card/Scoreboard Structure ---------- */
.scoreboard-card {
    /* Deduped styles: uses latest/strongest/most visually detailed block only */
    border-radius: 22px;
    box-shadow: 0 2px 12px -2px #0532594f;
    border: none;
    margin-bottom: 24px;
    background: #f5fafd;
    min-height: 340px;
    width: 100%;
    overflow: hidden;
}
/* .card-body {
    background: #fff;
} */
.card-body .img {
    height: 38px;
    width: 38px;
    border-radius: 50%;
    box-shadow: 0px 2px 8px rgba(10,54,89,0.16);
    object-fit: cover;
    border: 2px solid #e6eaf0;
}

/* ---------- Scoreboard Header ---------- */
.scoreboard-header {
    /* Use latest styles, replacing old duplicate values */
    background: linear-gradient(90deg, #074ea2 20%, #31b6e5 100%);
    color: #fff;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    padding: 16px 24px 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

/* Responsive fallback for scoreboard-header */
@media (max-width: 800px) {
    .scoreboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .score-line {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 1em;
        background: rgba(13, 100, 181, 0.19);
        color: #093158;
        text-align: left;
    }
    .score-header-content {
        width: 100%;
    }
}

.score-header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: calc(100% - 200px);
}

/* Score Line */
.score-line {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: rgba(255,255,255,.11);
    padding: 7px 21px;
    border-radius: 15px;
    color: #fff !important;
    box-shadow: 0 1px 6px #3344551a;
}
.score-line-overs {
    font-size:.96em;
    color:#bfe9f7;
}

/* Team name in header */
.team-name-down {
    font-size: 1.18em;
    font-weight: 600;
    text-shadow:0px 1px 3px #00000026;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 7px;
}

/* ---------- Table/Score UI Customization ---------- */
.point-table-ui-custom {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border-radius: 16px;
    margin: 32px auto;
    background: #fff;
    overflow: hidden;
    max-width: 700px;
    padding: 24px 26px;
}
.point-table-ui-custom .table {
    margin-bottom: 0;
    font-size: 1.05rem;
    min-width: 600px;
}
.point-table-ui-custom thead th {
    background: #0a3e73;
    color: #fff;
    font-size: 1rem;
    letter-spacing: .05em;
    border: none;
}
.point-table-ui-custom tbody tr:nth-child(even) {
    background: #f2f6fa;
}
.point-table-ui-custom tbody td {
    vertical-align: middle;
    font-size: 0.97rem;
    padding: .75rem 1rem;
    border-color: #e2e8f0;
}
.point-table-ui-custom .team-col {
    font-weight: 600;
    color: #194880;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}
.point-table-ui-custom h2 {
    font-size: 1.45rem;
    margin-bottom: 20px;
    color: #0d6efd;
    text-align: center;
    letter-spacing: 1px;
    font-weight: 700;
}
.point-table-ui-custom th, .point-table-ui-custom td,
.point-table-ui-custom table th, .point-table-ui-custom table td {
    text-align: center;
    vertical-align: middle;
}
.point-table-ui-custom .img {
    height: 28px;
    width: 28px;
    border-radius: 50%;
    background: #eee;
    object-fit: contain;
    border: 1px solid #e0e0e0;
}
.point-table-ui-custom .nrr-pos {
    font-weight: 600;
    color: #229954;
}
@media (max-width: 768px) {
    .point-table-ui-custom {
        padding: 12px 3px;
    }
    .point-table-ui-custom h2 {
        font-size: 1.1rem;
    }
    .point-table-ui-custom .team-col {
        font-size: 13px;
    }
    .point-table-ui-custom .img {
        height: 20px;
        width: 20px;
    }
}

/* ---------- Table Summary ---------- */
.summary-table {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 18px;
    background: #fff;
    overflow: hidden;
    border-collapse: separate; 
    border-spacing: 0;
    box-shadow: 0 1px 4px rgba(80,80,80,0.07);
    min-width: 480px;
}
.summary-table th, .summary-table td {
    font-size: 0.97rem;
    padding: 8px 9px;
    white-space: nowrap;
    text-align: center;
}
.summary-table th.th1 {
    background: #edf5ff;
    padding:7px 11px;
    font-weight:500;
    text-align: left;
}
.summary-table th:not(.th1), .summary-table td:not(.th1) {
    padding:7px 0;
}
.summary-table td {
    padding:6px 0;
}
.summary-table td:first-child {
    padding-left: 11px;
    text-align: left;
}
.summary-table tr:nth-child(even), .summary-table tr.even-row {
    background: #f5fafd !important;
}
.summary-table tr.odd-row {
    background: #eef4fa !important;
}

.summary-table thead {
    background:#f2f5ff;
}
.table-overflow-x {
    overflow-x: auto;
}

/* ---------- Typography/UI Utilities ---------- */
.score-span { display: inline-block; }
.status-complete {
    color:#de280c;
    font-weight:bold;
}
.status-else {
    color:#0c7cde;
}

/* ---------- Bat/Bowl Table Section ---------- */
.batbowl-title {
    font-weight:700; 
    color:#2f5795; 
    margin-bottom:12px;
    margin-top:0; 
    letter-spacing:0.5px;
}
.batbowl-title span {
    border-left:4px solid #225b7c;
    padding-left:8px;
}

/* ---------- Dismissal/Not-Started UI ---------- */
.dismissal-text {
    color: #bf3838;
    font-size: .91em;
    font-style: italic;
    /* These properties deduped & unified */
}
.not-started-box {
    background: #ffecec;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 2px 12px -2px #dfbebe68;
}
.not-started-box h3 {
    color: #bb3636; 
    font-weight:700;
}
.not-started-box p {
    color:#60677f;
    font-size:1.07em;
    letter-spacing:.02em;
    margin: 0;
}

/* ---------- Team Logo/Image ---------- */
.team-logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: contain;
    border: 2px solid #053259;
    background: #fff;
    box-shadow: 0 1px 12px -2px #0532594f;
}
.match-item .img {
    width:32px;
    height:32px;
}

/* ---------- Format Badges ---------- */
.match-format-t20,
.match-format-test {
    color: #fff;
    border-radius: 3px;
    padding: 0 8px;
}

/* Match format styles */
.match-formate { 
    margin-top:-12px !important; 
    text-align: end;
    padding: 1rem 1.5rem 0 0;
}
.match-formate span {
    background-color: #1877ce;
    padding: .2rem .7rem;
    border-radius: 18px;
    color: #fff;
    margin-left: 0.4rem;
    font-size: 0.95rem;
    font-weight: 500;
}
.match-formate .t20-series {
    background-color: #b94b18;
}
.match-formate .test-series {
    background-color: #978787;
}

/* ---------- Header/Nav/Dropdown ---------- */
.header-bar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: linear-gradient(90deg, #0a3659 0%, #053259 100%);
    box-shadow: 0 4px 18px rgba(8, 48, 89, 0.15);
}
.first-header {
    background-color: #0a3659;
    width: 100%;
    z-index: 1021;
    position: relative;
}
.first-header .navbar-nav {
    /* background-color: #053259; */
    z-index: 1022;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
.first-header .navbar-nav .nav-item {
    position: relative;
}
.first-header .navbar-nav .nav-item a {
    color: #fff;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.18s cubic-bezier(.59,2.51,.54,.78);
    position: relative;
    z-index: 1;
}
.first-header .navbar-nav .nav-item .active,
.first-header .navbar-nav .nav-item a:hover {
    color: #053259;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(10,54,89,.08);
    /* font-weight: 600; */
}
/* Dropdown menu */
.first-header .dropdown-menu {
    background-color: #0a3659;
    color: #fff;
    border-radius: 12px;
   /* min-width: 170px;
    max-width: 82vw;
    min-height: 38px;
    max-height: 55vh;
    overflow-y: auto;
    overflow-x: hidden; */
    box-shadow: 0 8px 24px rgba(10,54,89,0.10);
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    margin-top: 0;
    z-index: 1050; /* Above nav, below modal */
    padding: 8px 0;
    display: none;
}
.first-header .navbar-nav .nav-item.open > .dropdown-menu,
.first-header .navbar-nav .nav-item.show > .dropdown-menu {
    display: block;
}
.first-header .dropdown-menu li {
    width: auto;
}
.first-header .dropdown-menu li a {
    color: #fff;
    padding: 10px 18px;
    border-radius: 9px;
    width: 100%;
    display: block;
    transition: background 0.2s, color 0.2s;
    white-space: normal;
    word-break: break-word;
    box-sizing: border-box;
}
.first-header .dropdown-menu li a:hover {
    color: #0a3659;
    background: #fff;
}
/* Second header for category nav */
.second-header, .second-header .navbar-nav {
    background-color: #fff;
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 3px 0 2px 0;
    box-shadow: 0 1px 8px #eee;
}
.second-header a {
    padding: 5px 18px;
    margin: 2px 2px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 15px;
    border: none;
    color: #053259;
    background: transparent;
    box-shadow: 0 1px 4px rgba(5,50,89,0.06);
    transition: all 0.17s cubic-bezier(.77,1.67,.55,.93);
}
.second-header .navbar-nav .nav-item a:hover,
.second-header .navbar-nav .nav-item .active {
    color: #fff;
    background: #053259;
    box-shadow: 0 6px 16px rgba(10,54,89,.11);
}
.collapse {
    height: auto;
}
.live {
    color: #1be110;
    font-weight: bold;
    letter-spacing: 1.2px;
}
.live .animation {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,#099a13 50%,rgba(9,154,19,0) 100%);
    border-radius: 2px;
    animation: liveBar 1s linear infinite alternate;
}
@keyframes liveBar {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.title {
    cursor: pointer;
    font-weight: 700;
}
/* ---------- Footer ---------- */
.whitefoter {
    width: 100%;
    padding: 0.7rem 2rem;
    color: #fff;
    background: linear-gradient(90deg,#0a3659 0%,#053259 100%);
    box-shadow: 0 0px 4px 4px #0532593a;
    text-align: center;
    font-size: 1.18rem;
    letter-spacing: 0.03em;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.whitefoter nav ul {
    float: right;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    display: flex;
    align-items: center;
}
ul li {
    float: left;
    /* display: flex; */
    align-items: center;
    margin: 2px 8px;
    background: none;
    padding: 3px 0;
    border-radius: 7px;
    transition: background 0.16s;
}
li a {
    color: #fff;
    text-decoration: none;
    padding: 3px 14px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
li a:hover {
    background: #fff;
    color: #053259;
}
li span .fa {
    margin: 0 5px 0 0;
    color: #fff;
}

/* ---------- Scoreboard table styling ---------- */
.scoreboard {
    background: #f8fafd;
    border-radius: 14px;
    margin-bottom: 2.5rem;
    padding: 12px 0 0 0;
    box-shadow: 0 2px 16px rgba(10,54,89,0.08);
    height: auto;
}
.scoreboard .card-body {
    padding: 16px 20px 15px 20px;
}
.scoreboard h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #0a3659;
    letter-spacing: 0.01em;
}
.scoreboard h4 {
    font-size: 1.18rem;
    padding: 0.2rem 0 0.65rem 0;
    margin: 14px 0 8px 0;
    text-align: left;
    color: #0b4f6c;
    border-left: 4px solid #053259;
    padding-left: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    background: #f3f7fc;
    border-radius: 8px 0 0 8px;
}
.scoreboard h4 span {
    font-weight: 400;
    font-size: 1rem;
    white-space: nowrap;
    margin-left: 18px;
    text-align: right;
    display: inline-block;
}
.scoreboard table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px 0 rgba(5,50,97,0.06);
    table-layout: auto;
}
.scoreboard table .th1 {
    text-align: left;
}
.scoreboard table th {
    background: linear-gradient(90deg, #053259 70%, #0a3659 100%);
    color: #fff;
    font-weight: 600;
    padding: 12px 10px;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 0.02em;
    border: none;
}
.scoreboard table th:first-child {
    border-top-left-radius: 10px;
}
.scoreboard table th:last-child {
    border-top-right-radius: 10px;
}
.scoreboard table td {
    padding: 11px 9px;
    font-size: 0.98rem;
    text-align: center;
    border-bottom: 1px solid #e9ecf2;
    vertical-align: middle;
    background: transparent;
    transition: background 0.18s;
}
.scoreboard table tr:nth-child(even) td {
    background: #f0f4fa;
}
.scoreboard table tr:hover td {
    background: #e5f1fa;
}
.scoreboard table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #0a3659;
}

/* ---------- Responsive styles ---------- */
@media (max-width: 1200px) {
    .main-section {
        padding: 1.5rem 0.6rem;
        max-width: 100%;
    }
    .whitefoter {
        padding: 0.8rem 0.9rem;
        font-size: 1rem;
    }
}
@media (max-width: 992px) {
    .first-header .dropdown-menu {
        /* min-width: 140px;
        max-width: 94vw; */
        font-size: 0.96rem;
        max-height: 46vh;
    }
    .first-header .navbar-nav,
    .second-header .navbar-nav {
        flex-direction: row;
        width: 100%;
        flex-wrap: wrap;
        gap: 4px;
        align-items: center;
        justify-content: flex-start;
        padding-bottom: 0;
        overflow-x: auto;
        scrollbar-width: thin;
    }
    .first-header .navbar-nav .nav-item a,
    .second-header .navbar-nav .nav-item a {
        font-size: 0.94rem;
        padding: 7px 7px;
        margin: 2px 2px;
        border-radius: 14px;
        min-width: 42px;
        text-align: center;
    }
    .main-section {
        padding: 1rem 0.2rem;
    }
    .scoreboard {
        margin: 12px 4px 36px 4px;
    }
    .first-header .navbar-nav .nav-item a {
        padding: 9px 12px;
        font-size: 0.99rem;
    }
    .second-header a {
        padding: 4px 9px;
        font-size: 0.98rem;
    }
    .scoreboard h3, .scoreboard h4 {
        font-size: 1rem;
    }
    .scoreboard table th,
    .scoreboard table td {
        font-size: 0.95rem;
        padding: 7px 4px;
    }
}
@media (max-width: 800px) {
    .scoreboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .score-line {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 1em;
        background: rgba(13, 100, 181, 0.19);
        color: #093158;
        text-align: left;
    }
    .score-header-content {
        width: 100%;
    }
}
@media (max-width: 767px) {
    .main-section {
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 1rem 0 .5rem 0;
        margin: 0;
        width: 100%;
        max-width: 100vw;
    }
    .header-bar,
    .first-header,
    .second-header {
        border-radius: 0 !important;
        box-shadow: none !important;
        width: 100%;
        min-width: 0;
    }
    .scoreboard {
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 0 1.5rem 0;
        padding: 3px 1px 0 1px;
        width: 100vw;
        overflow-x: auto;
    }
    .scoreboard .card-body {
        padding: 7px 3px 4px 3px;
    }
    .scoreboard table {
        font-size: 1rem;
        border-radius: 0 !important;
        min-width: 400px;
        width: 100%;
        overflow-x: auto;
    }
    .scoreboard table th,
    .scoreboard table td {
        font-size: 0.93rem;
        padding: 5px 2px;
        word-break: break-word;
    }
    .scoreboard h4 {
        padding-left: 7px;
        font-size: 1.05rem;
        min-height: 36px;
    }
    .first-header .navbar-nav,
    .second-header .navbar-nav {
        flex-direction: row;
        width: 100%;
        flex-wrap: wrap;
        gap: 4px;
        align-items: center;
        justify-content: flex-start;
        padding-bottom: 0;
        overflow-x: auto;
        scrollbar-width: thin;
    }
    .first-header .navbar-nav .nav-item a,
    .second-header .navbar-nav .nav-item a {
        font-size: 0.94rem;
        padding: 7px 7px;
        margin: 2px 2px;
        border-radius: 14px;
        min-width: 42px;
        text-align: center;
    }
    .whitefoter {
        font-size: 0.93rem;
        padding: 0.5rem 0.3rem;
        border-radius: 0 !important;
        text-align: center;
        width: 100vw;
    }
    .first-header .dropdown-menu {
        /* min-width: 90vw;
        max-width: 98vw; */
        left: 0;
        right: 0;
        margin: 0 auto;
        font-size: 0.92rem;
        border-radius: 9px;
        max-height: 38vh;
        top: calc(100% + 5px);
        z-index: 1050;
    }
    .first-header .dropdown-menu li a {
        padding: 7px 14px;
    }
    .first-header .navbar-nav .nav-item.open > .dropdown-menu,
    .first-header .navbar-nav .nav-item.show > .dropdown-menu {
        display: block;
    }
    .first-header .dropdown-menu {
        /* min-width: 80vw;
        max-width: 90vw; */
        left: 0;
        right: 0;
        margin: 0 auto;
        font-size: 0.93rem;
        border-radius: 9px;
        max-height: 39vh;
        top: calc(100% + 5px);
    }
    .scoreboard table td, .scoreboard table th {
        white-space: normal !important;
        word-break: break-word !important;
    }
}
@media (max-width: 700px) {
    .summary-table {
        min-width: 480px;
    }
    .scoreboard-header,
    .card-body {
        padding: 10px !important;
    }
}
@media (max-width: 576px) and (min-width: 250px) {
    .main-section {
        padding: 0.6rem 0rem;
        width: 100vw;
    }
    .scoreboard {
        min-height: 100px;
        padding: 0;
        width: 100vw;
        overflow-x: auto;
    }
    .scoreboard table th,
    .scoreboard table td {
        font-size: 0.81rem;
        padding: 3px 1px;
    }
    .scoreboard h3 {
        font-size: 0.98rem;
    }
    .scoreboard h4 {
        font-size: 0.97rem;
        padding-left: 6px;
    }
    .scoreboard h4 span {
        font-size: 0.82rem;
        margin-left: 6px;
    }
    .first-header .navbar-nav .nav-item a,
    .second-header .navbar-nav .nav-item a {
        font-size: 0.86rem;
        padding: 6px 5px;
        margin: 2px 1px;
    }
    .first-header .dropdown-menu {
        /* min-width: 70vw;
        max-width: 100vw; */
        font-size: 0.89rem;
        border-radius: 7px;
        top: calc(100% + 3px);
        max-height: 27vh;
    }
    .first-header .dropdown-menu li a {
        padding: 7px 10px;
    }
    .whitefoter {
        font-size: 0.91rem;
        padding: 0.4rem 0.1rem;
    }
    .hide-on-mobile {
        display: none !important;
    }
}
@media (max-width: 480px) {
    .first-header .dropdown-menu {
        /* min-width: 75vw;
        max-width: 80vw; */
        font-size: 0.90rem;
        left: 0;
        right: 0;
        margin: 0 auto;
        border-radius: 7px;
        padding: 6px 0;
        max-height: 33vh;
    }
}
/* point table css end */