/*
Theme Name: TennisMattch
Theme URI: https://tennismattch.com
Description: Bold & Sporty dark theme for TennisMattch.com tennis news
Author: Matt McEnroe
Author URI: https://tennismattch.com
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: tennismattch
*/

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════ */

:root {
    --tm-bg:          #0b1117;
    --tm-bg-elevated: #111920;
    --tm-bg-card:     #151e28;
    --tm-bg-card-hover:#1a2535;
    --tm-bg-header:   rgba(11, 17, 23, 0.88);
    --tm-bg-footer:   #080d12;
    --tm-accent:      #00dc82;
    --tm-accent-hover:#00b86e;
    --tm-accent-glow: rgba(0, 220, 130, 0.15);
    --tm-accent-dim:  rgba(0, 220, 130, 0.12);
    --tm-accent-subtle:rgba(0, 220, 130, 0.06);
    --tm-live:        #fbbf24;
    --tm-red:         #ef4444;
    --tm-text:        #e8ecf1;
    --tm-text-sec:    #8899aa;
    --tm-text-muted:  #556677;
    --tm-border:      rgba(255,255,255,0.06);
    --tm-border-card: rgba(255,255,255,0.06);
    --tm-border-strong:rgba(255,255,255,0.10);
    --tm-glass-border:rgba(255, 255, 255, 0.06);
    --tm-radius:      10px;
    --tm-radius-sm:   6px;
    --tm-shadow:      0 4px 24px rgba(0,0,0,0.3);
    --tm-max-w:       1240px;
    --tm-transition:  0.2s ease;
    --tm-font-display:'Instrument Serif', Georgia, serif;
    --tm-font-body:   'DM Sans', -apple-system, sans-serif;
    --tm-font-mono:   'JetBrains Mono', 'SF Mono', monospace;
    --tm-surface-hard: #4d8dff;
    --tm-surface-clay: #e8734a;
    --tm-surface-grass:#34c759;
}

html { scroll-behavior: smooth; }
body { animation: tm-pageIn 0.5s ease-out; }
@keyframes tm-pageIn { from { opacity: 0; } to { opacity: 1; } }

/* ═══════════════════════════════════════════════════════════════
   BASE / RESET — Override GeneratePress light defaults
   ═══════════════════════════════════════════════════════════════ */

body {
    background: var(--tm-bg) !important;
    color: var(--tm-text-sec);
    font-family: var(--tm-font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--tm-transition);
}
a:hover { color: var(--tm-accent); }

::selection {
    background: var(--tm-accent);
    color: var(--tm-bg);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--tm-text);
    font-weight: 700;
    line-height: 1.2;
}

img { max-width: 100%; height: auto; }

/* ═══════════════════════════════════════════════════════════════
   GP STRUCTURAL OVERRIDES
   ═══════════════════════════════════════════════════════════════ */

.site-content,
.grid-container,
#page {
    background: var(--tm-bg) !important;
    max-width: 100% !important;
}

/* GP uses flex row on .site-content — override to vertical stacking */
.site-content {
    display: flex !important;
    flex-direction: column !important;
}
.site-content > * {
    width: 100% !important;
    max-width: 100% !important;
}

.inside-article {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Constrain WordPress pages (rankings, about, etc.) */
.page .inside-article {
    max-width: var(--tm-max-w);
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
}

/* Kill GP's default content wrapper widths */
.site-content .content-area {
    width: 100% !important;
    max-width: 100% !important;
}

/* Hide GP's default footer if it leaks through */
.site-footer .copyright-bar,
.site-info {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════════ */

.tm-container {
    max-width: var(--tm-max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.tm-badge {
    display: inline-block;
    background: var(--tm-accent);
    color: var(--tm-bg);
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tm-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--tm-text);
    position: relative;
    padding-bottom: 0.75rem;
}
.tm-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--tm-accent);
    border-radius: 2px;
}

/* Section labels + display titles (mockup style) */
.tm-section-label {
    font-family: var(--tm-font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tm-text-muted);
}
.tm-section-display-title {
    font-family: var(--tm-font-display);
    font-size: 1.65rem;
    font-weight: 400;
    color: var(--tm-text);
    margin-top: 0.35rem;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */

.tm-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--tm-bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--tm-glass-border);
    transition: background 0.3s ease;
}

.tm-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.tm-logo {
    font-family: var(--tm-font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-decoration: none !important;
}
.tm-logo:hover { color: var(--tm-text) !important; }
.tm-logo__tennis { color: var(--tm-text); }
.tm-logo__mattch { color: var(--tm-accent); font-style: italic; }

.tm-nav {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tm-nav li {
    list-style: none;
}
.tm-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--tm-text-sec);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--tm-transition);
}
.tm-nav a:hover {
    color: var(--tm-accent);
}

.tm-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--tm-text);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 0;
}

/* ═══════════════════════════════════════════════════════════════
   BREADCRUMBS — Override mu-plugin inline styles
   ═══════════════════════════════════════════════════════════════ */

.breadcrumb-bar {
    background: transparent !important;
    color: var(--tm-text-muted) !important;
    border-bottom: 1px solid var(--tm-border);
    padding: 0.6rem 1rem !important;
    font-size: 0.8rem !important;
}
.breadcrumb-bar a {
    color: var(--tm-text-sec) !important;
}
.breadcrumb-bar a:hover {
    color: var(--tm-accent) !important;
}

/* Hide breadcrumbs on homepage */
.home .breadcrumb-bar { display: none; }

/* ═══════════════════════════════════════════════════════════════
   HERO (Homepage)
   ═══════════════════════════════════════════════════════════════ */

.tm-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

/* Old hero card styles removed — replaced by .tm-hero__grid in V2 section below */

/* ═══════════════════════════════════════════════════════════════
   CARD GRID
   ═══════════════════════════════════════════════════════════════ */

.tm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tm-card {
    background: linear-gradient(135deg, rgba(26,35,50,0.9), rgba(26,35,50,0.7));
    backdrop-filter: blur(10px);
    border: 1px solid var(--tm-glass-border);
    border-radius: var(--tm-radius);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.3s cubic-bezier(0.4,0,0.2,1),
                border-color 0.3s ease;
}
.tm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px var(--tm-accent-glow), 0 4px 12px rgba(0,0,0,0.3);
    border-color: rgba(0,220,130,0.12);
}

.tm-card__link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.tm-card__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--tm-border);
}
.tm-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.tm-card:hover .tm-card__image img {
    transform: scale(1.05);
}

.tm-card__body {
    padding: 1.25rem;
}

.tm-card__badge {
    margin-bottom: 0.6rem;
}

.tm-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tm-text);
    margin: 0 0 0.5rem;
}

.tm-card__excerpt {
    font-size: 0.88rem;
    color: var(--tm-text-sec);
    line-height: 1.55;
    margin: 0 0 1rem;
}

.tm-card__meta {
    font-size: 0.78rem;
    color: var(--tm-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   TOURNAMENT QUICK-NAV (Homepage)
   ═══════════════════════════════════════════════════════════════ */

.tm-tournament-nav {
    border-bottom: 1px solid var(--tm-border);
    margin-bottom: 2rem;
    padding: 0.75rem 0;
}

.tm-tournament-nav__scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
}
.tm-tournament-nav__scroll::-webkit-scrollbar {
    display: none;
}

.tm-tournament-nav__pill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.4rem 1rem;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-radius: 50px;
    color: var(--tm-text-sec);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--tm-transition);
    text-decoration: none;
}
.tm-tournament-nav__pill:hover {
    border-color: var(--tm-accent);
    color: var(--tm-accent);
    background: rgba(0, 220, 130, 0.06);
}

/* ═══════════════════════════════════════════════════════════════
   TOURNAMENT SECTIONS (Homepage)
   ═══════════════════════════════════════════════════════════════ */

.tm-tournament-section {
    margin-bottom: 3rem;
}

.tm-tournament-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tm-tournament-section__header .tm-section-title {
    margin-bottom: 0;
}

.tm-view-all {
    color: var(--tm-accent);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: color var(--tm-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.tm-view-all:hover {
    color: var(--tm-accent-hover);
}
.tm-view-all .tm-arrow { transition: transform 0.2s ease; display: inline-block; }
.tm-view-all:hover .tm-arrow { transform: translateX(4px); }

/* Section title as link */
.tm-section-title-link { text-decoration: none !important; color: inherit; }
.tm-section-title-link:hover .tm-section-title { color: var(--tm-accent); transition: color 0.2s ease; }
.tm-section-title-link:hover .tm-section-title::after { width: 80px; transition: width 0.3s ease; }

/* ═══════════════════════════════════════════════════════════════
   BROWSE ALL TOURNAMENTS (Homepage)
   ═══════════════════════════════════════════════════════════════ */

.tm-browse-all {
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.tm-browse-all__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tm-browse-all__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-radius: var(--tm-radius-sm);
    color: var(--tm-text-sec);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--tm-transition);
}
.tm-browse-all__chip:hover {
    border-color: var(--tm-accent);
    color: var(--tm-accent);
}

.tm-browse-all__count {
    background: var(--tm-border);
    color: var(--tm-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 50px;
    line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE POST — HERO
   ═══════════════════════════════════════════════════════════════ */

.tm-single-hero {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
}

.tm-single-hero__image {
    position: absolute;
    inset: 0;
}
.tm-single-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(8px);
    transform: scale(1.05);
}

.tm-single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 25, 35, 0.7) 0%,
        rgba(15, 25, 35, 0.82) 50%,
        var(--tm-bg) 100%
    );
    pointer-events: none;
}

.tm-single-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--tm-max-w);
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
}

.tm-single-hero__badge {
    margin-bottom: 0.75rem;
}

.tm-single-hero__title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--tm-text);
    margin: 0 0 1rem;
    max-width: 800px;
}

.tm-single-hero__meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.88rem;
    color: var(--tm-text-sec);
}

.tm-single-hero__author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tm-single-hero__author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE POST — ARTICLE BODY
   ═══════════════════════════════════════════════════════════════ */

.tm-article {
    background: transparent;
}

.tm-article__body {
    max-width: 760px;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.tm-article__body .entry-content {
    color: var(--tm-text-sec);
    font-size: 1.05rem;
    line-height: 1.8;
}

.tm-article__body .entry-content h2 {
    color: var(--tm-text);
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.tm-article__body .entry-content h3 {
    color: var(--tm-text);
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.tm-article__body .entry-content p {
    margin-bottom: 1.25rem;
}

.tm-article__body .entry-content a {
    color: var(--tm-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.tm-article__body .entry-content a:hover {
    color: var(--tm-accent-hover);
}

.tm-article__body .entry-content strong {
    color: var(--tm-text);
    font-weight: 600;
}

.tm-article__body .entry-content blockquote {
    border-left: 3px solid var(--tm-accent);
    padding: 0.5rem 1.25rem;
    margin: 1.5rem 0;
    color: var(--tm-text);
    font-style: italic;
    background: rgba(0, 220, 130, 0.05);
    border-radius: 0 var(--tm-radius-sm) var(--tm-radius-sm) 0;
}

.tm-article__body .entry-content ul,
.tm-article__body .entry-content ol {
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
}
.tm-article__body .entry-content li {
    margin-bottom: 0.4rem;
}

/* Stats tables — dark override */
.tm-article__body .entry-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-radius: var(--tm-radius-sm);
    overflow: hidden;
}
.tm-article__body .entry-content th {
    background: rgba(0, 220, 130, 0.08) !important;
    color: var(--tm-accent) !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.75rem !important;
    border: 1px solid var(--tm-border-card) !important;
}
.tm-article__body .entry-content td {
    padding: 0.65rem 0.75rem !important;
    border: 1px solid var(--tm-border) !important;
    color: var(--tm-text-sec);
    font-size: 0.92rem;
}
.tm-article__body .entry-content caption {
    color: var(--tm-text-muted) !important;
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

/* Betting odds table */
.tm-odds-table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0 0.5rem;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-radius: var(--tm-radius-sm);
    overflow: hidden;
}
.tm-odds-table th {
    background: rgba(0, 220, 130, 0.08);
    color: var(--tm-accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.75rem;
    border: 1px solid var(--tm-border-card);
    text-align: center;
}
.tm-odds-table th:first-child { text-align: left; }
.tm-odds-table td {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--tm-border);
    color: var(--tm-text-sec);
    font-size: 0.92rem;
    text-align: center;
}
.tm-odds-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--tm-text);
}
.tm-odds-fav {
    color: var(--tm-accent) !important;
    font-weight: 600;
}
.tm-odds-table caption {
    color: var(--tm-text-muted);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}
.tm-odds-disclaimer {
    color: var(--tm-text-muted);
    font-size: 0.78rem;
    font-style: italic;
    margin: 0.25rem 0 1.5rem;
}
@media (max-width: 600px) {
    .tm-odds-table th,
    .tm-odds-table td {
        padding: 0.5rem;
        font-size: 0.82rem;
    }
}

/* Player analysis — green left border */
.tm-article__body .entry-content .player-analysis {
    border-left-color: var(--tm-accent) !important;
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: rgba(0, 220, 130, 0.03);
    border-radius: 0 var(--tm-radius-sm) var(--tm-radius-sm) 0;
}

/* FAQ section */
.tm-article__body .entry-content .faq-item {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-radius: var(--tm-radius-sm);
}
.tm-article__body .entry-content .faq-item h3 {
    color: var(--tm-text) !important;
    font-size: 1rem;
    margin: 0 0 0.4rem;
}
.tm-article__body .entry-content .faq-item p {
    margin: 0;
    color: var(--tm-text-sec);
}

/* Match type badge in article */
.tm-article__body .entry-content .match-type {
    background: var(--tm-accent) !important;
    color: var(--tm-bg) !important;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.25rem 0.85rem;
    font-size: 0.75rem;
}

/* Author box — dark override */
.author-box {
    background: var(--tm-bg-card) !important;
    border: 1px solid var(--tm-border-card) !important;
    border-radius: var(--tm-radius) !important;
    margin-top: 2.5rem;
    padding: 1.5rem !important;
}
.author-box .author-name a {
    color: var(--tm-text) !important;
}
.author-box .author-name a:hover {
    color: var(--tm-accent) !important;
}
.author-box .author-bio {
    color: var(--tm-text-sec) !important;
}

/* ═══════════════════════════════════════════════════════════════
   RELATED POSTS
   ═══════════════════════════════════════════════════════════════ */

.tm-related {
    background: rgba(26, 35, 50, 0.5);
    padding: 3rem 0;
    margin-top: 1rem;
}

.tm-related .tm-section-title {
    text-align: center;
}
.tm-related .tm-section-title::after {
    left: 50%;
    transform: translateX(-50%);
}
.tm-section-title a {
    color: inherit;
    text-decoration: none;
}
.tm-section-title a:hover {
    color: var(--tm-accent);
}

/* ═══════════════════════════════════════════════════════════════
   ARCHIVE HEADER
   ═══════════════════════════════════════════════════════════════ */

.tm-archive-header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--tm-border);
    margin-bottom: 2.5rem;
}

