﻿/*start css box trong chuyên mục thể thao*/




.team-row {
    display: flex;
    justify-content: space-between;
}

.team-row-left {
    display: flex;
    gap: 8px; 
}

/*end css box trong chuyên mục thể thao*/


/*start css trang tất cả giải đấu*/
.l-league {
    width: 100%;
}

.l-league ul{
    list-style-type: none;
    padding-left: 0;
}

.l-league-item {
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-top: 7px solid #000d76
}

.l-league-item .logo {
    margin-left: 14px;
}


.h-match-schedule .date-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d19d9d;
    color: #000;
    padding: 5px 10px;
    border-radius: 6px;
}

.h-result a{
    color: white;
    font-size: 14px;
}

.h-result img {
    width: 14px;
    height: 14px;
    margin: 0 10px;
}

.h-result .date-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d19d9d;
    color: #000;
    padding: 5px 10px;
    border-radius: 6px;
}

.h-standing a {
    display: flex;
    align-items: center;
    color: white;
    font-size: 14px;
    text-decoration: none;
}

.h-standing a p {
    margin: 0;
    color: white;
    font-size: 14px;
}

.h-standing img {
    width: 14px;
    height: 14px;
    margin: 0 10px;
    filter: brightness(0) invert(1);
}

.h-standing .date-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    padding: 5px 10px;
    border-radius: 6px;
}

.date-filter .nav-btn {
    background: #d19d9d;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px; /* bo góc */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    transition: background 0.2s;
}

/* Mũi tên bằng border */
.date-filter #nextDay::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
}

.date-filter #prevDay::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(-135deg);
}


/* Hover */
.date-filter .nav-btn:hover {
    background: #efc2c2;
}


.date-filter .date-display {
    text-align: center;
    padding: 0 10px;
}

.date-display #dayOfWeek {
    font-weight: bold;
}

.date-display #dateValue {
    font-size: 14px;
}

.c-topic-area li {
    width: 33.33% !important;
    border: none !important;
}

.c-topic-area{
    border: none !important;
}




.match-schedule .b-match-schedule {
    margin-top: 20px;
    width: 100%;
}

.result .b-result {
    margin-top: 20px;
    width: 100%;
}

.match {
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    border-radius: 8px;
    background: #fddede;
}

.match a{
    min-height: 70px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: black;
}

.team{
    display: flex;
    align-items: center;
    width: 38%;
}

.match .name{
    white-space: normal;
}

.match .logo{
    width: 18px;
    height: 18px;
    margin: 0 10px;
}

.match .time {
    font-size: 20px;
    font-weight: 600;
    width: 20%;
    text-align: center;
    margin: 0;
}

.score{
    font-size: 20px;
    font-weight: 600;
    width: 20%;
    text-align: center;
}





.see-all {
    margin-top: 20px;
    display: inline-flex; /* canh chữ + icon ngang hàng */
    align-items: center;
    gap: 6px; /* khoảng cách chữ - mũi tên */
    padding: 5px 50px;
    background-color: #f1f1f1; /* nền xám nhạt */
    border: 1px solid #ccc; /* viền xám */
    border-radius: 6px; /* bo góc */
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

/* Mũi tên */
.see-all::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 2px solid #666;
  border-right: 2px solid #666;
  transform: rotate(45deg);
  margin-top: 1px;
}

/* Hiệu ứng hover */
.see-all:hover {
  background-color: #e6e6e6;
  border-color: #999;
}



/*end css trang tất cả giải đấu*/

/* ===== RESPONSIVE: < 1024px ===== */
@media (max-width: 1024px) {
    .c-topic-area li {
        width: 100% !important;
    }

    .c-topic-area ul {
        display: flex;
        flex-direction: column;
    }
}

/* ===== RESPONSIVE: < 768px ===== */
@media (max-width: 767px) {
    /* Chuyển layout 3 cột thành 1 cột */
    .c-topic-area ul {
        display: flex;
        flex-direction: column;
    }

    .c-topic-area li {
        width: 100% !important;
        margin-bottom: 30px;
    }

    /* Thêm border phân cách giữa các section */
    .match-schedule, .result, .standing {
        padding: 25px 20px 0 20px !important;
        border-top: 2px solid #AEB4C4;
    }

    /* Loại bỏ border-top cho item đầu tiên */
    .c-topic-area li:first-child .match-schedule {
        border-top: none;
    }

    /* Tối ưu tên đội bóng */
    .match .name {
        max-width: 200px;
    }

    .standing .name {
        max-width: 200px;
    }
}

/* ===== RESPONSIVE: < 480px ===== */
@media (max-width: 480px) {
    .l-league-item {
        padding: 15px 10px !important;
    }

    /* Giảm padding các section */
    .match-schedule, .result, .standing {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Tối ưu header league */
    .h-league {
        display: flex;
        align-items: center;
    }

        .h-league .logo {
            width: 30px;
            height: 30px;
        }

        .h-league .name {
            font-size: 18px;
        }

    /* Tối ưu tên đội cho màn hình nhỏ */
    .match .name {
        max-width: 140px;
        font-size: 13px;
    }

    .standing .name {
        max-width: 140px;
        font-size: 13px;
    }

    /* Giảm kích thước logo trong match */
    .match .logo {
        width: 16px;
        height: 16px;
        margin: 0 8px;
    }

    /* Giảm font-size cho time và score */
    .match .time,
    .match .score {
        font-size: 18px;
    }
}

/* ===== RESPONSIVE: < 375px ===== */
@media (max-width: 375px) {
    /* Tối ưu tên đội */
    .match .name {
        max-width: 110px;
        font-size: 12px;
    }

    .standing .name {
        max-width: 110px;
        font-size: 12px;
    }

    /* Logo trong standing */
    .standing img {
        margin-left: 10px;
    }

    /* Giảm size time và score */
    .match .time,
    .match .score {
        font-size: 16px;
    }

    /* Date filter xuống hàng dưới */
    .h-match-schedule,
    .h-result {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    .date-filter {
        width: 100%;
        justify-content: center;
    }

        /* Giảm padding của nav-btn */
        .date-filter .nav-btn {
            width: 30px;
            height: 30px;
            padding: 3px 6px;
        }

        /* Giảm size mũi tên */
        .date-filter #nextDay::before,
        .date-filter #prevDay::before {
            width: 6px;
            height: 6px;
        }

    /* Giảm font-size date display */
    .date-display #dayOfWeek {
        font-size: 13px;
    }

    .date-display #dateValue {
        font-size: 12px;
    }

    /* Thêm thanh cuộn cho bảng xếp hạng */
    .standing .b-standing {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Đảm bảo table không bị nén */
    .standing table {
        min-width: 100%;
        width: max-content;
    }

    /* Style thanh cuộn */
    .standing .b-standing::-webkit-scrollbar {
        height: 6px;
    }

    .standing .b-standing::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .standing .b-standing::-webkit-scrollbar-thumb {
        background: #CF2228;
        border-radius: 3px;
    }

        .standing .b-standing::-webkit-scrollbar-thumb:hover {
            background: #a01b20;
        }

    /* Tối ưu button see-all */
    .see-all {
        padding: 5px 30px;
        font-size: 13px;
    }
}

/* ===== RESPONSIVE: < 320px ===== */
@media (max-width: 320px) {
    .match .name {
        max-width: 90px;
        font-size: 11px;
    }

    .standing .name {
        max-width: 90px;
        font-size: 11px;
    }

    .match .logo {
        width: 14px;
        height: 14px;
        margin: 0 6px;
    }

    .see-all {
        padding: 5px 20px;
        font-size: 12px;
    }
}


