@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Oswald:wght@500;600;700&family=Orbitron:wght@500;700;900&display=swap');

/* ==========================================
   1. 全局变量 —— HLTV 暗色设计系统
   （旧 token 名保留，供 JS 内联 var() 引用；
    --hl-* 为全站统一别名，其他页面请引用 --hl-*）
   ========================================== */
:root {
    --bg-main: #0e0f11;
    --bg-card: #16181b;
    --bg-hover: #1e2126;
    --primary: #c80303;
    --accent: #ff1c1c;
    --text-main: #e6e8ea;
    --text-muted: #8a9096;
    --border-color: rgba(255, 255, 255, 0.08);
    --max-width: 1200px;

    --hl-bg: #0e0f11;
    --hl-surface: #16181b;
    --hl-raised: #1e2126;
    --hl-border: rgba(255, 255, 255, 0.08);
    --hl-fg: #e6e8ea;
    --hl-muted: #8a9096;
    --hl-red: #c80303;
    --hl-red-bright: #ff1c1c;
    --hl-blue: #5bbad5;
    --hl-green: #46a36a;
    --hl-font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --hl-font-head: 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --hl-font-logo: 'Orbitron', 'Oswald', 'Segoe UI', sans-serif;
}

html { color-scheme: dark; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--hl-font-body);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 13px;
    line-height: 1.4;
    padding-bottom: 24px;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   2. 顶部导航栏 (Navbar) —— HLTV 紧凑暗色条
   ========================================== */
.navbar {
    background-color: #121316;
    border-bottom: 1px solid var(--primary);
    padding: 0 14px;
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 10px;
    flex-shrink: 0;
}
.navbar .logo img {
    height: 30px;
    width: auto;
}
.navbar .logo span {
    font-family: var(--hl-font-logo);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 2px;
}

.navbar nav {
    display: flex;
    height: 100%;
    min-width: 0;
}

.navbar nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0 14px;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.navbar nav a:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.04);
}

.navbar nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* 用户区（登录 / 注册 / 退出） */
.user-controls { margin-left: auto; display: flex; align-items: center; gap: 10px; padding-left: 12px; }
.user-controls .user-name { font-size: 12px; font-weight: 600; color: var(--text-main); }
.user-controls button {
    background: var(--hl-red);
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s;
}
.user-controls button:hover { background: #a00202; }
.user-controls .btn-logout {
    background: transparent;
    border: 1px solid var(--hl-border);
    color: var(--hl-fg);
}
.user-controls .btn-logout:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

/* ==========================================
   3. 主体布局 —— 双栏 (主栏 + 右侧模块栏)
   ========================================== */
.container {
    max-width: var(--max-width);
    margin: 14px auto;
    padding: 0 16px;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: start;
}

.main-col, .side-col { min-width: 0; }
.side-col { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 56px; }

/* HLTV 模块盒子 */
.col-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.col-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--hl-font-head);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    font-weight: 600;
    color: var(--hl-fg);
}
.col-box-header::before {
    content: '';
    width: 3px;
    height: 11px;
    background: var(--hl-red);
    flex-shrink: 0;
}

.col-box-body { padding: 3px 0; }
.col-box-body.with-pad { padding: 10px 12px; }

/* 通用板块标题（供保留 section-title 的页面使用） */
.section-title {
    font-family: var(--hl-font-head);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 12px;
    background-color: var(--primary);
    margin-right: 8px;
    border-radius: 1px;
}

/* ==========================================
   4. 最近赛事网格 (Matches Grid)
   ========================================== */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 8px 10px;
}

/* ==========================================
   5. 新闻列表 (News Section)
   ========================================== */
.news-list {
    background: transparent;
    padding: 0;
}

/* ==========================================
   6. 空状态 / 预留占位符
   ========================================== */
.match-placeholder, .news-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s ease;
}

.match-placeholder {
    grid-column: 1 / -1;
    height: 130px;
}

.news-placeholder {
    height: 200px;
}

.match-placeholder:hover, .news-placeholder:hover {
    border-color: var(--primary);
    color: var(--text-main);
}

/* ==========================================
   7. 响应式移动端优化
   ========================================== */