.tm-archive-header__title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.75rem 0 0.5rem;
}

.tm-archive-header__desc {
    color: var(--tm-text-sec);
    font-size: 1rem;
    margin: 0 0 0.5rem;
    max-width: 600px;
}

.tm-archive-header__count {
    color: var(--tm-text-muted);
    font-size: 0.85rem;
    margin: 0.5rem 0 0;
}

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════ */

.tm-pagination {
    margin-top: 3rem;
    text-align: center;
}

.tm-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.tm-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-radius: var(--tm-radius-sm);
    color: var(--tm-text-sec);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--tm-transition);
}
.tm-pagination .page-numbers:hover {
    border-color: var(--tm-accent);
    color: var(--tm-accent);
}
.tm-pagination .page-numbers.current {
    background: var(--tm-accent);
    border-color: var(--tm-accent);
    color: var(--tm-bg);
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.tm-footer {
    background: linear-gradient(180deg, var(--tm-bg), var(--tm-bg-footer));
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: 4rem;
    padding: 3.5rem 0 0;
}

.tm-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.tm-footer__brand-text {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.tm-footer__brand .tm-logo__tennis { color: var(--tm-text); }
.tm-footer__brand .tm-logo__mattch { color: var(--tm-accent); }

.tm-footer__tagline {
    color: var(--tm-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.tm-footer__heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tm-text);
    margin: 0 0 1rem;
}

.tm-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tm-footer__links li {
    margin-bottom: 0.5rem;
}
.tm-footer__links a {
    color: var(--tm-text-muted);
    font-size: 0.88rem;
    transition: color var(--tm-transition);
}
.tm-footer__links a:hover {
    color: var(--tm-accent);
}

.tm-footer__copyright {
    border-top: 1px solid var(--tm-border);
    margin-top: 2rem;
    padding: 1.25rem 0;
    text-align: center;
    color: var(--tm-text-muted);
    font-size: 0.8rem;
}

/* ═══════════════════════════════════════════════════════════════
   NO-POSTS STATE
   ═══════════════════════════════════════════════════════════════ */

.tm-no-posts {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--tm-text-muted);
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════════════
   COMMENTS — Dark theme
   ═══════════════════════════════════════════════════════════════ */

.tm-comments {
    max-width: 760px;
    margin: 2rem auto 0;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--tm-border);
}
.tm-comments h3,
.tm-comments .comment-reply-title {
    color: var(--tm-text);
    font-size: 1.3rem;
}
.tm-comments label {
    color: var(--tm-text-sec);
}
.tm-comments textarea,
.tm-comments input[type="text"],
.tm-comments input[type="email"],
.tm-comments input[type="url"] {
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-radius: var(--tm-radius-sm);
    color: var(--tm-text);
    padding: 0.75rem;
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
}
.tm-comments textarea:focus,
.tm-comments input:focus {
    border-color: var(--tm-accent);
    outline: none;
}
.tm-comments .form-submit input[type="submit"],
.tm-comments .comment-reply-link {
    background: var(--tm-accent);
    color: var(--tm-bg);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--tm-radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--tm-transition);
}
.tm-comments .form-submit input[type="submit"]:hover {
    background: var(--tm-accent-hover);
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY BADGES — Override mu-plugin for dark theme
   ═══════════════════════════════════════════════════════════════ */

.cat-links a {
    background: var(--tm-accent) !important;
    color: var(--tm-bg) !important;
    font-weight: 700;
}
.cat-links a:hover {
    background: var(--tm-accent-hover) !important;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .tm-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
    .tm-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    /* Header — show hamburger, hide nav */
    .tm-hamburger { display: block; }
    .tm-nav-wrap {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--tm-bg-header);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--tm-border);
        padding: 1rem 0;
    }
    .tm-nav-wrap.tm-nav--open {
        display: block;
    }
    .tm-nav {
        flex-direction: column;
    }
    .tm-nav a {
        padding: 0.75rem 1.5rem;
    }

    /* Old hero card responsive removed — see HOMEPAGE V2 Responsive section */

    /* Tournament sections */
    .tm-tournament-section__header {
        flex-direction: column;
        gap: 0.25rem;
    }

    /* Single hero */
    .tm-single-hero { min-height: 320px; }
    .tm-single-hero__title { font-size: 1.6rem; }

    /* Archive */
    .tm-archive-header__title { font-size: 1.5rem; }

    /* Footer responsive now handled in HOMEPAGE V2 Responsive section */
}

@media (max-width: 480px) {
    /* Old hero card responsive removed — see HOMEPAGE V2 Responsive section */

    .tm-single-hero { min-height: 260px; }
    .tm-single-hero__title { font-size: 1.3rem; }
    .tm-single-hero__content { padding: 2rem 1rem 1.5rem; }

    .tm-article__body { padding-top: 1.5rem; }
    .tm-article__body .entry-content { font-size: 0.98rem; }

    .tm-card__body { padding: 1rem; }
    .tm-card__title { font-size: 0.95rem; }
}

/* ═══════════════════════════════════════════════════════════════
   PLAYER TAG PHOTO CHIPS (single.php)
   ═══════════════════════════════════════════════════════════════ */

.tm-player-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--tm-border-card);
}

.tm-player-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 1rem 0.3rem 0.3rem;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-radius: 999px;
    color: var(--tm-text);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.tm-player-tag:hover {
    border-color: var(--tm-accent);
    color: var(--tm-accent);
    background: rgba(0, 220, 130, 0.05);
}

.tm-player-tag__photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--tm-border);
}

.tm-player-tag__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.tm-player-tag__photo--placeholder {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--tm-text-muted);
}

.tm-player-tag__name {
    font-weight: 600;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .tm-player-tag__photo {
        width: 28px;
        height: 28px;
    }
    .tm-player-tag__name {
        font-size: 0.8rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PLAYER PAGE (tag.php)
   ═══════════════════════════════════════════════════════════════ */

.tm-player-header-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.tm-player-photo-wrap {
    flex-shrink: 0;
}
.tm-player-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--tm-accent);
    background: var(--tm-bg-card);
}
.tm-player-header-info {
    flex: 1;
    min-width: 0;
}
.tm-player-bio {
    margin-top: 1rem;
    color: var(--tm-text-sec);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .tm-player-header-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .tm-player-photo { width: 100px; height: 100px; }
    .tm-player-bio { text-align: center; }
}

.tm-player-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tm-player-stats__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-radius: 50px;
    color: var(--tm-text-sec);
    font-size: 0.85rem;
}
.tm-player-stats__pill strong {
    color: var(--tm-accent);
    margin-right: 0.15rem;
}

.tm-player-section {
    margin-bottom: 3rem;
}

/* Match history table */
.tm-player-matches-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tm-player-matches {
    width: 100%;
    border-collapse: collapse;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-radius: var(--tm-radius-sm);
    overflow: hidden;
}

.tm-player-matches th {
    background: rgba(0, 220, 130, 0.08);
    color: var(--tm-accent);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--tm-border-card);
    text-align: left;
    white-space: nowrap;
}

.tm-player-matches td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--tm-border);
    color: var(--tm-text-sec);
    font-size: 0.88rem;
    white-space: nowrap;
}

.tm-player-matches tbody tr:hover {
    background: rgba(0, 220, 130, 0.03);
}

.tm-player-matches a {
    color: var(--tm-accent);
}
.tm-player-matches a:hover {
    color: var(--tm-accent-hover);
}

/* W/L indicator */
.tm-wl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--tm-text-muted);
}
.tm-wl--w {
    background: rgba(0, 220, 130, 0.15);
    color: var(--tm-accent);
}
.tm-wl--l {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Surface breakdown */
.tm-player-surfaces {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tm-player-surfaces__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-radius: var(--tm-radius-sm);
}

.tm-player-surfaces__name {
    color: var(--tm-text);
    font-weight: 600;
    font-size: 0.9rem;
}

.tm-player-surfaces__record {
    color: var(--tm-accent);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Tier badges */
.tm-tier-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.tm-tier--grandslam {
    background: rgba(255, 215, 0, 0.18);
    color: #ffd700;
}
.tm-tier--1000 {
    background: rgba(0, 220, 130, 0.15);
    color: var(--tm-accent);
}
.tm-tier--500 {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}
.tm-tier--250 {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}

@media (max-width: 768px) {
    .tm-player-matches th:nth-child(5),
    .tm-player-matches td:nth-child(5),
    .tm-player-matches th:nth-child(6),
    .tm-player-matches td:nth-child(6) {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RANKINGS PAGE — Championship Leaderboard
   ═══════════════════════════════════════════════════════════════ */

/* ── Header ─────────────────────────────────────────────────── */
.tm-rk-header {
    margin-bottom: 2rem;
}
.tm-rk-header__title {
    font-family: var(--tm-font-display);
    font-size: 2.2rem;
    color: var(--tm-text);
    margin-bottom: 0.25rem;
}
.tm-rankings__updated {
    color: var(--tm-text-muted);
    font-size: 0.82rem;
}

/* ── Podium — top 3 glass cards ─────────────────────────────── */
.tm-rk-podium {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 1rem;
    margin-bottom: 1.75rem;
    align-items: end;
}
.tm-rk-podium br { display: none; }

.tm-rk-podium__card {
    background: rgba(21,30,40,0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--tm-border-card);
    border-radius: var(--tm-radius);
    padding: 1.5rem 1.25rem;
    text-align: center;
    position: relative;
    animation: tmRkPodiumIn 0.5s ease both;
}
.tm-rk-podium__card--gold {
    border-color: rgba(255,215,0,0.25);
    box-shadow: 0 0 30px rgba(255,215,0,0.08), 0 4px 24px rgba(0,0,0,0.3);
    padding: 2rem 1.25rem;
    animation-delay: 0.1s;
}
.tm-rk-podium__card--silver {
    border-color: rgba(192,192,192,0.2);
    animation-delay: 0s;
}
.tm-rk-podium__card--bronze {
    border-color: rgba(205,127,50,0.2);
    animation-delay: 0.2s;
}
.tm-rk-podium__rank {
    font-family: var(--tm-font-display);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.tm-rk-podium__card--gold .tm-rk-podium__rank { color: #ffd700; }
.tm-rk-podium__card--silver .tm-rk-podium__rank { color: #c0c0c0; }
.tm-rk-podium__card--bronze .tm-rk-podium__rank { color: #cd7f32; }

.tm-rk-podium__photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 0.6rem;
    border: 2px solid rgba(255,255,255,0.1);
}
.tm-rk-podium__card--gold .tm-rk-podium__photo {
    width: 88px;
    height: 88px;
    border-color: rgba(255,215,0,0.3);
}
.tm-rk-podium__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tm-rk-podium__photo--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,220,130,0.1);
    border-color: var(--tm-accent);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--tm-accent);
}
.tm-rk-podium__card--gold .tm-rk-podium__photo--initials {
    font-size: 1.4rem;
}

.tm-rk-podium__name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--tm-text);
    margin-bottom: 0.3rem;
}
.tm-rk-podium__name a { color: var(--tm-text); text-decoration: none; }
.tm-rk-podium__name a:hover { color: var(--tm-accent); }
.tm-rk-podium__country { font-size: 1.5rem; margin-bottom: 0.4rem; }
.tm-rk-podium__points {
    font-family: var(--tm-font-mono);
    font-size: 0.82rem;
    color: var(--tm-text-sec);
}

@keyframes tmRkPodiumIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Stats ribbon — glass strip ─────────────────────────────── */
.tm-rk-ribbon {
    display: flex;
    gap: 0;
    background: rgba(21,30,40,0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--tm-border-card);
    border-radius: var(--tm-radius);
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}
.tm-rk-ribbon br { display: none; }
.tm-rk-ribbon__stat {
    flex: 1;
    text-align: center;
    border-right: 1px solid var(--tm-border-card);
}
.tm-rk-ribbon__stat:last-child { border-right: none; }
.tm-rk-ribbon__val {
    font-family: var(--tm-font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tm-text);
}
.tm-rk-ribbon__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tm-text-muted);
    margin-top: 0.15rem;
}

/* ── Toolbar — search + filter pills ────────────────────────── */
.tm-rk-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.tm-rk-search {
    position: relative;
    flex: 0 1 280px;
}
.tm-rk-search__icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tm-text-muted);
    pointer-events: none;
}
.tm-rk-search .tm-rankings-search {
    display: block;
    width: 100%;
    padding: 0.5rem 0.85rem 0.5rem 2.5rem;
    margin-bottom: 0;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-radius: 50px;
    color: var(--tm-text);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--tm-transition);
}
.tm-rk-search .tm-rankings-search::placeholder { color: var(--tm-text-muted); }
.tm-rk-search .tm-rankings-search:focus { border-color: var(--tm-accent); }

.tm-rankings-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.tm-rankings-filter {
    padding: 0.35rem 0.9rem;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-radius: 50px;
    color: var(--tm-text-sec);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--tm-transition);
    font-family: inherit;
}
.tm-rankings-filter:hover {
    border-color: var(--tm-accent);
    color: var(--tm-accent);
    background: rgba(0, 220, 130, 0.06);
}
.tm-rankings-filter--active {
    background: var(--tm-accent);
    border-color: var(--tm-accent);
    color: var(--tm-bg);
    font-weight: 700;
}

/* ── Table — 6 columns ──────────────────────────────────────── */
.tm-rankings-table thead th {
    background: var(--tm-bg-card);
    position: sticky;
    top: 0;
    z-index: 2;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
    transition: color var(--tm-transition);
}
.tm-rankings-table thead th:hover { color: var(--tm-accent); }
.tm-rankings-table thead th::after {
    content: '';
    display: inline-block;
    width: 0;
    margin-left: 0.3rem;
    vertical-align: middle;
}
.tm-rankings-table thead th.tm-rk-sorted::after {
    content: '\25B2';
    font-size: 0.55rem;
    color: var(--tm-accent);
}
.tm-rankings-table thead th.tm-rk-sorted.tm-rk-sorted--desc::after {
    content: '\25BC';
}

