/* ============================================================
   World Cup Kèo Vui — styles (mobile-first)
   ============================================================ */

.wckv-predict-wrap,
.wckv-leaderboard {
    max-width: 720px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    /* Ngăn tràn ngang trên mobile */
    box-sizing: border-box;
    width: 100%;
}

/* ---------- Ô nhập tên ---------- */
.wckv-name-box {
    background: #f7f9fc;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
    box-sizing: border-box;
}
.wckv-name-box label {
    display: block;
    font-weight: 600;
}
.wckv-name-box input {
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #ccd2d9;
    border-radius: 6px;
    /* Chiều rộng đầy đủ trên mobile, giới hạn trên desktop */
    width: 100%;
    max-width: 280px;
    font-size: 16px; /* >= 16px để iOS không auto-zoom */
    box-sizing: border-box;
    /* Tap target >= 44px */
    min-height: 44px;
}
.wckv-name-box small {
    color: #667;
    display: block;
    margin-top: 6px;
    font-size: 13px;
}

.wckv-login-box {
    background: #f7f9fc;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 18px;
}
.wckv-login-box h4 {
    margin: 0 0 12px;
    font-size: 18px;
}
.wckv-login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: center;
}
.wckv-login-grid input {
    min-height: 44px;
    border: 1px solid #ccd2d9;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 15px;
    box-sizing: border-box;
    width: 100%;
}
.wckv-login-msg {
    margin: 10px 0 0;
    font-size: 13px;
    color: #2e7d32;
}
.wckv-login-msg.error {
    color: #c62828;
}
.wckv-anchor-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}
.wckv-anchor-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #bcd8fb;
    background: #eef6ff;
    color: #1565c0;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.wckv-anchor-tab:hover {
    background: #dfefff;
    color: #0d47a1;
}
.wckv-player-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.wckv-logout-btn {
    border: 1px solid #d0d9e4;
    background: #fff;
    color: #345;
    border-radius: 6px;
    min-height: 38px;
    padding: 0 14px;
    font-weight: 600;
    cursor: pointer;
}
.wckv-logout-btn:hover {
    background: #f0f7ff;
}

/* ---------- Nhãn vòng đấu ---------- */
.wckv-round-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #1e88e5;
    padding: 6px 0 4px;
    border-bottom: 2px solid #e1e8ed;
    margin-top: 8px;
}

/* ---------- Danh sách trận ---------- */
.wckv-matches {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.wckv-match {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 14px 16px;
    background: #fff;
    box-sizing: border-box;
}

/* Tên đội */
.wckv-match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}
.wckv-match-teams strong,
.wckv-match-teams .wckv-team-link {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wckv-match-teams strong:first-child,
.wckv-match-teams .wckv-team-link:first-child { text-align: right; }
.wckv-match-teams strong:last-child,
.wckv-match-teams .wckv-team-link:last-child  { text-align: left; }

.wckv-vs-label {
    font-size: 12px;
    color: #bbb;
    font-weight: 400;
    flex-shrink: 0;
}

/* 2 nút chọn đội */
.wckv-line-row {
    display: flex;
    justify-content: center;
    margin: 10px 0 8px;
}
.wckv-line-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    background: #eef6ff;
    border: 1px solid #bcd8fb;
    color: #1565c0;
    font-size: 13px;
    font-weight: 700;
}
.wckv-line-label.is-missing {
    background: #fff4e5;
    border-color: #ffd59e;
    color: #c77700;
}
.wckv-outcome-btns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 12px 0 4px;
}
.wckv-outcome-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 6px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 76px;
    box-sizing: border-box;
}
.wckv-outcome-btn:hover {
    border-color: #1e88e5;
    background: #f0f7ff;
}
.wckv-outcome-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #fafafa;
}
.wckv-outcome-btn.selected {
    border-color: #1e88e5;
    background: #1e88e5;
    color: #fff;
}
.wckv-ob-team {
    font-size: 11px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}
