/* =============================================
   Tipovacia súťaž – Frontend Styles v2 (JoomSport style)
   ============================================= */

:root {
    --ts-primary: #1a6fc4;
    --ts-primary-dark: #155a9e;
    --ts-secondary: #f0a500;
    --ts-success: #28a745;
    --ts-danger: #dc3545;
    --ts-joker: #8e44ad;
    --ts-rank-up: #27ae60;
    --ts-rank-down: #e74c3c;
    --ts-gray-100: #f8f9fa;
    --ts-gray-200: #e9ecef;
    --ts-gray-300: #dee2e6;
    --ts-gray-600: #6c757d;
    --ts-gray-800: #343a40;
    --ts-radius: 10px;
    --ts-radius-sm: 6px;
    --ts-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --ts-shadow-hover: 0 4px 20px rgba(0,0,0,0.14);
    --ts-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ts-transition: all 0.2s ease;
}

.ts-wrap {
    font-family: var(--ts-font);
    max-width: 960px;
    margin: 0 auto;
}

/* ===== TABS ===== */
.ts-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.ts-tab {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    background: var(--ts-gray-200);
    color: var(--ts-gray-800);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: var(--ts-transition);
}

.ts-tab:hover,
.ts-tab.active {
    background: var(--ts-primary);
    color: #fff;
    text-decoration: none;
}

.ts-tab-sep { color: var(--ts-gray-300); }

.ts-round-select,
.ts-month-select {
    padding: 6px 10px;
    border: 1px solid var(--ts-gray-300);
    border-radius: var(--ts-radius-sm);
    font-size: 0.9em;
    cursor: pointer;
}

/* ===== ROUND TABS (matches page) ===== */
.ts-round-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.ts-round-tab {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--ts-gray-200);
    color: var(--ts-gray-800);
    text-decoration: none;
    font-size: 0.88em;
    font-weight: 600;
    transition: var(--ts-transition);
    border: 2px solid transparent;
}

.ts-round-tab small {
    display: block;
    font-size: 0.8em;
    font-weight: 400;
    opacity: 0.75;
}

.ts-round-tab:hover { background: var(--ts-gray-300); text-decoration: none; }
.ts-round-tab.active { background: var(--ts-primary); color: #fff; }
.ts-round-tab.ts-round-current { border-color: var(--ts-primary); }
.ts-round-tab.ts-round-future  { opacity: 0.7; }

/* ===== LEADERBOARD TABLE (JoomSport style) ===== */
.ts-table-responsive {
    overflow-x: auto;
    border-radius: var(--ts-radius);
    box-shadow: var(--ts-shadow);
}

.ts-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.92em;
}

.ts-leaderboard-table thead th {
    padding: 12px 14px;
    text-align: left;
    background: var(--ts-gray-100);
    font-size: 0.82em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--ts-gray-600);
    border-bottom: 2px solid var(--ts-gray-200);
    white-space: nowrap;
}

.ts-leaderboard-table .ts-subheader th {
    background: #f0f4f8;
    font-size: 0.78em;
    padding-top: 6px;
    padding-bottom: 6px;
}

.ts-col-cat-header {
    text-align: center !important;
}

.ts-leaderboard-table tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--ts-gray-200);
    vertical-align: middle;
}

.ts-leaderboard-table tbody tr:last-child td { border-bottom: none; }

.ts-leaderboard-table tbody tr:hover { background: rgba(26,111,196,0.03); }

.ts-top-1 { background: rgba(255,215,0,0.07) !important; }
.ts-top-2 { background: rgba(192,192,192,0.07) !important; }
.ts-top-3 { background: rgba(205,127,50,0.07) !important; }

.ts-row-me { background: rgba(26,111,196,0.06) !important; }

/* Rank column */
.ts-col-rank {
    width: 80px;
    text-align: center;
    white-space: nowrap;
}

.ts-rank-num {
    font-weight: 700;
    font-size: 1em;
    color: var(--ts-gray-800);
}

.ts-rank-up {
    display: inline-block;
    font-size: 0.78em;
    font-weight: 700;
    color: var(--ts-rank-up);
    background: rgba(39,174,96,0.1);
    border-radius: 10px;
    padding: 1px 5px;
    margin-left: 3px;
}

.ts-rank-down {
    display: inline-block;
    font-size: 0.78em;
    font-weight: 700;
    color: var(--ts-rank-down);
    background: rgba(231,76,60,0.1);
    border-radius: 10px;
    padding: 1px 5px;
    margin-left: 3px;
}

/* Avatar + username */
.ts-col-user { min-width: 180px; }

.ts-avatar {
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 8px;
    border: 2px solid var(--ts-gray-200);
    display: inline-block;
}

.ts-avatar-sm {
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 5px;
    border: 1px solid var(--ts-gray-200);
}

.ts-username {
    font-weight: 600;
    color: var(--ts-gray-800);
    text-decoration: none;
}

.ts-username:hover { color: var(--ts-primary); text-decoration: underline; }

.ts-me-badge {
    display: inline-block;
    background: var(--ts-primary);
    color: #fff;
    font-size: 0.72em;
    padding: 1px 7px;
    border-radius: 8px;
    margin-left: 5px;
    font-weight: 600;
}

/* Points + stats columns */
.ts-col-pts  { text-align: center; font-size: 1.05em; }
.ts-col-comp { text-align: center; }
.ts-col-stat { text-align: center; white-space: nowrap; }

.ts-col-stat small {
    display: block;
    font-size: 0.78em;
    color: var(--ts-gray-600);
}

