/**
 * Player Page v3.0 — TST Design System v6
 * Tokens: brand #305180 · brand-dark #1E3A5F · lime #E1FA59 · lime-dark #B8CC30
 * gold #F5B021 · live #E63946 · wta #6A4C93 · win #2A9D8F
 * Fonts: DM Sans (headline/UI) · Lora (body) · DM Mono (datos)
 * Mobile-first, WCAG 2.1 AA
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800;900&family=DM+Mono:wght@400;500;700&family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

/* ════════════════════════════════════════════════════════════
   0 — TOKENS
   ════════════════════════════════════════════════════════════ */
:root {
    --tst-brand:          #305180;
    --tst-brand-dark:     #1E3A5F;
    --tst-brand-mid:      #254368;
    --tst-brand-light:    #D6E3F0;
    --tst-lime:           #E1FA59;
    --tst-lime-dark:      #B8CC30;
    --tst-gold:           #F5B021;
    --tst-gold-dark:      #C8890F;
    --tst-live:           #E63946;
    --tst-wta:            #6A4C93;
    --tst-win:            #2A9D8F;
    --tst-white:          #FFFFFF;
    --tst-off-white:      #F7F6F2;
    --tst-paper:          #EFEFEA;
    --tst-ink-100:        #1A1A1A;
    --tst-ink-60:         #5C5C5C;
    --tst-ink-30:         #A8A8A8;
    --tst-ink-10:         #E4E3DC;
    --tst-font-headline:  "DM Sans", "Helvetica Neue", Arial, sans-serif;
    --tst-font-body:      "Lora", Georgia, serif;
    --tst-font-mono:      "DM Mono", "Courier New", monospace;
    --tst-fs-2xl:         clamp(2.25rem, 1.9rem + 1.8vw, 3.00rem);
    --tst-fs-xl:          clamp(1.75rem, 1.5rem + 1.3vw, 2.25rem);
    --tst-fs-lg:          clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem);
    --tst-fs-md:          clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
    --tst-fs-base:        clamp(1.00rem, 0.95rem + 0.25vw, 1.0625rem);
    --tst-fs-sm:          clamp(0.80rem, 0.75rem + 0.25vw, 0.875rem);
    --tst-fs-xs:          clamp(0.70rem, 0.65rem + 0.2vw, 0.75rem);
    --tst-gap-xs:         4px;
    --tst-gap-sm:         8px;
    --tst-gap-md:         16px;
    --tst-gap-lg:         24px;
    --tst-gap-xl:         40px;
    --tst-gap-2xl:        64px;
    --tst-radius-sm:      4px;
    --tst-radius-md:      8px;
    --tst-radius-lg:      12px;
    --tst-card-shadow:    0 1px 3px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.06);
    --tst-card-shadow-hover: 0 4px 8px rgba(0,0,0,.09), 0 12px 28px rgba(0,0,0,.10);
    --tst-transition:     150ms ease;
    --tst-transition-slow: 350ms ease;
}

/* ════════════════════════════════════════════════════════════
   1 — RESET & BASE
   ════════════════════════════════════════════════════════════ */
.tst-player-page *, .tst-player-page *::before, .tst-player-page *::after { box-sizing: border-box; }
.tst-player-page {
    font-family: var(--tst-font-headline);
    background: var(--tst-off-white);
    min-height: 100vh;
    color: var(--tst-ink-100);
}
.tst-player-page *:focus-visible {
    outline: 2px solid var(--tst-gold);
    outline-offset: 3px;
    border-radius: var(--tst-radius-sm);
}
.tst-player-page *:focus:not(:focus-visible) { outline: none; }
.tst-sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

/* ════════════════════════════════════════════════════════════
   2 — HEADER
   ════════════════════════════════════════════════════════════ */
.tst-player-header {
    background: var(--tst-brand-dark);
    color: var(--tst-white);
    padding: 40px var(--tst-gap-lg) 32px;
    position: relative;
    overflow: hidden;
}
.tst-player-header--live { background: linear-gradient(135deg, #1E3A5F 0%, #7B1A1E 100%); }
.tst-player-header::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(225,250,89,.08) 0%, transparent 68%);
    pointer-events: none;
}
.tst-player-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tst-lime-dark), transparent);
}
.tst-player-header-content { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.tst-player-photo-section { display: flex; align-items: center; gap: var(--tst-gap-lg); }

/* Foto */
.tst-player-photo {
    width: 108px; height: 108px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.25);
    box-shadow: 0 6px 24px rgba(0,0,0,.35);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--tst-brand-mid);
    position: relative;
}
.tst-player-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tst-player-photo-initials {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; font-weight: 800; color: var(--tst-lime);
}
.tst-live-dot {
    position: absolute; bottom: 6px; right: 6px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--tst-live);
    border: 2px solid var(--tst-brand-dark);
    animation: tst-pulse 1.4s ease infinite;
}
@keyframes tst-pulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: .75; }
}