@media (max-width: 1100px) {
    .layout { grid-template-columns: minmax(0, 1fr) 270px; }
    .matches-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    .side-col { position: static; flex-direction: row; flex-wrap: wrap; }
    .side-col .col-box { flex: 1 1 260px; }
    .matches-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .match-placeholder {
        flex: 0 0 100%;
        height: 130px;
    }
    .matches-grid::-webkit-scrollbar { height: 4px; }
    .matches-grid::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }
}

@media (max-width: 640px) {
    .navbar { flex-wrap: wrap; height: auto; padding: 6px 10px; row-gap: 4px; }
    .navbar .logo { margin: 2px 6px; }
    .navbar .logo img { height: 26px; }
    .navbar nav { height: auto; flex-wrap: wrap; }
    .navbar nav a { padding: 6px 10px; font-size: 12px; }
    .user-controls { padding-left: 8px; }
}

/* ==========================================
   8. 比赛卡片 (Match Card)
   ========================================== */
.match-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 7px 9px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 104px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.match-card:hover {
    border-color: var(--hl-red);
    background-color: var(--hl-raised);
}

.match-time-status {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-badge {
    color: var(--accent);
    background-color: rgba(255, 28, 28, 0.12);
    padding: 2px 7px;
    border-radius: 2px;
    letter-spacing: 0.08em;
    font-family: var(--hl-font-head);
    font-size: 11px;
    animation: blink 1.6s infinite;
}

.time-text {
    color: var(--text-muted);
    font-family: var(--hl-font-head);
    letter-spacing: 0.04em;
}

.teams-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    min-width: 0;
}

.team-name {
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.team-name a.player-link {
    color: inherit;
}

.score {
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    font-family: var(--hl-font-head);
    font-size: 12px;
    flex-shrink: 0;
}

.score.win {
    color: var(--hl-green);
}

/* 胜负行态：有比分结果的卡片里，赢家队名提亮、输家队名压暗（无结果则两队同色） */
.match-card:has(.score.win) .team:has(.score.win) .team-name { color: #fff; }
.match-card:has(.score.win) .team:not(:has(.score.win)) .team-name { color: var(--text-muted); }

.event-name {
    font-size: 10px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 3px;
    margin-top: 4px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
    height: 24px;
}

/* 比赛类型/等级徽章 */
.match-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    padding: 0 5px;
    border-radius: 2px;
    margin-right: 3px;
    vertical-align: middle;
    letter-spacing: 0.04em;
}

.type-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.lvl-s {
    background: rgba(255, 193, 7, 0.16);
    color: #ffd54f;
}

.lvl-a {
    background: rgba(76, 175, 80, 0.16);
    color: #81c784;
}

.lvl-b {
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}

/* ==========================================
   9. 新闻条目 (News Item)
   ========================================== */
.news-item {
    display: flex;
    align-items: center;
    padding: 7px 12px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: var(--bg-hover);
}

.news-time {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    font-family: var(--hl-font-head);
    letter-spacing: 0.04em;
    width: 58px;
    flex-shrink: 0;
}

.news-title {
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 12px;
}

.news-title:hover {
    color: var(--primary);
    text-decoration: underline;
}

.news-comments {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ==========================================
   10. 新闻详情页与评论区
   ========================================== */
.back-to-home a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.back-to-home a:hover {
    text-decoration: underline;
}

.news-article-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 18px 20px;
}

.article-title {
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.3;
    font-weight: 700;
}

.article-meta {
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.article-meta span {
    margin-right: 20px;
}

.article-content p {
    font-size: 14px;
    color: #d3d7dc;
    line-height: 1.6;
    margin-bottom: 12px;
    max-width: 70ch;
}

.article-content strong {
    color: var(--text-main);
}

.comments-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 16px 18px;
}

.comments-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    font-family: var(--hl-font-head);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.comment-form textarea:focus {
    border-color: var(--primary);
    background-color: #16181b;
}

.submit-comment-btn {
    align-self: flex-end;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    padding: 7px 18px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-comment-btn:hover {
    background-color: #a00202;
}

.comments-list {
    display: flex;
    flex-direction: column;
}

.comment-item {
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
}

.comment-user {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

.comment-user .username {
    font-weight: 700;
    color: var(--text-main);
}

.comment-user .comment-time {
    color: var(--text-muted);
}

.comment-text {
    font-size: 14px;
    color: #c8ccd2;
    line-height: 1.5;
}

/* ==========================================
   11. 赛事列表页 (Tournament List)
   ========================================== */
.tournament-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tournament-card {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.2s, border-color 0.2s;
}

.tournament-card:hover {
    background-color: var(--bg-hover);
    border-color: var(--hl-red);
}

.tournament-card.ongoing {
    border-left: 3px solid var(--accent);
}

.t-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding-right: 14px;
    border-right: 1px solid var(--border-color);
    margin-right: 14px;
}

.t-month {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.t-days {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--hl-font-head);
    line-height: 1.1;
}

.t-info {
    flex-grow: 1;
    min-width: 0;
}

.t-name {
    font-size: 15px;
    margin-bottom: 2px;
    font-weight: 700;
}

.t-prize {
    font-size: 13px;
    color: var(--text-muted);
}

.t-status {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 3px 10px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    letter-spacing: 0.04em;
}

.t-status.badge-live {
    color: var(--accent);
    background-color: rgba(255, 28, 28, 0.12);
    animation: blink 1.6s infinite;
}

@keyframes blink {
    50% { opacity: 0.3; }
}

/* 动效可访问性：系统偏好减弱动态时，关闭循环脉冲（状态仍由颜色/文字传达） */
@media (prefers-reduced-motion: reduce) {
    .status-badge { animation: none; }
    .live-dot { animation: none; }
}

/* ==========================================
   12. 赛事对阵图 (Bracket)
   ========================================== */
.tournament-header {
    background-color: var(--bg-card);
    padding: 16px 20px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    margin-bottom: 18px;
    text-align: center;
}

.tournament-header h1 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 3px;
    font-family: var(--hl-font-head);
    letter-spacing: 0.02em;
}

.tournament-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.bracket-container {
    display: flex;
    overflow-x: auto;
    padding: 12px 0;
    gap: 28px;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    min-width: 200px;
}

.bracket-match {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    margin: 10px 0;
    position: relative;
}

.bracket-team {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
}

.bracket-team:last-child {
    border-bottom: none;
}

.bracket-team.winner .name {
    color: var(--text-main);
    font-weight: 800;
}

.bracket-team.winner .score {
    color: var(--hl-green);
}

.bracket-round:not(:last-child) .bracket-match::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    width: 20px;
    height: 2px;
    background-color: var(--border-color);
}