.ts-exact  .ts-col-stat small { color: var(--ts-success); }
.ts-diff   .ts-col-stat small { color: #17a2b8; }
.ts-winner .ts-col-stat small { color: var(--ts-secondary); }
.ts-failed .ts-col-stat small { color: var(--ts-danger); }

/* ===== MATCH CARDS ===== */
.ts-match-card {
    background: #fff;
    border-radius: var(--ts-radius);
    box-shadow: var(--ts-shadow);
    margin-bottom: 20px;
    border: 1px solid var(--ts-gray-200);
    transition: var(--ts-transition);
    overflow: hidden;
}

.ts-match-card:hover { box-shadow: var(--ts-shadow-hover); }
.ts-match-card.ts-match-open   { border-left: 4px solid var(--ts-primary); }
.ts-match-card.ts-match-closed { border-left: 4px solid var(--ts-gray-300); }
.ts-match-card.ts-joker-match  { border-left: 4px solid var(--ts-joker); }

.ts-match-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--ts-gray-100);
    border-bottom: 1px solid var(--ts-gray-200);
    flex-wrap: wrap;
}

.ts-sport-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--ts-primary);
    color: #fff;
    font-size: 0.78em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ts-sport-badge.ts-sport-hokej   { background: #2c6fad; }
.ts-sport-badge.ts-sport-f1      { background: #e10600; }
.ts-sport-badge.ts-sport-futbal  { background: #2e7d32; }

.ts-match-round, .ts-round-badge {
    font-size: 0.82em;
    color: var(--ts-gray-600);
    background: var(--ts-gray-200);
    padding: 2px 8px;
    border-radius: 10px;
}

.ts-joker-badge {
    font-size: 0.82em;
    font-weight: 700;
    color: var(--ts-joker);
    background: rgba(142,68,173,0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.ts-joker-badge-sm { font-size: 0.85em; }

.ts-match-deadline {
    margin-left: auto;
    font-size: 0.82em;
    color: var(--ts-gray-600);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ts-open-badge   { background: var(--ts-success); color: #fff; padding: 2px 8px; border-radius: 10px; font-size: 0.8em; font-weight: 600; }
.ts-closed-badge { background: var(--ts-gray-600); color: #fff; padding: 2px 8px; border-radius: 10px; font-size: 0.8em; }

.ts-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    gap: 12px;
}

.ts-team { flex: 1; text-align: center; }
.ts-team-name { display: block; font-size: 1.1em; font-weight: 700; color: var(--ts-gray-800); }

.ts-match-score { flex: 0 0 auto; text-align: center; min-width: 90px; }
.ts-final-score { display: block; font-size: 1.7em; font-weight: 800; color: var(--ts-primary); letter-spacing: 2px; }
.ts-vs { display: block; font-size: 1.1em; font-weight: 700; color: var(--ts-gray-600); }
.ts-match-score small { display: block; font-size: 0.78em; color: var(--ts-gray-600); margin-top: 4px; }

/* Tip badge */
.ts-my-tip-badge {
    margin: 0 18px 12px;
    padding: 8px 14px;
    background: #e8f4fd;
    border-radius: var(--ts-radius-sm);
    font-size: 0.9em;
    color: var(--ts-primary-dark);
    border-left: 3px solid var(--ts-primary);
}

.ts-my-tip-badge.ts-category-exact          { background: rgba(40,167,69,0.08);  border-color: var(--ts-success); }
.ts-my-tip-badge.ts-category-score_diff     { background: rgba(23,162,184,0.08); border-color: #17a2b8; }
.ts-my-tip-badge.ts-category-correct_winner { background: rgba(240,165,0,0.08);  border-color: var(--ts-secondary); }
.ts-my-tip-badge.ts-category-failed         { background: rgba(220,53,69,0.06);  border-color: var(--ts-danger); }

.ts-tip-cat-label { font-size: 0.82em; color: var(--ts-gray-600); }
.ts-points-earned { font-weight: 700; color: var(--ts-success); }

/* Category labels */
.ts-cat-label {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.78em;
    font-weight: 600;
}

.ts-cat-exact          { background: rgba(40,167,69,0.12);  color: #155724; }
.ts-cat-score_diff     { background: rgba(23,162,184,0.12); color: #0c5460; }
.ts-cat-correct_winner { background: rgba(240,165,0,0.15);  color: #6c4a00; }
.ts-cat-failed         { background: rgba(220,53,69,0.1);   color: #721c24; }
.ts-cat-none           { color: var(--ts-gray-600); }

/* Cat row highlights */
.ts-cat-row-exact          { background: rgba(40,167,69,0.03); }
.ts-cat-row-score_diff     { background: rgba(23,162,184,0.03); }
.ts-cat-row-correct_winner { background: rgba(240,165,0,0.03); }

/* ===== TIP FORM ===== */
.ts-tip-form-wrap {
    padding: 16px 18px;
    border-top: 1px solid var(--ts-gray-200);
    background: #fafbfc;
}

.ts-tip-form-wrap h4 {
    margin: 0 0 12px;
    font-size: 0.92em;
    color: var(--ts-gray-800);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ts-anonymous-fields {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.ts-input {
    padding: 8px 12px;
    border: 1px solid var(--ts-gray-300);
    border-radius: var(--ts-radius-sm);
    font-size: 0.9em;
    max-width: 220px;
}

.ts-input:focus { outline: none; border-color: var(--ts-primary); box-shadow: 0 0 0 3px rgba(26,111,196,0.15); }

.ts-score-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ts-score-field { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ts-score-field label { font-size: 0.8em; color: var(--ts-gray-600); font-weight: 500; }

.ts-score-input {
    width: 68px;
    padding: 10px;
    text-align: center;
    font-size: 1.3em;
    font-weight: 700;
    border: 2px solid var(--ts-gray-300);
    border-radius: var(--ts-radius-sm);
    transition: var(--ts-transition);
}

.ts-score-input:focus { outline: none; border-color: var(--ts-primary); }
.ts-score-colon { font-size: 1.5em; font-weight: 800; color: var(--ts-gray-600); margin-top: 16px; }

/* Joker selection */
.ts-joker-select {
    margin-bottom: 12px;
    padding: 10px 14px;
    background: rgba(142,68,173,0.06);
    border-radius: var(--ts-radius-sm);
    border: 1px dashed var(--ts-joker);
}

.ts-joker-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 600;
    color: var(--ts-joker);
    margin: 0;
}

.ts-joker-hint {
    display: block;
    font-size: 0.78em;
    color: var(--ts-gray-600);
    margin-top: 4px;
}

.ts-btn {
    display: inline-block;
    padding: 9px 22px;
    border-radius: var(--ts-radius-sm);
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: var(--ts-transition);
}

.ts-btn-primary { background: var(--ts-primary); color: #fff; }
.ts-btn-primary:hover { background: var(--ts-primary-dark); }

.ts-form-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: var(--ts-radius-sm);
    font-size: 0.88em;
    display: none;
}

.ts-form-message.ts-success { background: #d4edda; color: #155724; display: block; }
.ts-form-message.ts-error   { background: #f8d7da; color: #721c24; display: block; }

/* ===== MATCH FOOTER ===== */
.ts-match-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-top: 1px solid var(--ts-gray-200);
}

.ts-tips-count  { font-size: 0.85em; color: var(--ts-gray-600); }
.ts-toggle-tips { font-size: 0.85em; color: var(--ts-primary); text-decoration: none; cursor: pointer; }
.ts-toggle-tips:hover { text-decoration: underline; }

.ts-tips-list {
    padding: 12px 18px;
    border-top: 1px solid var(--ts-gray-200);
    background: var(--ts-gray-100);
}

.ts-tips-loader { text-align: center; color: var(--ts-gray-600); font-size: 0.88em; padding: 8px; }

/* Inline tips table */
.ts-tips-inline-table { width: 100%; border-collapse: collapse; font-size: 0.88em; }
.ts-tips-inline-table th { padding: 6px 10px; color: var(--ts-gray-600); font-weight: 600; border-bottom: 1px solid var(--ts-gray-300); }
.ts-tips-inline-table td { padding: 6px 10px; border-bottom: 1px solid var(--ts-gray-200); }

/* ===== ROUNDS LIST ===== */
.ts-rounds-table, .ts-profile-rounds-table, .ts-rounds-history-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--ts-radius);
    overflow: hidden;
    box-shadow: var(--ts-shadow);
    font-size: 0.92em;
}

.ts-rounds-table th, .ts-profile-rounds-table th, .ts-rounds-history-table th {
    padding: 11px 14px;
    text-align: left;
    background: var(--ts-gray-100);
    font-size: 0.82em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--ts-gray-600);
    border-bottom: 2px solid var(--ts-gray-200);
}

.ts-rounds-table td, .ts-profile-rounds-table td, .ts-rounds-history-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--ts-gray-200);
    vertical-align: top;
}

.ts-round-link { font-weight: 700; color: var(--ts-gray-800); text-decoration: none; }
.ts-round-link:hover { color: var(--ts-primary); }

.ts-round-status-current { background: rgba(26,111,196,0.04); }
.ts-round-status-past    { opacity: 0.8; }

.ts-round-badge {
    display: inline-block;
    font-size: 0.75em;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    margin-top: 3px;
}

.ts-badge-current { background: rgba(26,111,196,0.12); color: var(--ts-primary); }
.ts-badge-future  { background: rgba(240,165,0,0.12);  color: #b07700; }
.ts-badge-past    { background: var(--ts-gray-200);    color: var(--ts-gray-600); }

.ts-closed-note { font-size: 0.78em; color: var(--ts-gray-600); display: block; margin-top: 3px; }

/* ===== PROFILE PAGE ===== */
.ts-user-profile-wrap .ts-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border-radius: var(--ts-radius);
    box-shadow: var(--ts-shadow);
    margin-bottom: 24px;
}

.ts-profile-avatar { border-radius: 50%; border: 3px solid var(--ts-gray-200); }
.ts-profile-name { margin: 0; font-size: 1.4em; }
.ts-profile-points { margin-top: 4px; color: var(--ts-gray-600); font-size: 0.9em; }
.ts-profile-points strong { color: var(--ts-primary); font-size: 1.3em; }

/* ===== MY TIPS ===== */
.ts-my-total {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--ts-gray-100);
    border-radius: var(--ts-radius-sm);
    margin-bottom: 20px;
}

.ts-total-pts { font-size: 1.5em; color: var(--ts-primary); font-weight: 800; }

.ts-my-tips-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--ts-radius); overflow: hidden; box-shadow: var(--ts-shadow); }
.ts-my-tips-table th { padding: 11px 12px; text-align: left; background: var(--ts-gray-100); font-size: 0.82em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--ts-gray-600); border-bottom: 2px solid var(--ts-gray-200); }
.ts-my-tips-table td { padding: 10px 12px; border-bottom: 1px solid var(--ts-gray-200); font-size: 0.9em; }

.ts-win-row  { background: rgba(40,167,69,0.04); }
.ts-miss-row { background: rgba(220,53,69,0.03); }

.ts-pts { display: inline-block; padding: 3px 10px; border-radius: 12px; font-weight: 700; font-size: 0.88em; }
.ts-pts-win  { background: #d4edda; color: #155724; }
.ts-pts-miss { background: #f8d7da; color: #721c24; }

/* ===== MATCH TIPS DETAIL ===== */
.ts-match-header-detail { margin-bottom: 22px; }
.ts-match-title { font-size: 1.4em; margin: 8px 0; }
.ts-match-date { color: var(--ts-gray-600); font-size: 0.9em; }
.ts-final-result { margin-top: 10px; padding: 10px 16px; background: var(--ts-gray-100); border-radius: var(--ts-radius-sm); display: inline-flex; align-items: center; gap: 10px; }
.ts-result-score { font-size: 1.5em; font-weight: 800; color: var(--ts-primary); }

.ts-match-stats-grid { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.ts-stat-item { flex: 1; text-align: center; padding: 14px; background: #fff; border-radius: var(--ts-radius); box-shadow: var(--ts-shadow); min-width: 100px; }
.ts-stat-item .ts-stat-number { font-size: 1.8em; font-weight: 800; color: var(--ts-primary); }
.ts-stat-item .ts-stat-label  { font-size: 0.8em; color: var(--ts-gray-600); margin-top: 4px; }
.ts-stat-exact  .ts-stat-number { color: var(--ts-success); }
.ts-stat-diff   .ts-stat-number { color: #17a2b8; }
.ts-stat-winner .ts-stat-number { color: var(--ts-secondary); }
.ts-stat-failed .ts-stat-number { color: var(--ts-danger); }

.ts-my-tip-highlight { padding: 12px 16px; background: #e8f4fd; border-radius: var(--ts-radius-sm); border-left: 4px solid var(--ts-primary); margin-bottom: 18px; }
.ts-earned-points { font-weight: 700; color: var(--ts-success); }

.ts-tips-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--ts-radius); overflow: hidden; box-shadow: var(--ts-shadow); }
.ts-tips-table th { padding: 11px 14px; text-align: left; background: var(--ts-gray-100); font-size: 0.82em; text-transform: uppercase; letter-spacing: 0.4px; color: var(--ts-gray-600); border-bottom: 2px solid var(--ts-gray-200); }
.ts-tips-table td { padding: 10px 14px; border-bottom: 1px solid var(--ts-gray-200); }
.ts-tip-score { font-weight: 700; font-size: 1.05em; }
.ts-tip-points { text-align: center; font-weight: 700; color: var(--ts-gray-600); }
.ts-tip-points.ts-has-points { color: var(--ts-success); }

/* ===== STATS ===== */
.ts-stats-cards { display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.ts-stat-card { flex: 1; text-align: center; padding: 20px; background: #fff; border-radius: var(--ts-radius); box-shadow: var(--ts-shadow); min-width: 140px; }
.ts-stat-card .ts-stat-number { font-size: 2.1em; font-weight: 800; color: var(--ts-primary); }
.ts-stat-card .ts-stat-label  { font-size: 0.84em; color: var(--ts-gray-600); margin-top: 6px; }

.ts-sports-stats { background: #fff; border-radius: var(--ts-radius); box-shadow: var(--ts-shadow); padding: 18px; }
.ts-sport-stat-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ts-gray-200); flex-wrap: wrap; }
.ts-sport-stat-row:last-child { border-bottom: none; }
.ts-scoring-info { margin-left: auto; font-size: 0.83em; color: var(--ts-gray-600); }

/* ===== MISC ===== */
.ts-empty { text-align: center; padding: 30px; color: var(--ts-gray-600); background: var(--ts-gray-100); border-radius: var(--ts-radius); }
.ts-notice { padding: 13px 16px; background: var(--ts-gray-100); border-radius: var(--ts-radius-sm); border-left: 4px solid var(--ts-primary); color: var(--ts-gray-600); }
.ts-no-tips { text-align: center; color: var(--ts-gray-600); padding: 20px; }

/* ===== WIDGETS ===== */
.ts-widget {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Widget: Next Match */
.ts-widget-next-match {
    padding: 0;
}

.ts-widget-next-match .ts-widget-sport-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--ts-primary);
    color: #fff;
    font-size: 0.78em;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ts-widget-next-match .ts-widget-teams {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0;
    font-size: 1em;
    flex-wrap: wrap;
}

.ts-widget-team { font-weight: 700; color: var(--ts-gray-800); }
.ts-widget-vs   { color: var(--ts-gray-600); font-weight: 600; font-size: 0.85em; }

.ts-widget-match-date {
    font-size: 0.85em;
    color: var(--ts-gray-600);
    margin-bottom: 10px;
}

/* Countdown */
.ts-countdown {
    background: var(--ts-gray-100);
    border-radius: var(--ts-radius-sm);
    padding: 10px;
    text-align: center;
    margin: 8px 0;
}

.ts-countdown-inner {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}

.ts-cd-block {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
}

.ts-cd-val {
    font-size: 1.6em;
    font-weight: 800;
    color: var(--ts-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ts-cd-block small {
    font-size: 0.7em;
    color: var(--ts-gray-600);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ts-cd-sep {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--ts-gray-300);
    padding: 0 2px;
    margin-top: 2px;
}

.ts-cd-label {
    font-size: 0.75em;
    color: var(--ts-gray-600);
    margin-top: 6px;
}

.ts-cd-closed {
    font-size: 0.85em;
    color: var(--ts-gray-600);
    background: var(--ts-gray-100);
    border-radius: var(--ts-radius-sm);
    padding: 8px 12px;
    text-align: center;
    margin: 6px 0;
}

.ts-widget-tips-count {
    font-size: 0.82em;
    color: var(--ts-gray-600);
    margin-top: 4px;
}

/* Widget: Upcoming Matches */
.ts-widget-upcoming-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ts-wu-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--ts-gray-200);
}
.ts-wu-item:last-child { border-bottom: none; }

.ts-wu-teams {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--ts-gray-800);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.ts-wu-sep { color: var(--ts-gray-600); font-size: 0.8em; }

.ts-wu-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    flex-wrap: wrap;
}

.ts-wu-sport {
    font-size: 0.75em;
    background: var(--ts-gray-200);
    padding: 1px 6px;
    border-radius: 8px;
    color: var(--ts-gray-600);
}

.ts-wu-date, .ts-wu-tips, .ts-wu-closed-label {
    font-size: 0.78em;
    color: var(--ts-gray-600);
}

.ts-wu-open .ts-wu-teams { color: var(--ts-gray-800); }
.ts-wu-closed { opacity: 0.7; }

/* Widget: Top Tippers */
.ts-widget-top-tippers {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: tippers;
}

.ts-tt-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 0;
    border-bottom: 1px solid var(--ts-gray-200);
    font-size: 0.9em;
}

.ts-tt-item:last-child { border-bottom: none; }
.ts-tt-top-1 { font-weight: 700; }
.ts-tt-top-2, .ts-tt-top-3 { font-weight: 600; }

.ts-tt-rank {
    font-weight: 800;
    color: var(--ts-gray-600);
    min-width: 20px;
    font-size: 0.88em;
}

.ts-tt-top-1 .ts-tt-rank { color: #b8860b; }
.ts-tt-top-2 .ts-tt-rank { color: #888; }
.ts-tt-top-3 .ts-tt-rank { color: #7d4e20; }

.ts-tt-avatar {
    border-radius: 50%;
    border: 1px solid var(--ts-gray-200);
    flex-shrink: 0;
}

.ts-tt-name { flex: 1; color: var(--ts-gray-800); }
.ts-tt-pts  { font-weight: 700; color: var(--ts-primary); font-size: 0.88em; margin-left: auto; }

/* Widget: Past Matches */
.ts-widget-past-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ts-pm-item {
    padding: 7px 0;
    border-bottom: 1px solid var(--ts-gray-200);
}
.ts-pm-item:last-child { border-bottom: none; }

.ts-pm-teams {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    flex-wrap: wrap;
}

.ts-pm-score {
    font-weight: 800;
    color: var(--ts-primary);
    font-size: 1em;
    padding: 0 3px;
}

.ts-pm-meta {
    display: flex;
    gap: 8px;
    margin-top: 3px;
    align-items: center;
    flex-wrap: wrap;
}

.ts-pm-sport, .ts-pm-date, .ts-pm-tips {
    font-size: 0.75em;
    color: var(--ts-gray-600);
}

.ts-pm-sport {
    background: var(--ts-gray-200);
    padding: 1px 6px;
    border-radius: 8px;
}

/* Profile stats row */
.ts-profile-stats-row {
    font-size: 0.85em;
    color: var(--ts-gray-600);
    margin-top: 4px;
}

/* Back button */
.ts-profile-back {
    margin-bottom: 14px;
}

.ts-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    border-radius: var(--ts-radius-sm);
    background: var(--ts-gray-200);
    color: var(--ts-gray-800);
    text-decoration: none;
    font-size: 0.88em;
    font-weight: 600;
    transition: var(--ts-transition);
}

.ts-btn-back:hover {
    background: var(--ts-gray-300);
    color: var(--ts-gray-800);
    text-decoration: none;
}

/* ===== SPORT FILTER TABS ===== */
.ts-sport-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 4px;
    padding: 8px 0 10px;
    border-bottom: 1px solid var(--ts-gray-200);
}

.ts-sport-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 20px;
    border: 1.5px solid var(--ts-gray-300);
    background: #fff;
    color: var(--ts-gray-700);
    font-size: 0.82em;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: var(--ts-transition);
    white-space: nowrap;
    appearance: none;
    -webkit-appearance: none;
    line-height: 1.4;
}

.ts-sport-tab:hover {
    border-color: var(--ts-primary);
    color: var(--ts-primary);
    text-decoration: none;
}

.ts-sport-tab.active {
    background: var(--ts-primary);
    border-color: var(--ts-primary);
    color: #fff;
}

.ts-sport-icon {
    font-size: 1.1em;
}

/* Leaderboard heading row */
.ts-lb-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 8px;
}

.ts-lb-title {
    margin: 0;
    font-size: 1em;
    font-weight: 700;
    color: var(--ts-gray-800);
}

.ts-lb-sport-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--ts-primary-light, #e8f0fe);
    color: var(--ts-primary);
    font-size: 0.8em;
    font-weight: 700;
}

/* Rank change indicators */
.ts-rank-same {
    display: inline-block;
    font-size: 0.75em;
    color: var(--ts-gray-400);
    margin-left: 2px;
    vertical-align: middle;
}

.ts-rank-up {
    font-size: 0.72em;
    color: #27ae60;
    font-weight: 700;
    margin-left: 2px;
}

.ts-rank-down {
    font-size: 0.72em;
    color: #e74c3c;
    font-weight: 700;
    margin-left: 2px;
}

/* ==============================
   GUIDE [ts_guide]
   ============================== */
.ts-guide-wrap {
    max-width: 820px;
}

.ts-guide-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--ts-primary) 0%, #1a56a0 100%);
    color: #fff;
    border-radius: var(--ts-radius);
    padding: 24px 28px;
    margin-bottom: 20px;
}
.ts-guide-header-icon { font-size: 2.8em; line-height: 1; }
.ts-guide-title { margin: 0 0 4px; font-size: 1.4em; color: #fff; }
.ts-guide-subtitle { margin: 0; font-size: 0.9em; opacity: 0.88; }

/* Quick-nav */
.ts-guide-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}
.ts-guide-pill {
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--ts-gray-100);
    color: var(--ts-primary);
    font-size: 0.8em;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--ts-gray-200);
    transition: var(--ts-transition);
}
.ts-guide-pill:hover { background: var(--ts-primary); color: #fff; text-decoration: none; border-color: var(--ts-primary); }

/* Sections */
.ts-guide-section {
    margin-bottom: 36px;
    scroll-margin-top: 80px;
}
.ts-guide-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15em;
    font-weight: 700;
    color: var(--ts-gray-800);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ts-primary);
}
.ts-guide-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ts-primary);
    color: #fff;
    font-size: 0.85em;
    font-weight: 800;
    flex-shrink: 0;
}
.ts-guide-subsection {
    font-size: 0.95em;
    font-weight: 700;
    margin: 20px 0 8px;
    color: var(--ts-gray-700);
}

