html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.scroll-wrapper {
    position: relative;
    width: 100%;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
}

    .scroll-btn.left {
        left: 0;
    }

    .scroll-btn.right {
        right: 0;
    }

.card-container {
    /*    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 10px 10px;
    scroll-behavior: smooth;
    grid-auto-flow: column;*/
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* adjust card width */
    overflow-x: auto;
    gap: 16px;
    padding: 10px;
}

    .card-container::-webkit-scrollbar {
        display: none;
    }


.card {
    position: relative;
    background: #fff !important;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px;
    flex: 0 0 calc((100% - 32px) / 3); /* show 3 cards at a time, considering 2 gaps */
    min-width: 250px;
    border: 1px solid rgb(185 185 185);
    border-radius: .25rem
}

    .card h4 {
        margin: 0 0 10px 0;
        font-size: 14px;
        color: gray;
        display: flex;
        padding-top: 2px;
        /*        width: 321px;*/
        justify-content: space-between;
    }

span.series-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 85%;
    display: inline-block;
    color: #0196cf;
}

span.match-format {
    display: inline-block;
    min-width: 35px;
    padding: 2px 2px;
    border-radius: 3px;
    margin-left: 6px;
    font-size: 11px;
    text-align: center;
    margin-top: 5px;
}

    span.match-format.t20 {
        color: #fff;
        background: #464646;
    }

    span.match-format.test {
        color: #fff;
        background: #e90b37;
    }

    span.match-format.odi {
        color: #fff;
        background: #0579bc;
    }

    span.match-format.t10 {
        color: #fff;
        background: #e05b03;
    }

    span.match-format.closed {
        color: #fff;
        background: red;
    }

.match-info {
    margin-bottom: 10px;
    color: #fff;
    font-size: 18px;
}

.team {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    color: #000000;
    font-size: 13px;
    font-weight: 600;
}

.time-detail {
    color: #e05b03;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
}

.team img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.highlight {
    color: red;
    font-size: 13px;
}

.footer {
    margin-top: 0px;
    border-top: 1px solid #b0b0b0;
    padding-top: 10px;
    font-size: 11px;
    display: flex;
    justify-content: end;
    color: gray;
    gap: 8px;
}

.left-news-section {
    background: #fff;
    padding: 12px 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
}

.middle-news-section {
    background: #fff;
    padding: 12px 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
}

    .middle-news-section img {
        width: 100%;
    }

.right-news-section {
    background: #fff;
    padding: 12px 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
}

    .right-news-section img {
        width: 100%;
        margin-bottom: 15px
    }


/*match detail*/
.match-summary798 {
    max-width: 800px;
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(to bottom, #028f52, #014d29);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.match-detail-section .panel-default {
    border-color: #ddd;
}

.match-detail-section .panel {
    max-width: 800px;
    margin: 20px auto;
    margin-bottom: 20px;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
    color: #333;
}

.match-detail-section .panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    color: #ffffff;
    background-color: #0c91c2;
    background-image: url(../images/header.png);
    background-blend-mode: overlay;
    border-color: #ddd;
    font-size: 17px;
    font-weight: 600;
    text-transform: capitalize;
}

.match-detail-section .panel-body {
    padding: 0px;
}

.summary {
    padding: 10px
}

    .summary h3 {
        color: #fff;
        font-size: 24px
    }

    .summary p {
        color: #fff;
        font-size: 16px
    }