.tst-player-title-section { flex: 1; min-width: 0; }
.tst-player-header-meta { display:flex; align-items:center; flex-wrap:wrap; gap:var(--tst-gap-sm); margin-bottom:10px; }
.tst-player-country-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    font-size: var(--tst-fs-xs); font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px;
}
.tst-player-country-flag { font-size: 16px; }
.tst-player-name {
    font-size: var(--tst-fs-xl); font-weight: 900;
    line-height: 1.05; margin: 0 0 var(--tst-gap-md);
    letter-spacing: -.5px; word-break: break-word;
}
.tst-player-name-first { color: var(--tst-lime); }
.tst-player-name-last  { color: var(--tst-white); }
.tst-player-rankings { display:flex; flex-wrap:wrap; gap:var(--tst-gap-md); align-items:flex-end; }
.tst-ranking-badge { text-align: center; }
.tst-ranking-label { display:block; font-size:10px; font-weight:600; opacity:.75; margin-bottom:3px; text-transform:uppercase; letter-spacing:.6px; }
.tst-ranking-value { display:block; font-family:var(--tst-font-mono); font-size:30px; font-weight:700; line-height:1; font-variant-numeric:tabular-nums; }
.tst-ranking-value--official { color: var(--tst-white); }
.tst-ranking-value--best     { color: var(--tst-lime); }
.tst-ranking-value--national { color: var(--tst-gold); }
.tst-ranking-value--points   { color: rgba(255,255,255,.8); font-size:22px; }
.tst-ranking-year { display:inline-block; font-family:var(--tst-font-headline); font-size:10px; font-weight:500; opacity:.65; margin-left:3px; vertical-align:super; }

/* ════════════════════════════════════════════════════════════
   3 — BADGES
   ════════════════════════════════════════════════════════════ */
.tst-badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: var(--tst-radius-sm);
    font-family: var(--tst-font-headline);
    font-size: 11px; font-weight: 700;
    letter-spacing: .4px; text-transform: uppercase;
    color: var(--tst-white); line-height: 1;
}
.tst-badge--live-now { background: var(--tst-live); animation: tst-pulse-bg 1.4s ease infinite; }
@keyframes tst-pulse-bg { 0%,100% { opacity:1; } 50% { opacity:.75; } }
.tst-badge--retired  { background: var(--tst-ink-60); }
.tst-badge--wiki     { background: var(--tst-brand-light); color: var(--tst-brand-dark); font-size:10px; }

/* ════════════════════════════════════════════════════════════
   4 — TABS
   ════════════════════════════════════════════════════════════ */
.tst-player-tabs {
    background: var(--tst-white);
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid var(--tst-ink-10);
}
.tst-player-tabs-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 0 var(--tst-gap-sm);
}
.tst-player-tabs-inner::-webkit-scrollbar { display: none; }
.tst-tab-button {
    flex: 1; min-width: 100px;
    padding: 16px var(--tst-gap-md);
    background: transparent; border: none;
    border-bottom: 3px solid transparent;
    font-family: var(--tst-font-headline);
    font-size: var(--tst-fs-sm); font-weight: 700;
    color: var(--tst-ink-60); cursor: pointer;
    transition: color var(--tst-transition), border-color var(--tst-transition);
    white-space: nowrap; letter-spacing: .3px;
}
.tst-tab-button:hover  { color: var(--tst-brand); }
.tst-tab-button.active { color: var(--tst-brand-dark); border-bottom-color: var(--tst-lime-dark); }

/* ════════════════════════════════════════════════════════════
   5 — LAYOUT
   ════════════════════════════════════════════════════════════ */
.tst-player-content { max-width: 1280px; margin: 0 auto; padding: var(--tst-gap-xl) var(--tst-gap-lg); }
.tst-tab-pane { display: none; }
.tst-tab-pane.active { display: block; }

.tst-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tst-gap-lg);
}

/* ════════════════════════════════════════════════════════════
   6 — CARD
   ════════════════════════════════════════════════════════════ */
.tst-card {
    background: var(--tst-white);
    border: 1px solid var(--tst-ink-10);
    border-radius: var(--tst-radius-lg);
    padding: var(--tst-gap-lg);
    box-shadow: var(--tst-card-shadow);
}
.tst-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: var(--tst-gap-md);
    gap: var(--tst-gap-sm);
}
.tst-section-header h3 {
    font-size: 15px; font-weight: 700; color: var(--tst-ink-100);
    margin: 0; letter-spacing: .2px;
}
.tst-section-header--standalone { margin-bottom: var(--tst-gap-md); }
.tst-section-header--sm { margin-bottom: var(--tst-gap-sm); }
.tst-section-header__link { font-size: 13px; color: var(--tst-brand); text-decoration: none; font-weight: 600; }
.tst-section-header__link:hover { text-decoration: underline; }
.tst-section-header__meta { font-size: 12px; color: var(--tst-ink-30); }
.tst-chart-title { font-size: 13px; font-weight: 600; color: var(--tst-ink-60); }

/* ════════════════════════════════════════════════════════════
   7 — STATS LIST
   ════════════════════════════════════════════════════════════ */
.tst-stats-list { list-style: none; margin: 0; padding: 0; }
.tst-stat-item {
    display: flex; align-items: center;
    justify-content: space-between; gap: var(--tst-gap-sm);
    padding: 9px 0;
    border-bottom: 1px solid var(--tst-ink-10);
    font-size: 13px;
}
.tst-stat-item:last-child { border-bottom: none; }
.tst-stat-label { color: var(--tst-ink-60); flex-shrink: 0; }
.tst-stat-value { font-weight: 600; text-align: right; }
.tst-stats-list--compact .tst-stat-item { padding: 7px 0; }

.tst-mono-value { font-family: var(--tst-font-mono); font-weight: 700; }
.tst-mono-value--brand { color: var(--tst-brand); }
.tst-mono-value--lime  { color: var(--tst-lime-dark); }
.tst-mono-value--gold  { color: var(--tst-gold-dark); }
.tst-mono-value--win   { color: var(--tst-win); }
.tst-year-small { font-family:var(--tst-font-headline); font-size:11px; font-weight:400; color:var(--tst-ink-30); margin-left:3px; }
.tst-pct-small { font-family:var(--tst-font-headline); font-size:11px; font-weight:400; color:var(--tst-ink-30); margin-left:3px; }

