/* ===================================================
   TENNIISFAN — MODERN DARK THEME
   =================================================== */

:root {
  --yellow:     #f5c518;
  --blue:       #1d6fc4;
  --blue-light: #4a9eff;
  --clay:       #c2622f;
  --clay-light: #e07840;
  --green:      #2d6a4f;
  --green-light:#52b788;

  --bg:         #0d1117;
  --bg2:        #161b22;
  --bg3:        #1f2937;
  --border:     rgba(255,255,255,0.08);
  --text:       #e6edf3;
  --text-muted: #8b949e;
  --white:      #ffffff;

  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.6);
}

/* ===== RESET ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(13,17,23,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg3);
}

.nav-links a.active {
  color: var(--yellow);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO (HOME) ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0d1117;
  text-align: center;
  padding: 4rem 2rem;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.45) 60%,
    rgba(13,17,23,0.85) 100%
  );
  z-index: 1;
}

.court-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.court-line {
  position: absolute;
  background: rgba(255,255,255,0.04);
}

.line-center {
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
}

.line-service-left {
  left: 25%; right: 50%;
  top: 30%; bottom: 30%;
  border: 1px solid rgba(255,255,255,0.04);
}

.line-service-right {
  left: 50%; right: 25%;
  top: 30%; bottom: 30%;
  border: 1px solid rgba(255,255,255,0.04);
}

.hero-ball {
  position: absolute;
  font-size: 28rem;
  opacity: 0.04;
  right: -8rem;
  bottom: -6rem;
  pointer-events: none;
  line-height: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(245,197,24,0.12);
  border: 1px solid rgba(245,197,24,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-welcome {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 4px 32px rgba(0,0,0,0.6);
  animation: hero-fade-in 1.2s ease forwards;
  opacity: 0;
}

@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.highlight { color: var(--yellow); }

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--yellow);
  color: #000;
}

.btn-primary:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,197,24,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg3);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

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

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  padding: 2rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:last-child { border-right: none; }

.stat-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ===== SECTIONS ===== */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ===== SURFACES ===== */
.surfaces-section { max-width: 100%; background: var(--bg2); padding: 6rem 2rem; }
.surfaces-section .section-header { max-width: 1200px; margin: 0 auto 3.5rem; }

.surfaces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.surface-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.surface-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.surface-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: lightbox-in 0.3s ease;
}

@keyframes lightbox-in {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.surface-info {
  padding: 1.5rem;
  background: var(--bg3);
}

.surface-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.surface-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.surface-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== FEATURED PLAYERS ===== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.featured-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: all 0.25s;
}