/* Info boxes */
.ts-guide-infobox {
    padding: 12px 16px;
    border-radius: var(--ts-radius);
    margin: 14px 0;
    font-size: 0.9em;
    line-height: 1.55;
}
.ts-guide-infobox--blue   { background: #e8f4fd; border-left: 4px solid #2271b1; color: #1a4a7a; }
.ts-guide-infobox--green  { background: #edfaf1; border-left: 4px solid #27ae60; color: #1a6b3a; }
.ts-guide-infobox--orange { background: #fff7e6; border-left: 4px solid #f39c12; color: #7a4e0a; }

/* Cards */
.ts-guide-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 14px 0;
}
.ts-guide-cards--3 { grid-template-columns: repeat(3, 1fr); }
.ts-guide-card {
    background: #fff;
    border: 1px solid var(--ts-gray-200);
    border-radius: var(--ts-radius);
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.ts-guide-card--small { padding: 12px; }
.ts-guide-card-icon { font-size: 1.8em; margin-bottom: 8px; }
.ts-guide-card h4 { margin: 0 0 6px; font-size: 0.95em; }
.ts-guide-card p { margin: 0; font-size: 0.85em; color: var(--ts-gray-600); }

/* Steps */
.ts-guide-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
}
.ts-guide-steps li {
    position: relative;
    padding: 0 0 16px 48px;
    border-left: 2px solid var(--ts-gray-200);
    margin-left: 14px;
}
.ts-guide-steps li:last-child { border-left-color: transparent; }
.ts-guide-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: -14px;
    top: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ts-primary);
    color: #fff;
    font-size: 0.8em;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ts-guide-steps li strong { display: block; font-size: 0.95em; margin-bottom: 4px; }
.ts-guide-steps li p { margin: 0; font-size: 0.87em; color: var(--ts-gray-600); }

/* Example score block */
.ts-guide-example {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ts-gray-50);
    border: 1px solid var(--ts-gray-200);
    border-radius: 8px;
    padding: 10px 20px;
    margin: 10px 0;
    font-size: 1.05em;
}
.ts-guide-score-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--ts-primary);
    color: #fff;
    border-radius: 6px;
    font-size: 1.2em;
    font-weight: 800;
}
.ts-guide-sep { font-size: 1.4em; font-weight: 700; color: var(--ts-gray-500); }
.ts-guide-team { font-size: 0.85em; color: var(--ts-gray-600); }