/* ==========================================
   13. 分页控制 (Pagination)
   ========================================== */
.pagination-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(200, 3, 3, 0.08);
}

.pagination-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0 5px;
}

/* ==========================================
   14. 选手链接 / 已结束徽章 / 通用工具
   ========================================== */
.player-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.2s;
}

.player-link:hover {
    border-bottom-color: var(--primary);
}

.t-status.badge-past {
    color: var(--text-muted);
    background-color: var(--bg-hover);
    border: 1px solid var(--border-color);
}

.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 直播红点脉冲 */
.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hl-red-bright);
    flex-shrink: 0;
    animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* 侧栏直播速览行 */
.live-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    min-width: 0;
}
.live-row:last-child { border-bottom: none; }
.live-row:hover { background: var(--bg-hover); }
.live-teams {
    color: var(--text-main);
    font-weight: 600;
    min-width: 0;
}
.live-vs { color: var(--text-muted); font-size: 10px; margin: 0 2px; }
.live-score {
    margin-left: auto;
    color: var(--hl-fg);
    font-family: var(--hl-font-head);
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}
.live-empty {
    color: var(--text-muted);
    font-size: 12px;
    padding: 10px 12px;
}

/* 关于模块：一句说明 + 站内导航行 */
.about-box { padding: 10px 12px; }
.about-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}
.about-links { border-top: 1px solid var(--border-color); }
.about-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 2px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}
.about-links a:last-child { border-bottom: none; }
.about-links a:hover { color: var(--primary); background: var(--bg-hover); }

/* ==========================================
   15. 行式比赛表 (Match Table) —— 数据页/选手页使用
   ========================================== */
