body {
    font-family: Arial, sans-serif;
    background-image: url('../images/bg-content.png'), linear-gradient(to right, #130c2b, #300f60);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

nav {
    background-color: #8a2be2;
    padding: 15px;
    text-align: center;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
}

.navbar {
    background-color: #6f42c1;
    background-image: url(../images/bg-nav.png);
    position: relative;
}

.navbar::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: linear-gradient(to right, #ffffff, #e9dbff);
}

.navbar-nav .nav-link {
    color: white !important;
    font-size: 12pt;
    font-family: 'SanFranciscoDisplay-Bold';
}

.auth-buttons .btn {
    background-color: white;
    color: #dc3545;
    border-radius: 20px;
    margin-left: 10px;
}

.container {
    margin: 20px;
}

.login-btn {
    background-color: white;
    color: #dc3545;
    border-radius: 20px;
    margin-left: 10px;
}

h2,
h3 {
    color: #333;
}

.schedule .match {
    padding: 15px;
    background-color: #fff;
    margin-bottom: 10px;
    border-radius: 5px;
}

.match .time {
    font-weight: bold;
}

.match-teams {
    font-size: 18px;
    margin-top: 5px;
}

.status {
    color: #888;
}

.navbar {
    background-color: #6f42c1;
    height: 48px;
    padding: 0 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    margin-left: 12px;
}

.navbar-brand:hover {
    color: white;
}

.middle-line {
    height: 24px;
    width: 2px;
    background-color: rgba(255, 255, 255);
}

.game-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    cursor: pointer;
    position: relative;
}

.game-selector .game-selector-text {
    font-family: 'SanFranciscoDisplay-Bold';
    font-size: 12pt;
}

.game-selector svg {
    fill: white;
}

.game-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    padding: 7px 0 7px 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 158px;
    z-index: 1000;
}

.game-selector:hover .game-dropdown {
    display: block;
}


.game-item {
    display: flex;
    height: 37px;
    font-size: 16pt;
    font-family: 'SanFranciscoDisplay-Bold';
    align-items: center;
    gap: 10px;
    padding: 18px 5px;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    margin: 0 4px;

}

.game-item:hover {
    background-color: #dbdee1;
}

.game-item svg {
    width: 24px;
    height: 24px;
}

.game-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.rule-link {
    cursor: pointer;
    position: relative;
}

.rule-dropdown {
    position: absolute;
    top: 100%;
    left: 20%;
    padding: 7px 0 7px 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 158px;
    z-index: 1000;
}

.rule-dropdown .nav-link {
    text-align: left !important;
    border-radius: 8px;
    align-items: center;
}

.rule-dropdown .nav-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.rule-link:hover .rule-dropdown,
.rule-dropdown:hover {
    display: block;
}

.rule-link:hover .rule-dropdown {
    display: block;
}

.rule-dropdown span {
    padding: 10px 15px;
    font-size: 14pt;
    font-family: 'SanFranciscoDisplay-Bold';
    color: #333;
}

.ruler-link:hover {
    background-color: #dbdee1;
}

/* Rest of your existing navbar styles */


.navbar-nav .nav-item {
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 0 28px;
}

.navbar-nav .nav-link {
    color: white !important;
    text-align: center;
    display: block;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

#join-btn {
    background-color: #2a1a64;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    position: relative;
    border-top: 5px solid #f8eb8f;
    border-bottom: 2px solid #f8eb8f;

    margin: 0 auto;
}

#join-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: var(--left);
    width: 2px;
    height: 120%;
    background-color: #f8eb8f;
    transform: translate(-50%, -50%) rotate(var(--rotate-angle));
}

#join-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    right: var(--left);
    width: 2px;
    height: 120%;
    background-color: #f8eb8f;
    transform: translate(-50%, -50%) rotate(var(--rotate-angle));
}

.auth-buttons {
    background-color: white;
    border-radius: 20px;

}