/* Stats groups */
.tst-stats-group__label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .7px; color: var(--tst-ink-30);
    margin-bottom: 4px; padding-bottom: 4px;
    border-bottom: 1px solid var(--tst-ink-10);
}

/* ════════════════════════════════════════════════════════════
   8 — SEASON STATS
   ════════════════════════════════════════════════════════════ */
.tst-season-stats-row {
    display: flex; gap: var(--tst-gap-md);
    justify-content: space-around;
    padding: var(--tst-gap-md) 0;
}
.tst-season-stat { text-align: center; flex: 1; }
.tst-season-stat__value { display: block; font-family: var(--tst-font-mono); font-size: 32px; font-weight: 700; line-height: 1; }
.tst-season-stat__value--win  { color: var(--tst-win); }
.tst-season-stat__value--loss { color: var(--tst-live); }
.tst-season-stat__label { display: block; font-size: 11px; color: var(--tst-ink-30); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   9 — STATS POR SUPERFICIE
   ════════════════════════════════════════════════════════════ */
.tst-surface-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--tst-gap-sm);
}
.tst-surface-card {
    background: var(--tst-off-white);
    border-radius: var(--tst-radius-md);
    padding: 12px 10px;
    border-top: 3px solid transparent;
    text-align: center;
}
.tst-surface-card__header { display: flex; align-items: center; justify-content: center; gap: 5px; margin-bottom: 8px; }
.tst-surface-card__icon { font-size: 14px; }
.tst-surface-card__name { font-size: 11px; font-weight: 700; color: var(--tst-ink-60); text-transform: uppercase; letter-spacing: .4px; }
.tst-surface-card__record { display: flex; align-items: center; justify-content: center; gap: 3px; margin-bottom: 6px; }
.tst-surface-card__w { font-family: var(--tst-font-mono); font-size: 18px; font-weight: 700; color: var(--tst-win); }
.tst-surface-card__sep { color: var(--tst-ink-30); font-size: 14px; }
.tst-surface-card__l { font-family: var(--tst-font-mono); font-size: 18px; font-weight: 700; color: var(--tst-live); }
.tst-surface-bar { height: 4px; background: var(--tst-ink-10); border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.tst-surface-bar__fill { height: 100%; border-radius: 2px; transition: width .6s ease; }
.tst-surface-card__pct { font-size: 11px; color: var(--tst-ink-30); font-family: var(--tst-font-mono); }

/* ════════════════════════════════════════════════════════════
   10 — RANKING CHART
   ════════════════════════════════════════════════════════════ */
.tst-chart-range-btns { display: flex; gap: 4px; }
.tst-range-btn {
    padding: 3px 10px; border-radius: 20px;
    border: 1px solid var(--tst-ink-10);
    background: transparent;
    font-size: 11px; font-weight: 600;
    color: var(--tst-ink-60); cursor: pointer;
    transition: all var(--tst-transition);
}
.tst-range-btn.active, .tst-range-btn:hover { background: var(--tst-brand); color: var(--tst-white); border-color: var(--tst-brand); }
.tst-chart-container { position: relative; height: 140px; }
.tst-chart-loading {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 13px; color: var(--tst-ink-30);
}
.tst-chart-empty {
    padding: 20px; text-align: center;
    font-size: 13px; color: var(--tst-ink-30);
    font-style: italic;
}
#ranking-chart { width: 100% !important; height: 140px !important; }
.tst-spinner {
    width: 20px; height: 20px;
    border: 2px solid var(--tst-ink-10);
    border-top-color: var(--tst-brand);
    border-radius: 50%;
    animation: tst-spin .7s linear infinite;
}
@keyframes tst-spin { to { transform: rotate(360deg); } }
.tst-spinner-wrap { display: flex; justify-content: center; padding: 24px; }

/* ════════════════════════════════════════════════════════════
   11 — PRÓXIMO PARTIDO
   ════════════════════════════════════════════════════════════ */
.tst-card--next-match { border-top: 3px solid var(--tst-brand); }
.tst-next-match-body { padding: var(--tst-gap-sm) 0 0; }
.tst-next-match-tournament { font-size: 13px; color: var(--tst-ink-60); margin-bottom: 6px; }
.tst-next-match-vs { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.tst-next-match-date { font-size: 13px; color: var(--tst-ink-60); margin-bottom: 4px; }
.tst-next-match-round { font-size: 12px; color: var(--tst-ink-30); margin-bottom: var(--tst-gap-md); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.tst-h2h-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 6px;
    background: var(--tst-brand-dark); color: var(--tst-white);
    border: none; cursor: pointer;
    font-family: var(--tst-font-headline); font-size: 12px; font-weight: 700;
    letter-spacing: .5px; text-transform: uppercase;
    transition: background var(--tst-transition);
    margin-top: var(--tst-gap-sm);
}
.tst-h2h-btn:hover { background: var(--tst-brand); }
.tst-h2h-btn__icon { font-size: 14px; }
.tst-h2h-btn__count {
    background: var(--tst-lime); color: var(--tst-brand-dark);
    padding: 2px 8px; border-radius: 20px;
    font-size: 11px; font-weight: 800;
}
.tst-h2h-btn__count--new { background: rgba(255,255,255,.2); color: var(--tst-white); }

/* ════════════════════════════════════════════════════════════
   12 — H2H DRAWER
   ════════════════════════════════════════════════════════════ */
.tst-h2h-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.55);
    display: flex; align-items: flex-end;
    backdrop-filter: blur(4px);
}
@media (min-width: 640px) {
    .tst-h2h-overlay { align-items: center; justify-content: flex-end; }
    .tst-h2h-modal { width: 420px; max-height: 90vh; border-radius: var(--tst-radius-lg); }
}
.tst-h2h-modal {
    background: var(--tst-white);
    border-radius: var(--tst-radius-lg) var(--tst-radius-lg) 0 0;
    width: 100%; max-height: 88vh;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.tst-h2h-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--tst-gap-md) var(--tst-gap-lg);
    background: var(--tst-brand-dark); color: var(--tst-white);
    border-radius: inherit;
    position: sticky; top: 0; z-index: 1;
}
.tst-h2h-header__label { display: block; font-size: 10px; opacity: .65; text-transform: uppercase; letter-spacing: .6px; }
.tst-h2h-header__title { display: block; font-size: 15px; font-weight: 700; }
.tst-h2h-close {
    background: rgba(255,255,255,.15); border: none; border-radius: 50%;
    width: 32px; height: 32px; color: var(--tst-white); cursor: pointer;
    font-size: 14px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background var(--tst-transition);
}
.tst-h2h-close:hover { background: rgba(255,255,255,.3); }
.tst-h2h-scoreboard {
    display: flex; align-items: center; gap: var(--tst-gap-md);
    padding: var(--tst-gap-md) var(--tst-gap-lg);
    border-bottom: 1px solid var(--tst-ink-10);
}
.tst-h2h-player { flex: 1; }
.tst-h2h-player--opp { text-align: right; }
.tst-h2h-player__name { font-size: 12px; color: var(--tst-ink-60); margin-bottom: 2px; }
.tst-h2h-player__wins { font-family: var(--tst-font-mono); font-size: 36px; font-weight: 700; color: var(--tst-ink-30); line-height: 1; }
.tst-h2h-player__wins--main { color: var(--tst-brand-dark); }
.tst-h2h-vs-col { flex: 1; text-align: center; }
.tst-h2h-bar-wrap { height: 6px; background: var(--tst-ink-10); border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.tst-h2h-bar { height: 100%; background: var(--tst-brand); border-radius: 3px; }
.tst-h2h-vs-label { font-size: 11px; color: var(--tst-ink-30); font-weight: 600; }
.tst-h2h-surf {
    display: flex; flex-wrap: wrap; gap: var(--tst-gap-sm);
    padding: var(--tst-gap-sm) var(--tst-gap-lg);
    border-bottom: 1px solid var(--tst-ink-10);
}
.tst-h2h-surf__item { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.tst-h2h-surf__icon { font-size: 13px; }
.tst-h2h-surf__label { color: var(--tst-ink-60); }
.tst-h2h-surf__rec { font-family: var(--tst-font-mono); font-weight: 700; font-size: 12px; margin-left: 2px; }
.tst-h2h-matches { padding: var(--tst-gap-sm) var(--tst-gap-lg) var(--tst-gap-lg); }
.tst-h2h-match {
    display: flex; align-items: center; gap: var(--tst-gap-sm);
    padding: 8px 0; border-bottom: 1px solid var(--tst-ink-10);
    font-size: 13px;
}
.tst-h2h-match:last-child { border-bottom: none; }
.tst-h2h-match__result {
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.tst-h2h-match--win .tst-h2h-match__result  { background: var(--tst-win); color: #fff; }
.tst-h2h-match--loss .tst-h2h-match__result { background: var(--tst-live); color: #fff; }
.tst-h2h-match__info { flex: 1; min-width: 0; }
.tst-h2h-match__score { display: block; font-family: var(--tst-font-mono); font-weight: 700; font-size: 13px; }
.tst-h2h-match__tourn { display: block; font-size: 11px; color: var(--tst-ink-30); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tst-h2h-match__date { font-size: 11px; color: var(--tst-ink-30); flex-shrink: 0; }
.tst-h2h-empty { padding: var(--tst-gap-lg); text-align: center; color: var(--tst-ink-30); font-size: 14px; }

/* ════════════════════════════════════════════════════════════
   13 — ACTIVIDAD
   ════════════════════════════════════════════════════════════ */
.tst-activity-header { margin-bottom: var(--tst-gap-lg); }
.tst-activity-controls { width: 100%; }
.tst-activity-selects {
    display: flex !important; gap: 12px; flex-wrap: wrap; align-items: center;
}

/* ── Circuit selector (Individual/Dobles) ─────────────────
   Alta especificidad para ganarle a Elementor/WP           */
.tst-tab-pane .tst-circuit-selector,
.tst-activity-selects .tst-circuit-selector {
    display: inline-flex !important;
    background: #EFEFEA !important;
    border-radius: 8px !important;
    padding: 3px !important;
    gap: 2px !important;
    border: none !important;
    box-shadow: none !important;
}
.tst-tab-pane .tst-circuit-btn,
.tst-activity-selects .tst-circuit-btn {
    font-family: "DM Sans", sans-serif !important;
    font-size: 11px !important; font-weight: 800 !important;
    letter-spacing: .08em !important; text-transform: uppercase !important;
    padding: 7px 20px !important; border-radius: 6px !important;
    border: none !important; cursor: pointer !important;
    color: #5C5C5C !important; background: transparent !important;
    box-shadow: none !important; outline: none !important;
    line-height: 1 !important; text-decoration: none !important;
    transition: background .15s, color .15s !important;
    margin: 0 !important; display: inline-block !important;
}
.tst-tab-pane .tst-circuit-btn:hover,
.tst-activity-selects .tst-circuit-btn:hover {
    color: #1A1A1A !important;
    background: rgba(0,0,0,.06) !important;
}
.tst-tab-pane .tst-circuit-btn.active,
.tst-activity-selects .tst-circuit-btn.active {
    background: #305180 !important;
    color: #fff !important;
}

/* ── Year selector ───────────────────────────────────────── */
.tst-tab-pane .tst-year-selector,
.tst-activity-selects .tst-year-selector {
    display: flex !important; align-items: center !important;
    background: #EFEFEA !important;
    border-radius: 8px !important;
    border: 1px solid #E4E3DC !important;
    overflow: hidden !important; width: fit-content !important;
}
.tst-tab-pane .tst-year-arrow,
.tst-activity-selects .tst-year-arrow {
    width: 36px !important; height: 36px !important;
    border: none !important; background: transparent !important;
    cursor: pointer !important; color: #5C5C5C !important;
    font-size: 18px !important; line-height: 1 !important;
    display: flex !important; align-items: center !important;
    justify-content: center !important;
    transition: color .15s, background .15s !important;
    padding: 0 !important; margin: 0 !important;
    box-shadow: none !important;
}
.tst-tab-pane .tst-year-arrow:hover,
.tst-activity-selects .tst-year-arrow:hover {
    color: #305180 !important;
    background: #D6E3F0 !important;
}
.tst-tab-pane .tst-year-display,
.tst-activity-selects .tst-year-display {
    font-family: "DM Mono", monospace !important;
    font-size: 14px !important; font-weight: 700 !important;
    color: #1A1A1A !important;
    padding: 0 12px !important;
    border-left: 1px solid #E4E3DC !important;
    border-right: 1px solid #E4E3DC !important;
    height: 36px !important;
    display: flex !important; align-items: center !important;
    justify-content: center !important;
    min-width: 64px !important;
}

/* ── Select torneo ───────────────────────────────────────── */
.tst-act-select-wrap { position: relative; }
.tst-act-select-wrap--wide { flex: 1; min-width: 180px; }
.tst-tab-pane .tst-act-select,
.tst-activity-selects .tst-act-select {
    -webkit-appearance: none !important;
    appearance: none !important;
    padding: 0 36px 0 14px !important; height: 36px !important;
    border: 1px solid #E4E3DC !important;
    border-radius: 8px !important;
    background-color: #EFEFEA !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235C5C5C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 11px !important; font-weight: 800 !important;
    letter-spacing: .04em !important; text-transform: uppercase !important;
    color: #5C5C5C !important;
    cursor: pointer !important; min-width: 140px !important; width: 100% !important;
    box-shadow: none !important;
    transition: border-color .15s !important;
}
.tst-tab-pane .tst-act-select:focus,
.tst-activity-selects .tst-act-select:focus { outline: none !important; border-color: #305180 !important; }

/* ── Botón "más" del palmarés ────────────────────────────── */
.tst-pal-show-more {
    all: unset !important;
    display: inline-block !important;
    margin-top: 6px !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 11px !important; font-weight: 700 !important;
    color: #305180 !important;
    cursor: pointer !important;
    padding: 2px 0 !important;
    border-bottom: 1px solid transparent !important;
    transition: border-color .15s !important;
}
.tst-pal-show-more:hover { border-bottom-color: #305180 !important; }

@media (max-width: 600px) {
    .tst-activity-selects { flex-direction: column !important; align-items: flex-start !important; }
    .tst-act-select-wrap--wide { width: 100% !important; }
}
.tst-activity-body { display: flex; flex-direction: column; gap: var(--tst-gap-md); }
.tst-activity-tournament {
    background: var(--tst-white);
    border: 1px solid var(--tst-ink-10);
    border-radius: var(--tst-radius-lg);
    overflow: hidden;
    box-shadow: var(--tst-card-shadow);
}
.tst-activity-tournament__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--tst-gap-md) var(--tst-gap-lg);
    background: var(--tst-off-white);
    border-left: 4px solid var(--tst-brand);
    gap: var(--tst-gap-sm);
}
.tst-activity-tournament__left { display: flex; flex-direction: column; gap: 3px; }
.tst-activity-tournament__surf { font-size: 14px; margin-right: 4px; }
.tst-activity-tournament__name { font-size: 14px; font-weight: 700; }
.tst-activity-tournament__year { font-size: 12px; color: var(--tst-ink-30); margin-left: 4px; }
.tst-activity-tournament__best { font-size: 11px; color: var(--tst-ink-60); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.tst-activity-tournament__record { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.tst-activity-record__w { font-family: var(--tst-font-mono); font-weight: 700; font-size: 15px; color: var(--tst-win); }
.tst-activity-record__sep { color: var(--tst-ink-30); }
.tst-activity-record__l { font-family: var(--tst-font-mono); font-weight: 700; font-size: 15px; color: var(--tst-live); }
.tst-activity-matches { padding: var(--tst-gap-sm) 0; }
.tst-match-row {
    display: flex; align-items: center; gap: var(--tst-gap-sm);
    padding: 8px var(--tst-gap-lg);
    border-bottom: 1px solid var(--tst-ink-10);
    font-size: 13px;
}
.tst-match-row:last-child { border-bottom: none; }
.tst-match-result {
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.tst-match-result--w { background: var(--tst-win); color: #fff; }
.tst-match-result--l { background: var(--tst-live); color: #fff; }
.tst-match-opp { flex: 1; display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; }
.tst-match-opp__flag { font-size: 14px; flex-shrink: 0; }
.tst-match-opp__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tst-match-round { font-size: 10px; color: var(--tst-ink-30); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; flex-shrink: 0; display: none; }
@media (min-width: 480px) { .tst-match-round { display: inline; } }
.tst-match-score { display: flex; gap: 4px; flex-shrink: 0; }
.tst-set {
    font-family: var(--tst-font-mono); font-size: 12px; font-weight: 700;
    padding: 2px 5px; border-radius: var(--tst-radius-sm);
}
.tst-set--won  { color: var(--tst-win); background: rgba(42,157,143,.1); }
.tst-set--lost { color: var(--tst-live); background: rgba(230,57,70,.08); }
.tst-match-date { font-size: 11px; color: var(--tst-ink-30); flex-shrink: 0; }
.tst-stats-btn {
    background: none; border: 1px solid var(--tst-ink-10);
    border-radius: var(--tst-radius-sm); padding: 4px 6px;
    cursor: pointer; color: var(--tst-ink-30);
    transition: all var(--tst-transition); flex-shrink: 0;
}
.tst-stats-btn:hover { color: var(--tst-brand); border-color: var(--tst-brand); background: var(--tst-brand-light); }

/* ════════════════════════════════════════════════════════════
   14 — MATCH STATS DRAWER (Fase 2)
   ════════════════════════════════════════════════════════════ */
.tst-stats-drawer {
    position: fixed; inset: 0; z-index: 9998;
    background: rgba(0,0,0,.5);
    display: flex; align-items: flex-end;
    backdrop-filter: blur(3px);
}
@media (min-width: 640px) {
    .tst-stats-drawer { align-items: center; justify-content: flex-end; }
    .tst-stats-drawer__panel { width: 440px; max-height: 92vh; border-radius: var(--tst-radius-lg); }
}
.tst-stats-drawer__panel {
    background: var(--tst-white);
    border-radius: var(--tst-radius-lg) var(--tst-radius-lg) 0 0;
    width: 100%; max-height: 88vh;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.tst-stats-drawer__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--tst-gap-md) var(--tst-gap-lg);
    background: var(--tst-brand-dark); color: var(--tst-white);
    position: sticky; top: 0; z-index: 1;
    border-radius: inherit;
}
.tst-stats-drawer__title { font-size: 15px; font-weight: 700; }
.tst-stats-drawer__close {
    background: rgba(255,255,255,.15); border: none; border-radius: 50%;
    width: 32px; height: 32px; color: var(--tst-white);
    cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--tst-transition);
}
.tst-stats-drawer__close:hover { background: rgba(255,255,255,.3); }
.tst-stats-drawer__body { padding: var(--tst-gap-md) var(--tst-gap-lg) var(--tst-gap-xl); }
.tst-stats-period__name { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--tst-ink-30); margin: var(--tst-gap-md) 0 var(--tst-gap-sm); }
.tst-stats-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--tst-ink-10); font-size: 12px; }
.tst-stats-row:last-child { border-bottom: none; }
.tst-stats-row__val { font-family: var(--tst-font-mono); font-weight: 700; min-width: 36px; }
.tst-stats-row__val--home { text-align: left; color: var(--tst-brand-dark); }
.tst-stats-row__val--away { text-align: right; color: var(--tst-ink-30); }
.tst-stats-row__center { flex: 1; }
.tst-stats-row__label { display: block; font-size: 11px; color: var(--tst-ink-60); text-align: center; margin-bottom: 3px; }
.tst-stats-row__bar { height: 4px; background: var(--tst-ink-10); border-radius: 2px; overflow: hidden; }
.tst-stats-row__bar-fill { height: 100%; background: var(--tst-brand); border-radius: 2px; }
.tst-stats-empty { text-align: center; color: var(--tst-ink-30); font-size: 14px; padding: 24px 0; }

/* ════════════════════════════════════════════════════════════
   15 — PALMARÉS
   ════════════════════════════════════════════════════════════ */
.tst-palmares-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--tst-gap-sm);
}
@media (min-width: 480px) { .tst-palmares-grid { grid-template-columns: repeat(4, 1fr); } }
.tst-palmares-card {
    background: var(--tst-off-white);
    border-radius: var(--tst-radius-md);
    padding: var(--tst-gap-md) var(--tst-gap-sm);
    text-align: center;
    border-top: 3px solid transparent;
    transition: box-shadow var(--tst-transition);
}
.tst-palmares-card--winner { background: var(--tst-brand-dark); }
.tst-palmares-card--winner .tst-palmares-card__name { color: rgba(255,255,255,.8); }
.tst-palmares-card__trophy { font-size: 24px; line-height: 1; margin-bottom: 4px; min-height: 28px; }
.tst-palmares-card__name { font-size: 11px; font-weight: 700; color: var(--tst-ink-60); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .3px; }
.tst-palmares-card__result { font-size: 13px; font-weight: 700; }

/* ════════════════════════════════════════════════════════════
   16 — VIDEOS
   ════════════════════════════════════════════════════════════ */
.tst-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--tst-gap-md);
}
.tst-video-card { border-radius: var(--tst-radius-md); overflow: hidden; background: var(--tst-off-white); }
.tst-video-thumb { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; }
.tst-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--tst-transition-slow); }
.tst-video-thumb:hover img { transform: scale(1.04); }
.tst-video-play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.3);
    transition: background var(--tst-transition);
}
.tst-video-thumb:hover .tst-video-play { background: rgba(0,0,0,.5); }
.tst-video-info { padding: 10px 12px 12px; }
.tst-video-title { font-size: 13px; font-weight: 600; line-height: 1.4; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tst-video-title a { color: var(--tst-ink-100); text-decoration: none; }
.tst-video-title a:hover { color: var(--tst-brand); }
.tst-video-channel { font-size: 11px; color: var(--tst-ink-30); margin: 0; }

/* ════════════════════════════════════════════════════════════
   17 — NEWS GRID
   ════════════════════════════════════════════════════════════ */
.tst-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--tst-gap-md); }

