.web_content {
    min-height: calc(100vh - 68px);
}

.web_body {
    position: relative;
}

.web_header {
    position: sticky;
    top: 68px;
    z-index: 900;
    background: #e8def3;
    border-bottom: 1px solid #dfd4ea;
}

.web_header .main {
    width: min(1000px, calc(100% - 24px));
}

.sub_nav {
    position: relative;
    padding: 6px 0;
}

.sub_head {
    position: absolute;
    right: 0;
    top: 9px;
    z-index: 2;
}

.sub_lan {
    display: inline-flex;
    overflow: hidden;
    border-radius: 4px;
    background: var(--brand-purple);
}

.sub_lan .item {
    min-width: 48px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
}

.sub_lan .item.active {
    font-weight: 800;
}

.web_nav_category,
.web_nav_button {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
}

.web_nav_category::-webkit-scrollbar {
    display: block;
    height: 6px;
}

.web_nav_category::-webkit-scrollbar-thumb {
    background: rgba(103, 0, 138, 0.25);
    border-radius: 3px;
}

.web_nav_category::-webkit-scrollbar-thumb:hover {
    background: rgba(103, 0, 138, 0.4);
}

.web_nav_button::-webkit-scrollbar {
    display: block;
    height: 6px;
}

.web_nav_button::-webkit-scrollbar-thumb {
    background: rgba(103, 0, 138, 0.25);
    border-radius: 3px;
}

.web_nav_button::-webkit-scrollbar-thumb:hover {
    background: rgba(103, 0, 138, 0.4);
}

.web_nav_category {
    padding: 12px 170px 12px 0;
    gap: 12px;
}

.web_nav_category > .nav-item {
    min-width: 50px;
    padding: 0 12px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #f4f4f4;
    color: #444;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.web_nav_category > .nav-item:hover {
    background: #e9e9e9;
    color: #222;
}

.web_nav_category > .nav-item.active {
    background: var(--brand-purple);
    color: #fff;
    box-shadow: 0 2px 6px rgba(103, 0, 138, 0.25);
}

.web_nav_button {
    padding: 0 0 12px 0;
    gap: 12px;
}

.web_nav_button .tournament-tab {
    flex: 0 0 auto;
    min-width: 50px;
    padding: 0 12px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #f4f4f4;
    color: #444;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.web_nav_button .tournament-tab:hover {
    background: #e9e9e9;
    color: #222;
}

.web_nav_button .tournament-tab.active {
    background: var(--brand-purple);
    color: #fff;
    box-shadow: 0 2px 6px rgba(103, 0, 138, 0.25);
}


.loc_live_head {
    height: 39px;
    background: #fff;
    border-bottom: 1px solid var(--line-color);
}

.match-head-row {
    height: 39px;
    display: grid;
    grid-template-columns: 24px 80px 80px 80px minmax(140px, 1fr) 100px minmax(140px, 1fr) 260px;
    align-items: center;
    padding: 0 10px;
    column-gap: 6px;
    color: #222;
    font-size: 13px;
    text-align: center;
}

.match-head-row .lab_events {
    grid-column: span 2;
}

.loc_events {
    background: #fff;
}

.domain-notice {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 18px;
    background: #f8f8f8;
    color: #000;
    font-size: 18px;
    font-weight: 900;
}

.domain-notice span {
    font-size: 18px;
    font-weight: 900;
}

.announcement {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-color);
    color: #4b2459;
    font-weight: 700;
    overflow: hidden;
}