.wckv-ob-odds {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    color: #1565c0;
}
.wckv-outcome-btn.selected .wckv-ob-odds { color: #fff; }
.wckv-ob-pts {
    font-size: 11px;
    color: #999;
}
.wckv-outcome-btn.selected .wckv-ob-pts { color: rgba(255,255,255,0.75); }

/* ---------- Meta (giờ + nút gửi) ---------- */
.wckv-match-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.wckv-kickoff {
    color: #667;
    font-size: 13px;
}

/* Nút gửi — tap target >= 44px */
.wckv-submit-btn {
    background: #1e88e5;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 0 18px;
    min-height: 44px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    /* Thêm touch feedback */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.wckv-submit-btn:hover   { background: #1565c0; }
.wckv-submit-btn:active  { background: #0d47a1; }
.wckv-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.wckv-line-chip {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef6ff;
    border: 1px solid #bcd8fb;
    color: #1565c0;
    font-size: 12px;
    font-weight: 700;
}

.wckv-result-msg {
    font-size: 13px;
    color: #2e7d32;
    flex-basis: 100%; /* xuống hàng riêng nếu hết chỗ */
}
.wckv-result-msg.error { color: #c62828; }

/* ---------- Team link (click để xem bảng) ---------- */
.wckv-team-link {
    background: none;
    border: none;
    border-bottom: 1px dashed #1e88e5;
    padding: 0;
    font-weight: 700;
    font-size: inherit;
    cursor: pointer;
    color: inherit;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wckv-team-link:hover { color: #1565c0; border-bottom-style: solid; }

@media (max-width: 720px) {
    .wckv-login-grid {
        grid-template-columns: 1fr;
    }

    .wckv-player-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- Modal ---------- */
#wckv-group-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}
.wckv-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}
.wckv-modal-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px 20px;
    width: 92%;
    max-width: 500px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 12px 48px rgba(0,0,0,0.28);
    box-sizing: border-box;
}
.wckv-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 4px 6px;
    border-radius: 4px;
}
.wckv-modal-close:hover { background: #f0f0f0; color: #333; }

/* ---------- Standings table ---------- */
.wckv-standings-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
}
.wckv-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 340px;
    background: #fff;
}
.wckv-standings-table th {
    background: #f7f9fc;
    padding: 8px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #667;
    text-align: center;
    border-bottom: 1px solid #e1e8ed;
    white-space: nowrap;
}
.wckv-standings-table td {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid #eef1f4;
}
.wckv-standings-table tr:last-child td { border-bottom: none; }
.wckv-std-team { text-align: left !important; white-space: nowrap; }

.wckv-odds-grid-two {
    grid-template-columns: repeat(2, 1fr);
}

/* Matches in standings */
.wckv-std-matches { margin-top: 4px; }
.wckv-std-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    gap: 6px;
    padding: 7px 0;
    border-bottom: 1px solid #eef1f4;
    font-size: 13px;
}
.wckv-std-row:last-child { border-bottom: none; }
.wckv-std-ta { text-align: right; font-weight: 600; }
.wckv-std-tb { text-align: left; font-weight: 600; }
.wckv-std-score {
    font-size: 15px;
    color: #1565c0;
    min-width: 48px;
    text-align: center;
}
.wckv-std-vs {
    color: #ccc;
    font-size: 12px;
    min-width: 48px;
    text-align: center;
}
.wckv-std-time {
    color: #aaa;
    font-size: 11px;
    white-space: nowrap;
}

/* ---------- Nút Phân tích & Tỉ lệ ---------- */
.wckv-detail-bar {
    margin-top: 10px;
    border-top: 1px solid #eef1f4;
    padding-top: 10px;
}
.wckv-detail-btn {
    background: none;
    border: 1px solid #1e88e5;
    color: #1e88e5;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, color 0.15s;
    min-height: 36px;
}
.wckv-detail-btn:hover  { background: #1e88e5; color: #fff; }
.wckv-detail-btn:disabled { opacity: 0.6; cursor: wait; }

/* ---------- Panel Chi tiết ---------- */
.wckv-detail-panel {
    display: none;
    margin-top: 10px;
}
.wckv-detail-content {
    background: #f7f9fc;
    border: 1px solid #d0d9e4;
    border-radius: 8px;
    padding: 14px 16px;
}
.wckv-no-data {
    margin: 0;
    color: #888;
    font-size: 13px;
}
.wckv-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #667;
    margin-bottom: 8px;
}

/* ---------- Odds ---------- */
.wckv-odds { margin-bottom: 14px; }
.wckv-odds-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.wckv-odds-item {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 10px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.wckv-odds-team {
    font-size: 11px;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wckv-odds-val {
    font-size: 22px;
    font-weight: 700;
    color: #1565c0;
    line-height: 1.1;
}
.wckv-odds-pct {
    font-size: 11px;
    color: #999;
}

/* ---------- Analysis ---------- */
.wckv-analysis { margin-top: 2px; }
.wckv-analysis-line {
    font-size: 13px;
    line-height: 1.7;
    color: #333;
    padding: 4px 0;
    border-bottom: 1px dashed #e1e8ed;
}
.wckv-analysis-line:last-child { border-bottom: none; }

/* ---------- Hint cách tính điểm (collapsible) ---------- */
.wckv-rules-hint {
    margin-top: 16px;
    font-size: 13px;
    color: #555;
}
.wckv-rules-hint summary {
    cursor: pointer;
    color: #1e88e5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    user-select: none;
    list-style: none;
    padding: 4px 0;
}
.wckv-rules-hint summary::-webkit-details-marker { display: none; }
.wckv-rules-hint summary::after {
    content: '▾';
    font-size: 11px;
    transition: transform 0.2s;
}
.wckv-rules-hint[open] summary::after { transform: rotate(-180deg); }
.wckv-rules-hint ul {
    margin: 8px 0 0 4px;
    padding-left: 16px;
    line-height: 1.9;
    color: #444;
}

/* ---------- Lịch sử dự đoán ---------- */
.wckv-history-wrap {
    max-width: 720px;
    margin: 28px 0 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-top: 2px solid #e1e8ed;
    padding-top: 20px;
    box-sizing: border-box;
}
.wckv-history-title {
    margin: 0 0 12px;
    font-size: 18px;
}
.wckv-history-desc {
    margin: 0 0 10px;
    font-size: 13px;
    color: #667;
}
.wckv-history-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.wckv-history-form input {
    flex: 1;
    min-width: 180px;
    max-width: 280px;
    padding: 10px 12px;
    border: 1px solid #ccd2d9;
    border-radius: 6px;
    font-size: 15px;
    min-height: 44px;
    box-sizing: border-box;
}
#wckv-hist-btn {
    background: #1e88e5;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 0 20px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    touch-action: manipulation;
    transition: background 0.15s;
}
#wckv-hist-btn:hover:not(:disabled) { background: #1565c0; }
#wckv-hist-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Summary bar */
.wckv-hist-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    background: #f0f7ff;
    border: 1px solid #c8dff8;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 14px 0 12px;
    font-size: 14px;
    color: #1a3c6e;
}
.wckv-hist-summary span { white-space: nowrap; }

/* History table */
.wckv-hist-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
}
.wckv-hist-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 13px;
    min-width: 380px;
}
.wckv-hist-table th {
    background: #f7f9fc;
    padding: 9px 10px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    border-bottom: 1px solid #e1e8ed;
    white-space: nowrap;
}
.wckv-hist-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #eef1f4;
    vertical-align: middle;
}
.wckv-hist-table tr:last-child td { border-bottom: none; }
.wckv-hist-match span { color: #aaa; font-size: 11px; margin: 0 3px; }

/* ---------- Bảng xếp hạng ---------- */

/* Wrapper scroll ngang thay vì tràn màn hình */
.wckv-leaderboard-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
}
.wckv-leaderboard table {
    width: 100%;
    min-width: 340px; /* đảm bảo không thu quá nhỏ */
    border-collapse: collapse;
    background: #fff;
}
.wckv-leaderboard th,
.wckv-leaderboard td {
    padding: 10px 10px;
    text-align: left;
    border-bottom: 1px solid #eef1f4;
    white-space: nowrap;
    font-size: 14px;
}
.wckv-leaderboard th {
    background: #f7f9fc;
    font-weight: 600;
    font-size: 13px;
}
/* Cột tên cho phép wrap */
.wckv-leaderboard td:nth-child(2),
.wckv-leaderboard th:nth-child(2) {
    white-space: normal;
    min-width: 90px;
}
.wckv-leaderboard tr:last-child td { border-bottom: 0; }