/* ════════════════════════════════════════════════════════════
   18 — MOBILE RESPONSIVE (< 768px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .tst-player-header { padding: 24px var(--tst-gap-md) 20px; }
    .tst-player-photo { width: 80px; height: 80px; }
    .tst-player-photo-initials { font-size: 26px; }
    .tst-player-name { font-size: clamp(1.5rem,6vw,2rem); margin-bottom: var(--tst-gap-sm); }
    .tst-player-rankings { gap: var(--tst-gap-sm); }
    .tst-ranking-value { font-size: 22px; }
    .tst-player-content { padding: var(--tst-gap-lg) var(--tst-gap-md); }
    .tst-overview-grid { grid-template-columns: 1fr; }
    .tst-card { padding: var(--tst-gap-md); }
    .tst-season-stats-row { gap: var(--tst-gap-sm); }
    .tst-season-stat__value { font-size: 26px; }
    .tst-surface-grid { grid-template-columns: repeat(2, 1fr); }
    .tst-palmares-grid { grid-template-columns: repeat(2, 1fr); }
    .tst-video-grid { grid-template-columns: 1fr; }
    .tst-activity-tournament__header { padding: var(--tst-gap-sm) var(--tst-gap-md); }
    .tst-match-row { padding: 8px var(--tst-gap-md); gap: 6px; }
    .tst-tab-button { min-width: 80px; padding: 14px var(--tst-gap-sm); font-size: 12px; }
    .tst-h2h-modal, .tst-stats-drawer__panel { border-radius: 16px 16px 0 0; }
}

@media (max-width: 400px) {
    .tst-player-photo-section { gap: var(--tst-gap-md); }
    .tst-player-photo { width: 64px; height: 64px; }
    .tst-match-score { display: none; }
}

/* ════════════════════════════════════════════════════════════
   19 — VIEW SWITCH (gráfico / semanas)
   ════════════════════════════════════════════════════════════ */