.auth-buttons .login-btn {

    background: linear-gradient(#a70000, #ff0000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    width: 169px;
    height: 23px;
    margin-left: 10px;
    margin: 5px 15px 4px 15px;
    font-family: 'SanFranciscoDisplay-Bold';
    font-size: 12pt;
    padding: 0;
}

.auth-buttons:hover {
    background-color: #dbdee1;
}

.mid-nav {
    height: 50px;
}

.game-dropdown .bi-grid-fill {
    fill: red !important;
}

.slash-line {
    position: relative;
}

.slash-line::before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 0%;
    height: 32px;
    width: 1px;
    background-color: #ffffff;
    transform: translate(-50%, -50%) rotate(15deg);
    font-size: 16pt;
    font-family: 'SanFranciscoDisplay-Bold';
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    color: white;
}

.bg-footer {
    background-image: linear-gradient(43deg, #130c2b, #300f60);
}

.footer-content {
    display: flex;
    align-items: center;
    font-family: 'SanFranciscoDisplay-Bold';
    font-size: 20pt;
}

.footer-content img {
    margin-right: 6px;
}

.footer-content a {
    text-decoration: none;
    color: inherit;
}

.footer .esport-logo {
    margin-right: 15px;
}

.footer-content .slash-line {
    padding-left: 27px;
    padding-right: 27px;
    font-size: 12pt;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-social .footer-social-item.tiktok {
    background-color: #ffffff;
    border-radius: 50%;
    padding: 6px;
}

.footer-social a {
    text-decoration: none;
    color: inherit;
}

.div-line {
    height: 2px;
    width: 100%;
    margin-top: 31px;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.37);
}

.bi-tiktok {
    fill: rgb(41 15 85) !important;
}

.footer-copyright {
    font-size: 16pt;
    font-family: 'SanFranciscoDisplay-Medium';
    width: 100%;
    text-align: center;
    color: #ffffff;
}

#body-background {

    min-height: 100vh;
}

#overlay-content {
    background-image: linear-gradient(to right, #e9dbff, #ffffff);
    margin-top: 0px;
    padding-top: 37px;
    padding-left: 34px;
    padding-right: 32px;
    padding-bottom: 33px;
}

.flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lich-trinh-title {
    font-size: 18pt;
    font-family: 'SanFranciscoDisplay-Bold';
    color: #000000;
}

.date-picker-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.date-picker {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f4f4f4;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    appearance: none;
    width: 140px;
    text-align: center;
}

.date-picker:disabled {
    background-color: #eee;
    color: #bbb;
    cursor: not-allowed;
}

.nav-button {
    padding: 8px;
    border: 1px solid #ccc;
    background-color: #f4f4f4;
    color: #999;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: background-color 0.2s;
}

.nav-button:disabled {
    background-color: #eee;
    color: #bbb;
    cursor: not-allowed;
}

.nav-button:hover:not(:disabled) {
    background-color: #e0e0e0;
}

#datePicker {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.schedule-title {
    margin-bottom: 9px;
    margin-top: 19px;
    padding-left: 10px;
    height: 27px;
    background-image: linear-gradient(111deg, #e9e9e9, #ffffff);
}

.schedule-title h3 {
    font-size: 12pt;
    font-family: 'Roboto';
    color: #000000;
}

/* Container chính của scoreboard */
.scoreboard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #7131d4;
    /* Màu tím chủ đạo (có thể thay đổi) */
    color: #fff;
    height: 35px;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Roboto';
    /* Bo góc cho đẹp */
    max-width: 900px;
    /* Chiều rộng tối đa, tùy chỉnh theo ý */
    margin: 20px auto;
    /* Canh giữa trang */
}

/* Khối bên trái */
.scoreboard-left {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Khoảng cách giữa các phần tử */
}

.scoreboard .scoreboard-left img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.match-time {
    font-weight: bold;
    font-size: 14pt;
    margin-left: 4px;
}