/* Rank column */
.tm-rk-rank {
    font-weight: 800;
    font-size: 1.05rem;
    min-width: 2rem;
    text-align: center;
}
.tm-rk-tier--gold  { color: #ffd700; }
.tm-rk-tier--green { color: var(--tm-accent); }
.tm-rk-tier--silver { color: #a0aec0; }

/* Player column — flag inline with name */
.tm-rk-player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tm-rk-flag { font-size: 1.15rem; flex-shrink: 0; }
.tm-rk-player__name {
    font-weight: 600;
    color: var(--tm-text);
    white-space: nowrap;
}
.tm-rk-player__name a { color: var(--tm-text); text-decoration: none; }
.tm-rk-player__name a:hover { color: var(--tm-accent); }

/* Career high */
.tm-rk-best { color: var(--tm-text-muted); font-size: 0.85rem; text-align: center; }
.tm-rk-best--atbest {
    color: #ffd700;
    font-weight: 700;
}

/* Points with progress bar */
.tm-rk-points {
    position: relative;
}
.tm-rk-points__val {
    position: relative;
    z-index: 1;
    font-family: var(--tm-font-mono);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: right;
}
.tm-rk-points__bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--pct, 0%);
    background: linear-gradient(90deg, rgba(0,220,130,0.08), rgba(0,220,130,0.03));
    border-radius: 3px;
    animation: tmRkBarGrow 0.8s ease both;
}
@keyframes tmRkBarGrow {
    from { width: 0; }
    to   { width: var(--pct, 0%); }
}

/* Movement badge pills */
.tm-rk-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
}
.tm-rk-badge--up {
    background: rgba(0,220,130,0.12);
    color: var(--tm-accent);
}
.tm-rk-badge--up::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 0.25em solid transparent;
    border-right: 0.25em solid transparent;
    border-bottom: 0.35em solid var(--tm-accent);
    margin-right: 0.2em;
    vertical-align: middle;
}
.tm-rk-badge--down {
    background: rgba(231,76,60,0.12);
    color: #e74c3c;
}
.tm-rk-badge--down::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 0.25em solid transparent;
    border-right: 0.25em solid transparent;
    border-top: 0.35em solid #e74c3c;
    margin-right: 0.2em;
    vertical-align: middle;
}
.tm-rk-badge--flat {
    color: var(--tm-text-muted);
}
.tm-rk-badge--new {
    background: rgba(0,220,130,0.12);
    color: var(--tm-accent);
}

/* Column alignment (8-col: Rank, Player, Age, Best, W-L, Points, +/-Pts, Move) */
.tm-rankings-table th:nth-child(1),
.tm-rankings-table td:nth-child(1) { text-align: center; width: 60px; }
.tm-rankings-table th:nth-child(3),
.tm-rankings-table td:nth-child(3) { text-align: center; }  /* Age */
.tm-rankings-table th:nth-child(4),
.tm-rankings-table td:nth-child(4) { text-align: center; }  /* Best */
.tm-rankings-table th:nth-child(5),
.tm-rankings-table td:nth-child(5) { text-align: center; }  /* W-L */
.tm-rankings-table th:nth-child(6),
.tm-rankings-table td:nth-child(6) { text-align: right; }   /* Points */
.tm-rankings-table th:nth-child(7),
.tm-rankings-table td:nth-child(7) { text-align: center; }  /* +/- Pts */
.tm-rankings-table th:nth-child(8),
.tm-rankings-table td:nth-child(8) { text-align: center; }  /* Move */

/* Tour switcher tabs */
.tm-rk-tour-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}
.tm-rk-tour-tab {
    display: inline-block;
    padding: 0.4rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none !important;
    color: var(--tm-text-sec);
    border-bottom: 2px solid transparent;
    transition: color var(--tm-transition), border-color var(--tm-transition);
}
.tm-rk-tour-tab:hover {
    color: var(--tm-text);
}
.tm-rk-tour-tab--active {
    color: var(--tm-accent);
    border-bottom-color: var(--tm-accent);
}

/* NCH badge */
.tm-rk-nch {
    display: inline-block;
    background: rgba(255, 195, 0, 0.15);
    color: #ffc300;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    margin-left: 0.3rem;
    vertical-align: middle;
    letter-spacing: 0.04em;
}

/* Official/Live type tabs */
.tm-rk-type-tabs {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.tm-rk-type-tab {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tm-text-sec);
    background: none;
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-sm);
    cursor: pointer;
    transition: color var(--tm-transition), border-color var(--tm-transition), background var(--tm-transition);
}
.tm-rk-type-tab:hover {
    color: var(--tm-text);
    border-color: var(--tm-border-strong);
}
.tm-rk-type-tab--active {
    color: var(--tm-accent);
    border-color: var(--tm-accent);
    background: var(--tm-accent-subtle);
}

/* Panels (Official / Live) */
.tm-rk-panel { display: none; }
.tm-rk-panel--active { display: block; }

/* Live rankings status column */
.tm-rk-status {
    font-size: 0.78rem;
    font-style: italic;
    color: var(--tm-text-sec);
    white-space: nowrap;
}
.tm-rk-status--active {
    color: var(--tm-accent);
    font-style: normal;
    font-weight: 600;
}
/* Min/Max columns */
.tm-col-minmax {
    font-family: var(--tm-font-mono, 'SF Mono', 'Fira Code', monospace);
    font-size: 0.82rem;
    color: var(--tm-text-sec);
}

/* W-L column */
.tm-rk-wl {
    font-family: var(--tm-font-mono, 'SF Mono', 'Fira Code', monospace);
    font-size: 0.82rem;
    color: var(--tm-text-sec);
}

/* Clickable rows + hover effect */
.tm-rankings-table tr[data-href] { cursor: pointer; }
.tm-rankings-table tbody tr {
    transition: background var(--tm-transition), border-color var(--tm-transition);
    border-left: 3px solid transparent;
    animation: tmRkRowIn 0.3s ease both;
}
.tm-rankings-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.015);
}
.tm-rankings-table tbody tr:hover {
    background: rgba(0, 220, 130, 0.05);
    border-left-color: var(--tm-accent);
}

@keyframes tmRkRowIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Legacy compat */
.tm-pts-change { font-size: 0.8rem; font-weight: 600; }
.tm-pts-change--up { color: var(--tm-accent); }
.tm-pts-change--down { color: #e74c3c; }
.tm-pts-change--none { color: var(--tm-text-muted); }
.tm-flag { margin-right: 0.3rem; font-size: 1rem; }
.tm-country-code { font-size: 0.82rem; color: var(--tm-text-sec); }

/* ── Responsive: tablet ─────────────────────────────────────── */
@media (max-width: 768px) {
    .tm-rankings .tm-rankings-table td.tm-col-age,
    .tm-rankings .tm-rankings-table th.tm-col-age,
    .tm-rankings .tm-rankings-table td.tm-col-best,
    .tm-rankings .tm-rankings-table th.tm-col-best,
    .tm-rankings .tm-rankings-table td.tm-col-wl,
    .tm-rankings .tm-rankings-table th.tm-col-wl,
    .tm-rankings .tm-rankings-table td.tm-col-pts-change,
    .tm-rankings .tm-rankings-table th.tm-col-pts-change,
    .tm-rankings .tm-rankings-table td.tm-col-status,
    .tm-rankings .tm-rankings-table th.tm-col-status,
    .tm-rankings .tm-rankings-table td.tm-col-minmax,
    .tm-rankings .tm-rankings-table th.tm-col-minmax {
        display: none;
    }
    .tm-rk-podium {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.75rem;
    }
    .tm-rk-podium__card { padding: 1rem 0.75rem; }
    .tm-rk-podium__card--gold { padding: 1.25rem 0.75rem; }
    .tm-rk-ribbon {
        flex-wrap: wrap;
    }
    .tm-rk-ribbon__stat {
        flex: 1 1 45%;
        border-right: none;
        padding: 0.5rem 0;
    }
    .tm-rk-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .tm-rk-search { flex: 1 1 100%; }
}

/* ── Responsive: mobile card layout ─────────────────────────── */
@media (max-width: 600px) {
    .tm-rk-header__title { font-size: 1.6rem; }
    .tm-rk-podium {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .tm-rk-podium__card,
    .tm-rk-podium__card--gold {
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-align: left;
    }
    .tm-rk-podium__rank {
        font-size: 1.5rem;
        margin-bottom: 0;
        min-width: 2rem;
    }
    .tm-rk-podium__photo {
        width: 48px;
        height: 48px;
        margin: 0;
        flex-shrink: 0;
    }
    .tm-rk-podium__card--gold .tm-rk-podium__photo {
        width: 48px;
        height: 48px;
    }
    .tm-rk-podium__country { font-size: 1.1rem; margin-bottom: 0; }
    .tm-rk-podium__points { margin-bottom: 0; }

    .tm-rankings .tm-rankings-table,
    .tm-rankings .tm-rankings-table thead,
    .tm-rankings .tm-rankings-table tbody,
    .tm-rankings .tm-rankings-table tr,
    .tm-rankings .tm-rankings-table td {
        display: block;
    }
    .tm-rankings .tm-rankings-table thead { display: none; }
    .tm-rankings .tm-rankings-table tr {
        background: var(--tm-bg-card);
        border: 1px solid var(--tm-border-card);
        border-radius: var(--tm-radius-sm);
        padding: 0.75rem 1rem;
        margin-bottom: 0.75rem;
        position: relative;
        border-left: 3px solid transparent;
    }
    .tm-rankings .tm-rankings-table tr[data-href]:hover {
        border-color: var(--tm-accent);
        border-left-color: var(--tm-accent);
    }
    .tm-rankings .tm-rankings-table td {
        padding: 0.2rem 0;
        border: none;
        text-align: left !important;
        white-space: normal;
    }
    .tm-rankings .tm-rankings-table td::before {
        content: attr(data-label);
        display: inline-block;
        width: 55px;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--tm-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    /* Rank — prominent badge top-right */
    .tm-rankings .tm-rankings-table td:nth-child(1) {
        position: absolute;
        top: 0.75rem;
        right: 1rem;
        width: auto;
        padding: 0;
    }
    .tm-rankings .tm-rankings-table td:nth-child(1)::before { display: none; }
    /* Player name — large and bold */
    .tm-rankings .tm-rankings-table td:nth-child(2) {
        font-size: 1rem;
        font-weight: 700;
        padding-bottom: 0.25rem;
    }
    .tm-rankings .tm-rankings-table td:nth-child(2)::before { display: none; }
    /* Hide Age, Best, W-L, +/- Pts on mobile cards */
    .tm-rankings .tm-rankings-table td.tm-col-age,
    .tm-rankings .tm-rankings-table td.tm-col-best,
    .tm-rankings .tm-rankings-table td.tm-col-wl,
    .tm-rankings .tm-rankings-table td.tm-col-pts-change {
        display: none;
    }
}

/* ── Rankings landing page nav cards ────────────────────────── */
.tm-rankings-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}
.tm-rankings-nav br,
.tm-rankings-nav__link br {
    display: none;
}

.tm-rankings-nav__link {
    display: block;
    padding: 2.5rem 2.5rem 3rem;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-radius: var(--tm-radius);
    text-decoration: none !important;
    transition: transform var(--tm-transition), border-color var(--tm-transition), box-shadow var(--tm-transition);
}
.tm-rankings-nav__link:hover {
    transform: translateY(-4px);
    border-color: var(--tm-accent);
    box-shadow: var(--tm-shadow);
}

.tm-rankings-nav__tour {
    display: inline-block;
    background: var(--tm-accent);
    color: var(--tm-bg);
    padding: 0.25rem 0.85rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.tm-rankings-nav__title {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--tm-text);
    margin-bottom: 0.75rem;
}

.tm-rankings-nav__desc {
    display: block;
    font-size: 0.92rem;
    color: var(--tm-text-sec);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .tm-rankings-nav {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   In Play Bar (homepage)
   ═══════════════════════════════════════════════════════════════ */

.tm-inplay-bar {
    background: linear-gradient(90deg, rgba(15,25,35,0.95), rgba(26,35,50,0.85));
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0,220,130,0.08);
    border-bottom: 1px solid rgba(0,220,130,0.08);
    padding: 0.75rem 0;
    margin-bottom: 0;
}
.tm-inplay-bar .tm-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.tm-inplay-bar__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tm-accent);
    white-space: nowrap;
}
.tm-inplay-bar__scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
}
.tm-inplay-bar__scroll::-webkit-scrollbar { display: none; }