.tabs-section table tbody tr td {
    font-size: 15px;
    white-space: nowrap
}
/*.tabs-section table tbody tr td:nth-child(1) {
    width:150px
}*/
.tabs-section .nav-tabs-container {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

    .tabs-section .nav-tabs-container::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

.tabs-section .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin-bottom: 0px;
    border: none;
    background: aliceblue;
}

    .tabs-section .nav-tabs li {
        flex: 0 0 auto;
    }

    .tabs-section .nav-tabs a {
        display: inline-block;
        padding: 8px 10px;
        text-decoration: none;
        background: linear-gradient(45deg, black, #084298);
        border: 1px solid #ccc;
        margin-right: 0px;
        border-radius: 0px;
        white-space: nowrap;
        color: #fff;
        font-size: 14px;
    }

        .tabs-section .nav-tabs a:hover {
            color: #000;
            background: linear-gradient(180deg, #03a9db, #0dcaf0, #03a9db);
        }

    .tabs-section .nav-tabs li.active a {
        background: orange;
        color: #000;
        text-shadow: none;
        border-bottom: 2px solid #007bff;
    }

.team-btn {
    margin: 10px
}

    .team-btn .btn {
        background: #ffffff;
        border-radius: 3px;
        padding: 4px 19px;
        font-size: 15px;
        font-weight: 400;
        color: #000000;
        position: relative;
        text-transform: capitalize;
        border: 1px solid #fff;
    }

        .team-btn .btn:focus {
            color: #fff;
            background-color: #ffc20e;
            border-color: #ffc20e;
            box-shadow: none;
            outline: none !important;
            color: #000;
        }

        .team-btn .btn:hover {
            color: #fff;
            background: linear-gradient(180deg, #03a9db, #0dcaf0, #03a9db) !important;
            border-color: none;
            box-shadow: none;
            outline: none !important;
            color: #000;
        }

.tabs-section .tab-content {
    border: 1px solid #ccc;
    padding: 0px;
    border-radius: 0px;
}

.tab-pane {
    display: none;
}

    .tab-pane.active {
        display: block;
    }

.nav-btn.active {
    color: #000 !important;
    background: linear-gradient(180deg, #03a9db, #0dcaf0, #03a9db) !important;
}

.tabs-section .tab-content .tab-pane img {
    width: 25px;
    height: 25px;
    border-radius: 2px;
    margin-right: 10px;
}
/*.tabs-section .tab-content .tab-pane h3 {
    font-size: 20px;
    margin-bottom: 10px;
}*/

/*list*/
.commentary-card {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    padding: 50px 20px;
}

.match {
    background: #0e1821;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #515151;
    position: relative;
}
.live-badge {
    position: absolute;
    top: 10px;
    right: 43%;
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    color: #fff;
    border-radius: 0.25rem;
    background: #198754;
    color: #fff;
}
.upcoming-badge {
    position: absolute;
    top: 10px;
    right: 36%;
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    color: #fff;
    border-radius: 0.25rem;
    background-color: #ffc107;
    color: #000 !important;
}

/*.match {
    background: #0044ff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}*/

.date {
    font-weight: bold;
    color: #eec511;
    margin-bottom: 2px;
    font-size: 12px;
}

.teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    width: 100%;
    margin-top: 15px;
}

.team-section {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    flex-direction: column;
    width: 38%;
}

.vs-team {
    width: 15%;
}

.team-section img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.team-logo {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    padding: 6px;
    text-align: center;
}

.team-name {
    font-size: 19px;
    color: #eca40d;
    font-weight: 500;
}

.venue {
    font-size: 13px;
    color: #03b0df;
}

.hidden-match {
    display: none;
}

/*scorecard*/

.points-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    /*    background: #1b263b;*/
    border-radius: 0px;
    overflow: hidden;
}

    .points-table caption {
        background: #0d6efd;
        font-size: 20px;
        font-weight: bold;
        padding: 10px;
    }

    .points-table th,
    .points-table td {
        padding: 8px 12px;
        border-bottom: 1px solid #444;
        text-align: left;
        color: #fff
    }

    .points-table th {
        background: #162447;
        font-size: 14px;
        text-align: left;
        color: #fff
    }

    .points-table tr:nth-child(odd) {
        background: linear-gradient(45deg, #000000, transparent,#000000);
    }

    .points-table tr:nth-child(even) {
        background: linear-gradient(45deg, #03acdeb0, transparent, #03acdeb0);
    }

    .points-table tr:first-child td {
        background: #000000;
        font-weight: bold;
        text-align: left;
        color: #ffffff;
    }

.highlight {
    color: #00ffea;
    font-weight: bold;
}

.note {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #ccc;
}

h3.score-head {
    margin: 0;
    font-size: 18px;
    padding: 5px 10px;
    background: darkgoldenrod;
    color: #ffffff;
}

h3.bowler-head {
    margin: 0;
    font-size: 18px;
    padding: 5px 10px;
    background: darkgoldenrod;
    color: #ffffff;
}

    h3.bowler-head small {
        font-size: 14px;
        margin-left: 20px;
    }

.no-data {
    text-align: center;
    font-size: 18px;
    padding: 10px;
    color: #fff
}

h3.partner-head {
    margin: 0;
    font-size: 18px;
    padding: 5px 10px;
    background: darkgoldenrod;
    color: #ffffff;
}

h3.fall-head {
    margin: 0;
    font-size: 18px;
    padding: 5px 10px;
    background: darkgoldenrod;
    color: #ffffff;
}


.scorecard th, .scorecard td {
    padding: 8px 12px;
    border: 1px solid #ddd;
}

.scorecard th {
    background-color: #e0f0ff;
    text-align: left;
}

.over-header {
    background-color: #cce6ff;
    font-weight: bold;
}

.ball {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    margin-right: 5px;
    color: #fff;
    font-weight: bold;
}

.dot {
    background-color: #b0b0b0;
    color: #fff;
}

.single {
    background-color: #d0d0d0;
    color: #000;
}

.four {
    background-color: #28a745;
    color: #fff;
}

.six {
    background-color: #7a41d8;
    color: #fff;
}

.wicket {
    background: #e44242;
    color: #fff;
}



.scorecard-head {
    padding: 5px 8px;
    background: #092843;
    background-image: url(../images/header.png);
    background-blend-mode: overlay;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

    .scorecard-head .team {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 2px 0;
    }

        .scorecard-head .team:last-child {
            border-bottom: none;
        }

    .scorecard-head .team-info {
        display: flex;
        align-items: center;
    }

    .scorecard-head .team-logo {
        width: 40px;
        height: 40px;
        margin-right: 10px;
        background: none;
        border: 1px solid gold;
        padding: 0;
    }

    .scorecard-head .team-name {
        font-weight: bold;
        font-size: 20px;
        color: #ffffff;
    }

    .scorecard-head .team-score {
        font-size: 1.2rem;
        font-weight: bold;
        color: #fff;
    }

    .scorecard-head.match-info {
        margin-top: 15px;
        font-size: 0.9rem;
        color: #555;
        text-align: left;
    }
.no-matches {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #888;
}
.inning-commentary .card {
    padding: 0;
    background: #fff;
    border-radius: 0;
    border: 1px solid #d5d5d5;
}
.inning-commentary .card-header {
    background: #36788bdb;
    padding: 5px 8px;
    border-radius: 0 !important;
}
.inning-commentary .card-header p {
    color:#fff
}
.inning-commentary .completed-box{
    background:#ddd
}
.inning-commentary .comm-title {
    font-size: 13px;
    font-weight: 500;
    color: #181818;
}
.inning-commentary .comm-description {
    font-size: 16px;
    line-height: 25px;
    color: #4a4a4a;
}
.tab-content .no-commentary {
    text-align: center;
    color: #fff;
    padding: 10px 5px;
}
/*Series*/
.series-list {
    background: #fff;
    padding: 0px 0px;
}
.series-list .card-body{
    padding: 0rem 0rem;
}
.series-list table{
    margin-bottom:0
}
.series-list table thead tr th{
    border:1px solid #a1a1a1;
    background: #efefc2;
}
.series-list table tbody tr td{
    border:1px solid #a1a1a1;
    font-family: tahoma;
}
.series-list table tbody tr td span.series-info {
    font-size: 15px;
    font-weight: 600;
    color: #074196;
}
.series-list table tbody tr td small {
    color: #000;
}

@media (max-width: 480px) {
    .scorecard-head .team-name {
        font-size: 0.9rem;
    }

    .scorecard-head .team-score {
        font-size: 1rem;
    }
}


.match-summary {
    max-width: 800px;
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(to bottom, #028f52, #014d29);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.header {
    padding: 20px;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
}
