/* billboard.css - RFC Manager 公共看板 (落地页) */

@font-face {
    font-family: 'Russo One';
    src: url('assets/fonts/RussoOne.ttf') format('truetype');
}
@font-face {
    font-family: 'Rajdhani';
    src: url('assets/fonts/Rajdhani.ttf') format('truetype');
}
@font-face {
    font-family: 'Noto Sans SC';
    src: url('assets/fonts/NotoSansSC.ttf') format('truetype');
}

:root {
    --primary: #e10600;
    --bg: #0a0a0c;
    --panel: #141418;
    --panel2: #1b1b21;
    --line: #2a2a32;
    --txt: #eee;
    --dim: #888;
    --green: #4caf50;
    --gold: #ffd700;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg);
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    color: var(--txt);
    font-family: 'Rajdhani', 'Noto Sans SC', sans-serif;
    min-height: 100vh;
}

.hidden { display: none !important; }

/* ---------- 头部 ---------- */
.bb-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 34px;
    background: linear-gradient(180deg, #16161a 0%, #0e0e11 100%);
    border-bottom: 3px solid var(--primary);
    position: sticky; top: 0; z-index: 10;
}
.bb-logo-main {
    font-family: 'Russo One';
    font-size: 30px;
    font-style: italic;
    color: #fff;
    background: var(--primary);
    padding: 4px 14px;
    border-radius: 4px;
    margin-right: 14px;
}
.bb-logo-sub { font-size: 18px; color: var(--dim); letter-spacing: 2px; }
.bb-header-actions { display: flex; align-items: center; gap: 14px; }
.bb-lang-btn {
    font-family: 'Rajdhani', 'Noto Sans SC', sans-serif;
    font-size: 19px;
    font-weight: bold;
    color: #ddd;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    transition: border-color .12s, color .12s;
}
.bb-lang-btn:hover { border-color: var(--primary); color: #fff; }
.bb-play-btn {
    font-family: 'Russo One';
    font-size: 20px;
    color: #fff; text-decoration: none;
    background: var(--primary);
    padding: 12px 28px;
    border-radius: 6px;
    border: 1px solid #ff4444;
    box-shadow: 0 4px 18px rgba(225, 6, 0, 0.35);
    transition: transform .12s, box-shadow .12s;
}
.bb-play-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(225, 6, 0, 0.55); }

/* ---------- 主体 ---------- */
.bb-main { max-width: 1400px; margin: 0 auto; padding: 26px 24px 60px; }
section { margin-bottom: 38px; }