.tm-inplay-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    background: var(--tm-bg);
    border: 1px solid var(--tm-border-card);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--tm-text);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color var(--tm-transition), background var(--tm-transition);
}
.tm-inplay-pill:hover {
    border-color: var(--tm-accent);
    background: rgba(0, 220, 130, 0.06);
    color: var(--tm-text);
}
.tm-inplay-pill--live {
    border-color: var(--tm-accent);
}
.tm-inplay-pill__tour {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tm-accent);
}
.tm-inplay-pill__surface {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.tm-surface--hard { background: #3b82f6; }
.tm-surface--clay { background: #f97316; }
.tm-surface--grass { background: #22c55e; }

/* Pulsing live dot */
.tm-inplay-pill--live .tm-inplay-pill__surface {
    background: var(--tm-live);
    box-shadow: 0 0 8px rgba(251,191,36,0.5);
    animation: tm-pulse 2s ease-in-out infinite;
}
@keyframes tm-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(251,191,36,0.3); }
    50% { box-shadow: 0 0 12px rgba(251,191,36,0.6); }
}

.tm-inplay-bar__link {
    font-size: 0.78rem;
    color: var(--tm-accent);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 600;
}
.tm-inplay-bar__link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .tm-inplay-bar .tm-container {
        flex-wrap: wrap;
    }
    .tm-inplay-bar__scroll {
        order: 2;
        width: 100%;
    }
    .tm-inplay-bar__link {
        order: 3;
        margin-left: auto;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Schedule Page (/schedule/)
   ═══════════════════════════════════════════════════════════════ */

.tm-schedule__updated {
    color: var(--tm-text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}
.tm-schedule__empty {
    color: var(--tm-text-sec);
    font-size: 1.1rem;
    text-align: center;
    padding: 3rem 1rem;
}
.tm-schedule-section {
    margin-bottom: 3rem;
}
.tm-schedule-section h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--tm-text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--tm-accent);
    display: inline-block;
}
.tm-schedule-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Tournament card */
.tm-schedule-card {
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-radius: var(--tm-radius);
    overflow: hidden;
}
.tm-schedule-card--live {
    border-color: var(--tm-accent);
}
.tm-schedule-card__header {
    padding: 1rem 1.25rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.tm-schedule-card__header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}
.tm-schedule-card__header h3 a {
    color: var(--tm-text);
    text-decoration: none;
}
.tm-schedule-card__header h3 a:hover {
    color: var(--tm-accent);
}
.tm-surface-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
}
.tm-surface-badge.tm-surface--hard { background: #3b82f6; }
.tm-surface-badge.tm-surface--clay { background: #f97316; }
.tm-surface-badge.tm-surface--grass { background: #22c55e; }
.tm-schedule-round {
    font-size: 0.78rem;
    color: var(--tm-text-sec);
}

/* Match table inside card */
.tm-schedule-card__matches {
    width: 100%;
    border-collapse: collapse;
}
.tm-schedule-card__matches tr {
    border-top: 1px solid var(--tm-border-card);
}
.tm-schedule-card__matches td {
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    color: var(--tm-text);
}
.tm-schedule-vs {
    color: var(--tm-text-muted);
    text-align: center;
    width: 2rem;
}
.tm-schedule-time {
    text-align: right;
    color: var(--tm-text-sec);
    white-space: nowrap;
}
.tm-schedule-score {
    text-align: right;
    color: var(--tm-text-sec);
    white-space: nowrap;
    font-size: 0.82rem;
}
.tm-live-badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    background: var(--tm-accent);
    color: var(--tm-bg);
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.tm-schedule-match--live td:first-child,
.tm-schedule-match--live td:nth-child(3) {
    font-weight: 600;
}
/* wpautop injects <br> inside schedule cards — hide them */
.tm-schedule br,
.tm-schedule-card br,
.tm-schedule-cards br {
    display: none;
}

@media (max-width: 768px) {
    .tm-schedule-cards {
        grid-template-columns: 1fr;
    }
}

/* ─── Tournament Fixture Progression (archive.php) ────────────── */

.tm-tournament-fixtures {
    margin-top: 1rem;
    max-width: 700px;
}
.tm-tournament-fixtures__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.tm-tournament-fixtures__tour {
    font-weight: 600;
    color: var(--tm-text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}
.tm-tournament-fixtures__tz {
    font-size: 0.75rem;
    color: var(--tm-text-muted);
    opacity: 0.7;
    margin-left: auto;
}
.tm-tournament-fixtures__day {
    margin-bottom: 1.25rem;
}
.tm-tournament-fixtures__day h4 {
    font-size: 0.95rem;
    color: var(--tm-accent);
    margin: 0 0 0.5rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--tm-border);
    font-weight: 600;
}
.tm-tournament-fixtures__matches {
    width: 100%;
    border-collapse: collapse;
}
.tm-tournament-fixtures__matches td {
    padding: 0.35rem 0.5rem;
    font-size: 0.9rem;
    color: var(--tm-text);
}
.tm-tournament-fixtures__matches .tm-match--finished td:first-child,
.tm-tournament-fixtures__matches .tm-match--finished td:nth-child(3) {
    font-weight: 500;
}
.tm-tournament-fixtures__matches .tm-match--live td:first-child,
.tm-tournament-fixtures__matches .tm-match--live td:nth-child(3) {
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   RIVALRY CARDS (tag.php player pages + archive.php H2H directory)
   ═══════════════════════════════════════════════════════════════ */

.tm-rivalries-grid,
.tm-h2h-directory__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.75rem;
}

.tm-rivalry-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-radius: var(--tm-radius-sm);
    transition: border-color var(--tm-transition), background var(--tm-transition);
    text-decoration: none;
    color: var(--tm-text);
}

.tm-rivalry-card:hover {
    border-color: var(--tm-accent);
    background: rgba(0, 220, 130, 0.05);
}

.tm-rivalry-card__photo {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--tm-border);
}

.tm-rivalry-card__photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--tm-text-sec);
}

.tm-rivalry-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-rivalry-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.tm-rivalry-card__vs {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-rivalry-card__matchup {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-rivalry-card__vs-text {
    color: var(--tm-text-muted);
    font-weight: 400;
}

.tm-rivalry-card__label {
    font-size: 0.78rem;
    color: var(--tm-text-muted);
}

.tm-rivalry-card__arrow {
    flex-shrink: 0;
    color: var(--tm-accent);
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity var(--tm-transition), transform var(--tm-transition);
}

.tm-rivalry-card:hover .tm-rivalry-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* H2H directory sections */
.tm-h2h-directory__section {
    margin-bottom: 2.5rem;
}

/* H2H link banner on single posts */
.tm-h2h-link {
    margin-top: 1.25rem;
    padding: 0.85rem 1.25rem;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-left: 3px solid var(--tm-accent);
    border-radius: var(--tm-radius-sm);
}

.tm-h2h-link a {
    color: var(--tm-accent);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color var(--tm-transition);
}

.tm-h2h-link a:hover {
    color: var(--tm-accent-hover);
}

@media (max-width: 768px) {
    .tm-rivalries-grid,
    .tm-h2h-directory__grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE REDESIGN — NEW SECTIONS
   ═══════════════════════════════════════════════════════════════ */

/* ─── Nav link hover underline ─── */
.tm-nav a {
    position: relative;
}
.tm-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--tm-accent);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 1px;
}
.tm-nav a:hover::after {
    width: 100%;
    left: 0;
}

/* ─── Nav dropdown mega-menu ─── */
.tm-nav__dropdown { position: relative; }
.tm-nav__dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    color: var(--tm-text-sec);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--tm-transition);
}
.tm-nav__dropdown-trigger:hover { color: var(--tm-accent); }
.tm-nav__dropdown-trigger::after { display: none; }
.tm-nav__dropdown-trigger svg {
    width: 10px;
    height: 10px;
    transition: transform 0.2s ease;
    opacity: 0.5;
}
.tm-nav__dropdown:hover .tm-nav__dropdown-trigger svg {
    transform: rotate(180deg);
    opacity: 1;
}
.tm-nav__mega {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(26,35,50,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--tm-glass-border);
    border-radius: var(--tm-radius);
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    min-width: 380px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    z-index: 100;
}
.tm-nav__mega::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}
.tm-nav__dropdown:hover .tm-nav__mega {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.tm-nav__mega a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: background 0.15s ease;
}
.tm-nav__mega a:hover {
    background: rgba(255,255,255,0.05);
}
.tm-nav__mega a::after { display: none; }

.tm-nav__search {
    cursor: pointer;
    color: var(--tm-text-sec);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: none;
    border: none;
    font: inherit;
}
.tm-nav__search:hover { color: var(--tm-text); }

/* Search bar */
.tm-search-bar {
    display: none;
    background: var(--tm-bg-header);
    border-top: 1px solid var(--tm-border);
    padding: 0.75rem 0;
}
.tm-search-bar--open { display: block; }
.tm-search-bar__form {
    display: flex;
    gap: 0.5rem;
}
.tm-search-bar__input {
    flex: 1;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    color: var(--tm-text);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.tm-search-bar__input::placeholder { color: var(--tm-text-muted); }
.tm-search-bar__input:focus { border-color: var(--tm-accent); }
.tm-search-bar__submit {
    padding: 0.6rem 1.25rem;
    background: var(--tm-accent);
    color: var(--tm-bg);
    border: none;
    border-radius: var(--tm-radius);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}
.tm-search-bar__submit:hover { opacity: 0.85; }

/* Search autocomplete dropdown */
.tm-search-ac {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26,35,50,0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--tm-border);
    border-top: none;
    border-radius: 0 0 var(--tm-radius) var(--tm-radius);
    z-index: 200;
    max-height: 320px;
    overflow-y: auto;
}
.tm-search-ac__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    transition: background 0.15s;
}
.tm-search-ac__item:hover { background: rgba(255,255,255,0.05); }
.tm-search-ac__photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.tm-search-ac__icon {
    width: 32px;
    text-align: center;
    flex-shrink: 0;
    color: var(--tm-accent);
    font-size: 0.7rem;
}
.tm-search-ac__name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tm-text);
}
.tm-search-ac__detail {
    font-size: 0.75rem;
    color: var(--tm-text-muted);
    white-space: nowrap;
}

/* Search results — player card */
.tm-search-players { margin-bottom: 1.5rem; }
.tm-search-player-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    margin-bottom: 0.5rem;
    transition: border-color 0.2s, background 0.2s;
}
.tm-search-player-card:hover {
    border-color: var(--tm-accent);
    background: rgba(0,220,130,0.04);
}
.tm-search-player-card__photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--tm-accent);
}
.tm-search-player-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tm-search-player-card__initials {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--tm-accent);
}
.tm-search-player-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}
.tm-search-player-card__name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--tm-text);
}
.tm-search-player-card__meta {
    font-size: 0.8rem;
    color: var(--tm-text-muted);
}
.tm-search-player-card__label {
    font-size: 0.8rem;
    color: var(--tm-accent);
    font-weight: 600;
    white-space: nowrap;
}

.tm-surface-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.tm-surface-dot--hard { background: #3b82f6; }
.tm-surface-dot--clay { background: #f97316; }
.tm-surface-dot--grass { background: #22c55e; }

/* ─── Scroll reveal ─── */
.tm-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.tm-reveal.tm-revealed {
    opacity: 1;
    transform: translateY(0);
}
.tm-grid .tm-card.tm-reveal:nth-child(1) { transition-delay: 0s; }
.tm-grid .tm-card.tm-reveal:nth-child(2) { transition-delay: 0.1s; }
.tm-grid .tm-card.tm-reveal:nth-child(3) { transition-delay: 0.2s; }

/* ─── Featured grid (1 large + 2 small) ─── */
.tm-grid--featured {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}
.tm-grid--featured .tm-card:first-child {
    grid-row: 1 / 3;
}
.tm-grid--featured .tm-card:first-child .tm-card__image {
    height: 100%;
    aspect-ratio: auto;
}
.tm-grid--featured .tm-card:first-child .tm-card__title {
    font-size: 1.15rem;
}
@media (max-width: 1024px) {
    .tm-grid--featured { grid-template-columns: 1fr 1fr; }
    .tm-grid--featured .tm-card:first-child { grid-row: auto; }
    .tm-grid--featured .tm-card:first-child .tm-card__image { aspect-ratio: 16/9; height: auto; }
}
@media (max-width: 768px) {
    .tm-grid--featured { grid-template-columns: 1fr; }
}

/* ─── Player carousel ─── */
.tm-players { padding: 2rem 0 0.5rem; }
.tm-players__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.tm-players__scroll-wrapper { position: relative; }
.tm-players__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}
.tm-players__track::-webkit-scrollbar { display: none; }
.tm-player-card {
    flex: 0 0 155px;
    scroll-snap-align: start;
    background: linear-gradient(135deg, rgba(26,35,50,0.8), rgba(26,35,50,0.5));
    backdrop-filter: blur(10px);
    border: 1px solid var(--tm-glass-border);
    border-radius: var(--tm-radius);
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.3s ease, border-color 0.3s ease;
}
.tm-player-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--tm-accent-glow);
    border-color: rgba(0,220,130,0.15);
    color: inherit;
}
.tm-player-card__photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, #243044, #1a2332);
    border: 2px solid var(--tm-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--tm-accent);
    position: relative;
    overflow: visible;
}
.tm-player-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.tm-player-card__rank {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--tm-accent);
    color: #0a1219;
    font-size: 0.6rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--tm-bg);
}
.tm-player-card__name {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tm-player-card__tournament {
    font-size: 0.7rem;
    color: var(--tm-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tm-player-card__tournament a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.tm-player-card__tournament a:hover { color: var(--tm-accent); }
.tm-player-card__flag { font-size: 0.75rem; margin-bottom: 0.1rem; }

/* Carousel scroll arrows */
.tm-players__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15,25,35,0.9);
    border: 1px solid var(--tm-glass-border);
    color: var(--tm-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s, border-color 0.2s;
    backdrop-filter: blur(10px);
}
.tm-players__arrow:hover {
    background: rgba(26,35,50,0.95);
    border-color: rgba(0,220,130,0.2);
}
.tm-players__arrow--left { left: -18px; }
.tm-players__arrow--right { right: -18px; }
.tm-players__arrow svg { width: 16px; height: 16px; }

@media (max-width: 768px) {
    .tm-players__arrow { display: none; }
    .tm-player-card { flex: 0 0 140px; }
}

/* ─── More tournaments mini-cards ─── */
.tm-browse-all__chips--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.tm-browse-all__minicard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(26,35,50,0.6), rgba(26,35,50,0.4));
    border: 1px solid var(--tm-glass-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--tm-text);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}
.tm-browse-all__minicard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    border-radius: 3px 0 0 3px;
}
.tm-browse-all__minicard--hard::before { background: #3b82f6; }
.tm-browse-all__minicard--clay::before { background: #f97316; }
.tm-browse-all__minicard--grass::before { background: #22c55e; }
.tm-browse-all__minicard--indoor::before { background: #a855f7; }
.tm-browse-all__minicard:hover {
    transform: translateY(-3px);
    background: rgba(26,35,50,0.8);
    border-color: rgba(255,255,255,0.1);
    color: var(--tm-text);
}
.tm-browse-all__minicard-name {
    font-size: 0.88rem;
    font-weight: 600;
}
.tm-browse-all__minicard-count {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.08);
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
    color: var(--tm-text-sec);
}

/* ─── In Play label pulse ─── */
.tm-inplay-bar__label {
    animation: tm-livePulseText 2s ease-in-out infinite;
}
@keyframes tm-livePulseText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ─── In Play pill hover ─── */
.tm-inplay-pill {
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.tm-inplay-pill:hover {
    transform: translateY(-1px);
}

/* ─── Full schedule arrow animation ─── */
.tm-inplay-bar__link .tm-arrow { transition: transform 0.2s ease; display: inline-block; }
.tm-inplay-bar__link:hover .tm-arrow { transform: translateX(3px); }
.tm-inplay-bar__link:hover { text-decoration: none; }

/* ─── Section border separator ─── */
.tm-tournament-section + .tm-tournament-section {
    border-top: 1px solid rgba(255,255,255,0.03);
    padding-top: 2.5rem;
}

/* ─── Hero entry animations ─── */
.tm-hero__title { animation: tm-slideUp 0.5s ease-out 0.3s both; }
.tm-hero__excerpt { animation: tm-slideUp 0.5s ease-out 0.4s both; }
.tm-hero__meta { animation: tm-slideUp 0.5s ease-out 0.5s both; }
@keyframes tm-slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes tm-slideUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE V2 — Nav live link
   ═══════════════════════════════════════════════════════════════ */

.tm-nav__live {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
}
.tm-nav__live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tm-accent);
    animation: tm-navPulse 2s infinite;
}
@keyframes tm-navPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,220,130,0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(0,220,130,0); }
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE V2 — Hero (split grid)
   ═══════════════════════════════════════════════════════════════ */

.tm-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.tm-hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    min-height: 420px;
    align-items: center;
    text-decoration: none !important;
    color: inherit;
}