.tournament-name {
    font-size: 10pt;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Giảm nhẹ độ đậm */
}

/* Khối ở giữa (tên đội, logo, vs) */
.scoreboard-center {
    display: flex;
    align-items: center;
    gap: 14px;
    /* Khoảng cách giữa các nhóm */
}

.scoreboard-center .team {
    display: flex;
    align-items: center;
    gap: 30px;
}

.team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.team-name {
    font-weight: bold;
    font-size: 15pt;
}

.vs-text {
    font-weight: 400;
    font-size: 15pt;
}

/* Khối bên phải (thông tin BO mấy, icon...) */
.scoreboard-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.match-format {
    font-size: 10pt;
    font-weight: 400;
}

.star-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.pagination-container {
    background-color: unset;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.pagination .page-link {
    background-color: #ffffff !important;
    color: black !important;
    width: 29px !important;
    height: 30px !important;
    padding: 0;
    margin: 0px;
}

.pagination .active .page-link {
    background-color: #aeaeae !important;
    color: white !important;

}

.active {
    margin-left: 36pxx;
    /* Bo góc cho đẹp */
}

.popular-tournaments {
    margin-left: 37px;
    margin-right: 5px;
    padding: 17px 25px 29px 19px;
    border: 1px solid #c5c1c1;
    border-radius: 10px;
    background-color: #ffffff;
}

.popular-tournaments h3 {
    font-family: 'Roboto';
    font-size: 15pt;
    font-weight: 700;
    color: #000000;
    padding-left: 4px;
}

/* Danh sách giải đấu */
.tournament-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Mỗi item trong danh sách */
.tournament-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.tournament-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    /* hoặc cover, tùy ý */
}

/* Khối thông tin giải đấu */
.tournament-info {
    display: flex;
    flex-direction: column;
}

.tournament-name {
    font-family: 'Roboto';
    font-weight: 400;
    font-size: 11pt;
}

.tournament-date {
    font-size: 0.9rem;
    color: #666;
}

/* Trạng thái giải đấu (ví dụ: Đang tiến hành) */
.tournament-status {
    /* đẩy trạng thái sang phải */
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    white-space: nowrap;
    /* không xuống dòng */
}

.tournament-status.ongoing {
    background-color: #ff322c;
    /* màu đỏ, có thể dùng #f00 hoặc khác */
}

.top-teams {
    margin-left: 37px;
    margin-right: 5px;
    margin-top: 26px;
    padding: 17px 25px 29px 19px;
    border: 1px solid #c5c1c1;
    border-radius: 10px;
    background-color: #ffffff;
}

.top-teams h3 {
    font-family: 'Roboto';
    font-size: 15pt;
    font-weight: 700;
    color: #000000;
    padding-left: 4px;
}


/* Tabs */
.top-teams .tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    background-color: #ebecef;
    height: 37px;
    border: 1px solid #c5c1c1;
}

.tab-button {
    background: #e8e8e8;
    border: none;
    padding: 0px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 400;
    font-size: 16pt;
    font-family: 'Roboto';
    width: 49%;
}

.tab-button.active {
    background: #ffffff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Bảng xếp hạng */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table tr {
    text-align: center;
    vertical-align: middle
}

.ranking-table th,
.ranking-table td {
    font-family: 'Roboto';
    font-size: 9pt;
    font-weight: 700;
    color: #747474;
    padding: 13px;
    text-align: left;
    border: unset;
}

/* Huy hiệu thứ hạng (1,2,3,...) */
.rank-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    border-radius: 2px;
    margin-right: 8px;
    /* Mặc định background xám, thay đổi tùy rank */
    background: #999;
    font-size: 12pt;
    font-family: 'Roboto';
    font-weight: 700;
}

.rank-1 {
    background: #ffdc88;
    color: red;
}

.rank-2 {
    background: #e2e6ee;
    color: #5e6a83;
}