/* Score categories */
.ts-guide-score-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 14px 0;
}
.ts-guide-cat {
    border-radius: var(--ts-radius);
    padding: 14px;
    border: 1.5px solid transparent;
}
.ts-guide-cat--exact  { background: #edfaf1; border-color: #27ae60; }
.ts-guide-cat--diff   { background: #e8f4fd; border-color: #2980b9; }
.ts-guide-cat--winner { background: #fef9e7; border-color: #f1c40f; }
.ts-guide-cat--failed { background: #fdf0f0; border-color: #e74c3c; }
.ts-guide-cat-badge { font-size: 1.6em; margin-bottom: 6px; }
.ts-guide-cat h4 { margin: 0 0 4px; font-size: 0.9em; }
.ts-guide-cat p { margin: 0; font-size: 0.82em; }
.ts-guide-example-tip { margin: 4px 0 0 !important; font-weight: 600; font-size: 0.82em !important; }

/* Points table */
.ts-guide-points-table-wrap { margin: 14px 0; }
.ts-guide-points-table {
    width: 100%;
    max-width: 360px;
    border-collapse: collapse;
    font-size: 0.88em;
}
.ts-guide-points-table th,
.ts-guide-points-table td {
    padding: 7px 12px;
    border: 1px solid var(--ts-gray-200);
    text-align: left;
}
.ts-guide-points-table th { background: var(--ts-gray-50); font-weight: 700; }
.ts-gpt-exact  td:last-child { color: #27ae60; font-weight: 800; font-size: 1.05em; }
.ts-gpt-diff   td:last-child { color: #2980b9; font-weight: 800; font-size: 1.05em; }
.ts-gpt-winner td:last-child { color: #d4ac0d; font-weight: 800; font-size: 1.05em; }
.ts-gpt-failed td:last-child { color: #c0392b; font-weight: 800; }
.ts-gpt-bonus  td:last-child { color: #8e44ad; font-weight: 800; }
.ts-gpt-joker  td:last-child { color: var(--ts-primary); font-weight: 800; }

/* Multi-sport layout */
.ts-guide-multi-sports {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 12px 0;
}
.ts-guide-sport-pts h5 { margin: 0 0 6px; font-size: 0.9em; }

/* Examples table */
.ts-guide-example-table-wrap { margin: 10px 0; overflow-x: auto; }
.ts-guide-example-table { width: 100%; border-collapse: collapse; font-size: 0.87em; }
.ts-guide-example-table th,
.ts-guide-example-table td { padding: 7px 12px; border: 1px solid var(--ts-gray-200); }
.ts-guide-example-table th { background: var(--ts-gray-50); font-weight: 700; }
.ts-guide-example-table .ts-gpt-exact  { background: #f0fdf4; }
.ts-guide-example-table .ts-gpt-diff   { background: #eff8ff; }
.ts-guide-example-table .ts-gpt-winner { background: #fefce8; }
.ts-guide-example-table .ts-gpt-failed { background: #fff5f5; }

.ts-guide-note { font-size: 0.8em; color: var(--ts-gray-500); font-style: italic; margin-top: 6px; }

/* Timeline */
.ts-guide-timeline { margin: 14px 0; }
.ts-guide-tl-item {
    display: flex;
    gap: 14px;
    padding: 0 0 18px 0;
    position: relative;
}
.ts-guide-tl-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: var(--ts-gray-200);
}
.ts-guide-tl-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid;
    margin-top: 2px;
}
.ts-guide-tl-ok   .ts-guide-tl-dot { background: #27ae60; border-color: #27ae60; }
.ts-guide-tl-warn .ts-guide-tl-dot { background: #f39c12; border-color: #f39c12; }
.ts-guide-tl-done .ts-guide-tl-dot { background: var(--ts-primary); border-color: var(--ts-primary); }
.ts-guide-tl-content strong { display: block; font-size: 0.92em; margin-bottom: 2px; }
.ts-guide-tl-content p { margin: 0; font-size: 0.84em; color: var(--ts-gray-600); }

/* Joker banner */
.ts-guide-joker-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, #2c1654 0%, #6a1a8a 100%);
    color: #fff;
    border-radius: var(--ts-radius);
    padding: 18px 20px;
    margin: 14px 0;
}
.ts-guide-joker-icon { font-size: 2.4em; flex-shrink: 0; }
.ts-guide-joker-banner strong { display: block; font-size: 1em; margin-bottom: 4px; }
.ts-guide-joker-banner p { margin: 0; font-size: 0.86em; opacity: 0.9; }

/* Profile preview */
.ts-guide-profile-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--ts-gray-50);
    border: 1px solid var(--ts-gray-200);
    border-radius: var(--ts-radius);
    padding: 14px 18px;
    margin: 12px 0;
}
.ts-guide-profile-avatar { font-size: 2.4em; flex-shrink: 0; }
.ts-guide-profile-name { font-weight: 700; font-size: 1.05em; margin-bottom: 4px; }
.ts-guide-profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82em;
    color: var(--ts-gray-600);
    margin-bottom: 4px;
}
.ts-guide-profile-meta { font-size: 0.8em; color: var(--ts-gray-500); font-style: italic; }

/* List */
.ts-guide-list { padding-left: 20px; margin: 8px 0; }
.ts-guide-list li { font-size: 0.88em; margin-bottom: 4px; }

/* Footer tip */
.ts-guide-footer-tip {
    background: linear-gradient(135deg, #1a7a45 0%, #27ae60 100%);
    color: #fff;
    border-radius: var(--ts-radius);
    padding: 20px 24px;
    margin-top: 32px;
    text-align: center;
}
.ts-guide-footer-tip strong { display: block; font-size: 1.1em; margin-bottom: 6px; }
.ts-guide-footer-tip p { margin: 0; opacity: 0.92; font-size: 0.9em; }

/* Responsive */
@media (max-width: 600px) {
    .ts-guide-cards,
    .ts-guide-cards--3,
    .ts-guide-score-categories { grid-template-columns: 1fr; }
    .ts-guide-header { flex-direction: column; text-align: center; }
    .ts-guide-profile-preview { flex-direction: column; }
}

/* Competition hub nav */
.ts-competition-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--ts-gray-200);
}

/* Section title for inline shortcodes */
.ts-section-title {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--ts-gray-800);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .ts-match-teams { flex-direction: column; padding: 14px; }
    .ts-team { width: 100%; }
    .ts-match-score { min-width: auto; }
    .ts-stats-cards { flex-direction: column; }
    .ts-match-stats-grid { flex-direction: column; }
    .ts-col-diff, .ts-col-failed { display: none; }
    .ts-leaderboard-table .ts-subheader th:nth-child(3),
    .ts-leaderboard-table .ts-subheader th:nth-child(4) { display: none; }
    .ts-my-tips-table th:nth-child(3),
    .ts-my-tips-table td:nth-child(3) { display: none; }
    .ts-anonymous-fields { flex-direction: column; }
}

/* ============================================================
   v2.3.0 NEW FEATURE STYLES
   ============================================================ */

/* ===== Feature #6: Inline Match Countdown ===== */
.ts-match-countdown {
    display: inline-block;
    margin-left: 8px;
}
.ts-cd-inline {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.78em;
    font-weight: 700;
    color: var(--ts-primary);
    background: rgba(26,111,196,0.08);
    border-radius: 20px;
    padding: 2px 8px;
    transition: var(--ts-transition);
}
.ts-cd-inline .ts-cd-days,
.ts-cd-inline .ts-cd-hours,
.ts-cd-inline .ts-cd-mins,
.ts-cd-inline .ts-cd-secs {
    font-variant-numeric: tabular-nums;
    min-width: 1.4ch;
    text-align: center;
}
.ts-cd-inline.ts-cd-urgent {
    color: var(--ts-danger);
    background: rgba(220,53,69,0.1);
    animation: ts-pulse 1s infinite;
}
.ts-cd-inline.ts-cd-expired { color: var(--ts-gray-600); background: var(--ts-gray-200); }
.ts-cd-closed-sm { font-size: 0.85em; font-weight: 600; }
@keyframes ts-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

/* ===== Feature #2: Score Distribution ===== */
.ts-score-distribution {
    padding: 12px 16px;
    background: var(--ts-gray-100);
    border-top: 1px solid var(--ts-gray-200);
    border-bottom: 1px solid var(--ts-gray-200);
}
.ts-dist-title {
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ts-gray-600);
    margin-bottom: 8px;
}
.ts-dist-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.85em;
}
.ts-dist-score {
    font-weight: 700;
    min-width: 36px;
    text-align: right;
    color: var(--ts-gray-800);
}
.ts-dist-bar-wrap {
    flex: 1;
    height: 8px;
    background: var(--ts-gray-300);
    border-radius: 4px;
    overflow: hidden;
}
.ts-dist-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--ts-primary), var(--ts-secondary));
    border-radius: 4px;
    min-width: 4px;
    transition: width 0.4s ease;
}
.ts-dist-count {
    min-width: 60px;
    color: var(--ts-gray-600);
    font-size: 0.9em;
}
.ts-dist-count small { color: var(--ts-gray-600); }

/* ===== Feature #7: Highlight own tip in inline tips table ===== */
.ts-tips-inline-table tr.ts-my-row {
    background: rgba(26,111,196,0.08) !important;
    font-weight: 600;
}
.ts-tips-inline-table tr.ts-my-row td:first-child {
    border-left: 3px solid var(--ts-primary);
}
.ts-me-badge-sm {
    font-size: 0.8em;
    vertical-align: middle;
    opacity: 0.8;
}

/* Also in template (PHP-rendered match-tips.php) */
.ts-tips-table tr.ts-my-row {
    background: rgba(26,111,196,0.08) !important;
    font-weight: 600;
}
.ts-tips-table tr.ts-my-row td:first-child {
    border-left: 3px solid var(--ts-primary);
}

/* ===== Feature #1: Missing Tips shortcode ===== */
.ts-missing-tips-wrap {
    border: 1px solid var(--ts-gray-200);
    border-radius: var(--ts-radius);
    overflow: hidden;
}
.ts-missing-title {
    margin: 0;
    padding: 14px 18px;
    background: var(--ts-primary);
    color: #fff;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ts-missing-icon { font-size: 1.2em; }
.ts-missing-login-notice,
.ts-missing-all-done {
    padding: 20px;
    text-align: center;
    color: var(--ts-gray-600);
}
.ts-done-icon { font-size: 2em; display: block; margin-bottom: 8px; }
.ts-missing-count {
    padding: 10px 18px;
    margin: 0;
    background: rgba(240,165,0,0.1);
    border-bottom: 1px solid var(--ts-gray-200);
    font-size: 0.9em;
}
.ts-missing-list { }
.ts-missing-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--ts-gray-200);
    transition: var(--ts-transition);
}
.ts-missing-item:hover { background: var(--ts-gray-100); }
.ts-missing-item.ts-missing-urgent { background: rgba(220,53,69,0.05); }
.ts-missing-item.ts-missing-urgent .ts-missing-teams { border-left: 3px solid var(--ts-danger); padding-left: 8px; }
.ts-missing-teams { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ts-missing-match { font-size: 0.95em; }
.ts-missing-round { font-size: 0.78em; color: var(--ts-gray-600); }
.ts-missing-deadline { font-size: 0.82em; color: var(--ts-gray-600); }
.ts-urgent-badge {
    display: inline-block;
    background: var(--ts-danger);
    color: #fff;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 0.75em;
    font-weight: 700;
    margin-right: 4px;
}
.ts-missing-action { }
.ts-btn-sm {
    padding: 5px 12px;
    font-size: 0.82em;
}

/* ===== Feature #8: Leaderboard Pagination ===== */
.ts-lb-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--ts-gray-200);
    font-size: 0.87em;
}
.ts-per-page-label { color: var(--ts-gray-600); font-weight: 600; margin-right: 2px; }
.ts-per-page-btn,
.ts-page-btn {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 16px;
    background: var(--ts-gray-200);
    color: var(--ts-gray-800);
    text-decoration: none;
    font-weight: 600;
    transition: var(--ts-transition);
    border: 1px solid transparent;
}
.ts-per-page-btn:hover,
.ts-page-btn:hover { background: var(--ts-primary); color: #fff; }
.ts-per-page-btn.active,
.ts-page-btn.active { background: var(--ts-primary); color: #fff; }
.ts-page-sep { color: var(--ts-gray-300); }
.ts-page-info { color: var(--ts-gray-600); margin-left: 4px; }


/* ===== Sport filter tabs (matches-list) ===== */
.ts-sport-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ts-gray-200);
}
.ts-sport-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--ts-gray-100);
    color: var(--ts-gray-700);
    text-decoration: none;
    font-size: 0.88em;
    font-weight: 600;
    border: 1px solid var(--ts-gray-200);
    transition: var(--ts-transition);
    line-height: 1;
}
.ts-sport-tab:hover {
    background: var(--ts-gray-200);
    color: var(--ts-gray-900);
    text-decoration: none;
}
.ts-sport-tab.active {
    background: var(--ts-primary);
    color: #fff;
    border-color: var(--ts-primary);
}
.ts-sport-tab .ts-sport-icon {
    font-size: 1em;
    line-height: 1;
}
/* When sport tabs present, reduce gap between sport and round tabs */
.ts-sport-tabs + .ts-round-tabs {
    margin-top: 6px;
}
@media (max-width: 600px) {
    .ts-sport-tabs { gap: 4px; }
    .ts-sport-tab  { padding: 5px 10px; font-size: 0.82em; }
}