.announcement-content {
    min-width: 0;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.announcement-content a,
.announcement-url {
    color: var(--brand-purple);
    font-weight: 900;
    text-decoration: none;
}

.announcement-icon {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 3px;
    background: var(--brand-purple);
    color: #fff;
    font-size: 12px;
}

.schedule-title {
    display: none !important;
}

.schedule-list {
    background: #fff;
}


.no-data {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888 !important;
}

.match-card {
    display: block;
    margin: 0;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.match-card:hover,
.recording-card:hover {
    position: relative;
    z-index: 1;
    background: #fbf7ff !important;
    box-shadow: inset 3px 0 0 var(--brand-purple), 0 4px 14px rgba(103, 0, 138, 0.08);
}


.match-content {
    min-height: 50px;
    display: grid;
    grid-template-columns: 24px 80px 80px 80px minmax(140px, 1fr) 100px minmax(140px, 1fr) 260px;
    align-items: center;
    padding: 0 10px;
    column-gap: 6px;
}

.match-content .channel-list {
    justify-content: flex-end;
    gap: 16px;
}

.sport-icon {
    width: 20px;
    color: #c5c5c5;
    font-size: 16px;
    text-align: center;
}

.league-badge {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    max-width: 78px;
    height: 28px;
    overflow: hidden;
    border-radius: 3px;
    color: #fff;
    font-size: 13px;
    line-height: 28px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-time {
    color: #666;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
}

@media (min-width: 761px) {
    .match-content .match-time,
    .recording-content .match-time {
        justify-self: start;
        text-align: left;
    }
}

.match-status {
    color: #ff0000;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
}

.match-status.status-upcoming {
    color: #333;
}

.match-status.status-postponed {
    color: #555;
}

.team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-home {
    justify-content: flex-end;
    text-align: right;
}

.team-away {
    justify-content: flex-start;
    text-align: left;
}

.team-name {
    min-width: 0;
    overflow: hidden;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-logo {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.score-cell,
.score,
.vs {
    color: var(--score-purple);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.vs {
    color: #976e45;
    font-weight: 500;
}

.channel-list {
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
}

.watch-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--link-purple);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}

.is-hot .league-badge,
.is-hot .match-time,
.is-hot .team-name,
.is-hot .score-cell,
.is-hot .score,
.is-hot .vs,
.is-hot .watch-btn {
    font-weight: 900 !important;
}

.watch-btn.live {
    color: var(--live-green);
}

.watch-icon {
    display: inline-block;
}

.watch-label-pc {
    display: none;
}

@media (min-width: 761px) {
    body[data-lan="lan_en"] .match-content {
        grid-template-columns: 24px minmax(80px, 107px) 96px 104px minmax(90px, 1fr) 70px minmax(90px, 1fr) 84px;
        column-gap: 10px;
    }

    body[data-lan="lan_en"] .recording-content {
        grid-template-columns: 24px minmax(80px, 107px) 84px minmax(110px, 1fr) 84px minmax(110px, 1fr) 84px;
    }

    body[data-lan="lan_en"] .league-badge {
        box-sizing: border-box;
        justify-self: start;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 0 8px;
    }

    body[data-lan="lan_en"] .match-content .channel-list,
    body[data-lan="lan_en"] .recording-content .channel-list {
        gap: 6px;
    }

    body[data-lan="lan_en"] .match-time,
    body[data-lan="lan_en"] .match-status,
    body[data-lan="lan_en"] .recording-content .match-time {
        min-width: 0;
        overflow: hidden;
        text-overflow: clip;
    }

    body[data-lan="lan_en"] .match-content .match-time,
    body[data-lan="lan_en"] .recording-content .match-time {
        justify-self: start;
        padding-right: 0;
        text-align: left;
    }

    body[data-lan="lan_en"] .match-content .match-status {
        justify-self: start;
        padding-left: 2px;
    }

    body[data-lan="lan_en"] .match-content .watch-btn:not(:first-child),
    body[data-lan="lan_en"] .recording-content .watch-btn:not(:first-child) {
        display: none;
    }

    body[data-lan="lan_en"] .match-content .watch-btn,
    body[data-lan="lan_en"] .recording-content .watch-btn {
        width: 76px;
        height: 26px;
        padding: 0 10px;
        border-radius: 3px;
        background: var(--brand-purple);
        color: #fff;
        font-size: 12px;
        font-weight: 800;
    }

    body[data-lan="lan_en"] .match-content .has-pc-label .watch-label-default,
    body[data-lan="lan_en"] .recording-content .has-pc-label .watch-label-default {
        display: none;
    }

    body[data-lan="lan_en"] .match-content .has-pc-label .watch-label-pc,
    body[data-lan="lan_en"] .recording-content .has-pc-label .watch-label-pc {
        display: inline;
    }
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 42px;
    width: 58px;
    min-width: 58px;
    height: 58px;
    min-height: 58px;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 8px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: var(--brand-purple-2);
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.main-content-layout,
.left-column {
    width: 100%;
}

.right-column {
    display: none;
}

@media (max-width: 760px) {
    .web_content {
        min-height: 100vh;
    }

    .web_header {
        position: sticky;
        top: 0;
        z-index: 900;
        background: #fff;
        border-bottom: 0;
    }

    .web_header .main {
        width: 100%;
    }

    .sub_nav {
        padding: 4px 0 8px 0;
        background: #f8f6fa;
        border-bottom: 1px solid #eee;
    }

    .sub_head {
        left: 0;
        right: auto;
        top: 0;
        height: 40px;
        display: flex;
        align-items: center;
        z-index: 3;
    }

    .sub_lan {
        height: 40px;
        background: #fff;
        border-radius: 0;
    }

    .sub_lan .item {
        min-width: 28px !important;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #666;
        font-size: 13px;
    }

    .sub_lan .item.active {
        color: var(--brand-purple);
    }

    .web_nav_category {
        height: 36px;
        padding: 0 12px;
        gap: 6px;
        background: transparent;
        align-items: center;
        justify-content: flex-start;
    }

    .web_nav_button {
        height: 36px;
        padding: 0 12px;
        gap: 6px;
        background: transparent;
        align-items: center;
        justify-content: flex-start;
    }

    .web_nav_category > .nav-item,
    .web_nav_button .tournament-tab {
        height: 22px;
        padding: 0 10px;
        min-width: 44px;
        font-size: 12px;
        border-radius: 11px;
    }

    .domain-notice {
        min-height: 36px;
        padding: 0 4px;
        gap: 10px;
        justify-content: flex-start;
        background: linear-gradient(#fff, #f5f5f5);
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
    }

    .domain-notice span {
        font-size: 16px;
    }

    .loc_events {
        width: 100%;
    }

    .match-card {
        background: #fff !important;
    }

    .match-content {
        min-height: 94px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
        grid-template-rows: 26px 36px 30px;
        padding: 6px 7px;
        column-gap: 4px;
        row-gap: 4px;
    }

    .sport-icon {
        display: none;
    }

    .league-badge {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        display: inline-block;
        min-width: 70px;
        max-width: 70px;
        height: 22px;
        font-size: 11px;
        line-height: 22px;
        padding: 0;
        text-align: center;
        white-space: nowrap;
    }

    .match-time {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        align-self: center;
        font-size: 12px;
    }

    .match-status {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        color: #ff0000;
        font-size: 12px;
    }



    .team {
        gap: 6px;
    }

    .team-home {
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-end;
        padding-right: 0;
    }

    .team-away {
        grid-column: 3;
        grid-row: 2;
        justify-content: flex-start;
        padding-left: 0;
    }

    .team-name {
        font-size: 13px;
        line-height: 20px;
    }

    .team-logo {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .score-cell {
        grid-column: 2;
        grid-row: 2;
        justify-self: center;
        align-self: center;
        z-index: 2;
        min-width: 100px;
        font-size: 14px;
    }

    .match-content .channel-list,
    .recording-content .channel-list {
        grid-column: 1 / -1;
        grid-row: 3;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px;
        padding: 0;
        overflow: visible;
    }

    .watch-btn {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        height: 24px;
        border-radius: 3px;
        background: var(--brand-purple);
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        padding: 0 8px !important;
    }

    .watch-btn.live {
        background: var(--live-green);
        color: #fff;
    }

    .back-to-top {
        right: 8px;
        bottom: 68px;
        width: 50px;
        min-width: 50px;
        height: 50px;
        min-height: 50px;
        border-width: 6px;
        border-radius: 999px;
        font-size: 24px;
        line-height: 1;
        padding: 0;
    }

}

.match-status.status-upcoming {
    color: #333 !important;
}

.match-status.status-postponed {
    color: #555 !important;
}

@media (max-width: 430px) {
    .team-name {
        font-size: 13px;
    }

    .channel-list {
        padding: 0;
    }
}

/* Recordings page layout styles */
.recording-head-row {
    height: 39px;
    display: grid;
    grid-template-columns: 24px 80px 80px minmax(140px, 1fr) 100px minmax(140px, 1fr) 260px;
    align-items: center;
    padding: 0 10px;
    column-gap: 6px;
    color: #222;
    font-size: 13px;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid var(--line-color);
}

.recording-head-row .lab_events {
    grid-column: span 2;
}

.recording-card {
    display: block;
    margin: 0;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.recording-card:nth-child(even) {
    background: #fbfbfb;
}

.recording-content {
    min-height: 50px;
    display: grid;
    grid-template-columns: 24px 80px 80px minmax(140px, 1fr) 100px minmax(140px, 1fr) 260px;
    align-items: center;
    padding: 0 10px;
    column-gap: 6px;
}

.recording-content .channel-list {
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .recording-head-row {
        display: none !important;
    }
    
    .recording-content {
        min-height: 94px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
        grid-template-rows: 26px 36px 30px;
        padding: 6px 7px;
        column-gap: 4px;
        row-gap: 4px;
    }
    
    .recording-content .sport-icon {
        display: none;
    }
    
    .recording-content .league-badge {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        display: inline-block;
        min-width: 70px;
        max-width: 70px;
        height: 22px;
        font-size: 11px;
        line-height: 22px;
        padding: 0;
        text-align: center;
        white-space: nowrap;
    }
    
    .recording-content .match-time {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        align-self: center;
        font-size: 12px;
    }
    
    .recording-content .team-home {
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-end;
    }
    
    .recording-content .team-away {
        grid-column: 3;
        grid-row: 2;
        justify-content: flex-start;
    }
    
    .recording-content .score-cell {
        grid-column: 2;
        grid-row: 2;
        justify-self: center;
        align-self: center;
        min-width: 100px;
        font-size: 14px;
    }
    
    .recording-content .channel-list {
        grid-column: 1 / -1;
        grid-row: 3;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px;
        padding: 0;
        overflow: visible;
    }
    
    .recording-content .watch-btn {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        height: 24px;
        border-radius: 3px;
        background: var(--brand-purple);
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        padding: 0 8px !important;
    }
}

@media (max-width: 760px) {
    body[data-lan="lan_en"] .match-content,
    body[data-lan="lan_en"] .recording-content {
        min-height: 94px;
        grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
        grid-template-rows: 26px 36px 30px;
    }

    body[data-lan="lan_en"] .league-badge,
    body[data-lan="lan_en"] .recording-content .league-badge {
        grid-column: 1;
        justify-self: start;
        display: inline-block;
        width: 66.666%;
        min-width: 0;
        max-width: 66.666%;
        height: 22px;
        max-height: 22px;
        line-height: 22px;
        padding: 0 7px;
        text-align: left;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    body[data-lan="lan_en"] .match-time,
    body[data-lan="lan_en"] .recording-content .match-time {
        grid-column: 2;
        justify-self: center;
        align-self: center;
    }

    body[data-lan="lan_en"] .match-status {
        grid-column: 3;
        justify-self: end;
    }

    body[data-lan="lan_en"] .match-content .watch-btn,
    body[data-lan="lan_en"] .recording-content .watch-btn {
        width: auto;
    }
}