.rank-3 {
    background: #f5d9c1;
    color: #bb671b;
    /* bronze */
}

/* Từ rank 4 trở đi */
.rank-4,
.rank-5 {
    background: unset;
    color: #646464;
}

.team-logo {
    width: 24px;
    height: 24px;
    object-fit: cover;
    margin-right: 6px;
    vertical-align: middle;
}

.team-name {
    vertical-align: middle;
    font-size: 15pt;
    font-family: 'Roboto';
    font-weight: 700;
}

/* Cột điểm */
.points {
    font-weight: bold;
    margin-right: 8px;
    text-align: right;
    font-size: 16pt;
    font-family: 'Roboto';
    font-weight: 700;
}

.win-loss {
    color: #c4c4c4;
    text-align: right;
    font-size: 12pt;
    font-family: 'Roboto';
    font-weight: 700;
}

.middle-line {
    height: 2px;
    width: 100%;
    background-color: rgb(192, 192, 192);
}

.column-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.no-data-text {
    padding-top: 20px;
    font-family: 'Roboto';
    font-size: 15pt;
    font-weight: 700;
    color: #000000;
}

.no-data {
    padding-top: 20px;
    font-family: 'Roboto';
    font-size: 15pt;
    font-weight: 700;
    min-height: 60vh;
}

.comming-soon-container {
    min-height: 70vh;
    background-image: linear-gradient(to right, #e9dbff, #ffffff);

    padding-top: 20px;
    font-family: 'Roboto';
    font-size: 20pt;
    font-weight: 700;
    /* color: #ffffff; */
    text-align: center;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
}

/* modal */
.support-modal {
    width: 377px;
    height: 462px;
    padding: 16px;
    background-color: #fafafa !important;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    font-family: 'SanFranciscoDisplay-Bold';
    font-size: 18pt;
    margin-bottom: 0px;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    font-size: 22pt;
    font-family: 'Roboto';
    font-weight: 400;
}

/* Body */
.modal-body {
    text-align: center;
}

.qr-code {
    max-width: 150px;
    max-height: 150px;
    margin-bottom: 20px;
}

.contact {
    width: 335px;
    height: 213px;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 12px;
    margin: auto
}

/* Mỗi dòng thông tin liên hệ */
.contact-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0;
    font-family: 'Roboto';
    font-size: 10pt;
}

.contact-label {
    text-align: left;
    font-size: 10pt;
    font-family: 'Roboto';
    color: #333;
    flex: 1;
    margin-right: 10px;
    word-break: break-word;
    /* Xuống dòng nếu link quá dài */
}

.contact-label p {
    margin: 0;
}

.copy-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    font-size: 10pt;
    font-family: 'Roboto';
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #000000;
}

/* .copy-btn:hover {
    background: #0056b3;
  } */
.bg-body {
    margin-top: 0px;
    padding-top: 5px;
    padding-bottom: 38px;
    background-image: linear-gradient(to right, #e9dbff, #ffffff);
}

.rule-container {
    vertical-align: middle;
    text-align: center;
    margin: 0 auto;
}

.rule-border {
    position: relative;
}

.rule-border::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 46px;
    width: 93%;
    height: 99.3%;
    border: 2px solid #dacf9f;
}

.content-container {
    background-image: url('../images/rule-image.png'), linear-gradient(43deg, #5e2aad, #1c1144);
    padding: 45px !important;
    margin: auto;
    border-radius: 16px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 20pt;
    border: 2px solid #dacf9f;
}

.content-container h3 {
    color: #ffe993;
    font-weight: 700;
}

.content-container p {
    color: #ffffff;
    font-weight: 400;
}

.content-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* regist page */

#regist-container {
    background-color: #ffffff;
    padding-top: 12px;
    background-image: linear-gradient(to right, #e9dbff, #ffffff);
}

#regist-container .center-tabs {
    display: flex;

}