.tm-hero__content {
    padding: 3.5rem 0;
    position: static;
    max-width: none;
}

.tm-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.tm-hero__tournament {
    font-family: var(--tm-font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tm-accent);
}

.tm-hero__round {
    font-family: var(--tm-font-mono);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tm-text-muted);
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--tm-border);
    border-radius: 4px;
}

.tm-hero__title {
    font-family: var(--tm-font-display);
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--tm-text);
    margin: 0 0 1.25rem;
    text-shadow: none;
    max-width: none;
}

.tm-hero__excerpt {
    font-size: 1.05rem;
    color: var(--tm-text-sec);
    line-height: 1.65;
    max-width: 520px;
    margin: 0 0 1.75rem;
}

.tm-hero__meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.8rem;
    color: var(--tm-text-muted);
}

.tm-hero__meta-divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--tm-text-muted);
    opacity: 0.5;
}

.tm-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tm-accent);
    transition: gap 0.3s;
}
.tm-hero__grid:hover .tm-hero__cta { gap: 0.75rem; }
.tm-hero__cta svg { transition: transform 0.3s; }
.tm-hero__grid:hover .tm-hero__cta svg { transform: translateX(2px); }

.tm-hero__image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--tm-radius);
    aspect-ratio: 16/9;
}
.tm-hero__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tm-hero__grid:hover .tm-hero__image-wrap img {
    transform: scale(1.04);
}
.tm-hero__image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11,17,23,0.2), transparent 60%);
    pointer-events: none;
}

.tm-hero__score {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(11, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--tm-border);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-family: var(--tm-font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--tm-text);
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE V2 — Live Scores / Latest Results
   ═══════════════════════════════════════════════════════════════ */

.tm-scores {
    padding: 2.5rem 0;
    border-top: 1px solid var(--tm-border);
    border-bottom: 1px solid var(--tm-border);
    background: var(--tm-bg-elevated);
}

.tm-scores__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.tm-scores__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    transition: opacity 0.15s ease;
}

.tm-score-card {
    display: block;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    padding: 1rem;
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit;
}
.tm-score-card:hover {
    border-color: var(--tm-border-strong);
    transform: translateY(-2px);
    color: inherit;
}

.tm-score-card__tournament {
    font-family: var(--tm-font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tm-text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tm-score-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0;
}
.tm-score-card__row + .tm-score-card__row {
    border-top: 1px solid var(--tm-border);
}

.tm-score-card__player {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--tm-text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
}
.tm-score-card__player--winner {
    color: var(--tm-accent);
}
.tm-score-card__player-flag {
    font-size: 0.72rem;
    flex-shrink: 0;
}
.tm-score-card__player-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tm-score-card__player-seed {
    font-family: var(--tm-font-mono);
    font-size: 0.6rem;
    color: var(--tm-text-muted);
    flex-shrink: 0;
}

.tm-score-card__sets {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
}
.tm-score-card__set {
    font-family: var(--tm-font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    width: 1.3rem;
    text-align: center;
    color: var(--tm-text-sec);
}
.tm-score-card__set--won {
    color: var(--tm-text);
    font-weight: 600;
}

.tm-score-card__status {
    font-family: var(--tm-font-mono);
    font-size: 0.6rem;
    color: var(--tm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.5rem;
    text-align: center;
}

/* Live score card */
.tm-score-card--live {
    border-color: var(--tm-accent);
    box-shadow: 0 0 12px rgba(0, 220, 130, 0.1);
}
.tm-score-card__live-score {
    font-family: var(--tm-font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tm-accent);
    text-align: center;
    margin: 0.3rem 0 0;
}
.tm-score-card__status--live {
    color: var(--tm-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}
.tm-score-card__live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tm-accent);
    animation: tm-pulse 1.5s ease-in-out infinite;
}
.tm-score-card__serve-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--tm-accent);
    margin-right: 0.3rem;
    flex-shrink: 0;
}
.tm-score-card__game-pt {
    font-family: var(--tm-font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--tm-accent);
    min-width: 1.4rem;
    text-align: center;
    margin-left: 0.3rem;
    padding-left: 0.3rem;
    border-left: 1px solid rgba(0, 220, 130, 0.3);
}
.tm-score-card__tb {
    font-size: 0.55rem;
    vertical-align: super;
    opacity: 0.7;
    margin-left: 1px;
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE V2 — Player Chips (carousel)
   ═══════════════════════════════════════════════════════════════ */

.tm-player-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem 0.6rem 0.6rem;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border);
    border-radius: 100px;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none !important;
    color: inherit;
}
.tm-player-chip:hover {
    border-color: var(--tm-border-strong);
    background: var(--tm-bg-card-hover);
    transform: translateY(-2px);
    color: inherit;
}

.tm-player-chip__photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #1e2a38, #253446);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--tm-text-muted);
    flex-shrink: 0;
    border: 2px solid var(--tm-accent-dim);
}
.tm-player-chip__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-player-chip__info {
    display: flex;
    flex-direction: column;
}
.tm-player-chip__name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tm-text);
    line-height: 1.2;
}
.tm-player-chip__meta {
    font-size: 0.68rem;
    color: var(--tm-text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.tm-player-chip__rank {
    font-family: var(--tm-font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--tm-text-sec);
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE V2 — Tournament Cards (v2 redesign)
   ═══════════════════════════════════════════════════════════════ */

.tm-tournament-section__titlegroup {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.tm-tournament-title {
    font-family: var(--tm-font-display);
    font-size: 1.65rem;
    font-weight: 400;
    color: var(--tm-text);
    transition: color 0.2s;
    margin: 0;
}
a:hover .tm-tournament-title {
    color: var(--tm-accent);
}

.tm-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.tm-card-grid--featured {
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
}
.tm-card-grid--featured .tm-card-v2:first-child {
    grid-row: 1 / 3;
}
.tm-card-grid--featured .tm-card-v2:first-child .tm-card-v2__image {
    aspect-ratio: 16/9;
}
.tm-card-grid--featured .tm-card-v2:first-child .tm-card-v2__body {
    flex: 1;
}

.tm-card-v2 {
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.35s,
                box-shadow 0.35s;
    display: flex;
    flex-direction: column;
}
.tm-card-v2:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 220, 130, 0.15);
    box-shadow: 0 16px 48px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,220,130,0.06);
}

.tm-card-v2__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none !important;
}

.tm-card-v2__image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--tm-bg-card) 0%, #1e2a38 100%);
}
.tm-card-v2__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tm-card-v2:hover .tm-card-v2__image img {
    transform: scale(1.05);
}

.tm-card-v2__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
}
.tm-badge-v2 {
    display: inline-block;
    font-family: var(--tm-font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: rgba(11,17,23,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--tm-border);
    color: var(--tm-text-sec);
}

.tm-card-v2__body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tm-card-v2__title {
    font-family: var(--tm-font-display);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--tm-text);
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tm-card-v2__excerpt {
    font-size: 0.85rem;
    color: var(--tm-text-sec);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin: 0;
}

.tm-card-v2__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--tm-border);
}

.tm-card-v2__date {
    font-family: var(--tm-font-mono);
    font-size: 0.68rem;
    color: var(--tm-text-muted);
    letter-spacing: 0.02em;
}

.tm-card-v2__score {
    font-family: var(--tm-font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--tm-text-sec);
    padding: 0.15rem 0.5rem;
    background: rgba(255,255,255,0.04);
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE V2 — Rankings
   ═══════════════════════════════════════════════════════════════ */

.tm-rankings-home {
    padding: 3rem 0;
    border-top: 1px solid var(--tm-border);
}

.tm-rankings-home__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.tm-rankings-home__tabs {
    display: flex;
    gap: 0.25rem;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    padding: 0.2rem;
    border: 1px solid var(--tm-border);
}

.tm-rankings__tab {
    font-family: var(--tm-font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tm-text-muted);
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    border: none;
    background: none;
}
.tm-rankings__tab:hover {
    color: var(--tm-text-sec);
}
.tm-rankings__tab--active {
    color: var(--tm-accent);
    background: var(--tm-accent-dim);
}

.tm-rankings-home__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.tm-rankings-home__column-label {
    font-family: var(--tm-font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tm-text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--tm-border);
}

.tm-rankings-home__table {
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    overflow: hidden;
}

.tm-rank-row {
    display: grid;
    grid-template-columns: 2rem 1fr auto auto auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    transition: background 0.15s;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit;
    position: relative;
}
.tm-rank-row:hover {
    background: rgba(255,255,255,0.02);
    color: inherit;
}
.tm-rank-row + .tm-rank-row {
    border-top: 1px solid var(--tm-border);
}

.tm-rank-row__pos {
    font-family: var(--tm-font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tm-text-sec);
    text-align: center;
}
.tm-rank-row:first-child .tm-rank-row__pos,
.tm-rank-row:nth-child(2) .tm-rank-row__pos,
.tm-rank-row:nth-child(3) .tm-rank-row__pos {
    color: var(--tm-accent);
}

.tm-rank-row__name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--tm-text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}
.tm-rank-row__name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tm-rank-row__flag {
    font-size: 0.72rem;
    flex-shrink: 0;
}

.tm-rank-row__points {
    font-family: var(--tm-font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--tm-text-sec);
    text-align: right;
    white-space: nowrap;
}

.tm-rank-row__wl {
    font-family: var(--tm-font-mono);
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--tm-text-muted);
    text-align: right;
    white-space: nowrap;
    min-width: 3.5rem;
}

.tm-rank-row__move {
    font-family: var(--tm-font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    text-align: center;
    min-width: 1.8rem;
}
.tm-rank-row__move--up { color: var(--tm-accent); }
.tm-rank-row__move--down { color: var(--tm-red); }
.tm-rank-row__move--same { color: var(--tm-text-muted); opacity: 0.4; }

.tm-rank-row__live-badge {
    display: none;
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
}
.tm-rank-row__live-badge--active {
    display: inline-block;
    font-family: var(--tm-font-mono);
    font-size: 0.58rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
}
.tm-rank-row__live-badge--up { color: var(--tm-accent); background: rgba(0, 220, 130, 0.1); }
.tm-rank-row__live-badge--down { color: var(--tm-red); background: rgba(239, 68, 68, 0.1); }
.tm-rank-row__live-badge--neutral { color: var(--tm-text-muted); background: rgba(255, 255, 255, 0.05); }

.tm-rankings-home__cta {
    text-align: center;
    margin-top: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE V2 — Rivalries
   ═══════════════════════════════════════════════════════════════ */

.tm-rivalries-home {
    padding: 3rem 0;
    border-top: 1px solid var(--tm-border);
    background: var(--tm-bg-elevated);
}

.tm-rivalries-home__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.tm-rivalries-home__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tm-rivalry-card-home {
    display: block;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    padding: 1.25rem;
    transition: border-color 0.2s, transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit;
}
.tm-rivalry-card-home:hover {
    border-color: rgba(0,220,130,0.15);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.2);
    color: inherit;
}

.tm-rivalry-card-home__meta {
    font-family: var(--tm-font-mono);
    font-size: 0.58rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tm-text-muted);
    margin-bottom: 1rem;
}

.tm-rivalry-card-home__matchup {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
}

.tm-rivalry-card-home__player {
    text-align: center;
}

.tm-rivalry-card-home__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e2a38, #253446);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tm-text-muted);
    margin: 0 auto 0.4rem;
    border: 2px solid var(--tm-border-strong);
    overflow: hidden;
}
.tm-rivalry-card-home__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-rivalry-card-home__player-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tm-text);
    line-height: 1.2;
}
.tm-rivalry-card-home__player-rank {
    font-family: var(--tm-font-mono);
    font-size: 0.6rem;
    color: var(--tm-text-muted);
    margin-top: 0.15rem;
}

.tm-rivalry-card-home__vs {
    text-align: center;
}

.tm-rivalry-card-home__h2h {
    font-family: var(--tm-font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--tm-text);
    line-height: 1;
}

.tm-rivalry-card-home__vs-label {
    font-family: var(--tm-font-mono);
    font-size: 0.55rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tm-text-muted);
    margin-top: 0.2rem;
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE V2 — Upcoming Previews
   ═══════════════════════════════════════════════════════════════ */

/* ── Odds & Previews Home Section ───────────────────────── */

.tm-odds-home {
    padding: 3rem 0;
    border-top: 1px solid var(--tm-border);
}

.tm-odds-home__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.tm-odds-home__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tm-odds-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-radius: var(--tm-radius);
    padding: 1.1rem 1.25rem;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit;
}
.tm-odds-card:hover {
    border-color: var(--tm-accent);
    background: var(--tm-bg-card-hover);
    color: inherit;
}

.tm-odds-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.tm-odds-card__tournament {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--tm-font-mono);
    font-size: 0.65rem;
    color: var(--tm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

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

.tm-odds-card__round {
    font-family: var(--tm-font-mono);
    font-size: 0.65rem;
    color: var(--tm-text-sec);
    white-space: nowrap;
}

.tm-odds-card__matchup {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tm-odds-card__matchup--plain {
    justify-content: center;
    padding: 0.5rem 0;
}

.tm-odds-card__player {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
}

.tm-odds-card__player-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--tm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-odds-card__player--fav .tm-odds-card__player-name {
    color: var(--tm-accent);
}

.tm-odds-card__odds-value {
    font-family: var(--tm-font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tm-text);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.2rem 0.55rem;
    border-radius: var(--tm-radius-sm);
    white-space: nowrap;
    flex-shrink: 0;
}

.tm-odds-card__player--fav .tm-odds-card__odds-value {
    background: var(--tm-accent-dim);
    color: var(--tm-accent);
}

.tm-odds-card__vs {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--tm-text-muted);
    text-transform: uppercase;
    flex-shrink: 0;
}

.tm-odds-card__fav-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tm-odds-card__fav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tm-accent);
    flex-shrink: 0;
}