.featured-card:hover {
  border-color: rgba(245,197,24,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.player-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

.player-info { display: flex; flex-direction: column; gap: 0.25rem; }

.rank-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(245,197,24,0.12);
  border: 1px solid rgba(245,197,24,0.25);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.player-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.player-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Player avatar colors */
.av-sinner    { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.av-alcaraz   { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.av-sabalenka { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.av-swiatek   { background: linear-gradient(135deg, #c2622f, #e07840); }
.av-djokovic  { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.av-zverev    { background: linear-gradient(135deg, #15803d, #22c55e); }
.av-medvedev  { background: linear-gradient(135deg, #1e40af, #60a5fa); }
.av-fritz     { background: linear-gradient(135deg, #9a3412, #f97316); }
.av-ruud      { background: linear-gradient(135deg, #1e3a5f, #3b82f6); }
.av-rublev    { background: linear-gradient(135deg, #7f1d1d, #f87171); }
.av-dimitrov  { background: linear-gradient(135deg, #065f46, #34d399); }
.av-deminaur  { background: linear-gradient(135deg, #1c1917, #a8a29e); }
.av-gauff     { background: linear-gradient(135deg, #1e3a8a, #60a5fa); }
.av-rybakina  { background: linear-gradient(135deg, #78350f, #fbbf24); }
.av-pegula    { background: linear-gradient(135deg, #14532d, #4ade80); }
.av-zheng     { background: linear-gradient(135deg, #1e1b4b, #818cf8); }
.av-andreeva  { background: linear-gradient(135deg, #881337, #fb7185); }
.av-navarro   { background: linear-gradient(135deg, #134e4a, #2dd4bf); }
.av-kasatkina { background: linear-gradient(135deg, #4a1d96, #c084fc); }
.av-badosa    { background: linear-gradient(135deg, #92400e, #fcd34d); }
.av-federer   { background: linear-gradient(135deg, #1e293b, #64748b); }
.av-nadal     { background: linear-gradient(135deg, #7f1d1d, #dc2626); }
.av-serena    { background: linear-gradient(135deg, #1e1b4b, #4f46e5); }
.av-agassi    { background: linear-gradient(135deg, #064e3b, #059669); }
.av-sampras   { background: linear-gradient(135deg, #1c1917, #78716c); }

/* Small avatars for tables */
.player-avatar-sm {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin-right: 0.6rem;
  flex-shrink: 0;
  vertical-align: middle;
  border: 2px solid var(--border);
  background: var(--bg3);
  cursor: zoom-in;
  transition: border-color 0.2s, transform 0.2s;
}

.player-avatar-sm:hover {
  border-color: var(--yellow);
  transform: scale(1.1);
}

/* ===== NEWS PREVIEW (HOME) ===== */
.news-preview-section { max-width: 100%; background: var(--bg2); padding: 6rem 2rem; }
.news-preview-section .section-header { max-width: 1200px; margin: 0 auto 3rem; }

.news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.news-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
}

.news-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.news-surface-bar {
  height: 4px;
}

.bar-clay   { background: var(--clay); }
.bar-blue   { background: var(--blue); }
.bar-green  { background: var(--green-light); }
.bar-yellow { background: var(--yellow); }

.news-body { padding: 1.5rem; }

.news-featured .news-body { padding: 2rem; }

.news-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}

.news-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.news-featured h3 {
  font-size: 1.35rem;
}

.news-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.news-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 6rem 2rem 4rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(45,106,79,0.2) 0%, transparent 70%),
              linear-gradient(180deg, #0a1628 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero-tournaments {
  background: radial-gradient(ellipse at 50% 100%, rgba(194,98,47,0.2) 0%, transparent 70%),
              linear-gradient(180deg, #1a0a00 0%, var(--bg) 100%);
}

.page-hero-news {
  background: radial-gradient(ellipse at 50% 100%, rgba(29,111,196,0.2) 0%, transparent 70%),
              linear-gradient(180deg, #000d1a 0%, var(--bg) 100%);
}

.page-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--white);
  margin: 0.5rem 0 0.75rem;
}

.page-hero-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ===== RANKINGS TABLE ===== */
.rankings-section { max-width: 1200px; }
.rankings-wta { background: none; }

.rankings-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.rankings-table {
  width: 100%;
  border-collapse: collapse;
}

.rankings-table thead th {
  padding: 1rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-align: left;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.rankings-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.rankings-table tbody tr:last-child { border-bottom: none; }

.rankings-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.rankings-table td {
  padding: 0.9rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg3);
  vertical-align: middle;
}

.rank-top3 td { background: rgba(245,197,24,0.04); }

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--bg2);
  color: var(--text-muted);
}

.rank-num.gold   { background: rgba(245,197,24,0.15); color: var(--yellow); }
.rank-num.silver { background: rgba(200,200,200,0.12); color: #c0c0c0; }
.rank-num.bronze { background: rgba(180,100,40,0.15); color: #cd7f32; }

/* ===== LEGENDS ===== */
.legends-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.legend-card {
  display: flex;
  gap: 1.5rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.25s;
}

.legend-card:hover {
  border-color: rgba(245,197,24,0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.legend-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  border: 3px solid var(--border);
  background: var(--bg3);
  cursor: zoom-in;
  transition: border-color 0.2s, transform 0.2s;
}

.legend-avatar:hover {
  border-color: var(--yellow);
  transform: scale(1.08);
}

.legend-info { flex: 1; }

.legend-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.legend-country {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
}

.legend-slams {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.slam-badge {
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.slam-badge.slam-ao  { background: rgba(29,111,196,0.2); color: #60a5fa; border: 1px solid rgba(29,111,196,0.3); }
.slam-badge.slam-rg  { background: rgba(194,98,47,0.2);  color: #f97316; border: 1px solid rgba(194,98,47,0.3); }
.slam-badge.slam-w   { background: rgba(45,106,79,0.2);  color: #4ade80; border: 1px solid rgba(45,106,79,0.3); }
.slam-badge.slam-uso { background: rgba(100,60,200,0.2); color: #a78bfa; border: 1px solid rgba(100,60,200,0.3); }

.legend-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legend-stat-row {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legend-stat-row strong { color: var(--text); }

/* ===== CALENDAR ===== */
.calendar-section { max-width: 900px; margin: 0 auto; }

.calendar-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calendar-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  transition: all 0.25s;
}

.calendar-item:hover {
  transform: translateX(6px);
  border-color: rgba(255,255,255,0.15);
}

.cal-month {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.cal-bar {
  width: 4px;
  height: 60px;
  border-radius: 2px;
  flex-shrink: 0;
}

.cal-ao  .cal-bar { background: var(--blue); }
.cal-rg  .cal-bar { background: var(--clay); }
.cal-w   .cal-bar { background: var(--green-light); }
.cal-uso .cal-bar { background: #7c3aed; }

.cal-info { flex: 1; }

.cal-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.cal-dates {
  font-size: 0.88rem;
  color: var(--yellow);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.cal-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cal-badge {
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.badge-hard  { background: rgba(29,111,196,0.15); color: #60a5fa; border: 1px solid rgba(29,111,196,0.3); }
.badge-clay  { background: rgba(194,98,47,0.15);  color: #f97316; border: 1px solid rgba(194,98,47,0.3); }
.badge-grass { background: rgba(45,106,79,0.15);  color: #4ade80; border: 1px solid rgba(45,106,79,0.3); }

/* ===== GRAND SLAM PROFILES ===== */
.slams-deep { max-width: 1200px; }

.slam-profile {
  display: flex;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.25s;
}

.slam-profile:hover { box-shadow: var(--shadow); }

.slam-color-band {
  width: 6px;
  flex-shrink: 0;
}

.band-ao  { background: var(--blue); }
.band-rg  { background: var(--clay); }
.band-w   { background: var(--green-light); }
.band-uso { background: #7c3aed; }

.slam-profile-content { padding: 2rem; flex: 1; }

.slam-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.slam-surface-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.stag-hard  { background: rgba(29,111,196,0.15);  color: #60a5fa; border: 1px solid rgba(29,111,196,0.3); }
.stag-clay  { background: rgba(194,98,47,0.15);   color: #f97316; border: 1px solid rgba(194,98,47,0.3); }
.stag-grass { background: rgba(45,106,79,0.15);   color: #4ade80; border: 1px solid rgba(45,106,79,0.3); }

.slam-profile-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.slam-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.slam-emblem { font-size: 2.5rem; }

.slam-profile-content > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.slam-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--bg3);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.slam-fact { text-align: center; }

.slam-fact-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.slam-fact-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}

.slam-champions h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.champions-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.champion-item {
  background: var(--bg3);
  border-radius: 8px;
  padding: 0.75rem;
}

.champion-item span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.champion-item strong {
  font-size: 0.85rem;
  color: var(--white);
}

/* ===== NEWS PAGE ===== */
.news-filter-bar {
  display: flex;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
  background: var(--bg3);
  color: var(--text);
}

.filter-btn.active {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}

.news-full-section { max-width: 1200px; }

.news-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.article-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
}

.article-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.article-featured {
  grid-column: span 3;
}

.article-surface {
  height: 4px;
}

.article-body { padding: 1.5rem; }

.article-featured .article-body { padding: 2rem; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.article-cat {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cat-slam { background: rgba(245,197,24,0.15); color: var(--yellow); }
.cat-atp  { background: rgba(29,111,196,0.15); color: #60a5fa; }
.cat-wta  { background: rgba(168,85,247,0.15); color: #c084fc; }

.article-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.article-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.article-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  padding: 0.2rem 0.6rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hidden-card { display: none; }

/* ===== CHAMPIONS MODAL ===== */
.champions-btn {
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

.champ-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.champ-modal-overlay.active {
  display: flex;
}

.champ-modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: lightbox-in 0.3s ease;
  overflow: hidden;
}

.champ-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.champ-modal-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--yellow);
}

.champ-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.champ-modal-close:hover { color: var(--white); }

.champ-modal-body {
  overflow-y: auto;
  padding: 0;
}

.champ-table {
  width: 100%;
  border-collapse: collapse;
}

.champ-table thead th {
  position: sticky;
  top: 0;
  background: var(--bg3);
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.champ-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.champ-table tbody tr:hover { background: var(--bg3); }

.champ-table tbody td {
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
}

.champ-table tbody td:first-child {
  font-weight: 700;
  color: var(--yellow);
  width: 70px;
}

/* ===== FLAG IMAGES ===== */
.flag-img {
  width: 24px;
  height: 16px;
  max-width: 24px;
  object-fit: cover;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 0.35rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  display: inline-block;
  flex-shrink: 0;
}

/* ===== DARK / LIGHT MODE ===== */
body.light {
  --bg:         #f4f6f9;
  --bg2:        #ffffff;
  --bg3:        #e8ecf1;
  --border:     rgba(0,0,0,0.1);
  --text:       #1a1f2e;
  --text-muted: #5a6270;
  --white:      #1a1f2e;
}

body.light .navbar {
  background: rgba(244,246,249,0.95);
  border-bottom-color: rgba(0,0,0,0.1);
}

body.light .nav-links a { color: #5a6270; }
body.light .nav-links a:hover,
body.light .nav-links a.active { background: #e8ecf1; color: #1a1f2e; }
body.light .nav-links a.active { color: var(--yellow); }

/* ===== NAVBAR ACTIONS ===== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 1rem;
}

.search-btn, .theme-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.search-btn:hover, .theme-toggle:hover {
  background: var(--bg3);
  color: var(--text);
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,0.8);
  align-items: flex-start;
  justify-content: center;
  padding-top: 8rem;
}

.search-overlay.active { display: flex; }

.search-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  padding: 1.25rem;
  position: relative;
  animation: lightbox-in 0.25s ease;
}

.search-box input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 3rem 0.85rem 1rem;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  font-family: inherit;
}

.search-box input:focus { border-color: var(--yellow); }

.search-close {
  position: absolute;
  top: 1.35rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.search-results { margin-top: 0.75rem; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--text);
}

.search-result-item:hover { background: var(--bg3); }

.search-result-type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--bg3);
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-no-results {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== SOCIAL SHARE BUTTONS ===== */
.share-btns {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  font-family: inherit;
}

.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.share-x   { background: #000; color: #fff; }
.share-wa  { background: #25d366; color: #fff; }
.share-fb  { background: #1877f2; color: #fff; }

/* ===== GOAT SECTION ===== */
.goat-section { background: var(--bg2); padding: 6rem 2rem; }
.goat-section .section-header { max-width: 1200px; margin: 0 auto 3rem; }

.goat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.goat-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.goat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.goat-card-center {
  border-color: var(--yellow);
  background: linear-gradient(135deg, rgba(245,197,24,0.05), var(--bg3));
}

.goat-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid var(--yellow);
  margin-bottom: 1rem;
}

.goat-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.25rem; }
.goat-country { font-size: 0.85rem; color: var(--text-muted); display: block; margin-bottom: 1.25rem; }

.goat-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.goat-stat {
  background: var(--bg2);
  border-radius: 10px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.goat-stat span { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.goat-stat strong { font-size: 1rem; font-weight: 800; color: var(--yellow); }

.goat-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ===== H2H SECTION ===== */
.h2h-section { padding: 6rem 2rem; }
.h2h-section .section-header { max-width: 1200px; margin: 0 auto 3rem; }

.h2h-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.h2h-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.2s;
}

.h2h-card:hover { transform: translateY(-4px); }

.h2h-players {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.h2h-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.h2h-player img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--border);
}

.h2h-player span { font-size: 0.8rem; font-weight: 600; }

.h2h-score {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.h2h-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--yellow);
}

.h2h-vs {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.h2h-note { font-size: 0.83rem; color: var(--text-muted); text-align: center; }

/* ===== QUIZ ===== */
.quiz-section { padding: 5rem 2rem; }

.quiz-container {
  max-width: 700px;
  margin: 0 auto;
}

.quiz-start {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}

.quiz-start-icon { font-size: 4rem; margin-bottom: 1rem; }
.quiz-start h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; }
.quiz-start p { color: var(--text-muted); margin-bottom: 1.5rem; }

.quiz-difficulty {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.quiz-diff-badge {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quiz-progress-bar {
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.quiz-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.quiz-question {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.quiz-option {
  background: var(--bg3);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.quiz-option:hover:not(:disabled) { border-color: var(--yellow); background: var(--bg2); }
.quiz-option.correct { border-color: var(--green-light); background: rgba(82,183,136,0.1); color: var(--green-light); }
.quiz-option.wrong   { border-color: #ef4444; background: rgba(239,68,68,0.1); color: #ef4444; }
.quiz-option:disabled { cursor: default; }

.quiz-feedback {
  font-size: 0.9rem;
  min-height: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Result Screen */
.quiz-result {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}

.result-emoji { font-size: 4rem; margin-bottom: 1rem; }
.quiz-result h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.5rem; }
.quiz-result p { color: var(--text-muted); margin-bottom: 1.5rem; }

.result-score-circle {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  background: var(--bg3);
  border: 3px solid var(--yellow);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.result-score-circle span { font-size: 2.5rem; font-weight: 900; color: var(--yellow); }
.result-score-circle small { font-size: 1rem; color: var(--text-muted); }

.result-breakdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.result-breakdown div {
  background: var(--bg3);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
}

.result-breakdown strong { color: var(--yellow); display: block; font-size: 1.2rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-grid .news-card:first-child { grid-column: span 2; }
  .legends-grid { grid-template-columns: 1fr; }
  .slam-facts { grid-template-columns: repeat(2, 1fr); }
  .champions-row { grid-template-columns: repeat(2, 1fr); }
  .news-full-grid { grid-template-columns: repeat(2, 1fr); }
  .article-featured { grid-column: span 2; }
  .surfaces-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .goat-grid { grid-template-columns: 1fr; }
  .h2h-grid  { grid-template-columns: 1fr; }
  .nav-actions { margin-left: 0.25rem; }
  .navbar { padding: 0 1rem; }

  .hamburger { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
  }

  .nav-links.open { display: flex; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }

  .featured-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-grid .news-card:first-child { grid-column: span 1; }

  .news-full-grid { grid-template-columns: 1fr; }
  .article-featured { grid-column: span 1; }

  .legends-grid { grid-template-columns: 1fr; }
  .legend-card { flex-direction: column; text-align: center; }
  .legend-slams { justify-content: center; }
  .legend-stat-row { justify-content: center; }

  .slam-header-row { flex-direction: column; gap: 0.5rem; }
  .slam-facts { grid-template-columns: repeat(2, 1fr); }
  .champions-row { grid-template-columns: repeat(2, 1fr); }

  .calendar-item { flex-wrap: wrap; }

  .hero-content h1 { letter-spacing: -1px; }
}

@media (max-width: 480px) {
  .featured-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .slam-facts { grid-template-columns: 1fr 1fr; }
  .champions-row { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
  .news-filter-bar { flex-wrap: wrap; }
}


/* ── JUMP NAV ── */
.jump-nav {
  position: sticky;
  top: 64px;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
  background: var(--bg, #111);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.7rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  box-sizing: border-box;
}

.jump-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #666);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: all 0.2s;
}

.jump-nav a:hover,
.jump-nav a.active {
  color: #2ecc71;
  border-color: #2ecc71;
  background: rgba(46,204,113,0.08);
}

/* ── LIVE CALENDAR ── */
.live-calendar-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  margin-top: 2rem;
}

/* ── MATCH SCHEDULE ── */
.schedule-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.sched-btn {
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--text-muted, #aaa);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.sched-btn:hover, .sched-btn.active {
  background: #2ecc71;
  border-color: #2ecc71;
  color: #000;
}
.match-schedule-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.match-loading, .match-empty {
  text-align: center;
  color: var(--text-muted, #aaa);
  padding: 3rem;
  font-size: 1rem;
}
.ms-group {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
}
.ms-tournament-name {
  background: rgba(46,204,113,0.12);
  color: #2ecc71;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ms-match {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ms-match:last-child { border-bottom: none; }
.ms-time {
  font-size: 0.8rem;
  color: var(--text-muted, #aaa);
  min-width: 50px;
}
.ms-players {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.ms-player {
  font-weight: 600;
  font-size: 0.95rem;
}
.ms-vs {
  color: var(--text-muted, #aaa);
  font-size: 0.8rem;
}
.ms-score {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  min-width: 60px;
  text-align: center;
}
.ms-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ms-round {
  font-size: 0.75rem;
  color: var(--text-muted, #aaa);
  background: rgba(255,255,255,0.07);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.ms-live {
  font-size: 0.75rem;
  font-weight: 700;
  color: #e74c3c;
  background: rgba(231,76,60,0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  animation: pulse 1.5s infinite;
}
.ms-done {
  font-size: 0.75rem;
  color: #aaa;
  background: rgba(255,255,255,0.07);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.ms-upcoming {
  font-size: 0.75rem;
  color: #2ecc71;
  background: rgba(46,204,113,0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.ms-sub-group {
  margin: 0.5rem 0.75rem 0.75rem;
  border-radius: 8px;
  overflow: hidden;
}
.ms-sub-main {
  border: 2px solid rgba(46,204,113,0.5);
}
.ms-sub-qual {
  border: 2px solid rgba(241,196,15,0.5);
}
.ms-section-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ms-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  opacity: 0.3;
}
.ms-label-main {
  background: rgba(46,204,113,0.12);
  color: #2ecc71;
}
.ms-label-main::after { background: #2ecc71; }
.ms-label-qual {
  background: rgba(241,196,15,0.12);
  color: #f1c40f;
}
.ms-label-qual::after { background: #f1c40f; }
.ms-score-val {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  min-width: 50px;
  text-align: center;
}

/* ── MATCH TABLES ── */
.ms-table-wrap {
  margin: 0.75rem;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
}
.ms-table-main { border-color: rgba(46,204,113,0.4); }
.ms-table-qual { border-color: rgba(241,196,15,0.4); }

.ms-table-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.55rem 1rem;
}
.ms-table-main .ms-table-title { background: rgba(46,204,113,0.15); color: #2ecc71; }
.ms-table-qual .ms-table-title { background: rgba(241,196,15,0.15); color: #f1c40f; }

.ms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.ms-table thead tr {
  background: rgba(255,255,255,0.04);
}
.ms-table th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #aaa);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ms-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}
.ms-table tbody tr:last-child { border-bottom: none; }
.ms-table tbody tr:hover { background: rgba(255,255,255,0.04); }
.ms-table td { padding: 0.6rem 0.75rem; }
.td-time { color: var(--text-muted, #aaa); font-size: 0.8rem; white-space: nowrap; }
.td-player { font-weight: 600; }
.td-p1 { text-align: right; }
.td-p2 { text-align: left; }
.td-score { text-align: center; font-weight: 700; color: #fff; white-space: nowrap; padding: 0 1rem; }
.td-round { color: var(--text-muted, #aaa); font-size: 0.8rem; }
.td-status { white-space: nowrap; }

.ms-table-doubles { border-color: rgba(52,152,219,0.4); }
.ms-table-doubles .ms-table-title { background: rgba(52,152,219,0.15); color: #3498db; }

/* ── PLAYER MODAL ── */
.player-link {
  cursor: pointer;
  color: inherit;
  transition: color 0.2s;
}
.player-link:hover { color: #2ecc71; text-decoration: underline; }

.player-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.player-modal-overlay.active { display: flex; }

.player-modal {
  background: #1a1f2e;
  border-radius: 14px;
  width: 100%;
  max-width: 860px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.player-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.player-modal-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2ecc71;
}
.player-modal-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.player-modal-close:hover { color: #fff; }
.player-modal-body {
  overflow-y: auto;
  padding: 1rem;
}

/* ── LIVE NEWS ── */
.news-topic-bar {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 64px;
  z-index: 100;
  background: var(--bg, #0d1117);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.news-topic {
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: transparent;
  color: var(--text-muted, #aaa);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.news-topic:hover, .news-topic.active {
  background: #2ecc71;
  border-color: #2ecc71;
  color: #000;
}
.news-live-section { padding-top: 2rem; }
.news-live-loading {
  text-align: center;
  color: var(--text-muted, #aaa);
  padding: 4rem;
  font-size: 1rem;
}
.news-live-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Featured card */
.news-featured-card {
  display: block;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
}
.news-featured-img {
  position: relative;
  height: 420px;
  background-size: cover;
  background-position: center;
  background-color: rgba(46,204,113,0.1);
}
.news-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}
.news-featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
}
.news-featured-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0.5rem 0;
  line-height: 1.3;
}
.news-featured-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.5rem;
}
.news-tag {
  display: inline-block;
  background: #2ecc71;
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Cards grid */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.news-card-live {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.2s, border-color 0.2s;
}
.news-card-live:hover {
  transform: translateY(-4px);
  border-color: rgba(46,204,113,0.3);
}
.news-card-img {
  height: 160px;
  background-size: cover;
  background-position: center;
}
.news-card-img-placeholder {
  background: rgba(46,204,113,0.07);
}
.news-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.news-card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}
.news-card-body p {
  font-size: 0.82rem;
  color: var(--text-muted, #aaa);
  flex: 1;
}
.news-tag-sm {
  font-size: 0.68rem;
  font-weight: 700;
  color: #2ecc71;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.news-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted, #aaa);
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .news-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .news-featured-img { height: 300px; }
  .news-featured-content h2 { font-size: 1.2rem; }
}
@media (max-width: 600px) {
  .news-cards-grid { grid-template-columns: 1fr; }
}