.match-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.match-table thead th {
    font-family: var(--hl-font-head);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
    padding: 5px 10px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
.match-table tbody td {
    padding: 5px 10px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.match-table tbody tr { transition: background 0.15s; }
.match-table tbody tr:hover { background: var(--bg-hover); }
.match-table tbody tr:last-child td { border-bottom: none; }
.mt-time {
    font-family: var(--hl-font-head);
    color: var(--text-muted);
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.mt-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.mt-score {
    font-family: var(--hl-font-head);
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    font-weight: 600;
    color: var(--hl-fg);
    white-space: nowrap;
}
.mt-won .mt-score { color: var(--hl-green); }
.mt-lost .mt-score { color: var(--text-muted); }
.mt-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-family: var(--hl-font-head);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
}
/* 比赛表扩展 —— 逐队胜负态 / 分隔符 / 赛事名 / 空态（数据页·选手页使用） */
.mt-score.win { color: var(--hl-green); }
.mt-score.lost { color: var(--text-muted); }
.mt-vs { color: var(--text-muted); margin: 0 5px; font-family: var(--hl-font-head); font-size: 11px; }
.mt-event { color: var(--text-muted); font-size: 12px; }
.tbl-empty { color: var(--text-muted); text-align: center; padding: 16px 10px; font-size: 12px; }
.empty-tip { color: var(--text-muted); padding: 16px 12px; font-size: 12px; }
.container .col-box + .col-box { margin-top: 14px; }

/* ==========================================
   16. 排名表 (Rank Table) —— 数据页使用
   ========================================== */
.rank-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rank-table thead th {
    font-family: var(--hl-font-head);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
    padding: 5px 10px;
    border-bottom: 1px solid var(--border-color);
}
.rank-table tbody td {
    padding: 4px 10px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.rank-table tbody tr { transition: background 0.15s; }
.rank-table tbody tr:hover { background: var(--bg-hover); }
.rank-table tbody tr:last-child td { border-bottom: none; }
.rank-pos {
    font-family: var(--hl-font-head);
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    width: 34px;
}
.rank-first .rank-pos { color: var(--hl-red); font-weight: 700; }
.rank-second .rank-pos { color: var(--hl-blue); font-weight: 700; }
.rank-third .rank-pos { color: var(--hl-green); font-weight: 700; }
.rank-pts {
    font-family: var(--hl-font-head);
    font-variant-numeric: tabular-nums;
    text-align: right;
    font-weight: 600;
}

/* ==========================================
   16. 赛事树可读性: 轮次标题 / 对阵标签 / 决赛列无连线
   ========================================== */
.bracket-round-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.bracket-match-label {
    font-size: 11px;
    font-weight: 700;
    color: #e8b93c;
    background: rgba(232, 185, 60, 0.12);
    border: 1px solid rgba(232, 185, 60, 0.35);
    border-radius: 4px;
    padding: 3px 6px;
    margin: 6px 8px 0;
    text-align: center;
}

.bracket-round.final-round .bracket-match::after {
    display: none;
}

/* ==========================================
   17. 翻页控件: 指定页数跳转
   ========================================== */
.page-jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.page-jump-input {
    width: 64px;
    padding: 5px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 12px;
    text-align: center;
}

.page-jump-input::-webkit-inner-spin-button,
.page-jump-input::-webkit-outer-spin-button {
    opacity: 1;
}

/* ==========================================
   18. 底部滚动赞助感谢栏
   ========================================== */
.sponsor-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34px;
    background: linear-gradient(90deg, #7a0303, #c80303);
    color: #fff;
    overflow: hidden;
    z-index: 900;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.35);
}

.sponsor-track {
    display: inline-flex;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    animation: sponsorScroll 30s linear infinite;
    will-change: transform;
}

@keyframes sponsorScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==========================================
   19. 选手页: 冠军星星
   ========================================== */
.player-stars {
    margin-top: 6px;
    font-size: 0;
}
.player-stars .star {
    display: inline-block;
    color: #f5c518;
    font-size: 17px;
    letter-spacing: 3px;
    cursor: help;
    text-shadow: 0 0 6px rgba(245, 197, 24, 0.4);
    transition: transform 0.15s;
}
.player-stars .star:hover {
    transform: scale(1.25);
}