#regist-container .tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 12px 10px;
    margin-top: 0px;
}

#regist-container .tab-button {
    background-color: #ffffff;
    border: 1px solid #c5c1c1;
    border-radius: 20px;
    font-family: 'SanFranciscoDisplay-Bold';
    font-size: 12pt;
    height: 25px;
    margin: 0 10px;
    line-height: normal;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);

}

#regist-container button.tab-button span {
    background: linear-gradient(#290053, #8f0bec);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#regist-container .tab-button.active {
    background: linear-gradient(#290053, #8f0bec);

}

#regist-container .tab-button.active span {
    background: unset;
    background-clip: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    color: #ffffff;
}

#regist-container .regist-lol-content {
    padding: 16px;
    padding-bottom: 0px;
}

#regist-container .regist-lol-content h3 {
    font-family: 'SanFranciscoDisplay-Bold';
    font-size: 15pt;
    font-weight: 700;
    color: #000000;
    text-align: center;
}

#regist-container .form-regist .row {
    padding: 16px;
}

#regist-container .form-regist .row .col-12:nth-child(2) {
    padding-top: 10px;
}

#regist-container .form-regist .row .col-12 label {
    font-family: 'SanFranciscoDisplay-Bold';
    font-size: 11pt;
    font-weight: 700;
    color: #000000;
    padding-bottom: 10px;
}

#regist-container .form-regist .row .col-12 input {
    font-family: 'Roboto';
    color: #000000;
    border: 1px solid #c5c1c1;
    border-radius: 23px;
    padding: 0 20px;
    height: 35px;
}

#regist-container .form-regist .row .col-12 button {
    font-family: 'Roboto';
    font-size: 16pt;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(#290053, #8f0bec);
}

