.lr-content {
    text-align: center;
}

.lr-content .arrow {
    width: 40px;
    height: 20px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer
}

.lr-content .arrow.arrow-left:before {
    content: "<"
}

.lr-content .arrow.arrow-right:before {
    content: ">"
}

.lr-content .content {
    width: 200px;
    font-weight: bold;
    margin-top: 10px;
}

.lr-wrapper {
    overflow: hidden;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -3px;
    padding-bottom: 15px;
}

a.viewCourtBtn.close {
    position: absolute;
    bottom: 0;
    left: calc(50% - 50px);
    background: #0000009e;
    z-index: 10000;
    color: white;
    opacity: 1;
    font-size: 14px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.match-box {
    padding-left: 3px;
    padding-right: 3px;
    margin-top: 8px;
    max-width: 320px;
    -webkit-flex-basis: 320px;
    flex-basis: 320px;
    -webkit-flex-grow: 1;
    flex-grow: 1;
}

.match-box .header {
    font-weight: bold;
    line-height: 20px;
    text-align: center;
    background: #828282 !important;
    color: #fff;
    font-family: arial;
    font-size: 12px;
}

.match-box .match {
    border: 1px solid #ddd;
    margin-top: 8px;
    overflow: hidden;
}

.match table {
    width: 100%;
    font-size: 12px;
}

.match table tr {
    border-bottom: 1px solid #d1d1d1;
    background: #f7f7f7;
    height: 33px;
}

.match table tr:first-child {
    background: #f5f5f5;
}

.match table tr>td {
    vertical-align: middle;
    text-align: center;
}

.match table tr>td.row-no {
    line-height: 69px;
    background: #828282;
    width: 15px;
    border-color: #828282;
}

.match table tr>td.team {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding-left: 23px;
    max-width: 100%;
    font-size: 12px;
    line-height: 11px;
    text-decoration: none;
    text-align: left;
    color: inherit;
}

.live-matches table.table tr > th,
.live-matches table.table tr > td {
    vertical-align: middle;
}

.canvasLoader {
    position: absolute;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0; */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    color: #000;

    /* light shimmer */
    background: linear-gradient(90deg, #ffffff 0%, #dcecff 40%, #ffffff 80%);
    background-size: 200% 100%;
    animation: placeHolderShimmer 1.6s linear infinite;
}

/* optional center text style */
.canvasLoader .loaderText {
    display: inline-block;
    width: 120px;
}

@keyframes placeHolderShimmer {
    0% {
        background-position: -30vw 0
    }

    100% {
        background-position: 30vw 0
    }
}


.loaderText::after {
    content: "";
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0% {
        content: "";
    }

    33% {
        content: ".";
    }

    66% {
        content: "..";
    }

    100% {
        content: "...";
    }
}


.match table tr>td.team.winner {
    font-weight: bold;
}

.match table tr>td.team.winner:after {
    content: "\f00c";
    font: normal normal normal 14px/1 FontAwesome;
    color: #007bff;
    margin-left: 2.5px;
}

.match table tr>td.result {
    border-left: 1px solid #d1d1d1;
    width: 25px;
    min-width: 25px;
    font-size: 12px;
}

.match table tr>td.gamescore {
    width: 21px;
    min-width: 21px;
    border-left: 1px solid #d1d1d1;
    background: #60738b;
}

.match .stades {
    padding-left: 15px;
    padding-right: 21px;
    font-size: 11px;
}

.match .stades div {
    line-height: 22px;
    position: relative;
}

.stades span.complete {
    padding: 0 5px;
    text-transform: uppercase;
    background-color: rgba(220, 53, 69, 0.7);
    margin-left: 5px;
    display: inline-block;
    color: #fff;
}

.stades i.arrow-down {
    position: absolute;
    right: -21px;
    width: 21px;
    padding: 6px 0px;
    text-align: center;
}

.count-down {
    position: absolute;
    right: 0;
    color: #f00;
    font-size: 12px;
    font-style: italic;
}




#board {
    position: relative;
    background: #063;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    overflow: hidden;
    max-width: 600px
}

canvas {
    height: 100% !important;
}

#courtCanvas {
    display: block;
    width: 100%;
    height: auto
}

.legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0 6px 0;
    font-size: 13px;
    opacity: .9
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px
}

.note {
    font-size: 12px;
    opacity: .75;
    text-align: center;
    margin-top: 6px
}

.leftline {
    position: absolute;
    height: 2px;
    width: 14px;
    background: white;
    top: 50%;
    left: 23px;
}

.rightline {
    position: absolute;
    height: 2px;
    width: 14px;
    background: white;
    top: 50%;
    right: 23px;
}

.courtWrapper {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden
}

.text_message,
.status_message {
    position: absolute;
    z-index: 1;
    color: white;
    text-align: center;
    width: 100%;
}

:root {
    --bg: #f9fafb;
    --card: #ffffff;
    --muted: #6b7280;
    --accent: #3b82f6;
    --good: #22c55e;
    --border: #e5e7eb;
    --purple: #531375;
    --yellow: #ffc107;
}

#livescoretab .card {
    margin: auto;
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    overflow: hidden
}



#livescoretab .card-header {

    color: #fff;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 14px
}

.card-header.male {
    background: var(--accent);
    border-color: var(--accent);
}

.card-header.female {
    background: var(--purple);
    border-color: var(--purple);
}

.card-header.mixed {
    background: var(--yellow);
    border-color: var(--yellow);
}

#livescoretab .card-header .d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


#livescoretab .card-block {
    padding: 10px
}


#livescoretab table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px
}

#livescoretab thead th:not(.stats-table thead th) {
    background: #f3f4f6;
    color: var(--muted);
    font-size: 11px;
    padding: 6px;
    font-weight: 600;
    text-transform: uppercase
}

#livescoretab tbody td {
    padding: 6px;
    font-size: 13px;
    border-top: 1px solid var(--border)
}

#livescoretab table.table tr > th,
#livescoretab table.table tr > td {
    vertical-align: middle;
}

#livescoretab .font-weight-bold {
    font-weight: 600
}

#livescoretab .status_message,
#livescoretab .text_message {
    font-size: 13px;
    color: #ffffff;
    margin: 6px 0;
    background: #0c6a44;
}


#livescoretab .viewCourtBtn {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 12px;
    color: #374151;
    text-decoration: none;
    background: #f9fafb;
    margin-bottom: 5px;
}

#livescoretab .viewCourtBtn.close {
    float: right;
    margin-bottom: 6px;
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca
}

/* #livescoretab #mstatus-1 {
    background: var(--good);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700
} */
#livescoretab .text-success.live,
.live-score .text-success.live {
    position: relative;
}
#livescoretab .text-success.live::before,
.live-score .text-success.live::before {
    content: "";
    display: block;
	position: absolute;
	top: 4px;
	left: 5px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #198754;
	cursor: pointer;
	box-shadow: 0 0 0 rgba(20, 108, 67, .9);
    animation: pulse 2s infinite;
	animation-duration: .9s;
	animation-iteration-count: infinite;
	animation-timing-function: ease-out;
}
@keyframes pulse {
	0% {
		-moz-box-shadow: 0 0 0 0 rgba(20, 108, 67, .9);
		box-shadow: 0 0 0 0 rgba(20, 108, 67, .7)
	}
	70% {
		-moz-box-shadow: 0 0 0 10px transparent;
		box-shadow: 0 0 0 10px transparent
	}
	100% {
		-moz-box-shadow: 0 0 0 0 transparent;
		box-shadow: 0 0 0 0 transparent
	}
}

.live-score .service-width {
    border-width: 6px !important
}
.live-score .winner {
    font-weight: bolder
}
.live-score .winner:after {
    content: "\f00c";
    font: normal normal normal 14px/1 FontAwesome;
    color: #007bff;
    margin-left: 5px
}

body.modal-open {
    overflow: auto;
}

