/* 聯賽主頁樣式 */
.main{
    margin-bottom: 60px;
}

.container{
    width: 1300px;
}

/* 聯賽標題區域 */
.league-header {
    background: linear-gradient(135deg, #37003c 0%, #04f5ff 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.league-boxs{
    display: flex; gap: 12px;
}

.league-boxs h1 span{
    font-size: 14px; font-style: normal;
}

.league-title {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

.league-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    padding: 5px;
    background-color: white;
    border-radius: 50%;
}

.league-title h1 {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0;
    padding-top: 5px;
}

.season-info {
    font-size: 1rem;
    opacity: 0.9;
    margin-left: auto;
}

.team-base-tj{
    border: solid 1px #fff; border-radius: 5px; width: 310px; display: flex; flex-direction: column;
}

.team-base-tj .tj-header{
    background-color: rgb(255 255 255 / .2); color:white; text-align: center; font-size: 14px; line-height: 35px;
}
.team-base-tj .tj-content{
    display: flex; align-items: center;
}
.team-base-tj .tj-content .item-li{
    border-right: solid 1px rgb(255 255 255 / .2);   text-align: center; display: flex; flex-direction: column; justify-content: center;
    padding:7px 0; flex: 1; gap: 6px;
}

.team-base-tj .tj-content .item-li:last-child{
    border-right: none;
}

.team-base-tj .tj-content .item-li span{
    font-size: 13px;
}

.team-base-tj .tj-content .item-li font{
    font-size: 14px;
}

/* 主要內容區域 */
.league-content {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* 區塊卡片 */
.section-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.section-header h2 {
    margin: 0;
    font-size: 1.7rem;
    color: #37003c;
    font-weight: 600;
}

/* 積分榜選項卡 */
.standings-tabs {
    display: flex;
    gap: 8px;
}

.tab-btn {
    padding: 6px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #f0f0f0;
}

.tab-btn.active {
    background: #CC0303;
    color: white;
    border-color: #CC0303;
}

/* 積分榜表格 */
.standings-table-wrapper {
    overflow-x: auto;
    padding: 0 25px;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.standings-table th {
    background: #f8f9fa;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.standings-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #f1f1f1;
}

.standings-table tbody tr:hover {
    background: #f8f9fa;
}

/* 排名欄位 */
.rank-col {
    width: 40px;
}

.rank {
    font-weight: bold;
    color: #666;
}

/* 球隊欄位 */
.team-col {
    width: 180px;
    text-align: left !important;
}

.team {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.team img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.team span {
    font-weight: 500;
}

/* 積分欄位 */
.points-col {
    width: 60px;
}

.points {
    font-weight: bold;
    color: #37003c;
    font-size: 16px;
}

/* 歐冠區域高亮 */
.champions-league {
    border-left: 4px solid #0066cc;
}

.europa-league {
    border-left: 4px solid #ff6600;
}

.europa-conference {
    border-left: 4px solid #00cc66;
}

.relegation {
    border-left: 4px solid #ff3333;
}

/* 積分榜圖例 */
.standings-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 25px;
    background: #f8f9fa;
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 12px;
    height: 3px;
    display: block;
}

.champions-league .legend-color {
    background: #0066cc;
}

.europa-league .legend-color {
    background: #ff6600;
}

.europa-conference .legend-color {
    background: #00cc66;
}

.relegation .legend-color {
    background: #ff3333;
}

/* 賽程區域 */
.fixtures-section .section-header {
    flex-direction: row;
    align-items: center;
}

.date-filter {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.today-btn {
    padding: 8px 12px;
    background: #37003c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.today-btn:hover {
    background: #2a0029;
}

/* 賽程容器 */
.fixtures-container {
    overflow-y: auto;
    padding:18px 25px 25px;
}

.fixture-date-group {
    margin-bottom: 25px;
}

.fixture-date {
    font-size: 16px;
    font-weight: 600;
    color: #37003c;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f1f1;
}

.fixtures-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 單場比賽 */
.fixture-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.fixture-item:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.fixture-item.completed {
    border-left-color: #28a745;
}

.match-time {
    width: 60px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.match-teams {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.home-team, .away-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 105px;
}

.home-team {
    justify-content: flex-end;
}

.away-team {
    justify-content: flex-start;
}

.home-team img, .away-team img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.home-team span, .away-team span {
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

.match-vs {
    font-size: 12px;
    color: #999;
    font-weight: 600;
}

.match-score {
    display: flex;
    align-items: center;
}

.score {
    font-size: 16px;
    font-weight: bold;
    color: #37003c;
}

.match-status {
    width: 60px;
    text-align: right;
    font-size: 12px;
    color: #666;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .league-title {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .league-title h1 {
        font-size: 2rem;
    }
    
    .season-info {
        margin-left: 0;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .date-filter {
        justify-content: center;
    }
    
    .standings-legend {
        flex-direction: column;
        gap: 10px;
    }

    .team-base-tj{
        display: none;
    }
    

    
    .match-teams {
        flex-direction: column;
        gap: 8px;
    }
    
    .home-team, .away-team {
        min-width: auto;
        justify-content: center;
    }
    
    .match-vs {
        order: 1;
    }
}

@media (max-width: 576px) {
    .league-content {
        padding: 0 10px;
    }
    
    .section-card {
        margin-bottom: 20px;
    }
    
    .section-header {
        padding: 15px 20px;
    }

    #t-title th:nth-child(2){
        display: none;
    }

    .champions-league td:nth-child(2){
        display: none;
    }

    .points{
        font-size: 15px;
    }
    
    .standings-table-wrapper, 
    .fixtures-container {
        padding: 0 6px 6px;
    }
    
    .standings-table {
        font-size: 12px;
    }
    
    .standings-table th,
    .standings-table td {
        padding: 8px 4px;
    }

    .fixtures-container{
        padding-top: 15px;
    }
    
    .fixture-item {
        padding: 12px; flex-wrap: wrap;
    }

    .fixture-item .match-time{
        width: 100%; text-align: center; margin-bottom: 8px;
    }

    .fixture-item .match-teams{
        width: 90%; flex-direction: row; justify-content: flex-start; gap: 10px;
    }

    .home-team{
        justify-content: flex-start; width: 100px;
    }

    .away-team{
        justify-content: flex-end; width: 105px;
    }

    .match-vs{
        order: 0;
    }

    .fixture-date{
        font-size: 15px;
    }

    .section-header h2{
        font-size: 17px;
    }

    .home-team span, .away-team span{
        font-size: 12px;
    }

    .section-header{
        align-items: center;
    }

    .fixtures-section .section-header{
        flex-direction: column; justify-content: center;
    }

}

/* 隱藏/顯示積分榜選項卡內容 */
.standings-table.hidden {
    display: none;
}

/* 滾動條樣式 */
.fixtures-container::-webkit-scrollbar,
.standings-table-wrapper::-webkit-scrollbar {
    width: 6px;
}

.fixtures-container::-webkit-scrollbar-track,
.standings-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.fixtures-container::-webkit-scrollbar-thumb,
.standings-table-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.fixtures-container::-webkit-scrollbar-thumb:hover,
.standings-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}