.tm-odds-card__fav-text {
    font-size: 0.7rem;
    color: var(--tm-accent);
    font-weight: 500;
}

.tm-odds-card__source {
    font-family: var(--tm-font-mono);
    font-size: 0.6rem;
    color: var(--tm-text-muted);
}

.tm-odds-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--tm-border);
    padding-top: 0.65rem;
    margin-top: auto;
}

.tm-odds-card__date {
    font-family: var(--tm-font-mono);
    font-size: 0.68rem;
    color: var(--tm-text-muted);
}

.tm-odds-card__cta {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--tm-accent);
    transition: color 0.2s;
}

@media (max-width: 900px) {
    .tm-odds-home__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .tm-odds-card__matchup {
        flex-direction: column;
        gap: 0.35rem;
    }
    .tm-odds-card__player {
        width: 100%;
    }
    .tm-odds-card__vs {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PREDICTION BAR — Odds Cards
   ═══════════════════════════════════════════════════════════════ */

.tm-odds-card__prediction {
    padding-top: 0.5rem;
    border-top: 1px solid var(--tm-border);
}
.tm-odds-card__pred-label {
    font-family: var(--tm-font-mono);
    font-size: 0.58rem;
    color: var(--tm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}
.tm-odds-card__pred-bar {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.tm-odds-card__pred-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--tm-accent), var(--tm-accent-hover));
    transition: width 0.4s ease;
}
.tm-odds-card__pred-names {
    display: flex;
    justify-content: space-between;
    margin-top: 0.3rem;
    font-family: var(--tm-font-mono);
    font-size: 0.65rem;
    color: var(--tm-text-sec);
}
.tm-odds-card__pred-fav {
    color: var(--tm-accent);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   PREDICTION — In-Article Section (Python-generated HTML)
   ═══════════════════════════════════════════════════════════════ */

.tm-pred-prob {
    margin-bottom: 1.25rem;
}
.tm-pred-prob__labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--tm-text-sec);
    margin-bottom: 0.4rem;
}
.tm-pred-fav {
    color: var(--tm-accent) !important;
    font-weight: 600;
}
.tm-pred-prob__bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.tm-pred-prob__fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--tm-accent), var(--tm-accent-hover));
}
.tm-pred-prob__pcts {
    display: flex;
    justify-content: space-between;
    font-family: var(--tm-font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tm-text-sec);
    margin-top: 0.35rem;
}
.tm-pred-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}
.tm-pred-table thead th {
    font-family: var(--tm-font-mono);
    font-size: 0.68rem;
    color: var(--tm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--tm-border);
}
.tm-pred-table thead th:first-child {
    color: var(--tm-text-sec);
}
.tm-pred-table tbody td {
    padding: 0.45rem 0.75rem;
    color: var(--tm-text);
    font-family: var(--tm-font-mono);
    font-weight: 500;
    border-bottom: 1px solid var(--tm-border);
}
.tm-pred-table tbody td:first-child {
    color: var(--tm-text-sec);
    font-weight: 400;
    font-size: 0.78rem;
}
.tm-pred-sim {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.tm-pred-stat {
    flex: 1 1 120px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-sm);
    padding: 0.6rem 0.75rem;
}
.tm-pred-stat__label {
    font-family: var(--tm-font-mono);
    font-size: 0.58rem;
    color: var(--tm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}
.tm-pred-stat__value {
    font-family: var(--tm-font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tm-text);
}
.tm-pred-footer {
    font-family: var(--tm-font-mono);
    font-size: 0.6rem;
    color: var(--tm-text-muted);
    margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   PREDICTION WIDGET — Single Preview Pages
   ═══════════════════════════════════════════════════════════════ */

.tm-prediction-widget {
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-radius: var(--tm-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.tm-prediction-widget__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.tm-prediction-widget__icon {
    color: var(--tm-accent);
    display: flex;
}
.tm-prediction-widget__title {
    font-family: var(--tm-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tm-text);
}
.tm-prediction-widget__badge {
    font-family: var(--tm-font-mono);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tm-accent);
    background: var(--tm-accent-dim);
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    margin-left: auto;
}
.tm-prediction-widget__bar-section {
    margin-bottom: 1rem;
}
.tm-prediction-widget__bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--tm-text-sec);
    margin-bottom: 0.4rem;
}
.tm-prediction-widget__label--fav {
    color: var(--tm-accent);
}
.tm-prediction-widget__bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.tm-prediction-widget__bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--tm-accent), var(--tm-accent-hover));
    transition: width 0.4s ease;
}
.tm-prediction-widget__bar-pcts {
    display: flex;
    justify-content: space-between;
    font-family: var(--tm-font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tm-text-sec);
    margin-top: 0.3rem;
}
.tm-prediction-widget__pct--fav {
    color: var(--tm-accent);
}
.tm-prediction-widget__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    border-top: 1px solid var(--tm-border);
    padding-top: 0.9rem;
}
.tm-prediction-widget__stat-label {
    font-family: var(--tm-font-mono);
    font-size: 0.6rem;
    color: var(--tm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
}
.tm-prediction-widget__stat-value {
    font-family: var(--tm-font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tm-text);
}
.tm-prediction-widget__footer {
    font-family: var(--tm-font-mono);
    font-size: 0.55rem;
    color: var(--tm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: right;
    margin-top: 0.75rem;
}

@media (max-width: 600px) {
    .tm-prediction-widget {
        padding: 1rem;
    }
    .tm-prediction-widget__stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE V2 — More Tournaments
   ═══════════════════════════════════════════════════════════════ */

.tm-more-tournaments {
    padding: 3rem 0;
    border-top: 1px solid var(--tm-border);
}

.tm-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tm-more-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: var(--tm-bg-elevated);
    border: 1px solid var(--tm-border);
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
}
.tm-more-chip::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}
.tm-more-chip--hard::before { background: var(--tm-surface-hard); }
.tm-more-chip--clay::before { background: var(--tm-surface-clay); }
.tm-more-chip--grass::before { background: var(--tm-surface-grass); }

.tm-more-chip:hover {
    border-color: var(--tm-border-strong);
    background: var(--tm-bg-card);
    transform: translateY(-2px);
    color: inherit;
}

.tm-more-chip__name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--tm-text);
}

