/* ============================================================
   WHATCHAN RUGBY - Design System
   Dark theme with deep rugby green accent + gold
   Covers both Rugby Union and Rugby League
   ============================================================ */

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

:root {
  --bg-darkest: #08080d;
  --bg-dark: #0f0f18;
  --bg-mid: #161625;
  --bg-raised: #1c1c30;
  --bg-surface: #22223a;
  --bg-hover: #2a2a48;

  /* Primary Accent - Deep Rugby Green */
  --red: #1e6b3a;
  --red-hover: #28a745;
  --red-muted: rgba(30, 107, 58, 0.15);
  --red-glow: rgba(30, 107, 58, 0.15);

  /* Secondary Accent - Whatchan Gold */
  --gold: #ffd166;
  --gold-hover: #ffe08a;
  --gold-dim: rgba(255, 209, 102, 0.15);
  --gold-glow: rgba(255, 209, 102, 0.2);

  /* Tertiary - Teal */
  --teal: #2a9d8f;
  --teal-hover: #3dbdad;
  --teal-dim: #0d3a34;

  /* Semantic */
  --win: #3ddc84;
  --loss: #ff5c5c;
  --draw: #ffd166;
  --info: #5ba3e8;

  /* Text */
  --text-primary: #e8e8f0;
  --text-secondary: #9898b0;
  --text-muted: #7a7a96;
  --text-white: #ffffff;

  /* Borders */
  --border: #2a2a42;
  --border-hover: #3a3a58;
  --border-accent: var(--red);

  /* Typography */
  --font-heading: 'Inter', 'DM Sans', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Spacing */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --transition-fast: 0.15s ease;
  --transition-med: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-red: 0 4px 20px rgba(30, 107, 58, 0.2);
  --shadow-gold: 0 4px 20px rgba(255, 209, 102, 0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-darkest);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(30, 107, 58, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(255, 209, 102, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(30, 107, 58, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
a { color: var(--gold); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--gold-hover); }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.text-teal { color: var(--teal); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mono { font-family: var(--font-mono); }

/* --- Top Bar --- */
.top-bar {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar__links a { color: var(--text-muted); margin-left: 16px; font-size: 0.78rem; }
.top-bar__links a:hover { color: var(--text-primary); }

/* --- Header --- */
.site-header {
  background: rgba(15, 15, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.logo__icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #1e6b3a 0%, #28a745 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.logo__text { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; color: var(--text-white); letter-spacing: -0.5px; }
.logo__text span { color: var(--gold); }

/* --- Navigation --- */
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav__item { position: relative; }
.main-nav__link {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.main-nav__link:hover, .main-nav__link--active { color: var(--text-white); background: var(--bg-raised); }
.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
}
.main-nav__item:nth-last-child(-n+2) .nav-dropdown__menu { left: auto; right: 0; }
.main-nav__item:hover .nav-dropdown__menu { display: block; }
.nav-dropdown__link {
  display: block;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.nav-dropdown__link:hover { background: var(--bg-hover); color: var(--text-white); }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; padding: 8px; }

/* --- Hero --- */
.hero { padding: 48px 0 36px; position: relative; z-index: 1; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero__headline { font-size: 2.4rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; line-height: 1.15; }
.hero__headline em { font-style: italic; color: var(--red); }
.hero__sub { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }
.hero__badges { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 100px; font-size: 0.82rem; color: var(--text-secondary); }
.quick-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quick-stat {
  background: rgba(22, 22, 37, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: all var(--transition-med);
}
.quick-stat:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quick-stat__value { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; color: var(--text-white); }
.quick-stat__value--red { color: var(--red); }
.quick-stat__value--gold { color: var(--gold); }
.quick-stat__value--teal { color: var(--teal); }
.quick-stat__label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* --- Section --- */
.section { padding: 40px 0; position: relative; z-index: 1; }
.section--bordered { border-top: 1px solid var(--border); }
.section__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.section__title {
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}
.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #1e6b3a, #ffd166);
  border-radius: 2px;
}
.section__link { font-size: 0.85rem; color: var(--gold); font-weight: 500; }

/* --- Cards --- */
.card {
  background: rgba(22, 22, 37, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-med);
}
.card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card--red-accent { border-left: 3px solid var(--red); }
.card--gold-accent { border-left: 3px solid var(--gold); }
.card--teal-accent { border-left: 3px solid var(--teal); }

/* --- Player Cards --- */
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.player-card {
  position: relative;
  background: rgba(22, 22, 37, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-med);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.player-card:hover { border-color: var(--red); box-shadow: var(--shadow-red); transform: translateY(-3px); color: inherit; }
.player-card__header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.player-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  overflow: hidden;
}
.player-card__name { font-size: 1.1rem; font-weight: 700; color: var(--text-white); }
.player-card__nickname { font-size: 0.8rem; color: var(--gold); font-style: italic; }
.player-card__country { font-size: 0.78rem; color: var(--text-muted); }
.player-card__stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.player-card__stat { text-align: center; padding: 8px 4px; background: var(--bg-dark); border-radius: var(--radius-sm); }
.player-card__stat-value { font-family: var(--font-mono); font-size: 1rem; font-weight: 600; color: var(--text-white); }
.player-card__stat-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.player-card__rank {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}
.player-card__link { display: inline-block; margin-top: 12px; font-size: 0.82rem; color: var(--gold); font-weight: 500; }

/* --- Code Badge (Union / League) --- */
.code-badge { display: inline-block; padding: 2px 10px; border-radius: 100px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.code-badge--union { background: rgba(30, 107, 58, 0.2); color: #28a745; }
.code-badge--league { background: rgba(255, 165, 0, 0.15); color: #ffa500; }

/* --- Tournament Cards --- */
.tournament-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.tournament-card {
  background: rgba(22, 22, 37, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-med);
  padding: 24px;
}
.tournament-card:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); transform: translateY(-2px); }
.tournament-card__header { padding: 20px 24px 16px; border-bottom: 1px solid var(--border); }
.tournament-card__tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.tournament-card__tag--ranking { background: var(--red-muted); color: var(--red); }
.tournament-card__tag--invitation { background: var(--gold-dim); color: var(--gold); }
.tournament-card__tag--union { background: rgba(30, 107, 58, 0.2); color: #28a745; }
.tournament-card__tag--league { background: rgba(255, 165, 0, 0.15); color: #ffa500; }
.tournament-card__tag--completed { background: var(--bg-hover); color: var(--text-muted); }
.tournament-card__tag--upcoming { background: var(--red-muted); color: var(--red); }
.tournament-card__tag--live { background: rgba(255,59,59,0.15); color: #ff3b3b; }
.tournament-card__name, .tournament-card__title { font-size: 1.15rem; font-weight: 700; color: var(--text-white); }
.tournament-card__venue { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.tournament-card__dates { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }
.tournament-card__prize { font-size: 0.82rem; color: var(--gold); margin-top: 4px; }
.tournament-card__broadcaster { margin-top: 8px; }
.tournament-card__body { padding: 16px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tournament-card__detail { font-size: 0.82rem; }
.tournament-card__detail-label { color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; }
.tournament-card__detail-value { color: var(--text-primary); font-weight: 500; }
.tournament-card__footer { padding: 12px 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }

/* --- Rankings Table --- */
.rankings-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rankings-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.rankings-table th { text-align: left; padding: 12px 16px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); border-bottom: 2px solid var(--border); white-space: nowrap; }
.rankings-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.rankings-table tr:hover td { background: var(--bg-raised); }
.rankings-table .rank-num { font-family: var(--font-mono); font-weight: 700; color: var(--text-muted); width: 40px; }
.rankings-table .rank-1 .rank-num { color: var(--gold); }
.rankings-table .rank-2 .rank-num { color: #c0c0c0; }
.rankings-table .rank-3 .rank-num { color: #cd7f32; }
.rankings-table .player-name-cell { display: flex; align-items: center; gap: 12px; }
.rankings-table .mini-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-hover); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }
.rankings-table .player-link { color: var(--text-white); font-weight: 600; }
.rankings-table .player-link:hover { color: var(--red); }
.rankings-table .money { font-family: var(--font-mono); color: var(--gold); }
.rankings-table .stat-cell { font-family: var(--font-mono); }
.rankings-table .points { font-family: var(--font-mono); color: var(--gold); }
.move-up { color: var(--win); font-size: 0.85rem; }
.move-down { color: var(--loss); font-size: 0.85rem; }
.move-same { color: var(--text-muted); font-size: 0.85rem; }

/* --- Stat Bars --- */
.stat-bar { margin-bottom: 12px; }
.stat-bar__header { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 0.82rem; }
.stat-bar__label { color: var(--text-secondary); }
.stat-bar__value { font-family: var(--font-mono); font-weight: 600; color: var(--text-white); }
.stat-bar__track { height: 6px; background: var(--bg-dark); border-radius: 3px; overflow: hidden; }
.stat-bar__fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.stat-bar__fill--red { background: linear-gradient(90deg, var(--red), var(--red-hover)); }
.stat-bar__fill--gold { background: linear-gradient(90deg, var(--gold), var(--gold-hover)); }
.stat-bar__fill--teal { background: linear-gradient(90deg, var(--teal), var(--teal-hover)); }

/* --- Forms & Inputs --- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; background: var(--bg-dark); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-primary); font-family: var(--font-body); font-size: 0.9rem; transition: border-color var(--transition-fast); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 2px var(--red-glow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-med);
}
.btn--red { background: linear-gradient(135deg, var(--red) 0%, #144d2a 100%); color: var(--text-white); }
.btn--red:hover { background: linear-gradient(135deg, var(--red-hover) 0%, var(--red) 100%); box-shadow: var(--shadow-red); color: var(--text-white); }
.btn--gold { background: var(--gold); color: #0f0f18; font-weight: 700; }
.btn--gold:hover { background: var(--gold-hover); box-shadow: var(--shadow-gold); color: #0f0f18; }
.btn--primary, .btn-primary { background: linear-gradient(135deg, var(--red) 0%, #144d2a 100%); color: var(--text-white); }
.btn--primary:hover, .btn-primary:hover { background: linear-gradient(135deg, var(--red-hover) 0%, var(--red) 100%); box-shadow: var(--shadow-red); color: var(--text-white); }
.btn--secondary, .btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn--secondary:hover, .btn-secondary:hover { border-color: var(--text-secondary); color: var(--text-white); }
.btn--outline { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn--outline:hover { border-color: var(--text-secondary); color: var(--text-white); }

/* --- Guide Cards --- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.guide-card {
  background: rgba(22, 22, 37, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-med);
  display: block;
  color: inherit;
  text-decoration: none;
}
.guide-card:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); transform: translateY(-2px); color: inherit; }
.guide-card__tag { display: inline-block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 8px; }
.guide-card__title { font-size: 1.1rem; font-weight: 700; color: var(--text-white); margin-bottom: 8px; }
.guide-card__excerpt { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.guide-card__link { display: inline-block; margin-top: 12px; font-size: 0.82rem; color: var(--gold); font-weight: 500; }

/* --- Breadcrumb --- */
.breadcrumb { display: flex; align-items: center; gap: 4px; font-size: 0.82rem; color: var(--text-muted); padding: 16px 0 8px; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--text-white); }
.breadcrumb__sep { margin: 0 2px; }

/* --- Page Hero --- */
.page-hero { padding: 40px 0 32px; position: relative; z-index: 1; }
.page-hero__title { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.page-hero__sub { font-size: 1rem; color: var(--text-secondary); }

/* --- Content Pages --- */
.content { max-width: 860px; position: relative; z-index: 1; }
.content h2 { font-size: 1.4rem; margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.content h3 { font-size: 1.15rem; margin: 28px 0 12px; color: var(--gold); }
.content p { margin-bottom: 16px; color: var(--text-secondary); line-height: 1.7; }
.content ul, .content ol { margin-bottom: 16px; padding-left: 24px; }
.content li { margin-bottom: 6px; color: var(--text-secondary); line-height: 1.6; list-style: disc; }
.content ol li { list-style: decimal; }
.content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.88rem; }
.content table th { text-align: left; padding: 10px 14px; background: var(--bg-raised); border-bottom: 2px solid var(--border); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
.content table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.content blockquote { border-left: 3px solid var(--red); padding: 16px 20px; margin: 20px 0; background: var(--bg-raised); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-style: italic; color: var(--text-secondary); }

/* --- FAQ (details/summary) --- */
.faq-list { max-width: 860px; }
.faq-list details { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 10px; background: var(--bg-raised); overflow: hidden; transition: border-color var(--transition-fast); }
.faq-list details[open] { border-color: var(--red); }
.faq-list summary { padding: 16px 20px; font-weight: 600; font-size: 0.95rem; color: var(--text-white); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 1.2rem; color: var(--gold); font-weight: 700; transition: transform var(--transition-fast); }
.faq-list details[open] summary::after { content: '\2212'; }
.faq-list .faq-answer { padding: 0 20px 16px; color: var(--text-secondary); line-height: 1.7; font-size: 0.9rem; }

/* --- TV Schedule Table --- */
.tv-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 24px; }
.tv-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tv-table th { text-align: left; padding: 12px 16px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); border-bottom: 2px solid var(--border); background: var(--bg-raised); white-space: nowrap; }
.tv-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tv-table tr:hover td { background: var(--bg-raised); }
.broadcaster-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.broadcaster-badge--bbc { background: rgba(0,95,169,0.2); color: #4da3f5; }
.broadcaster-badge--itv { background: rgba(0,130,180,0.15); color: #55bbdd; }
.broadcaster-badge--tnt { background: rgba(255,60,0,0.15); color: #ff8c69; }
.broadcaster-badge--sky { background: rgba(0,100,200,0.15); color: #4d9cf5; }
.broadcaster-badge--ch4 { background: rgba(120,80,200,0.15); color: #b09fdd; }
.broadcaster-badge--s4c { background: rgba(200,50,50,0.15); color: #e07070; }
.broadcaster-badge--premier { background: rgba(0,150,100,0.15); color: #40c090; }
.broadcaster-badge--stan { background: rgba(100,60,180,0.15); color: #a080dd; }
.broadcaster-badge--discovery { background: rgba(0,170,255,0.15); color: #55ccff; }

/* --- Tabs --- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab { padding: 10px 20px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: all var(--transition-fast); background: none; border-top: none; border-left: none; border-right: none; font-family: var(--font-heading); }
.tab:hover { color: var(--text-secondary); }
.tab.active { color: var(--red); border-bottom-color: var(--red); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- Search/Filter --- */
.search-bar { display: flex; gap: 12px; margin-bottom: 24px; }
.search-bar input { flex: 1; padding: 12px 16px; background: var(--bg-dark); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-primary); font-family: var(--font-body); font-size: 0.9rem; }
.search-bar input:focus { outline: none; border-color: var(--red); }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-chip { padding: 6px 14px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 100px; font-size: 0.8rem; color: var(--text-secondary); cursor: pointer; transition: all var(--transition-fast); font-family: var(--font-body); }
.filter-chip:hover, .filter-chip.active { border-color: var(--red); color: var(--red); background: var(--red-muted); }

/* --- Whatchan Promo --- */
.whatchan-promo { padding: 40px 0; }
.whatchan-promo__banner {
  position: relative;
  background: linear-gradient(135deg, rgba(30,107,58,0.08) 0%, rgba(255,209,102,0.06) 100%);
  border: 1px solid rgba(30,107,58,0.3);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  overflow: hidden;
}
.whatchan-promo__glow {
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(30,107,58,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.whatchan-promo__icon { font-size: 2.5rem; flex-shrink: 0; }
.whatchan-promo__content { flex: 1; min-width: 200px; }
.whatchan-promo__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--red); font-weight: 600; display: block; margin-bottom: 6px; }
.whatchan-promo__heading { font-size: 1.25rem; font-weight: 700; color: var(--text-white); margin-bottom: 8px; }
.whatchan-promo__sub { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }
.whatchan-promo__btn { display: inline-flex; align-items: center; padding: 12px 24px; background: linear-gradient(135deg, var(--red), #144d2a); color: #fff; font-weight: 700; font-size: 0.9rem; border-radius: var(--radius-md); flex-shrink: 0; transition: all var(--transition-med); }
.whatchan-promo__btn:hover { background: linear-gradient(135deg, var(--red-hover), var(--red)); box-shadow: var(--shadow-red); color: #fff; transform: translateY(-1px); }

/* --- Footer --- */
.site-footer { background: var(--bg-dark); border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 60px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-about p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-top: 12px; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.85rem; color: var(--text-secondary); padding: 4px 0; transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--text-white); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--text-muted); }

/* --- Loading --- */
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--red); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- HP Specific --- */
.hp-hero { padding: 56px 0 48px; text-align: center; position: relative; z-index: 1; }
.hp-hero__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -1.5px; line-height: 1.08; margin-bottom: 16px; }
.hp-hero__title em { font-style: normal; background: linear-gradient(135deg, #1e6b3a 0%, #ffd166 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hp-hero__sub { font-size: 1.05rem; color: var(--text-secondary); max-width: 580px; margin: 0 auto 28px; line-height: 1.6; }
.hp-hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hp-hero__actions .btn { padding: 12px 28px; font-size: 0.92rem; border-radius: 100px; }
.hp-stats { display: flex; justify-content: center; gap: 0; max-width: 600px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: rgba(22, 22, 37, 0.6); backdrop-filter: blur(8px); }
.hp-stats__item { flex: 1; text-align: center; padding: 18px 12px; border-right: 1px solid var(--border); }
.hp-stats__item:last-child { border-right: none; }
.hp-stats__number, .hp-stats__val { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--text-white); display: block; }
.hp-stats__label, .hp-stats__lbl { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; display: block; }
.hp-sh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.hp-sh__title { font-size: 1.35rem; font-weight: 700; }
.hp-sh__link { font-size: 0.82rem; color: var(--gold); font-weight: 500; }
.hp-cta { background: linear-gradient(135deg, rgba(30,107,58,0.08) 0%, rgba(255,209,102,0.06) 100%); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; text-align: center; }
.hp-cta__title { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.hp-cta__sub { color: var(--text-secondary); max-width: 480px; margin: 0 auto 20px; font-size: 0.95rem; }

/* --- Status Badges --- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.badge--upcoming { background: var(--red-muted); color: var(--red); }
.badge--completed { background: var(--bg-hover); color: var(--text-muted); }
.badge--live { background: rgba(255,59,59,0.15); color: #ff3b3b; }

/* --- Profile Header --- */
.profile-header { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 32px; background: rgba(22,22,37,0.85); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: var(--radius-xl); margin-bottom: 32px; }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, var(--bg-surface), var(--bg-hover)); display: flex; align-items: center; justify-content: center; font-size: 3rem; border: 3px solid var(--border); }
.profile-info h1 { font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.profile-info .nickname { font-size: 1.1rem; color: var(--gold); font-style: italic; margin-bottom: 8px; }
.profile-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-secondary); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .profile-header { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .profile-meta { justify-content: center; }
}
@media (max-width: 960px) {
  .site-header .container { height: 56px; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    z-index: 199;
    max-height: 80vh;
    overflow-y: auto;
  }
  .main-nav.open .main-nav__item { width: 100%; }
  .main-nav.open .main-nav__link { padding: 10px 14px; font-size: 0.9rem; }
  .main-nav.open .nav-dropdown__menu { position: static; display: block; box-shadow: none; border: none; padding-left: 16px; min-width: auto; }
  .nav-toggle { display: block; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero__headline { font-size: 1.6rem; }
  .quick-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .player-grid { grid-template-columns: 1fr; }
  .tournament-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .rankings-table { font-size: 0.8rem; }
  .rankings-table th, .rankings-table td { padding: 8px 10px; }
  .page-hero__title { font-size: 1.5rem; }
  .section__title { font-size: 1.2rem; }
  .tabs { gap: 0; }
  .tab { padding: 8px 12px; font-size: 0.78rem; }
  .hp-hero { padding: 36px 0 28px; }
  .hp-stats { flex-wrap: wrap; }
  .hp-stats__item { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
  .whatchan-promo__banner { flex-direction: column; text-align: center; padding: 28px 24px; }
}

/* ============================================================
   PLAYER PROFILE REDESIGN
   Visual layout with hero, pull quotes, fact cards, sidebar
   ============================================================ */

/* --- Profile Hero --- */
.profile-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(30,107,58,0.12) 0%, rgba(30,107,58,0.18) 40%, rgba(255,209,102,0.06) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 40px 40px 40px;
  margin-top: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  min-height: 280px;
}
.profile-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(30,107,58,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.profile-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
  opacity: 0.6;
}
.profile-hero__info {
  position: relative;
  z-index: 2;
}
.profile-hero__name {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 4px;
  line-height: 1.1;
}
.profile-hero__nickname {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 12px;
}
.profile-hero__country {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.profile-hero__rank {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
.profile-hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 16px;
  font-size: 0.88rem;
}
.profile-hero__meta-item {
  color: var(--text-secondary);
}
.profile-hero__meta-item strong {
  color: var(--text-primary);
}

/* Player cutout image */
.profile-hero__image-wrap {
  position: relative;
  z-index: 2;
  width: 240px;
  height: 280px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.profile-hero__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}
.profile-hero__image.loaded {
  opacity: 1;
}
.profile-hero__image:hover {
  transform: scale(1.03);
}
.profile-hero__image-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border: 3px solid var(--border);
  margin-bottom: 40px;
}

/* --- Stats Grid (enhanced) --- */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.profile-stat-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}
.profile-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  opacity: 0;
  transition: opacity var(--transition-med);
}
.profile-stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.profile-stat-card:hover::before {
  opacity: 1;
}
.profile-stat-card__value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
}
.profile-stat-card__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

/* --- Profile Content Grid (2 columns with sidebar) --- */
.profile-content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.profile-content-main {
  min-width: 0;
}

/* --- Profile Sidebar --- */
.profile-sidebar {
  position: sticky;
  top: 80px;
}
.profile-sidebar__card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.profile-sidebar__title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.profile-sidebar__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(42,42,66,0.5);
  font-size: 0.88rem;
}
.profile-sidebar__item:last-child {
  border-bottom: none;
}
.profile-sidebar__item-label {
  color: var(--text-muted);
}
.profile-sidebar__item-value {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Pull Quote --- */
.profile-pullquote {
  border-left: 4px solid var(--red);
  padding: 20px 24px;
  margin: 32px 0;
  background: linear-gradient(135deg, rgba(30,107,58,0.06) 0%, rgba(22,22,37,0.6) 100%);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
}
.profile-pullquote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 12px;
  font-size: 3.5rem;
  color: var(--red);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}
.profile-pullquote p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
}
.profile-pullquote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-style: normal;
  color: var(--text-muted);
}

/* --- Fact Card --- */
.profile-fact-card {
  background: linear-gradient(135deg, rgba(255,209,102,0.06) 0%, var(--bg-raised) 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 28px 0;
  transition: all var(--transition-med);
}
.profile-fact-card:hover {
  border-left-color: var(--red);
  box-shadow: var(--shadow-sm);
}
.profile-fact-card__icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.profile-fact-card__title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.profile-fact-card__text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* --- Section Divider --- */
.profile-section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--red), var(--border), transparent);
  margin: 40px 0;
}

/* --- Milestone timeline markers --- */
.profile-milestone {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-left: 2px solid var(--border);
  padding-left: 20px;
  position: relative;
  margin-left: 12px;
}
.profile-milestone::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--bg-darkest);
}
.profile-milestone__year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 50px;
  flex-shrink: 0;
}
.profile-milestone__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Enhanced Titles Table --- */
.profile-titles-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.profile-titles-table thead th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  background: var(--bg-dark);
}
.profile-titles-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
}
.profile-titles-table tbody tr:nth-child(even) {
  background: rgba(22,22,37,0.4);
}
.profile-titles-table tbody tr:hover {
  background: var(--bg-raised);
}
.profile-titles-table td {
  padding: 12px 14px;
  vertical-align: middle;
}
.profile-titles-table .title-year {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold);
}
.profile-titles-table .title-tournament {
  font-weight: 600;
  color: var(--text-primary);
}
.profile-titles-table .title-trophy {
  margin-right: 6px;
}

/* --- Profile Responsive --- */
@media (max-width: 1024px) {
  .profile-content-grid {
    grid-template-columns: 1fr;
  }
  .profile-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .profile-hero {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    min-height: auto;
    text-align: center;
  }
  .profile-hero__info {
    order: 2;
  }
  .profile-hero__image-wrap {
    order: 1;
    width: 180px;
    height: 210px;
    margin: 0 auto;
  }
  .profile-hero__name {
    font-size: 2rem;
  }
  .profile-hero__meta {
    justify-items: center;
  }
  .profile-hero__country {
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .profile-hero {
    padding: 20px 16px;
  }
  .profile-hero__name {
    font-size: 1.6rem;
  }
  .profile-hero__image-wrap {
    width: 140px;
    height: 170px;
  }
  .profile-sidebar {
    grid-template-columns: 1fr;
  }
  .profile-pullquote {
    padding: 16px 18px;
    margin: 24px 0;
  }
  .profile-pullquote p {
    font-size: 1rem;
  }
  .profile-fact-card {
    padding: 16px 18px;
    margin: 20px 0;
  }
  .profile-stat-card__value {
    font-size: 1.6rem;
  }
  .profile-stats-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }
}