@media only screen and (max-width: 768px) {
    #regist-container .form-regist .row .col-12 button {
        font-size: 12pt;
    }

    #navbar-desktop {
        display: none;
    }

    #footer-desktop .footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #footer-desktop .footer .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-size: 12pt;
    }

    #footer-desktop .footer .footer-content .slash-line::before {
        display: none;
    }

    #footer-desktop .copy-line {
        margin-bottom: 45px;
    }

    #footer-desktop .copy-line .footer-copyright {
        font-size: 10pt;
    }

    #navbar-mobile {
        display: block;
        background-image: url('../images/top-header-mobi.png'), linear-gradient(43deg, #1c1144, #5e2aad);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    #navbar-mobile .navbar-mobile-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #navbar-mobile .navbar-mobile-content img:first-child {
        margin-top: 5px;
        margin-bottom: 10px;
        margin-left: 15px;
    }

    #navbar-mobile .navbar-mobile-content .game-selector-mobile .auth-buttons {
        background-color: black;
        border-radius: 20px;
        height: 30px;
        width: 30px;
        border: 1px solid #ffffff;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }


    #navbar-mobile .navbar-mobile-content .game-selector-mobile {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin-top: 5px;
        margin-bottom: 10px;
        margin-right: 15px;
    }

    #navbar-mobile #dropdownMenuButton1 {
        background: none;
        border: none;
    }

    #navbar-mobile .navbar-mobile-content .game-selector-mobile svg {
        fill: white;
    }

    #navbar-mobile .navbar-mobile-content.dropdown .dropdown-menu.show {
        width: 300px;
    }

    #menu-modal .modal-dialog {
        padding-top: 60px;
    }

    #menu-modal .modal-dialog {
        padding-top: 60px;
        margin: 0;
    }

    #menu-modal .modal-dialog {
        padding-top: 60px;
    }

    #menu-modal .modal-dialog .game-dropdown-mobile {
        display: flex;
        flex-direction: row;
    }

    #menu-modal .modal-dialog .game-dropdown-mobile .game-item {
        height: auto;
        flex-direction: column;
        margin: 32px 10px;
        background: #cecece;
    }

    #menu-modal .modal-dialog .game-dropdown-mobile .game-item img {
        width: 60px;
        height: 60px;
    }

    #menu-modal .modal-dialog .game-dropdown-mobile .game-item svg {
        width: 60px;
        height: 60px;
        fill: #5a29a7;
    }

    #overlay-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    #overlay-content .schedule-title {
        height: 40px;
        padding: 10px;
        border: 2px solid #9721cd;
        margin-bottom: 25px;
        margin-left: 10px;
        margin-right: 10px;

    }

    #overlay-content .scoreboard {
        display: none;
    }

    #overlay-content .coming-soon-scoreboard-mobile {
        background-image: linear-gradient(to right, #7b62d9, #722fd6);
        margin: 10px 0px;
        border-radius: 10px;
        width: 100%;
    }

    #overlay-content .coming-soon-scoreboard-mobile .coming-soon-star-icon {
        display: flex;
        vertical-align: middle;
        padding: 0;
        margin: 0;
        align-self: center;
        height: 100%;
        align-items: anchor-center;
    }

    #overlay-content .coming-soon-scoreboard-mobile .coming-soon-star-icon svg {
        align-self: center;
        fill: yellow;
        border-right: 1px solid white;
        height: 66px;
    }

    #overlay-content .coming-soon-scoreboard-mobile .coming-soon-match-format {
        padding: 0;
        margin: 0;
        text-align: center;
    }

    #overlay-content .coming-soon-scoreboard-mobile .coming-soon-match-format img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        margin-left: 10px;
    }

    #overlay-content .coming-soon-scoreboard-mobile .match-time {
        font-weight: bold;
        font-size: 20pt;
        margin-bottom: 10px;
        text-align: center;
    }

    #overlay-content .coming-soon-scoreboard-mobile .coming-soon-tournament-name {
        font-size: 14pt;
        /* Nếu muốn giới hạn độ dài, tuỳ chọn */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 10px;
    }

    #overlay-content .coming-soon-scoreboard-mobile .coming-soon-team-name .team-logo {
        width: 40px;
        height: 40px;
        object-fit: contain;
        margin-bottom: 10px;
    }

    #overlay-content .coming-soon-scoreboard-mobile .coming-soon-team-name {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        font-size: 15pt;
        margin-bottom: 10px;
    }

    #overlay-content .popular-tournaments .tournament-list .tournament-info span {
        font-size: 20pt;
    }

    #overlay-content .popular-tournaments .tournament-list .tournament-item img {
        width: 80px;
        height: 80px;
        object-fit: contain;
    }

    #overlay-content .popular-tournaments .tournament-list .tournament-item .tournament-status {
        font-size: 17pt;
    }

    #overlay-content .top-teams .ranking-table th {
        font-size: 15pt;
    }

    #overlay-content .top-teams .ranking-table .rank-badge {
        width: 40px;
        height: 40px;
        line-height: 1.5;
        font-size: 20pt;
    }

    #overlay-content .top-teams .ranking-table img.team-logo {
        width: 40px;
        height: 40px;
    }

    #overlay-content .top-teams .ranking-table .team-name {
        line-height: 1.5;
        font-size: 20pt;
    }

    #footer-mobile {
        display: block;
    }

    .rule-border::before {
        top: 2rem;
        left: 1.2rem;
        height: calc(100% - 4rem);
    }

    #navbar-mobile-sticky {
        background-image: linear-gradient(43deg, #371b6f, #7d39e4, #371b6f);
        height: 55px;
    }

    #navbar-mobile-sticky .chess-mobile {
        display: flex;
        flex-direction: row;
        align-items: center;
        vertical-align: middle;
        margin: auto;
        height: inherit;
        justify-content: space-around;
    }

    #navbar-mobile-sticky .chess-mobile a {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
    }

    #navbar-mobile-sticky .chess-mobile a svg {
        fill: white;
    }

    #navbar-mobile-sticky .chess-mobile a span {
        color: white;
        font-size: 12px;
        font-family: 'Roboto';
        font-weight: 700;
    }

    .no-data {
        min-height: unset;
    }

    .footer-social .footer-social-item.tiktok {
        padding: 0px 4px;
    }
}