.tst-chart-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tst-view-switch {
    display: flex;
    background: var(--tst-off-white);
    border: 1px solid var(--tst-ink-10);
    border-radius: 20px;
    padding: 2px;
    gap: 0;
}
.tst-vsw-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 18px;
    border: none;
    background: none;
    font-family: var(--tst-font-headline);
    font-size: 11px;
    font-weight: 700;
    color: var(--tst-ink-60);
    cursor: pointer;
    transition: all var(--tst-transition);
    white-space: nowrap;
    line-height: 1;
}
.tst-vsw-btn svg { flex-shrink: 0; }
.tst-vsw-btn.active {
    background: var(--tst-white);
    color: var(--tst-brand-dark);
    box-shadow: 0 1px 3px rgba(0,0,0,.10);
}

/* ════════════════════════════════════════════════════════════
   20 — RANKING LIST VIEW (vista semanas)
   ════════════════════════════════════════════════════════════ */
.tst-rk-list-wrap {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--tst-ink-10);
    border-radius: var(--tst-radius-md);
    -webkit-overflow-scrolling: touch;
}
.tst-rk-list { list-style: none; }
.tst-rk-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    border-bottom: 1px solid var(--tst-ink-10);
    font-size: 12px;
    gap: 8px;
}
.tst-rk-list-item:last-child { border-bottom: none; }
.tst-rk-list-item--best { background: rgba(184,204,48,.07); }
.tst-rk-week { color: var(--tst-ink-60); font-size: 11px; flex-shrink: 0; }
.tst-rk-list-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.tst-rk-pts {
    font-size: 11px;
    color: var(--tst-ink-30);
    font-family: var(--tst-font-mono);
}
.tst-rk-pos {
    font-family: var(--tst-font-mono);
    font-weight: 700;
    font-size: 13px;
    color: var(--tst-brand);
    min-width: 32px;
    text-align: right;
}
.tst-rk-best-tag {
    font-size: 9px;
    font-weight: 800;
    color: var(--tst-lime-dark);
    text-transform: uppercase;
    letter-spacing: .4px;
    background: rgba(184,204,48,.18);
    padding: 1px 6px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════
   21 — LIVE RANKING ROW
   ════════════════════════════════════════════════════════════ */
.tst-stat-item--live {
    background: rgba(230,57,70,.03);
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
    border-radius: var(--tst-radius-sm);
}
.tst-live-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--tst-ink-60);
}
.tst-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tst-live);
    flex-shrink: 0;
    animation: tst-live-pulse 1.4s ease infinite;
}
@keyframes tst-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .55; transform: scale(1.35); }
}
.tst-live-badge {
    font-size: 9px;
    font-weight: 800;
    color: var(--tst-live);
    text-transform: uppercase;
    letter-spacing: .4px;
    background: rgba(230,57,70,.10);
    padding: 1px 6px;
    border-radius: 20px;
    white-space: nowrap;
}
.tst-mono-value--live {
    color: var(--tst-live);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.tst-live-delta {
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: var(--tst-font-headline);
}
.tst-delta--up   { color: var(--tst-win); }
.tst-delta--down { color: var(--tst-live); }

/* ════════════════════════════════════════════════════════════
   22 — PALMARÉS v2 (GS + M1000 + Especiales con historial)
   ════════════════════════════════════════════════════════════ */

/* Banner de títulos */
.tst-titles-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--tst-brand-dark);
    color: var(--tst-white);
    border-radius: var(--tst-radius-lg);
    padding: 14px 20px;
    margin-bottom: var(--tst-gap-md);
}
.tst-titles-banner__icon { font-size: 22px; line-height: 1; }
.tst-titles-banner__count {
    font-family: var(--tst-font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--tst-lime);
    line-height: 1;
}
.tst-titles-banner__label {
    font-size: 15px;
    font-weight: 600;
    opacity: .85;
}