body.modal-open .animated {
    /* transform: none!important; */
    animation: none;
}

.stats-modal.modal {
    z-index: 10000000000;
    top: 10%;
    position: fixed;
}


.stats-modal.modal.show .modal-dialog {
    width: 700px;
    max-width: 100%;
}

.scoreboard {
    width: 620px;
    margin: auto;
    color: white;
    position: relative;
    box-sizing: border-box;
}

a.stats img {
    position: absolute;
    right: 0;
    top: -20px;
    height: 30px;
    width: 30px;
}

.timer {
    position: absolute;
    top: -20px;
    left: 70px;
    background: #003366;
    padding: 0px 15px;
    font-size: 19px;
    font-weight: bold;
    color: #ffd700;
    border-radius: 6px 6px 0 0;
    width: 110px;
    text-align: center;
}

.message {
    position: absolute;
    background: #000000;
    top: 62px;
    left: 71px;
    padding: 2px 10px;
    border-radius: 5px;
    width: calc(100% - 71px);
    font-size: 16px;
}

.player-row {
    display: flex;
    align-items: center;
    padding: 0px 5px;
    position: relative;
    flex: 1;
}

.player1 {
    margin-bottom: 15px;
}

.player1,
.player2 {
    display: flex;
    align-items: center;
}

.player1 .player-row {
    background: #8000b0;
}

.player2 .player-row {
    background: #005020;
}

.player1 .player-img img {
    border: 3px solid #8000b0;
}

.player2 .player-img img {
    border: 3px solid #005020;
}

.player-img img {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    border: 2px solid #fff;
    object-fit: cover;
}

.player-img {
    margin-right: 0px;
}

.player-details {
    flex: 1;
}

.player-details>div {
    flex-direction: column;
}



.player-name {
    font-size: 24px;
    font-weight: bold;
    width: 300px;
    /* line-height: 30px; */
    white-space: nowrap;
    overflow: hidden;
    /* text-overflow: ellipsis; */
}

.player-details.dbl_players .player-name {
    font-size: 18px;
    line-height: 20px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 16px;
    /* margin-top: 2px; */
    flex-direction: column;
}

.flag {
    width: 32px;
    height: 21px;
    object-fit: contain;
    /* border: 1px solid #ccc; */
}

.rank {
    /* background: #fff; */
    color: #ffffff;
    padding: 0px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 3px;
    height: 12px;
    line-height: 18px;
}

.side>img {
    height: 25px;
    margin-top: 9px;
}

.player-details {
    flex: 1;
    display: flex;
    /* gap: 10px; */
}

.serve-dot {
    width: 10px;
    height: 10px;
    background: #ffd700;
    border-radius: 50%;
    display: inline-block;
}

.score-box {
    width: 50px;
    height: 50px;
    font-size: 26px;
    margin-right: 5px;

}

.sets-box {
    height: 40px;
    width: 40px;
    font-size: 20px;
    margin-left: 2px;
}