.tm-more-chip__count {
    font-family: var(--tm-font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--tm-text-muted);
    background: rgba(255,255,255,0.04);
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE V2 — Footer (4-column)
   ═══════════════════════════════════════════════════════════════ */

.tm-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.tm-footer__heading {
    font-family: var(--tm-font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--tm-text-sec);
    margin: 0 0 1rem;
}

.tm-footer__brand-text {
    font-family: var(--tm-font-display);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.tm-footer__bottom {
    border-top: 1px solid var(--tm-border);
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tm-footer__copy {
    font-size: 0.75rem;
    color: var(--tm-text-muted);
}
.tm-footer__links-bottom {
    display: flex;
    gap: 1.5rem;
}
.tm-footer__links-bottom a {
    font-size: 0.75rem;
    color: var(--tm-text-muted);
    transition: color 0.2s;
}
.tm-footer__links-bottom a:hover { color: var(--tm-text-sec); }

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE V2 — Responsive
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .tm-hero__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-height: auto;
    }
    .tm-hero__content { padding: 3rem 0 1rem; }
    .tm-hero__title { font-size: 2.4rem; }
    .tm-hero__image-wrap { max-height: 320px; }

    .tm-scores__grid { grid-template-columns: repeat(2, 1fr); }

    .tm-card-grid, .tm-card-grid--featured {
        grid-template-columns: 1fr;
    }
    .tm-card-grid--featured .tm-card-v2:first-child {
        grid-row: auto;
    }
    .tm-card-grid--featured .tm-card-v2:first-child .tm-card-v2__image {
        aspect-ratio: 16/9;
    }

    .tm-rankings-home__grid { grid-template-columns: 1fr; }
    .tm-rivalries-home__grid { grid-template-columns: 1fr 1fr; }

    .tm-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .tm-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .tm-hero__title { font-size: 1.9rem; }
    .tm-hero__excerpt { display: none; }

    .tm-scores__grid { grid-template-columns: 1fr; }
    .tm-rivalries-home__grid { grid-template-columns: 1fr; }

    .tm-footer__inner { grid-template-columns: 1fr; }
    .tm-footer__bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   Results Today Page (/results-today/)
   ═══════════════════════════════════════════════════════════════ */

.tm-results-today {
    max-width: var(--tm-max-w);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.tm-results-updated {
    font-family: var(--tm-font-mono);
    font-size: 0.72rem;
    color: var(--tm-text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.tm-results-summary {
    font-size: 0.95rem;
    color: var(--tm-text-sec);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--tm-bg-card), var(--tm-bg-elevated));
    border: 1px solid var(--tm-border-card);
    border-radius: var(--tm-radius-sm);
    border-left: 3px solid var(--tm-accent);
}
.tm-results-summary strong {
    color: var(--tm-accent);
    font-weight: 700;
}

.tm-results-roundup-link {
    font-size: 0.9rem;
    color: var(--tm-text-sec);
    margin-bottom: 0.5rem;
}
.tm-results-roundup-link a {
    color: var(--tm-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.tm-results-roundup-link a:hover {
    color: var(--tm-accent-hover);
}

.tm-results-schedule-link {
    font-size: 0.85rem;
    color: var(--tm-text-muted);
    margin-bottom: 2.5rem;
}
.tm-results-schedule-link a {
    color: var(--tm-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tm-results-empty {
    color: var(--tm-text-sec);
    font-size: 1.1rem;
    text-align: center;
    padding: 3rem 1rem;
}

/* Tour sections (ATP / WTA) */
.tm-results-section {
    margin-bottom: 3rem;
}
.tm-results-section h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--tm-text);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--tm-accent);
    display: inline-block;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Card grid */
.tm-results-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

/* Tournament card */
.tm-results-card {
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-strong);
    border-radius: var(--tm-radius);
    overflow: hidden;
    transition: border-color var(--tm-transition), box-shadow var(--tm-transition);
}
.tm-results-card:hover {
    border-color: rgba(255,255,255,0.12);
}
.tm-results-card--live {
    border-color: var(--tm-accent);
    box-shadow: 0 0 24px var(--tm-accent-glow), inset 0 1px 0 var(--tm-accent-dim);
}

/* Card header */
.tm-results-card__header {
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(0,220,130,0.04), transparent 60%);
    border-bottom: 1px solid var(--tm-border);
}
.tm-results-card__header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--tm-text);
    flex: 1;
    min-width: 0;
}

/* Tour badge (ATP / WTA) */
.tm-tour-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
}
.tm-tour-badge--atp {
    background: linear-gradient(135deg, #1a6dff, #0052cc);
}
.tm-tour-badge--wta {
    background: linear-gradient(135deg, #9b4dca, #7b2faa);
}

/* ── Table-based layout (current live HTML) ───────────────── */

.tm-results-table {
    width: 100%;
    border-collapse: collapse;
}
.tm-results-table thead {
    display: none;
}
.tm-results-table tr {
    border-top: 1px solid var(--tm-border);
    transition: background var(--tm-transition);
}
.tm-results-table tbody tr:first-child {
    border-top: none;
}
.tm-results-table tr:hover {
    background: var(--tm-bg-card-hover);
}
.tm-results-table td {
    padding: 0.6rem 0.5rem;
    font-size: 0.88rem;
    color: var(--tm-text);
    vertical-align: middle;
}
.tm-results-table td:first-child {
    padding-left: 1.25rem;
    font-weight: 500;
}
.tm-results-table td:last-child {
    padding-right: 1.25rem;
}
.tm-results-table .tm-results-vs {
    color: var(--tm-text-muted);
    text-align: center;
    width: 2rem;
    font-size: 0.72rem;
}
.tm-results-table .tm-results-status {
    color: var(--tm-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.tm-results-table .tm-results-score {
    font-family: var(--tm-font-mono);
    font-size: 0.82rem;
    color: var(--tm-text-sec);
    white-space: nowrap;
    text-align: right;
}
.tm-results-table .tm-results-recap {
    text-align: right;
    white-space: nowrap;
    padding-right: 1.25rem;
}
.tm-results-table .tm-results-recap a {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tm-bg) !important;
    background: var(--tm-accent);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    text-decoration: none !important;
    transition: background var(--tm-transition), transform var(--tm-transition);
    letter-spacing: 0.02em;
}
.tm-results-table .tm-results-recap a:hover {
    background: var(--tm-accent-hover);
    transform: translateY(-1px);
}

/* ── Div-based layout (new Python HTML) ───────────────────── */

/* Card body */
.tm-results-card__body {
    padding: 0;
}

/* Match row */
.tm-results-match {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    border-top: 1px solid var(--tm-border);
    transition: background var(--tm-transition);
}
.tm-results-match:first-child {
    border-top: none;
}
.tm-results-match:hover {
    background: var(--tm-bg-card-hover);
}

/* Live match row */
.tm-results-match--live {
    background: var(--tm-accent-subtle);
}
.tm-results-match--live:hover {
    background: var(--tm-accent-dim);
}

/* Status column */
.tm-results-match__status {
    flex: 0 0 52px;
    text-align: center;
}
.tm-results-final {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--tm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.tm-results-time {
    font-family: var(--tm-font-mono);
    font-size: 0.78rem;
    color: var(--tm-text-sec);
}

/* Players column */
.tm-results-match__players {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}
.tm-results-match__player {
    font-size: 0.9rem;
    color: var(--tm-text-sec);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tm-results-match__winner {
    color: var(--tm-text);
    font-weight: 600;
}
.tm-results-vs {
    font-size: 0.72rem;
    color: var(--tm-text-muted);
    text-transform: lowercase;
    flex-shrink: 0;
}

/* Round */
.tm-results-match__round {
    flex: 0 0 auto;
    font-size: 0.78rem;
    color: var(--tm-text-muted);
    white-space: nowrap;
}

/* Score */
.tm-results-match__score {
    flex: 0 0 auto;
    font-family: var(--tm-font-mono);
    font-size: 0.82rem;
    color: var(--tm-text);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

/* Action / recap */
.tm-results-match__action {
    flex: 0 0 auto;
}
.tm-results-recap-link {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tm-bg) !important;
    background: var(--tm-accent);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    text-decoration: none !important;
    transition: background var(--tm-transition), transform var(--tm-transition);
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.tm-results-recap-link:hover {
    background: var(--tm-accent-hover);
    transform: translateY(-1px);
}

/* wpautop br suppression */
.tm-results-today br,
.tm-results-card br,
.tm-results-cards br,
.tm-results-match br,
.tm-results-table br {
    display: none;
}

/* Responsive: tablet */
@media (max-width: 768px) {
    .tm-results-table td {
        padding: 0.5rem 0.4rem;
        font-size: 0.82rem;
    }
    .tm-results-table .tm-results-score {
        font-size: 0.78rem;
    }
    .tm-results-match {
        flex-wrap: wrap;
        gap: 0.4rem 0.6rem;
        padding: 0.75rem 1rem;
    }
    .tm-results-match__status {
        flex: 0 0 48px;
    }
    .tm-results-match__players {
        flex: 1 1 calc(100% - 60px);
    }
    .tm-results-match__round {
        margin-left: 52px;
        font-size: 0.72rem;
    }
    .tm-results-match__score {
        font-size: 0.78rem;
    }
}

/* Responsive: mobile */
@media (max-width: 480px) {
    .tm-results-today {
        padding: 1.25rem 1rem 3rem;
    }
    .tm-results-table td {
        padding: 0.4rem 0.3rem;
        font-size: 0.78rem;
    }
    .tm-results-table td:first-child {
        padding-left: 0.75rem;
    }
    .tm-results-table .tm-results-recap a {
        font-size: 0.7rem;
        padding: 0.2rem 0.55rem;
    }
    .tm-results-match {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        padding: 0.75rem 1rem;
    }
    .tm-results-match__status {
        flex: none;
    }
    .tm-results-match__players {
        flex: none;
        width: 100%;
    }
    .tm-results-match__player {
        font-size: 0.85rem;
    }
    .tm-results-match__round,
    .tm-results-match__score,
    .tm-results-match__action {
        margin-left: 0;
    }
    .tm-results-match__score {
        font-size: 0.8rem;
    }
    .tm-results-card__header {
        padding: 0.75rem 1rem 0.6rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   H2H PAGES — Face-off Hero + Visual Data
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────────────── */

.tm-h2h-hero {
    background: linear-gradient(180deg, var(--tm-bg-elevated) 0%, var(--tm-bg) 100%);
    border-bottom: 1px solid var(--tm-border);
    padding: 2.5rem 0 2rem;
}

.tm-h2h-hero__badge {
    text-align: center;
    margin-bottom: 1.25rem;
}

.tm-h2h-hero__faceoff {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    max-width: 640px;
    margin: 0 auto;
}

.tm-h2h-hero__player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.tm-h2h-hero__photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--tm-accent);
    background: var(--tm-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-h2h-hero__photo--placeholder {
    font-family: var(--tm-font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--tm-accent);
    letter-spacing: 0.05em;
}

.tm-h2h-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.tm-h2h-hero__name {
    font-family: var(--tm-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tm-text);
    text-decoration: none;
    text-align: center;
    transition: color 0.2s;
}
.tm-h2h-hero__name:hover {
    color: var(--tm-accent);
}

.tm-h2h-hero__record {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.tm-h2h-hero__score {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.tm-h2h-hero__wins {
    font-family: var(--tm-font-mono);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--tm-text-muted);
    line-height: 1;
}

.tm-h2h-hero__wins--leader {
    color: var(--tm-accent);
}

.tm-h2h-hero__divider {
    font-family: var(--tm-font-mono);
    font-size: 2rem;
    color: var(--tm-text-muted);
    opacity: 0.5;
}

.tm-h2h-hero__vs {
    font-family: var(--tm-font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--tm-text-muted);
    text-transform: uppercase;
}

.tm-h2h-hero__label {
    font-family: var(--tm-font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--tm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.tm-h2h-hero__meta {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: var(--tm-text-muted);
}

/* ── Status Line ─────────────────────────────────────────────── */

.tm-h2h-status {
    font-size: 0.8rem;
    color: var(--tm-text-muted);
    font-family: var(--tm-font-mono);
    border-bottom: 1px solid var(--tm-border);
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
}

/* ── Comparison Bars ─────────────────────────────────────────── */

.tm-h2h-bars {
    margin-bottom: 2.5rem;
}

.tm-h2h-bars h2 {
    margin-bottom: 1rem;
}

.tm-h2h-bars__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0 0 0.5rem;
}

.tm-h2h-bars__name {
    font-family: var(--tm-font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tm-text-secondary);
}

.tm-h2h-bar-row {
    display: grid;
    grid-template-columns: 80px 32px 1fr 32px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tm-h2h-bar-label {
    font-size: 0.8rem;
    color: var(--tm-text-muted);
    font-weight: 500;
}

.tm-h2h-bar-val {
    font-family: var(--tm-font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.tm-h2h-bar-val--p1 { color: var(--tm-accent); }
.tm-h2h-bar-val--p2 { color: #60a5fa; }

.tm-h2h-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.tm-h2h-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.tm-h2h-bar-fill--p1 {
    background: linear-gradient(90deg, var(--tm-accent), rgba(0, 220, 130, 0.6));
}

/* ── Surface Pills ───────────────────────────────────────────── */

.tm-h2h-surfaces {
    margin-bottom: 2.5rem;
}

.tm-h2h-surfaces h2 {
    margin-bottom: 1rem;
}

.tm-h2h-surfaces__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tm-h2h-surface-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border);
    transition: border-color 0.2s;
}

.tm-h2h-surface-pill__name,
.tm-h2h-surface-pill__record {
    display: inline;
}

.tm-h2h-surface-pill__name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tm-text-secondary);
}

.tm-h2h-surface-pill__record {
    font-family: var(--tm-font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tm-text);
}

.tm-h2h-surface-pill.tm-surface--hard {
    border-color: rgba(96, 165, 250, 0.3);
}
.tm-h2h-surface-pill.tm-surface--hard .tm-h2h-surface-pill__name { color: #60a5fa; }

.tm-h2h-surface-pill.tm-surface--clay {
    border-color: rgba(251, 146, 60, 0.3);
}
.tm-h2h-surface-pill.tm-surface--clay .tm-h2h-surface-pill__name { color: #fb923c; }

.tm-h2h-surface-pill.tm-surface--grass {
    border-color: rgba(0, 220, 130, 0.3);
}
.tm-h2h-surface-pill.tm-surface--grass .tm-h2h-surface-pill__name { color: var(--tm-accent); }

.tm-h2h-surface-pill.tm-surface--carpet {
    border-color: rgba(168, 85, 247, 0.3);
}
.tm-h2h-surface-pill.tm-surface--carpet .tm-h2h-surface-pill__name { color: #a855f7; }

.tm-h2h-surface-pill.tm-surface--other {
    border-color: rgba(148, 163, 184, 0.3);
}

/* ── Meeting Cards ───────────────────────────────────────────── */

.tm-h2h-meetings-section {
    margin-bottom: 2.5rem;
}

.tm-h2h-meetings-section h2 {
    margin-bottom: 1rem;
}

.tm-h2h-meetings-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tm-h2h-meeting-card {
    display: grid;
    grid-template-columns: 90px 1fr auto auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    background: var(--tm-bg-card);
    border-radius: var(--tm-radius);
    border: 1px solid var(--tm-border);
    border-left: 3px solid var(--tm-border);
    transition: background 0.2s, transform 0.15s;
}

.tm-h2h-meeting-card:hover {
    background: var(--tm-bg-card-hover);
    transform: translateY(-1px);
}

/* Surface left border colors */
.tm-h2h-meeting-card.tm-surface-border--hard { border-left-color: #60a5fa; }
.tm-h2h-meeting-card.tm-surface-border--clay { border-left-color: #fb923c; }
.tm-h2h-meeting-card.tm-surface-border--grass { border-left-color: var(--tm-accent); }
.tm-h2h-meeting-card.tm-surface-border--carpet { border-left-color: #a855f7; }

.tm-h2h-meeting-card__date {
    font-family: var(--tm-font-mono);
    font-size: 0.75rem;
    color: var(--tm-text-muted);
    white-space: nowrap;
}

.tm-h2h-meeting-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.tm-h2h-meeting-card__tournament {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.tm-h2h-meeting-card__round {
    font-size: 0.72rem;
    color: var(--tm-text-muted);
}

.tm-h2h-meeting-card .tm-surface-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    white-space: nowrap;
    align-self: center;
}

.tm-surface-badge.tm-surface--hard { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.tm-surface-badge.tm-surface--clay { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.tm-surface-badge.tm-surface--grass { background: rgba(0, 220, 130, 0.15); color: var(--tm-accent); }
.tm-surface-badge.tm-surface--carpet { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.tm-surface-badge.tm-surface--other { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

.tm-h2h-meeting-card__result {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.tm-h2h-meeting-card__winner {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tm-accent);
}

.tm-h2h-meeting-card__score {
    font-family: var(--tm-font-mono);
    font-size: 0.75rem;
    color: var(--tm-text-muted);
}

.tm-h2h-meeting-card__recap {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tm-accent);
    text-decoration: none;
    white-space: nowrap;
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    background: var(--tm-accent-dim);
    transition: background 0.2s;
}
.tm-h2h-meeting-card__recap:hover {
    background: var(--tm-accent-glow);
}

/* ── Related Rivalries ───────────────────────────────────────── */

.tm-h2h-related {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tm-h2h-related li {
    margin: 0;
}

.tm-h2h-related a {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--tm-text-secondary);
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border);
    border-radius: 999px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.tm-h2h-related a:hover {
    border-color: var(--tm-accent);
    color: var(--tm-accent);
}

/* ── H2H Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
    .tm-h2h-hero__faceoff {
        gap: 1rem;
    }
    .tm-h2h-hero__photo {
        width: 72px;
        height: 72px;
    }
    .tm-h2h-hero__wins {
        font-size: 2rem;
    }
    .tm-h2h-hero__divider {
        font-size: 1.5rem;
    }
    .tm-h2h-hero__name {
        font-size: 0.82rem;
    }
    .tm-h2h-bar-row {
        grid-template-columns: 60px 28px 1fr 28px;
        gap: 0.35rem;
    }
    .tm-h2h-bar-label {
        font-size: 0.72rem;
    }
    .tm-h2h-bar-val {
        font-size: 0.78rem;
    }
    .tm-h2h-meeting-card {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        padding: 0.75rem 1rem;
    }
    .tm-h2h-meeting-card__result {
        align-items: flex-start;
    }
    .tm-surface-badge {
        justify-self: start;
    }
}

@media (max-width: 480px) {
    .tm-h2h-hero {
        padding: 1.5rem 0 1.25rem;
    }
    .tm-h2h-hero__faceoff {
        gap: 0.75rem;
    }
    .tm-h2h-hero__photo {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }
    .tm-h2h-hero__photo--placeholder {
        font-size: 1.1rem;
    }
    .tm-h2h-hero__wins {
        font-size: 1.65rem;
    }
    .tm-h2h-hero__divider {
        font-size: 1.2rem;
    }
    .tm-h2h-hero__name {
        font-size: 0.75rem;
    }
    .tm-h2h-hero__label {
        font-size: 0.55rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TOURNAMENT PILLAR PAGES
   ═══════════════════════════════════════════════════════════════ */

/* ── Full-width override for pillar pages ─────────────────────── */

.tm-pillar-page .inside-article {
    max-width: 100% !important;
    padding: 0 !important;
}
.tm-pillar-page .entry-content {
    max-width: 100%;
}

/* Hide GeneratePress auto featured image — pillar template renders its own hero */
.tm-pillar-page .featured-image.page-header-image {
    display: none !important;
}

/* ── Hero ──────────────────────────────────────────────────────── */

.tm-pillar-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--tm-bg-elevated);
}

.tm-pillar-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-pillar-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(11, 17, 23, 0.25) 0%,
        rgba(11, 17, 23, 0.7) 60%,
        rgba(11, 17, 23, 0.95) 100%
    );
}

.tm-pillar-hero__content {
    position: relative;
    z-index: 2;
    max-width: var(--tm-max-w);
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    width: 100%;
}

.tm-pillar-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    background: rgba(0, 220, 130, 0.12);
    border: 1px solid rgba(0, 220, 130, 0.25);
    font-family: var(--tm-font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--tm-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.tm-pillar-hero__title {
    font-family: var(--tm-font-display);
    font-size: 2.8rem;
    font-style: italic;
    font-weight: 400;
    color: var(--tm-text);
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.tm-pillar-hero__subtitle {
    font-family: var(--tm-font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--tm-accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.tm-pillar-hero__updated {
    font-family: var(--tm-font-mono);
    font-size: 0.7rem;
    color: var(--tm-text-muted);
    letter-spacing: 0.04em;
}

/* ── Pillar Layout (TOC sidebar + content) ────────────────────── */

.tm-pillar-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    max-width: var(--tm-max-w);
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}

/* ── TOC Sidebar (desktop) ────────────────────────────────────── */

.tm-pillar-toc {
    position: sticky;
    top: 84px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.tm-pillar-toc__label {
    font-family: var(--tm-font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--tm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}

.tm-pillar-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid var(--tm-border);
}

.tm-pillar-toc__link {
    display: block;
    padding: 0.35rem 0 0.35rem 1rem;
    font-size: 0.78rem;
    color: var(--tm-text-muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: color 0.2s, border-color 0.2s;
    line-height: 1.35;
}

.tm-pillar-toc__link:hover {
    color: var(--tm-text-sec);
}

.tm-pillar-toc__link.tm-toc-active {
    color: var(--tm-accent);
    border-left-color: var(--tm-accent);
    font-weight: 500;
}

/* ── Mobile TOC (collapsible bar) ─────────────────────────────── */

.tm-pillar-toc-mobile {
    display: none;
    position: sticky;
    top: 60px;
    z-index: 50;
    background: var(--tm-bg-elevated);
    border-bottom: 1px solid var(--tm-border);
}

.tm-pillar-toc-mobile__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    color: var(--tm-text-sec);
    font-family: var(--tm-font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.tm-pillar-toc-mobile__chevron {
    transition: transform 0.2s;
    width: 12px;
    height: 12px;
}

.tm-pillar-toc-mobile--open .tm-pillar-toc-mobile__chevron {
    transform: rotate(180deg);
}

.tm-pillar-toc-mobile__list {
    list-style: none;
    padding: 0 1.25rem 0.75rem;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.tm-pillar-toc-mobile--open .tm-pillar-toc-mobile__list {
    max-height: 600px;
}

.tm-pillar-toc-mobile__list a {
    display: block;
    padding: 0.4rem 0;
    font-size: 0.82rem;
    color: var(--tm-text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.tm-pillar-toc-mobile__list a:hover,
.tm-pillar-toc-mobile__list a.tm-toc-active {
    color: var(--tm-accent);
}

/* ── Pillar Content Area ──────────────────────────────────────── */

.tm-pillar-content h2 {
    font-family: var(--tm-font-body);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tm-text);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--tm-accent);
    scroll-margin-top: 84px;
}

.tm-pillar-content h2:first-child {
    margin-top: 0;
}

.tm-pillar-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--tm-text);
    margin: 1.75rem 0 0.75rem;
}

.tm-pillar-content p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--tm-text-sec);
    margin-bottom: 1rem;
}

.tm-pillar-content strong {
    color: var(--tm-text);
    font-weight: 600;
}

.tm-pillar-content a {
    color: var(--tm-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.tm-pillar-content a:hover {
    color: var(--tm-accent-hover);
}

/* ── Pillar Data Tables ───────────────────────────────────────── */

.tm-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tm-pillar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 1rem 0 1.5rem;
}

.tm-pillar-table thead th {
    font-family: var(--tm-font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--tm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.6rem 0.75rem;
    border-bottom: 2px solid var(--tm-border-strong);
    text-align: left;
    white-space: nowrap;
}

.tm-pillar-table tbody td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--tm-border);
    color: var(--tm-text-sec);
    white-space: nowrap;
}

.tm-pillar-table tbody tr:hover {
    background: var(--tm-bg-card-hover);
}

.tm-pillar-table tbody td:first-child {
    color: var(--tm-text);
    font-weight: 500;
}

/* ── Table Card (tabbed container for ATP/WTA toggle) ─────────── */

.tm-table-card {
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-radius: var(--tm-radius);
    overflow: hidden;
    margin: 1.5rem 0;
}

.tm-table-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    background: linear-gradient(135deg, rgba(0, 220, 130, 0.04), transparent 60%);
    border-bottom: 1px solid var(--tm-border);
}

.tm-table-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tm-text);
}

.tm-table-tabs {
    display: flex;
    gap: 0.25rem;
    background: var(--tm-bg);
    border-radius: 6px;
    padding: 3px;
}

.tm-table-tab {
    padding: 0.35rem 1rem;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--tm-text-muted);
    font-family: var(--tm-font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.tm-table-tab:hover {
    color: var(--tm-text-sec);
}

.tm-table-tab--active {
    background: var(--tm-accent);
    color: var(--tm-bg);
}

.tm-table-panel {
    display: none;
}

.tm-table-panel--active {
    display: block;
}

/* ── FAQ Accordion ────────────────────────────────────────────── */

.tm-faq-section {
    margin: 1.5rem 0;
}

.tm-faq-item {
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-sm);
    margin-bottom: 0.5rem;
    overflow: hidden;
    background: var(--tm-bg-card);
    transition: border-color 0.2s;
}

.tm-faq-item:hover {
    border-color: var(--tm-border-strong);
}

.tm-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    margin: 0;
    background: none;
    border: none;
    color: var(--tm-text);
    font-family: var(--tm-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    line-height: 1.4;
}

.tm-faq-question::after {
    content: '';
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-left: 1rem;
    border-right: 2px solid var(--tm-text-muted);
    border-bottom: 2px solid var(--tm-text-muted);
    transform: rotate(-45deg);
    transition: transform 0.2s;
}

.tm-faq-item--open .tm-faq-question::after {
    transform: rotate(45deg);
}

.tm-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.25rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--tm-text-sec);
}

.tm-faq-item--open .tm-faq-answer {
    max-height: 500px;
    padding: 0 1.25rem 1rem;
}

/* ── Duration Summary ─────────────────────────────────────────── */

.tm-duration-summary {
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border);
    border-left: 3px solid var(--tm-accent);
    border-radius: var(--tm-radius-sm);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--tm-text-sec);
    line-height: 1.8;
    margin: 1rem 0 1.5rem;
}

.tm-duration-summary strong {
    color: var(--tm-text);
}

/* ── Pillar Player Card (inline photo) ───────────────────────── */

.tm-pillar-player-card {
    float: right;
    width: 180px;
    margin: 0 0 1rem 1.5rem;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    border-radius: var(--tm-radius);
    padding: 1rem;
    text-align: center;
}

.tm-pillar-player-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--tm-accent-dim);
}

.tm-pillar-player-card__caption {
    margin-top: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.tm-pillar-player-card__caption strong {
    font-size: 0.85rem;
    color: var(--tm-text);
}

.tm-pillar-player-card__caption span {
    font-family: var(--tm-font-mono);
    font-size: 0.68rem;
    color: var(--tm-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Pillar Author Byline ────────────────────────────────────── */

.tm-pillar-author {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: var(--tm-max-w);
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
    border-top: 1px solid var(--tm-border);
}

.tm-pillar-author__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--tm-font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tm-accent);
}

.tm-pillar-author__text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tm-pillar-author__name {
    font-family: var(--tm-font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tm-text-sec);
    letter-spacing: 0.02em;
}

.tm-pillar-author__desc {
    font-size: 0.82rem;
    color: var(--tm-text-muted);
    line-height: 1.5;
}

/* ── Last Updated ─────────────────────────────────────────────── */

.tm-last-updated {
    font-family: var(--tm-font-mono);
    font-size: 0.72rem;
    color: var(--tm-text-muted);
    letter-spacing: 0.04em;
    padding-top: 2rem;
    border-top: 1px solid var(--tm-border);
    margin-top: 3rem;
}

/* ── Pillar Page Responsive ───────────────────────────────────── */

@media (max-width: 900px) {
    .tm-pillar-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 1.25rem 3rem;
    }
    .tm-pillar-toc {
        display: none;
    }
    .tm-pillar-toc-mobile {
        display: block;
    }
    .tm-pillar-hero__title {
        font-size: 2.2rem;
    }
    .tm-pillar-hero {
        min-height: 380px;
    }
    .tm-pillar-hero__content {
        padding: 3rem 1.25rem 2rem;
    }
    .tm-table-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .tm-pillar-player-card {
        float: none;
        width: 100%;
        max-width: 220px;
        margin: 0 auto 1.25rem;
    }
    .tm-pillar-author {
        padding: 1.5rem 1.25rem 2rem;
    }
    /* Scrollable tables on tablets */
    .tm-table-card {
        overflow: visible;
    }
    .tm-table-card .tm-table-panel,
    .tm-table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .tm-pillar-table {
        font-size: 0.8rem;
        min-width: 500px;
    }
    .tm-pillar-table thead th {
        font-size: 0.65rem;
        padding: 0.5rem 0.6rem;
    }
    .tm-pillar-table tbody td {
        padding: 0.45rem 0.6rem;
    }
}

@media (max-width: 600px) {
    .tm-pillar-hero {
        min-height: 260px;
    }
    .tm-pillar-hero__title {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    .tm-pillar-hero__subtitle {
        font-size: 0.7rem;
    }
    .tm-pillar-hero__badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.7rem;
    }
    .tm-pillar-hero__content {
        padding: 2rem 1rem 1.5rem;
    }
    .tm-pillar-layout {
        padding: 0 0.75rem 2rem;
    }
    .tm-pillar-content h2 {
        font-size: 1.25rem;
        margin-top: 2rem;
    }
    .tm-pillar-content h3 {
        font-size: 1.05rem;
    }
    .tm-pillar-content p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    /* Tables: smaller text, scrollable */
    .tm-pillar-table {
        font-size: 0.75rem;
        min-width: 420px;
    }
    .tm-pillar-table thead th {
        font-size: 0.6rem;
        padding: 0.4rem 0.5rem;
    }
    .tm-pillar-table tbody td {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }
    .tm-table-card {
        margin: 1rem -0.75rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .tm-table-card__header {
        padding: 0.75rem 1rem;
    }
    .tm-table-card__title {
        font-size: 0.9rem;
    }
    .tm-table-tab {
        font-size: 0.65rem;
        padding: 0.3rem 0.75rem;
    }
    .tm-faq-question {
        font-size: 0.88rem;
        padding: 0.85rem 1rem;
    }
    .tm-faq-answer {
        padding: 0 1rem;
    }
    .tm-faq-item--open .tm-faq-answer {
        padding: 0 1rem 0.85rem;
    }
    .tm-faq-answer p {
        font-size: 0.88rem;
    }
    /* Full-width stats cards on mobile */
    .tm-pillar-content .tm-table-scroll {
        margin: 0 -0.75rem;
        padding: 0 0.75rem;
    }
    .tm-pillar-author {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 1.25rem 1rem 1.5rem;
    }
    .tm-pillar-author__desc {
        font-size: 0.78rem;
    }
}

/* ═══════ PILLAR PAGE DISCOVERY ═══════════════════════════════════ */

/* Category archive banner */
.tm-pillar-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 220, 130, 0.08);
    border: 1px solid rgba(0, 220, 130, 0.25);
    border-radius: 8px;
    text-decoration: none;
    color: var(--tm-text);
    transition: background 0.2s, border-color 0.2s;
}
.tm-pillar-banner:hover {
    background: rgba(0, 220, 130, 0.14);
    border-color: var(--tm-accent);
    color: var(--tm-text);
}
.tm-pillar-banner__icon {
    flex-shrink: 0;
    color: var(--tm-accent);
}
.tm-pillar-banner__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.tm-pillar-banner__title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}
.tm-pillar-banner__subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--tm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.tm-pillar-banner__arrow {
    flex-shrink: 0;
    color: var(--tm-accent);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Homepage tournament section guide link */
.tm-tournament-section__links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.tm-view-all--guide {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--tm-accent) !important;
    opacity: 0.8;
}
.tm-view-all--guide:hover {
    opacity: 1;
}

/* Recap article pillar CTA */
.tm-pillar-cta {
    margin: 2rem auto;
}
.tm-pillar-cta__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    background: rgba(0, 220, 130, 0.06);
    border: 1px solid rgba(0, 220, 130, 0.2);
    border-radius: 8px;
    text-decoration: none;
    color: var(--tm-text);
    transition: background 0.2s, border-color 0.2s;
}
.tm-pillar-cta__link:hover {
    background: rgba(0, 220, 130, 0.12);
    border-color: var(--tm-accent);
    color: var(--tm-text);
}
.tm-pillar-cta__link > svg {
    flex-shrink: 0;
    color: var(--tm-accent);
}
.tm-pillar-cta__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.tm-pillar-cta__title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}
.tm-pillar-cta__subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--tm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.tm-pillar-cta__arrow {
    flex-shrink: 0;
    color: var(--tm-accent);
    font-size: 1.1rem;
}
/* Tournaments directory page */
.tm-tournaments-directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.tm-tournament-dir-card {
    display: flex;
    flex-direction: column;
    background: var(--tm-card-bg, rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--tm-text);
    transition: border-color 0.2s, transform 0.15s;
}
.tm-tournament-dir-card:hover {
    border-color: var(--tm-accent);
    transform: translateY(-2px);
    color: var(--tm-text);
}
.tm-tournament-dir-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.tm-tournament-dir-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tm-tournament-dir-card__body {
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.tm-tournament-dir-card__badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.tm-tournament-dir-card__title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0;
}
.tm-tournament-dir-card__cta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--tm-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Nav dropdown — Tournament Guides link */
.tm-nav__guides-link {
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    color: var(--tm-accent) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

@media (max-width: 600px) {
    .tm-pillar-banner__subtitle,
    .tm-pillar-cta__subtitle {
        display: none;
    }
    .tm-tournament-section__links {
        gap: 0.5rem;
    }
    .tm-tournaments-directory {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   NEWSLETTER INLINE SECTION
   ═══════════════════════════════════════════════════════════════ */

.tm-newsletter {
    border-top: 1px solid var(--tm-border);
    border-bottom: 1px solid var(--tm-border);
    background: var(--tm-bg-elevated);
}

.tm-newsletter__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 0;
}

.tm-newsletter__text {
    flex: 1;
    min-width: 0;
}

.tm-newsletter__subtitle {
    color: var(--tm-text-sec);
    font-size: 1rem;
    margin: 0.5rem 0 0;
    line-height: 1.5;
}

.tm-newsletter__form {
    flex: 0 0 440px;
    display: flex;
    align-items: center;
}

/* ── Native newsletter form ── */

.tm-nl-form {
    display: flex;
    width: 100%;
    border-radius: var(--tm-radius);
    overflow: hidden;
    border: 1px solid var(--tm-border-strong);
    transition: border-color 0.2s;
}

.tm-nl-form:focus-within {
    border-color: var(--tm-accent);
}

.tm-nl-form__input {
    flex: 1;
    padding: 0.85rem 1rem;
    background: var(--tm-bg-card);
    border: none;
    color: var(--tm-text);
    font-family: var(--tm-font-body);
    font-size: 0.95rem;
    outline: none;
    min-width: 0;
}

.tm-nl-form__input::placeholder {
    color: var(--tm-text-muted);
}

.tm-nl-form__btn {
    padding: 0.85rem 1.5rem;
    background: var(--tm-accent);
    color: #0b1117;
    border: none;
    font-family: var(--tm-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.tm-nl-form__btn:hover {
    background: var(--tm-accent-hover);
}

.tm-nl-form__btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.tm-nl-form__msg {
    font-size: 0.9rem;
    padding: 0.75rem 0;
}

.tm-nl-form__msg--ok {
    color: var(--tm-accent);
}

@media (max-width: 768px) {
    .tm-newsletter__inner {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 0;
    }
    .tm-newsletter__form {
        flex: none;
        width: 100%;
        max-width: 400px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   NEWSLETTER POPUP
   ═══════════════════════════════════════════════════════════════ */

.tm-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tm-popup-overlay--visible {
    opacity: 1;
}

.tm-popup {
    position: relative;
    background: var(--tm-bg-elevated);
    border: 1px solid var(--tm-border-strong);
    border-radius: var(--tm-radius);
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.tm-popup-overlay--visible .tm-popup {
    transform: translateY(0);
}

.tm-popup__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--tm-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: color 0.2s;
}

.tm-popup__close:hover {
    color: var(--tm-text);
}

.tm-popup__title {
    font-family: var(--tm-font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--tm-text);
    margin: 0.5rem 0 0.25rem;
}

.tm-popup__subtitle {
    color: var(--tm-text-sec);
    font-size: 0.95rem;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .tm-popup {
        padding: 2rem 1.5rem;
    }
    .tm-popup__title {
        font-size: 1.4rem;
    }
}