/* Grids */
.tst-pal-gs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
@media (max-width: 600px) { .tst-pal-gs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 360px) { .tst-pal-gs-grid { grid-template-columns: 1fr; } }

.tst-pal-m1000-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
@media (max-width: 480px) { .tst-pal-m1000-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 360px) { .tst-pal-m1000-grid { grid-template-columns: 1fr; } }

/* Card base */
.tst-pal-card {
    border-radius: var(--tst-radius-md);
    overflow: hidden;
    border: 1px solid var(--tst-ink-10);
    background: var(--tst-white);
    display: flex;
    flex-direction: column;
}
.tst-pal-card--winner {
    border: 2px solid var(--tst-gold);
    box-shadow: 0 0 0 1px rgba(245,176,33,.15);
}
.tst-pal-card--empty { opacity: .6; }

/* Header coloreado */
.tst-pal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    gap: 6px;
}
.tst-pal-header__name {
    font-size: 11px;
    font-weight: 800;
    color: rgba(255,255,255,.95);
    text-transform: uppercase;
    letter-spacing: .4px;
    line-height: 1.3;
}
.tst-pal-header__trophy { font-size: 16px; flex-shrink: 0; }

/* Mejor resultado */
.tst-pal-best {
    padding: 8px 12px;
    border-bottom: 1px solid var(--tst-ink-10);
    flex-shrink: 0;
}
.tst-pal-best__label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--tst-ink-30);
    margin-bottom: 3px;
}
.tst-pal-best__round {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--tst-ink-100);
    line-height: 1.3;
}
.tst-pal-best__round--winner { color: var(--tst-gold-dark); }
.tst-pal-best__years {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--tst-ink-30);
    font-family: var(--tst-font-mono);
    margin-top: 2px;
}