.score-box,
.sets-box {
    background: #000;
    color: #fff;
    /* padding: 6px 12px; */
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sets-label {
    position: absolute;
    right: 75px;
    top: -17px;
    background: #0077ff;
    padding: 2px 8px;
    font-size: 16px;
    font-weight: bold;
    color: #ffd700;
    border-radius: 4px;
    z-index: 1;
}

.tournament-bar {
    background: #003366;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border-radius: 0 0 6px 6px;
    width: calc(100% - 130px);
    margin-left: 70px;
    margin-top: -10px;
    padding: 0 10px;
}

/* Stats modal */
.stats-subheader {
    background: #0066ff;
    color: white !important;
    font-weight: bold;
    padding: 5px;
    width: 270px;
    border-radius: 0px 0px 20px 20px;
    margin: -15px auto 0px auto;
    font-size: 14px;
    text-align: center;
}

.player_name_score {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.player_name_score strong.player_two {
    text-align: left;
}

.player_name_score strong.player_one {
    text-align: right;
}

.player_name_score strong {
    display: block;
    width: calc(50% - 30px);
}

.statData {
    padding: 0 15px;
}

.player-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e2edf4;
    padding: 15px;
    margin-bottom: 20px;
}

.player-section * {
    color: rgb(0, 0, 0);
}

.player_name_score span.vs {
    background: #1266f1;
    color: white !important;
    font-size: 17px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    margin: 0px 10px;
}

.player-section * {
    color: #000000;
}

.player-section div {
    flex: 1;
}

.player-section .score {
    font-size: 28px;
    font-weight: 700;
    color: #1e40af;
    text-align: center;
}

.modal-title {
    /* display: none; */
}

.modal-header .btn-close {
    font-size: 16px;
    /* filter: invert(1); */
}

.btn {
    font-size: 14px !important;
}

.player-section strong {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.player-section .fa-check {
    color: #10b981;
    margin-left: 8px;
}

.border-0 {
    border-width: 0 !important;
}

.progressbar {
    display: flex;
    max-width: 100%;
    left: 0;
    z-index: 0;
    align-items: center;
    min-width: 100%;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 10px;
}

/*
.progressbar > div {
  width: 50%;
  border-radius: 10px;
} */

.progressbar div {
    height: 5px;
    background: rgba(25, 175, 117, 0.5);
    margin-right: auto;
    width: 0%;
    transition: all 0.5s;
}

/* .progressbar > div:first-child > div {
  height: 5px;
  background: rgba(59, 36, 191, 0.5);
  margin-left: auto;
} */
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.tab-button {
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tab-button.active {
    background-color: #1e40af;
    color: #ffffff;
    transform: scale(1.05);
}

.tab-button:not(.active) {
    background-color: #e5e7eb;
    color: #1e40af;
}

.tab-button:hover:not(.active) {
    background-color: #dbeafe;
    color: #1e3a8a;
}

.stats-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 14px !important;
}

.stats-table thead {
    margin-bottom: -30px;
    width: 100%;
    display: flex;
    margin-bottom: -30px;
}

.stats-table thead>tr {
    background: #2a579a;
    padding: 0px 8px;
}

.stats-table thead th {
    padding: 30px 5px 30px 5px;
    padding-top: 20px;
    color: white;
    width: 33.3%;
    border-width: 0px !important;
    font-weight: 700;
    background: transparent !important;
}

.stats-table tbody {
    font-weight: 300;
    width: calc(100% - 30px);
    display: table;
    margin-left: 15px;
}

.stats-table tr {
    border-width: 0px !important;
    transition: all 0.3s ease;
    border: 1px solid #d6d6d6 !important;
    margin-bottom: 7px;
    width: 100%;
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.stats-table tr td:not(.stats-table tr td:last-child) {
    position: relative;
    z-index: 1;
}

.stats-table tbody tr:hover {
    background-color: #e7f3ff;
}

.stats-table td:not(.stats-table td:first-child) {
    text-align: center;
}

.stats-table td:nth-child(1)>span {
    width: 100%;
    text-align: left;
    font-weight: bold;
    padding: 0px 8px;
}

.stats-table td:nth-child(2) {
    /* text-align: center; */
    /* font-weight: 500; */
    /* color: #000000; */
    /* flex: 1; */
}

.stats-table td:nth-child(3) {
    /* text-align: right; */
}

.stats-table td {
    width: 33.3%;
    border-width: 0px !important;
    padding: 5px;
    color: #000000;
    /* display: flex; */
    /* gap: 5px; */
    /* align-items: center; */
    /* justify-content: center; */
}

.stats-table td>span {
    display: inline-block;
    padding: 0px 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    margin: 3px;
    font-size: 11px;
    font-weight: bold;
}

.stats-table td>span.border-none {
    border: 0;
}

.hidden {
    display: none;
}

@media(max-width: 767px) {
    body {
        font-size: 70%;
    }
    .match-box {
        max-width: 100%;
    }

    .count-down {
        position: initial
    }
}
