/* ===== Schedule/Match Page - match original yyzb80.com ===== */
.page-schedule {
    width: 1150px;
    margin: 114px auto 0;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Date list - horizontal tabs */
.date-list {
    margin-bottom: 0;
}

.date-list ul {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.date-list .item {
    position: relative;
    display: inline-block;
    width: 126px;
    padding: 4px 0;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
}

.date-list .item .day {
    font-size: 14px;
    color: #777;
    display: block;
}

.date-list .item .date {
    font-size: 18px;
    color: #777;
    display: block;
    margin-top: 2px;
}

.date-list .item:hover .day {
    color: #f8c21b;
}

.date-list .item.active .day {
    color: #f8c21b;
}

.date-list .item.active .date {
    font-size: 24px;
    color: #000;
}

.date-list .item.active::after {
    content: '';
    display: block;
    position: absolute;
    width: 60px;
    height: 6px;
    margin-top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffb600;
    border-radius: 3px;
}

/* Match cards */
.match-list {
    width: 1150px;
    min-height: 640px;
    margin-top: 34px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.match-card-full {
    height: 140px;
    margin-bottom: 12px;
    border-right: solid 7px #ffc71c;
    border-radius: 4px;
    background: #fff;
    padding: 0;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.match-card-full:hover {
    background: #fafafa;
}

/* Left: league + time */
.match-card-full .mc-left {
    float: left;
    flex-shrink: 0;
    margin: 0 63px 0 52px;
}

.match-card-full .mc-left .league-name {
    width: 120px;
    margin-bottom: 4px;
    font-size: 18px;
    color: #777;
}

.match-card-full .mc-left .match-time {
    font-size: 24px;
    font-weight: 600;
    color: #000;
}

/* Center: teams + VS */
.match-card-full .mc-center {
    float: left;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.match-card-full .mc-center .team-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0;
}

/* Host row: name first, then logo (right-aligned) */
.match-card-full .mc-center .host-row {
    flex-direction: row;
}

.match-card-full .mc-center .vs-text {
    margin: 0 18px;
    font-size: 15px;
    font-weight: 600;
    color: red;
}

.match-card-full .mc-center .team-row:first-child {
    margin-bottom: 0;
}

.match-card-full .mc-center .team-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    vertical-align: middle;
}

.match-card-full .mc-center .team-name {
    display: inline-block;
    width: 150px;
    font-size: 16px;
    color: #000;
    vertical-align: middle;
}

/* Far right: watch live link */
.match-card-full .mc-action {
    margin-left: auto;
    margin-right: 38px;
    flex-shrink: 0;
    text-align: right;
}

.match-card-full .mc-action .watch-link {
    color: #f8c21b;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}

.match-card-full .mc-action .watch-link .play-tri {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #f8c21b;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* Responsive */
@media screen and (max-width: 1400px) {
    .page-schedule {
        width: 960px;
        margin-top: 114px;
    }

    .match-list {
        width: 100%;
    }

    .match-card-full .mc-left {
        margin: 0 40px 0 30px;
    }
}

@media screen and (max-width: 1024px) {
    .page-schedule {
        width: 100%;
        margin-top: 0;
        padding: 0 20px;
        padding-top: calc(var(--header-height) + 20px);
    }

    .match-list {
        width: 100%;
    }

    .match-card-full {
        flex-wrap: wrap;
        height: auto;
        padding: 16px 20px;
        gap: 12px;
    }

    .match-card-full .mc-left {
        margin: 0;
        width: 100px;
    }

    .match-card-full .mc-center {
        width: 200px;
    }
}

/* Original match page mobile layout:
   .match-card: .top (league 12px grey + time 12px grey left, status badge right)
   .middle: host-name(100px, 13px bold, right-aligned) + host-logo(20px) + VS(15px red bold) + guest-logo(20px) + guest-name(100px, 13px bold, left-aligned)
   padding 0 16px */
@media screen and (max-width: 768px) {
    .page-schedule {
        padding: 0;
        padding-top: 8px;
        width: 100%;
        background: #fff;
    }

    .date-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px;
    }
    .date-list ul { flex-wrap: nowrap; }
    .date-list .item {
        width: auto;
        padding: 6px 14px 8px;
    }
    .date-list .item .day { font-size: 12px; }
    .date-list .item .date { font-size: 13px; }
    .date-list .item.active .date { font-size: 17px; }

    .match-list {
        width: 100%;
        min-height: auto;
        margin-top: 12px;
        background: #f4f4f4;
    }

    .match-card-full {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 11px 16px 14px;
        margin-bottom: 0;
        border-right: none;
        border-radius: 0;
        background: #fff;
        position: relative;
        gap: 0;
    }
    .match-card-full::before {
        content: '';
        position: absolute;
        top: 0;
        left: 16px;
        right: 16px;
        border-top: 1px solid #ddd;
    }
    .match-card-full:first-child::before { display: none; }

    /* Top: league + time left, status right */
    .match-card-full .mc-left {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 0 0 6px 0;
        width: 100%;
        float: none;
    }
    .match-card-full .mc-left .league-name {
        width: auto;
        font-size: 12px;
        color: #8f8f8f;
    }
    .match-card-full .mc-left .match-time {
        font-size: 12px;
        font-weight: 400;
        color: #8f8f8f;
    }

    /* Middle: host-name + host-logo + VS + guest-logo + guest-name */
    .match-card-full .mc-center {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        float: none;
        width: 100%;
        padding: 0;
        margin-bottom: 0;
    }
    .match-card-full .mc-center .team-row {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }
    /* Host row: name then logo (reversed order for right-alignment) */
    .match-card-full .mc-center .host-row {
        flex-direction: row;
    }
    .match-card-full .mc-center .host-row .team-name {
        text-align: right;
    }
    /* Guest row: logo then name */
    .match-card-full .mc-center .guest-row {
        flex-direction: row;
    }
    .match-card-full .mc-center .guest-row .team-name {
        text-align: left;
    }
    .match-card-full .mc-center .team-row:first-child {
        margin-bottom: 0;
    }
    .match-card-full .mc-center .team-logo {
        width: 20px;
        height: 20px;
        border-radius: 50%;
    }
    .match-card-full .mc-center .team-name {
        width: auto;
        max-width: 100px;
        font-size: 13px;
        font-weight: 600;
        color: #000;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .match-card-full .mc-center .vs-text {
        margin: 0 9px;
        font-size: 15px;
        font-weight: 600;
        color: red;
    }

    /* Action/status — absolute top-right */
    .match-card-full .mc-action {
        margin: 0;
        position: absolute;
        top: 11px;
        right: 16px;
    }
    .match-card-full .mc-action .watch-link {
        display: inline-block;
        font-size: 10px;
        padding: 0 4px;
        height: 16px;
        line-height: 16px;
        background: #ffc71c;
        border-radius: 3px;
        color: #fff;
        font-weight: 600;
    }
}
