.d-flex {
    display: flex;
} 
.flex-row {
    flex-direction: row;
}
.align-items-center {
    align-items: center;
}
.text-bold {font-weight: bold}

.game-page-item {
    display: flex;
    align-items: center;
    width: 100%;
    flex-direction: column;
}
.game-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: #fff;
    gap: 30px;
}
.game-header-team {
    display: flex;
    flex: 2;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-end;
}
.game-header-team:last-child {
    justify-content: flex-start;
}
.game-header-team > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 190px;
}
.game-header-team img {
    background-color: #fff;
    width: 170px;
    height: 170px;
    padding: 10px;
    border-radius: 15px;
    object-fit: contain;
}
.page-head {
    padding: 30px 0;
    z-index: 1;
}
.page-head .section-title h3 {
    font-size: 28px;
    line-height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}
.game-header-team-name-city {
    height: 100px;
}
.game-header-team-name-city .matches-item-team-city {
    font-size: 14px;
    background-color: #111;
    padding: 5px 7px;
}
.game-header-score {
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.game-header-score-has-penalties {
    padding-bottom: 50px;
}
.game-header-score-nums {
    display: flex;
    flex-direction: row;
    gap: 10px;
    font-weight: bold;
    font-size: 52px;
    justify-content: center;
    align-items: center;
}
.game-header-score-nums span {
    font-size: 100px;
    line-height: 100px;
}
.game-header-score-nums span.game-header-vs {
    font-size: 32px;
    line-height: 32px;
    padding:0 15px;
}
.game-header-score-nums span.game-item-greater-score {
    color: #f19100;
}
.game-item-halftime-score {
    color: #000;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    padding-bottom: 20px;
}
.game-item-halftime-score > span:last-child {
    font-size: 24px;
    font-weight: bold;
}
.game-item-penalties {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    text-transform: uppercase;
    font-size: 16px;
    padding-bottom: 10px;
}
.small-red-card-box, .small-yellow-card-box {
    display: block;
    width: 22px;
    height: 14px;
    margin: 0 auto;
    transform: skew(-15deg);
}
.small-red-card-box {
    background:red;
}
.small-yellow-card-box {
    background:yellow;
}
.game-item-penalties span {
    line-height: normal;
}
.game-item-penalties span:last-child {
    font-size: 20px;
    font-weight: bold;
}
.games-container {
    min-height: 300px;
    padding: 15px 0 60px;
    max-width: 1000px;
    width: 100%;
    min-width: 0;
}
.game-header-datetime {
    display: flex;
    flex-direction: column;
    color: #fff;
    text-align: center;
    padding-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
    gap: 5px;
}
.game-header-datetime p {
    color: #fff;
    margin-bottom: 0;
}
.game-header-datetime p {
    font-size: 24px;
}
.game-header-datetime > div {
    text-transform: uppercase;
    font-weight: 500;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.game-header-datetime > div > div {
    padding: 5px 13px;
    display: block;
}
.game-header-datetime > div > div:first-child {
    background-color: #f19100;
    transform: skew(-10deg);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
.game-header-datetime > div > div:last-child {
    background-color: #111;
    transform: skew(-10deg);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
.game-header-datetime > div div span {
    transform: skew(8deg);
    display: inline-block;
}
.games-item-live-indicator {
    font-size: 18px;
}
.game-not-started {
    padding: 30px 5px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-direction: column;
}
#game-not-started-timer {
    font-size: 24px;
    font-weight: 600;
}
.game-top-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    padding: 0 10px;
}
.game-youtube {
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.game-youtube a {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background-color: #f3f3f3;
    border-radius: 5px;
    color: #000;
    padding: 10px 20px;
}
.game-youtube a:hover {
    background-color:#f19100;
    color: #fff;
}
.game-youtube a:hover i {
    color: #fff;
}
.game-youtube a i {
    transition-duration: 300ms;
    font-size: 20px;
    color: red;
}
.game-location {
    color: #fff;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 16px;
}
.game-location i {
    color: #fff;
    font-size: 18px;
}
.game-top-box {
    background-color: #f3f3f3;
    padding: 12px 30px;
    border-radius: 10px;
    width: 100%;
    text-align: center;
}
.game-top-box p {
    margin-bottom: 0;
    font-size: 16px;
    color: #555;
}
.game-top-box p:last-child {
    padding-top: 5px;
    font-size: 20px;
    font-weight: 500;
    color: #111;
}
.game-stats {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 80px;
}
.game-stats-box {
    flex: 1;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
}
.game-stats-box-team {
    gap: 10px;
    color: #000;
    font-weight: 500;
    font-size: 17px;
    flex: 1;
    line-height: 18px;
}
.game-stats-box-team img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}
.game-stats .game-stats-box:first-child .game-stats-box-team, .game-stats-teams-page-header .game-stats-box-team:first-child {
    flex-direction: row-reverse !important;
}
.game-stats-table {
    display: flex;
    /* justify-content: center; */
}
.game-stats-table, .game-stats-table table {
    width: 100%;
    border-collapse: collapse;
}
.game-stats-table table th {
    background-color: #222;
    color: #fff;
    padding: 5px 10px;
    text-align: center;
    font-size: 17px;
}
.game-stats-table table td {
    color: #000;
    text-align: center;
    font-size: 16px;
    height: 50px;
    padding: 0;
}
.game-stats-table table td.bold-large {
    font-size: 19px;
    font-weight: 500;
}
.game-stats-table table tbody {
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.game-stats-table table thead tr th:first-child {
    border-top-left-radius: 5px;
    padding: 5px 10px;
}
.game-stats-table table thead tr th:last-child {
    border-top-right-radius: 5px;
}
.game-stats-table table tbody tr td:nth-child(1) {
    font-size: 18px;
}
.game-stats-table table thead tr th:nth-child(2),
.game-stats-table table tbody tr td:nth-child(2) {
    text-align: left;
}
.game-stats-table table tbody tr:nth-child(even) {
    background-color: #f3f3f3;
}
.game-stats-table table tbody tr td:nth-child(2) a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    color: #000;
}
.game-stats-table table tbody tr td:nth-child(2) a:hover {
    color:#f19100;
}

.table-player-img {
    overflow: hidden;
    width: 45px;
    min-width: 45px;
    height: 50px;
    border-radius: 5px;
}

.table-player-img img {
    width: 100%;
    object-fit: contain;
    object-position: top center;
    transform: scale(1.1) translateY(1px);
}

.player-img-container {
    position: relative;
    padding: 4px 0;
}
.table-player-img-large {
    position: absolute;
    transform: translateY(-60%);
    left: 105%;
    width: 250px;
    height: auto;
    display: none;
    border-radius: 10px;
    z-index: 10;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background-color: #fff;
}
.table-player-img-large img {
    width: 100%;
}
.table-player-img-large span {
    color: #000;
    padding: 5px 0;
}

.game-stats-box:last-child .game-stats-table th {
    background-color:#f19100;
    color: #fff;
}

.game-pages-tabs-wrap {
    overflow-x: auto;
    padding: 0 10px 15px;
    margin-bottom: 5px;
    margin-top: 50px;
    display: flex;
    justify-content: safe center;
    align-items: center;
}
.game-page-tabs-select {
    background-color: #f1f1f1;
    display: flex;
    flex-direction: row;
    max-width: 700px;
    width: 100%;
    border-radius: 30px;
    position: relative;
}
.game-page-tabs-select .game-page-tabs-item {
    color: #666;
    flex: 1;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 10;
    padding: 12px 0;
    transition-duration: 500ms;
    line-height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.game-page-tabs-moving-select {
    height: 100%;
    position: absolute;
    z-index: 9;
    width: 33.333%;
    left: 0;
    background: linear-gradient(to right, #333, #000);
    padding: 12px 15px;
    border-radius: 5px;
    border-radius: 30px;
    display: inline-block;
    color: #fff;
    transition-duration: 250ms;
}
.game-page-tabs-select span.game-page-tabs-current {
    color: #fff;
}

.game-page-item-teams {
    max-width: 550px;
    width: 100%;
    padding: 0 10px;
}
.game-stats-teams-page-header {
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    gap: 40px;
}
.game-page-teams-stats .team-stats-field-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
}
.game-page-teams-stats .team-stats-field-name p {
    margin: 0;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    flex: 1;
    text-align: center;
}
.game-page-teams-stats .team-stats-field-name span {
    font-weight: 600;
    font-size: 24px;
    width: 30px;
}
.game-page-teams-stats .team-stats-field-name span:first-of-type {
    text-align: left;
}
.game-page-teams-stats .team-stats-field-name span:last-of-type {
    text-align: right;
}
/* Teams stats bars */
.game-page-teams-stats .team-stats-percents {
    width: 100%;
    height: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    gap: 4px;
}
.game-page-teams-stats .team-stats-percents div {
    flex: 1;
    height: 100%;
    background-color: #eee;
    display: flex;
    overflow: hidden;
}
.game-page-teams-stats .team-stats-percents div:first-child {
    justify-content: flex-end;
}
.game-page-teams-stats .team-stats-percents div:last-child {
    justify-content: flex-start;
}
.game-page-teams-stats .team-stats-percents div span {
    transition: transform 1s, background-color 500ms;
    width: 100%;
}
.game-page-teams-stats .team-stats-percents div:first-child span {
    background-color: #222;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    transform: translateX(100%);
}
.game-page-teams-stats .team-stats-percents div:last-child span {
    background-color: #f19100;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    transform: translateX(-100%);
}
.game-page-teams-stats .team-stats-percents div span.greater-percent {
    background-color: #f19100;
}
.game-page-teams-stats .team-stats-percents div span.lesser-percent {
    background-color: #868686;
}
/* .mini-tabs > div.mini-tabs-active {
    background-color: #f19100;
} */

/* Play by play */
.play-by-play-tab {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding-top: 15px;
}
.play-by-play-tab p {
    text-align: center;
}
.play-by-play-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #000;
    flex-direction: row;
    height: 60px;
    position: relative;
}
.play-by-play-item-committer {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 16px;
}
.play-by-play-item-committer-inner {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 0;
}
.play-by-play-item-committer-inner span:not(.play-by-play-action-name) {
    line-height: 16px;
}
.play-by-play-item-away-team, .play-by-play-item-away-team .play-by-play-item-committer, .play-by-play-item-away-team .play-by-play-item-committer-inner {
    flex-direction: row-reverse;
}
.play-by-play-item-separator {
    width: 3px;
    height: 100%;
    background-color: #ddd;
}
.play-by-play-item-line {
    width: 40px;
    height: 3px;
    background-color: #ddd;
}
.play-by-play-action-name {
    background-color: #000;
    color: #fff;
    font-weight: 600;
    border-radius: 20px;
    padding: 4px 8px;
    text-transform: uppercase;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    line-height: 16px;
    text-align: center;
}
.play-by-play-action-name .small-yellow-card-box, .play-by-play-action-name .small-red-card-box  {
    min-width: 12px;
    width: 12px;
    height: 9px;
}
.play-by-play-ball-icon {
    min-width: 16px;
    width: 15px;
    height: 15px;
    color: #fff;
}
.play-by-play-player-num {
    font-size: 16px;
}
.play-by-play-item-away-team .play-by-play-action-name {
    background-color: #f19100;
}
.play-by-play-item-committer .table-player-img {
    width: 35px;
    min-width: 35px;
    height: 40px;
}
.play-by-play-tab > p {
    margin: 10px 0;
    text-transform: uppercase;
    color: #222;
}
.play-by-play-tab:first-child p:first-child {
    margin-top: 0;
}
.play-by-play-goal-result {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #eee;
    border-radius: 14px;
    padding: 2px 8px;
    border: 1px solid #ccc;
    z-index: 5;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
}
.play-by-play-goal-result span {
    width: 10px;
    display: inline-block;
}


/* --- */
@media screen and (min-width: 768px) {
    .player-img-container:hover:not(.table-player-img-large) .table-player-img-large {
        display: flex !important;
    }
}
@media screen and (max-width: 1200px) {
    .game-stats {
        gap: 40px;
    }
}
@media screen and (max-width: 991px) {
    .game-stats {
        flex-direction: column;
        gap: 30px;
    }
    .game-stats-box {
        width: 100%;
    }
    .game-stats-table, .game-stats-table table {
        width: 100%;
    }
    .game-pages-tabs-wrap {
        margin-top: 25px;
        padding: 0 5px 10px;
    }
}
@media screen and (max-width: 767px) {
    .main {
        padding-left: 0;
        padding-right: 0;
    }
    .games-item-live-indicator {
        font-size: 16px;
    }
    .game-header {
        gap: 10px;
        width: 90%;
    }
    .game-header-team, .game-header-team:last-child {
        flex: 1;
        justify-content: center;
    }
    .game-header-team > div {
        width: auto;
    }
    .game-header-team img {
        width: 120px;
        height: 120px;
        padding: 8px;
    }
    .game-header-score-nums span.game-header-vs {
        font-size: 24px;
        line-height: 24px;
        padding:0 10px;
    }
    .game-header-datetime p {
        font-size: 18px;
    }
    .page-head {
        padding: 20px 0 10px;
    }
    .page-head .section-title h3 {
        font-size: 16px;
        line-height: 16px;
    }
    .game-header-team-name-city .matches-item-team-city {
        font-size: 13px;
    }
    .game-header-team-name-city {
        height: 70px;
    }
    .game-header-score {
        padding-bottom: 60px;
    }
    .game-header-score-nums {
        font-size: 32px;
    }
    .game-header-score-nums span {
        font-size: 64px;
        line-height: 64px;
    }
    .game-item-penalties span {
        font-size: 13px;
    }
    .game-item-penalties span:last-child {
        font-size: 15px;
    }
    .game-header-score-has-penalties {
        padding-bottom: 30px;
    }
    .game-header-datetime {
        font-size: 14px;
        padding-bottom: 15px;
    }
    .game-header-datetime > div > div {
        padding: 3px 10px;
    }
    .game-location i {
        font-size: 16px;
    }
    .game-location span {
        font-size: 14px;
    }
    .game-top-box {
        padding: 5px;
    }
    .game-top-box p {
        font-size: 14px;
    }
    .game-top-box p:last-child {
        padding-top: 2px;
        font-size: 17px;
    }
    .table-player-img {
        width: 40px;
        min-width: 40px;
        height: 45px;
    }
    .game-page-tabs-select .game-page-tabs-item {
        padding: 10px 5px;
        font-size: 14px;
    }
    .game-stats-teams-page-header {
        padding-bottom: 20px;
    }
    .game-stats-teams-page-header .game-stats-box-team, .game-stats-teams-page-header .game-stats-box-team:first-child {
        flex-direction: column !important;
        gap: 5px;
    }
    .game-page-teams-stats .team-stats-field-name p {
        font-size: 15px;
    }
    .game-page-teams-stats .team-stats-field-name span {
        font-size: 20px;
    }
    .game-stats-box-team {
        font-size: 16px;
    }
    /* Play by play */
    .play-by-play-tab > p {
        text-align: left;
    }
    .play-by-play-item, .play-by-play-item-committer, .play-by-play-item-committer-inner {
        flex-direction: row-reverse;
        font-size: 14px;
        line-height: 14px;
    }
    .play-by-play-item .play-by-play-item-committer-empty {
        display: none;
    }
    .play-by-play-item-separator {
        min-width: 3px;
    }
    .play-by-play-goal-result {
        left: 0px;
        transform: translateX(-19px);
        font-size: 14px;
        width: 41px;
        white-space: nowrap;
        padding: 3px 0;
    }
    .play-by-play-goal-result span {
        width: 8px;
    }
    .play-by-play-item-line {
        width: 22px;
        min-width: 22px;
    }
    .play-by-play-action-name {
        white-space: normal;
    }
    .action-name-min-width {
        min-width: 105px;
    }
    .play-by-play-tab {
        padding-left: 18px;
        padding-right: 5px;
    }
    .play-by-play-teamname {
        text-align: left;
    }
    /* ---- */
}

@media screen and (max-width: 576px) {
    .play-by-play-goal-result {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
    .game-stats-table {
        overflow-x: auto;
    }
    .game-stats-box {
        padding: 0;
    }
    .game-stats-table table thead tr th:first-child {
        border-top-left-radius: 0;
    }
    .game-stats-table table thead tr th:last-child {
        border-top-right-radius: 0;
    }
}
@media screen and (max-width: 470px) {
    .game-header-team img {
        width: 100px;
        height: 100px;
    }
    .game-header-score-nums span {
        font-size: 50px;
        line-height: 50px;
    }
}
@media screen and (max-width: 400px) {
    .game-page-tabs-select .game-page-tabs-item {
        padding: 5px;
    }
}
@media screen and (max-width: 359px) {
    .game-header-team img {
        width: 80px;
        height: 80px;
    }
    .game-header-score-nums span {
        font-size: 40px;
        line-height: 40px;
    }
}