@media only screen and (max-width: 1000px) {
    .popular-tournaments {
        margin: 0px;
        padding: 20px 25px 29px 15px;
        ;
    }
}

@media only screen and (min-width: 768px) {
    #navbar-mobile-sticky {
        display: none;
    }

    #navbar-mobile {
        display: none;

    }

    #overlay-content .coming-soon-scoreboard-mobile {
        display: none;
    }


    #footer-mobile {
        display: none;
    }
}

#create-form {
    color: white;
}

#edit-form {
    color: white;
    font-size: 15px;
}

#imagePopupModal .modal-dialog {
    max-width: fit-content;
    /* Điều chỉnh kích thước modal vừa với ảnh */
}

#imagePopupModal .modal-body {
    padding: 0;
    /* Bỏ padding mặc định */
}

#imagePopupModal .close-popup-btn {
    position: absolute;
    top: -10px;
    /* Điều chỉnh vị trí nút đóng */
    right: -10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.8;
    z-index: 1060;
    /* Đảm bảo nút đóng nổi trên ảnh */
}

#imagePopupModal .close-popup-btn:hover {
    opacity: 1;
}


.match-team span {
    font-size: 14pt;
    font-weight: 400;
    /* Căn giữa với cờ */
}

.matches-container {
    overflow-y: scroll;
}

.matches-container hr {
    border-top: 1px solid #dee2e6;
    /* Màu đường kẻ phân cách */
}

.date-section h4 {
    color: #333;
    /* Màu tiêu đề ngày */
}

/* Căn chỉnh cờ và tên đội tốt hơn */
.match-team .flag-icon {
    margin-left: 5px;
    margin-right: 5px;
    width: 21px;
    height: 15px;
    vertical-align: middle;
    margin-left: 5px;
    margin-right: 5px;
}

/* Cờ bên phải cho đội nhà */
.match-team.text-start .flag-icon {
    width: 21px;
    height: 15px;
    /* vertical-align: middle; */ /* Không cần khi parent là flex và align-items: center */
    margin-left: 5px;
    margin-right: 5px;
    /* Quan trọng: Ngăn icon cờ bị co lại khi không đủ chỗ */
    flex-shrink: 0;
}

/* Cờ bên trái cho đội khách */

/* Tùy chỉnh pagination nếu dùng Bootstrap 5 */
.pagination {
    justify-content: center;
}

.match-score {
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    /* Đảm bảo có padding */
    padding-left: 0.75rem; /* Tăng nhẹ padding */
    padding-right: 0.75rem;
    /* Quan trọng: Ngăn khung tỷ số bị co lại */
    flex-shrink: 0;
    /* Ngăn tỷ số bị xuống dòng */
    white-space: nowrap;
    text-align: center; /* Căn giữa số */
}


.match-row {
    min-width: max-content;
}
.match-team {
    /* Quan trọng: Cho phép flex item co lại và áp dụng overflow */
    min-width: 0;
    /* Cho phép div này tự động mở rộng */
    flex-grow: 1;
    /* Cơ sở để tính toán grow, 0 là lựa chọn tốt */
    flex-basis: 0;
    /* Ngăn nội dung bên trong tràn ra ngoài div này */
    overflow: hidden;
    /* Sử dụng flex để căn chỉnh span và img bên trong */
    display: flex;
    align-items: center; /* Căn giữa theo chiều dọc */
}
.match-team.text-end {
    justify-content: flex-end; /* Đẩy span và img về bên phải */
}
 .match-team.text-start {
    justify-content: flex-start; /* Giữ span và img ở bên trái */
}
.match-status {
    font-size: 14pt;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-top: 5px;
}