.bb-section-title {
    font-family: 'Russo One';
    font-size: 22px;
    color: #fff;
    border-left: 5px solid var(--primary);
    padding-left: 12px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.live-dot {
    display: inline-block; width: 11px; height: 11px; border-radius: 50%;
    background: var(--green); margin-right: 10px;
    box-shadow: 0 0 8px var(--green);
    animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- 计数条 ---------- */
.bb-counters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.counter {
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 3px solid var(--primary);
    border-radius: 6px;
    padding: 14px 10px 12px;
    text-align: center;
}
.c-val { font-family: 'Russo One'; font-size: 34px; color: #fff; line-height: 1.1; }
.c-label { font-size: 14px; color: var(--dim); margin-top: 4px; letter-spacing: 1px; }

/* ---------- 最快圈横幅 ---------- */
.bb-fastest {
    display: flex; align-items: center; gap: 16px;
    background: linear-gradient(90deg, rgba(224, 64, 251, 0.12), transparent 70%);
    border: 1px solid #4a2a52;
    border-left: 5px solid #e040fb;
    border-radius: 6px;
    padding: 12px 20px;
    margin-top: 14px;
}
.fl-icon { font-size: 24px; }
.fl-label { font-size: 15px; color: #c98fd6; letter-spacing: 2px; }
.fl-time { font-family: 'Russo One'; font-size: 28px; color: #e040fb; }
.fl-detail { font-size: 17px; color: var(--dim); }

/* ---------- 实时会话卡片 ---------- */
.bb-live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 16px;
}
.live-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.live-card.racing { border-color: #5a1512; box-shadow: 0 0 22px rgba(225, 6, 0, 0.18); }
.lc-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px;
    background: var(--panel2);
    border-bottom: 2px solid var(--primary);
}
.lc-team { font-family: 'Russo One'; font-size: 20px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-badge {
    font-size: 13px; font-weight: bold; letter-spacing: 1px;
    padding: 3px 10px; border-radius: 20px; white-space: nowrap; margin-left: 10px;
}
.lc-badge.racing { background: var(--primary); color: #fff; animation: pulse 1.6s infinite; }
.lc-badge.setup { background: #2b4d2d; color: #9be29e; }
.lc-badge.reg { background: #333; color: #aaa; }
.lc-badge.flagged { background: #4d2b00; color: #ffb74d; }
.lc-body { padding: 12px 16px; font-size: 16px; }
.lc-row { display: flex; justify-content: space-between; padding: 3px 0; color: #ccc; }
.lc-row .k { color: var(--dim); }
.lc-row .v { font-weight: bold; }
.lc-my { color: var(--gold); }
.lc-top3 {
    margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line);
    font-size: 14px; color: var(--dim); line-height: 1.6;
}

.bb-empty, .bb-empty-cell {
    color: #555; text-align: center; padding: 34px 10px; font-size: 17px; letter-spacing: 1px;
}
.bb-empty { grid-column: 1 / -1; background: var(--panel); border: 1px dashed var(--line); border-radius: 8px; }

/* ---------- 表格 ---------- */
.bb-table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.bb-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.bb-table th {
    text-align: left; padding: 12px 14px;
    background: var(--panel2);
    color: var(--dim); font-size: 13px; letter-spacing: 1px;
    border-bottom: 2px solid var(--primary);
    white-space: nowrap;
}
.bb-table td { padding: 10px 14px; border-bottom: 1px solid #1e1e24; white-space: nowrap; }
.bb-table tr:last-child td { border-bottom: none; }
.bb-table tr:hover td { background: rgba(255,255,255,0.02); }
.td-team { color: var(--gold); font-weight: bold; }
.td-winner { color: #fff; font-weight: bold; }
.verified-ok { color: var(--green); font-weight: bold; }
.verified-no { color: #ff9800; font-weight: bold; cursor: help; }
.td-link a { color: #64b5f6; text-decoration: none; font-size: 14px; }
.td-link a:hover { text-decoration: underline; }

/* ---------- 搜索框 ---------- */
.bb-search-row { margin-bottom: 14px; }
#season-search {
    width: 100%; max-width: 560px;
    padding: 12px 18px;
    font-size: 17px;
    font-family: 'Rajdhani', 'Noto Sans SC', sans-serif;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #fff;
    outline: none;
}
#season-search:focus { border-color: var(--primary); }

/* ---------- 赛季展开详情 ---------- */
tr.season-row { cursor: pointer; }
tr.season-row .chevron {
    display: inline-block; width: 16px; color: var(--dim);
    transition: transform .15s; font-size: 13px;
}
tr.season-row.open .chevron { transform: rotate(90deg); color: var(--primary); }
tr.season-row.open td { background: rgba(225, 6, 0, 0.06); }
.sd-id { font-family: 'Russo One'; color: #fff; }
.sd-sub { color: var(--dim); font-size: 13px; }

.season-detail-cell { background: #0d0d11; padding: 0 !important; }
.sd-wrap { padding: 18px 22px 22px; }
.sd-loading-txt { color: var(--dim); letter-spacing: 1px; }

.sd-stats {
    display: flex; flex-wrap: wrap; gap: 8px 22px;
    font-size: 15px; color: #bbb;
    padding-bottom: 12px; margin-bottom: 14px;
    border-bottom: 1px dashed var(--line);
}
.sd-stat-label { font-family: 'Russo One'; font-size: 13px; color: var(--primary); letter-spacing: 1px; }
.sd-fl { color: #e040fb; }
.sd-note { color: #555; margin-left: auto; }

.sd-grid { display: grid; grid-template-columns: 1.25fr 0.75fr 1.5fr; gap: 22px; }
@media (max-width: 1000px) { .sd-grid { grid-template-columns: 1fr; } }

.sd-block h4 {
    font-family: 'Russo One'; font-size: 14px; color: #ddd;
    letter-spacing: 1px; border-left: 3px solid var(--primary);
    padding-left: 9px; margin-bottom: 9px;
}
.sd-scroll { max-height: 330px; overflow-y: auto; }
.sd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sd-table th {
    text-align: left; padding: 5px 9px;
    color: var(--dim); font-size: 12px; letter-spacing: 1px;
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; background: #0d0d11;
}
.sd-table td { padding: 5px 9px; border-bottom: 1px solid #17171c; white-space: nowrap; }
.sd-table tr:last-child td { border-bottom: none; }
.sd-pts { color: var(--primary); font-weight: bold; }
.sd-player, tr.sd-player td { color: var(--gold); font-weight: bold; }

.bb-footer {
    text-align: center; color: #444; font-size: 13px; letter-spacing: 1px;
    padding: 24px 0 30px;
    border-top: 1px solid #151519;
}