/* Huy chương top 3 */
.wckv-leaderboard tr:nth-child(1) td:first-child { font-weight: 700; color: #ffb300; }
.wckv-leaderboard tr:nth-child(2) td:first-child { font-weight: 700; color: #90a4ae; }
.wckv-leaderboard tr:nth-child(3) td:first-child { font-weight: 700; color: #a1887f; }

/* ============================================================
   Responsive — màn hình rất nhỏ (< 400px)
   ============================================================ */
@media (max-width: 400px) {
    .wckv-match-teams { font-size: 13px; gap: 6px; }
    .wckv-ob-odds { font-size: 18px; }
    .wckv-submit-btn { width: 100%; }
    .wckv-match-meta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Live score widget ---------- */
.wckv-live-wrap { display: flex; flex-direction: column; gap: 10px; }
.wckv-live-match {
    border: 2px solid #fecaca;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    animation: wckv-pulse-border 2s infinite;
}
@keyframes wckv-pulse-border {
    0%, 100% { border-color: #fecaca; }
    50%       { border-color: #ef4444; }
}
.wckv-ls-header {
    background: #fef2f2;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}
.wckv-ls-status { font-weight: 700; }
.wckv-ls-min  { color: #c62828; font-weight: 700; margin-left: 6px; }
.wckv-ls-time { color: #aaa; }
.wckv-ls-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 700;
}
.wckv-ls-team:first-child { text-align: right; }
.wckv-ls-team:last-child  { text-align: left; }
.wckv-ls-score {
    font-size: 22px;
    font-weight: 700;
    color: #1565c0;
    text-align: center;
    min-width: 60px;
}
.wckv-ls-pending { color: #aaa; }
.wckv-ls-goals {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 12px 10px;
    border-top: 1px dashed #fecaca;
}
.wckv-ls-goal {
    font-size: 11px;
    background: #fef9c3;
    border: 1px solid #fde68a;
    border-radius: 20px;
    padding: 2px 8px;
    color: #333;
}
.wckv-ls-source { font-size: 10px; color: #bbb; text-align: right; padding: 0 10px 6px; }
.wckv-live-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.wckv-live-title { font-weight: 700; font-size: 14px; color: #c62828; }
.wckv-live-refresh {
    background: #fff;
    border: 1px solid #ccd2d9;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
    touch-action: manipulation;
}
.wckv-live-refresh:hover:not(:disabled) { background: #f0f7ff; border-color: #1e88e5; }
.wckv-live-refresh:disabled { color: #aaa; cursor: default; }
.wckv-live-refresh-cd { font-size: 12px; color: #888; }

/* ---------- My bet bar ---------- */
.wckv-my-bet-bar {
    font-size: 13px;
    color: #2e7d32;
    background: #f0fff4;
    border: 1px solid #c8f0d0;
    border-radius: 6px;
    padding: 7px 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.wckv-bet-at { color: #888; font-size: 11px; }
.wckv-see-bets-btn {
    margin-left: auto;
    background: none;
    border: 1px solid #1e88e5;
    color: #1e88e5;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 12px;
    cursor: pointer;
}
.wckv-see-bets-btn:hover { background: #e8f4fd; }

/* Bets panel */
.wckv-bets-panel {
    background: #f7f9fc;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 12px;
    margin-top: 6px;
}
.wckv-bets-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.wckv-bets-side-title {
    font-weight: 700;
    font-size: 12px;
    color: #333;
    margin-bottom: 6px;
}
.wckv-bets-side-title span { color: #1e88e5; }
.wckv-bets-user {
    display: inline-block;
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    margin: 2px;
    color: #333;
}

/* Cancel button */
.wckv-cancel-btn {
    background: none;
    border: 1px solid #e57373;
    color: #c62828;
    border-radius: 6px;
    padding: 0 10px;
    min-height: 44px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}
.wckv-cancel-btn:hover { background: #fde8e8; }

/* Meta right group */
.wckv-meta-right { display: flex; gap: 6px; align-items: center; }

/* ---------- Match topbar (line + countdown) ---------- */
.wckv-match-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 10px 0 8px;
    flex-wrap: wrap;
}
.wckv-countdown-inner {
    font-size: 12px;
    color: #e65100;
    font-weight: 600;
    white-space: nowrap;
}
.wckv-locked-badge {
    font-size: 12px;
    color: #c62828;
    font-weight: 700;
    background: #fde8e8;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #f5c6c6;
}

/* Picks reveal */
.wckv-picks-reveal > summary::-webkit-details-marker { display: none; }
.wckv-picks-reveal > summary::marker { display: none; }

/* ---------- Group tabs ---------- */
.wckv-group-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.wckv-group-tab {
    padding: 7px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    transition: all 0.15s;
    touch-action: manipulation;
}
.wckv-group-tab:hover { border-color: #1e88e5; color: #1e88e5; }
.wckv-group-tab.active { border-color: #1e88e5; background: #1e88e5; color: #fff; }

/* ---------- Group admin panel ---------- */
.wckv-group-admin-panel > summary::-webkit-details-marker { display: none; }
.wckv-group-admin-panel > summary::marker { display: none; }

/* ---------- Detail tabs ---------- */
.wckv-detail-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}
.wckv-dtab {
    padding: 6px 14px;
    border: 1px solid #e1e8ed;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    transition: all 0.15s;
}
.wckv-dtab:hover { border-color: #1e88e5; color: #1e88e5; }
.wckv-dtab.active { background: #1e88e5; border-color: #1e88e5; color: #fff; }
.wckv-dtab-pane { display: none; }
.wckv-dtab-pane.active { display: block; }

/* ---------- Lineup pitch ---------- */
.wckv-pitch {
    background: linear-gradient(180deg, #2d7a2d 0%, #3a9e3a 50%, #2d7a2d 100%);
    border-radius: 8px;
    padding: 10px 6px;
    margin: 10px 0;
    border: 2px solid #1a5c1a;
    position: relative;
    min-height: 260px;
}
.wckv-pitch-center-line {
    border-top: 1px dashed rgba(255,255,255,0.4);
    margin: 6px 0;
}
.wckv-pitch-team { padding: 4px 0; }
.wckv-pitch-team-label {
    text-align: center;
    color: rgba(255,255,255,0.85);
    font-size: 11px;
    font-weight: 700;
    margin: 2px 0 4px;
    letter-spacing: 0.5px;
}
.wckv-coach-inline { font-weight: 400; opacity: 0.8; }
.wckv-pitch-row {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    margin: 4px 0;
}
.wckv-pitch-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 52px;
}
.wckv-player-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: #1a5c1a;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    line-height: 1;
}
.is-away .wckv-player-circle {
    background: #1a1a2e;
    color: #fff;
}
.wckv-player-name {
    font-size: 9px;
    color: #fff;
    text-align: center;
    margin-top: 2px;
    max-width: 52px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Bench / Subs */
.wckv-lineup-benches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}
.wckv-bench {
    background: #f7f9fc;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 11px;
}
.wckv-bench-title { font-weight: 700; color: #555; margin-bottom: 4px; }
.wckv-bench-list { display: flex; flex-wrap: wrap; gap: 3px; }
.wckv-bench-player {
    background: #eef6ff;
    border: 1px solid #c8dff8;
    border-radius: 10px;
    padding: 2px 6px;
    color: #1565c0;
    font-size: 10px;
}

/* Refresh bar */
.wckv-lineup-refresh-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.wckv-lineup-refresh-btn {
    border: 1px solid #ccd2d9;
    background: #fff;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
}
.wckv-lineup-refresh-btn:disabled { color: #aaa; cursor: default; }
.wckv-lineup-refresh-btn:hover:not(:disabled) { border-color: #1e88e5; color: #1e88e5; }
.wckv-lineup-refresh-msg { font-size: 11px; color: #888; }
.wckv-lineup-msg { font-size: 12px; color: #2e7d32; margin: 0 0 6px; }
.wckv-lineup-empty { padding: 10px; }