/* Historial */
.tst-pal-history {
    padding: 8px 12px 10px;
    flex: 1;
}
.tst-pal-history__label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--tst-ink-30);
    margin-bottom: 5px;
}
.tst-pal-hist-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.tst-pal-hist-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}
.tst-pal-hist-year {
    font-family: var(--tst-font-mono);
    font-weight: 700;
    font-size: 10px;
    color: var(--tst-ink-60);
    min-width: 32px;
    flex-shrink: 0;
}
.tst-pal-hist-round {
    flex: 1;
    font-size: 11px;
    color: var(--tst-ink-60);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tst-pal-hist-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--tst-ink-10);
}

/* Colores de ronda */
.tst-pal-hist--win  .tst-pal-hist-round { color: var(--tst-gold-dark); font-weight: 800; }
.tst-pal-hist--win  .tst-pal-hist-dot   { background: var(--tst-gold); }
.tst-pal-hist--final .tst-pal-hist-dot  { background: var(--tst-brand); }
.tst-pal-hist--final .tst-pal-hist-round{ color: var(--tst-brand); font-weight: 700; }
.tst-pal-hist--semi .tst-pal-hist-dot   { background: #7e9bbf; }
.tst-pal-hist--semi .tst-pal-hist-round { color: #5a7a99; }
.tst-pal-hist--qf   .tst-pal-hist-dot   { background: #b0c4d8; }
.tst-pal-hist--other .tst-pal-hist-dot  { background: var(--tst-ink-10); }

/* Botón mostrar más */
.tst-pal-show-more {
    margin-top: 5px;
    font-size: 10px;
    font-weight: 700;
    color: var(--tst-brand);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: var(--tst-font-headline);
    transition: color var(--tst-transition);
}
.tst-pal-show-more:hover { color: var(--tst-brand-dark); }

/* Mobile */
@media (max-width: 767px) {
    .tst-titles-banner { padding: 12px 16px; }
    .tst-titles-banner__count { font-size: 26px; }
    .tst-pal-header__name { font-size: 10px; }
}

/* ════════════════════════════════════════════════════════════
   23 — SEASON CATEGORY (Singles / Dobles)
   ════════════════════════════════════════════════════════════ */
.tst-season-category { margin-top: var(--tst-gap-sm); }
.tst-season-category--doubles {
    margin-top: var(--tst-gap-md);
    padding-top: var(--tst-gap-md);
    border-top: 1px solid var(--tst-ink-10);
}
.tst-season-category__label {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .6px;
    color: var(--tst-ink-30);
    margin-bottom: 4px; padding-bottom: 4px;
    border-bottom: 1px solid var(--tst-ink-10);
}

/* ════════════════════════════════════════════════════════════
   24 — DOBLES EN PRÓXIMO PARTIDO
   ════════════════════════════════════════════════════════════ */
.tst-nm-doubles-partner,
.tst-nm-doubles-opp {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 700;
    flex-wrap: wrap;
}
.tst-nm-doubles-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--tst-ink-30);
    text-transform: uppercase;
    letter-spacing: .4px;
    flex-shrink: 0;
    min-width: 28px;
}
.tst-nm-doubles-name { font-weight: 700; }
.tst-nm-doubles-partner { color: var(--tst-win); }
.tst-nm-doubles-partner .tst-nm-doubles-name { color: var(--tst-win); }
