/* 2026 世界杯专题插件样式 */

/* ===== 区块头部（含查看全部链接） ===== */
.wc-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.wc-section-head .wc-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.wc-section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #c8102e;
}
.wc-section-sub {
    font-size: 13px;
    color: #999;
}
.wc-more-link {
    font-size: 13px;
    color: #1E9FFF;
    text-decoration: none;
    white-space: nowrap;
}
.wc-more-link:hover { text-decoration: underline; }

/* ===== 首页紧凑赛程/赛果（两列） ===== */
.wc-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 18px;
}
.wc-compact-col {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px 14px;
}
.wc-compact-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}
.wc-compact-col-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #333;
}
.wc-empty {
    color: #aaa;
    font-size: 13px;
    padding: 16px 0;
    text-align: center;
}
.wc-compact-news {
    max-height: 620px;
    overflow-y: auto;
}
.wc-sport-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.wc-sport-news-list li {
    border-top: 1px solid #f0f0f0;
}
.wc-sport-news-list li:first-child {
    border-top: none;
}
.wc-sport-news-list .stream-link {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}
.wc-sport-news-list .stream-link:hover {
    color: #c8102e;
}
.wc-sport-news-list .stream-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 单场比赛行 ===== */
.wc-match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.wc-match:last-child { border-bottom: none; }
.wc-team {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.wc-team.home { justify-content: flex-end; text-align: right; }
.wc-team.away { justify-content: flex-start; text-align: left; }
.wc-flag {
    width: 26px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #eee;
    flex-shrink: 0;
    background: #f5f5f5;
}
.wc-flag.placeholder {
    display: inline-block;
    line-height: 18px;
    font-size: 10px;
    color: #bbb;
    text-align: center;
}
.wc-team-name {
    font-size: 13px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wc-center {
    text-align: center;
    min-width: 78px;
}
.wc-score {
    font-size: 16px;
    font-weight: 700;
    color: #c8102e;
    white-space: nowrap;
}
.wc-vs {
    font-size: 12px;
    color: #bbb;
}
.wc-time {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 2px;
    white-space: nowrap;
}
.wc-meta {
    font-size: 11px;
    color: #bbb;
    text-align: center;
    margin-top: 2px;
}

/* ===== 首页：淘汰赛对阵树（窄版，与赛事新闻同排） ===== */
.wc-compact-bracket {
    grid-template-columns: 730px 1fr;
    align-items: start;
}
.wc-bracket-wrap {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 0;
}
.wc-bracket-scroll {
    overflow-x: auto;
    padding-bottom: 4px;
}
.wc-bracket {
    --wc-gap: 18px;
    --wc-line: #d2d2d2;
    display: flex;
    align-items: stretch;
    gap: var(--wc-gap);
    min-width: 0;
}
.wc-bk-col {
    flex: 1 1 0;
    min-width: 104px;
    display: flex;
    flex-direction: column;
}
.wc-bk-col-head {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #c8102e;
    border-radius: 5px;
    padding: 4px 0;
    margin-bottom: 8px;
    white-space: nowrap;
}
.wc-bk-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.wc-bk-half {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.wc-bk-half.top {
    border-bottom: 1px dashed #e2e2e2;
}
.wc-bk-final {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.wc-bk-slot {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    padding: 3px 0;
}
.wc-bk-final .wc-bk-slot {
    flex: 0 0 auto;
}
.wc-bk-match {
    width: 100%;
    border: 1px solid #ececec;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    position: relative;
    z-index: 1;
}

/* ===== 对阵连线 ===== */
.wc-bracket .wc-bk-col:not(.wc-bk-col-final) .wc-bk-slot::after {
    content: "";
    position: absolute;
    left: 100%;
    width: var(--wc-gap);
    height: 50%;
    border: 0 solid var(--wc-line);
    pointer-events: none;
}
/* 每对中的上面一场：中线 -> 向下到分界 */
.wc-bracket .wc-bk-col:not(.wc-bk-col-final) .wc-bk-half .wc-bk-slot:nth-child(odd)::after {
    top: 50%;
    border-top-width: 2px;
    border-right-width: 2px;
}
/* 每对中的下面一场：中线 -> 向上到分界 */
.wc-bracket .wc-bk-col:not(.wc-bk-col-final) .wc-bk-half .wc-bk-slot:nth-child(even)::after {
    bottom: 50%;
    border-bottom-width: 2px;
    border-right-width: 2px;
}
/* 半决赛跨上下半区汇入决赛：下半区那场改为向上连 */
.wc-bracket .wc-bk-col-semifinal .wc-bk-half.bottom .wc-bk-slot:nth-child(odd)::after {
    top: auto;
    bottom: 50%;
    border-top-width: 0;
    border-bottom-width: 2px;
}
.wc-bk-date {
    font-size: 10px;
    color: #999;
    text-align: center;
    padding: 2px 3px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}
.wc-bk-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 5px;
}
.wc-bk-row + .wc-bk-row {
    border-top: 1px dashed #f2f2f2;
}
.wc-bk-row.win .wc-bk-name {
    font-weight: 700;
    color: #111;
}
.wc-bk-row.win .wc-bk-score {
    color: #c8102e;
}
.wc-bk-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #eee;
    flex-shrink: 0;
    background: #f5f5f5;
}
.wc-bk-flag.ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 12px;
    font-size: 9px;
    color: #bbb;
}
.wc-bk-name {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wc-bk-name.tbd {
    color: #bbb;
}
.wc-bk-score {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    min-width: 12px;
    text-align: center;
}
.wc-bk-empty {
    color: #ccc;
    font-size: 12px;
    text-align: center;
    border: 1px dashed #eee;
    border-radius: 6px;
    padding: 8px 4px;
}

/* ===== 完整赛程页（字号偏大，便于年长用户阅读） ===== */
.wc-page {
    width: 1200px;
    max-width: 1200px;
    margin: 24px auto 48px;
    padding: 0 0 32px;
    font-size: 18px;
    line-height: 1.5;
}
.wc-page-back {
    margin: 0 0 12px;
    font-size: 16px;
}
.wc-page-back a {
    color: #1E9FFF;
    text-decoration: none;
}
.wc-page-back a:hover {
    text-decoration: underline;
}
.wc-page-title {
    font-size: 36px;
    font-weight: 800;
    color: #c8102e;
    margin: 0 0 10px;
}
.wc-page-desc {
    color: #666;
    font-size: 18px;
    margin: 0 0 28px;
}
.wc-stage {
    margin-bottom: 36px;
}
.wc-stage-title {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px;
    padding-left: 12px;
    border-left: 5px solid #c8102e;
}
.wc-day {
    margin-bottom: 18px;
}
.wc-day-label {
    font-size: 20px;
    color: #555;
    font-weight: 600;
    margin: 0 0 10px;
}
.wc-page .wc-match {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 12px;
    gap: 14px;
}
.wc-page .wc-flag {
    width: 42px;
    height: 28px;
}
.wc-page .wc-flag.placeholder {
    width: 42px;
    height: 28px;
    line-height: 28px;
    font-size: 13px;
}
.wc-page .wc-team {
    gap: 12px;
}
.wc-page .wc-team-name {
    font-size: 22px;
    font-weight: 600;
    color: #222;
}
.wc-page .wc-center {
    min-width: 200px;
}
.wc-page .wc-score {
    font-size: 26px;
}
.wc-page .wc-vs {
    font-size: 18px;
    font-weight: 600;
    color: #999;
}
.wc-page .wc-time {
    font-size: 16px;
    color: #555;
    margin-top: 4px;
}
.wc-page .wc-meta {
    font-size: 15px;
    color: #777;
    margin-top: 6px;
    line-height: 1.4;
}
.wc-page .wc-group {
    display: inline-block;
    font-size: 15px;
    color: #fff;
    background: #c8102e;
    border-radius: 4px;
    padding: 3px 10px;
    margin-bottom: 8px;
}
.wc-page .wc-empty {
    font-size: 18px;
    padding: 24px 0;
}

/* ===== 首页：积分榜 + 射手榜 ===== */
.wc-stats-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    margin-top: 20px;
}
.wc-stats-col {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px 16px;
}
.wc-stats-col .wc-compact-col-title {
    font-size: 18px;
    margin-bottom: 12px;
}
.wc-stats-col .wc-compact-col-head {
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
}
.wc-stats-col .wc-compact-col-head .wc-compact-col-title {
    margin-bottom: 0;
}
.wc-group-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.wc-group-tab {
    border: 1px solid #e0e0e0;
    background: #fafafa;
    color: #555;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.2;
}
.wc-group-tab:hover {
    border-color: #c8102e;
    color: #c8102e;
}
.wc-group-tab.active {
    background: #c8102e;
    border-color: #c8102e;
    color: #fff;
    font-weight: 600;
}
.wc-standings-panel {
    display: none;
}
.wc-standings-panel.active {
    display: block;
}
.wc-standings-table,
.wc-scorers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.wc-standings-table th,
.wc-standings-table td,
.wc-scorers-table th,
.wc-scorers-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    vertical-align: middle;
}
.wc-standings-table th,
.wc-scorers-table th {
    background: #fafafa;
    color: #666;
    font-size: 14px;
    font-weight: 600;
}
.wc-standings-table td.wc-standings-team,
.wc-scorers-table td.wc-scorers-team {
    text-align: left;
    white-space: nowrap;
}
.wc-standings-team,
.wc-scorers-team {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}
.wc-standings-team .wc-flag,
.wc-scorers-team .wc-flag {
    width: 28px;
    height: 19px;
}
.wc-standings-pts,
.wc-scorers-goals {
    font-weight: 700;
    color: #c8102e;
    font-size: 14px;
}
.wc-stats-row .wc-empty {
    font-size: 14px;
}

/* ===== 完整射手榜页 ===== */
.wc-page-scorers-wrap {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 8px 16px 16px;
}
.wc-page .wc-scorers-table {
    font-size: 16px;
}
.wc-page .wc-scorers-table th,
.wc-page .wc-scorers-table td {
    padding: 14px 10px;
}
.wc-page .wc-scorers-table th {
    font-size: 15px;
}
.wc-page .wc-scorers-goals {
    font-size: 18px;
}
.wc-page .wc-scorers-team .wc-flag {
    width: 32px;
    height: 22px;
}

@media (max-width: 768px) {
    .wc-compact { grid-template-columns: 1fr; }
    .wc-compact-bracket { grid-template-columns: 1fr; }
    .wc-stats-row { grid-template-columns: 1fr; }
    .wc-section-title { font-size: 18px; }
}
