/* ============================================================
   TOP SCORERS PAGE CSS
============================================================ */

.page-shell{ max-width:1080px; margin:24px auto 40px; padding:0 14px; position: relative; z-index: 2; }

.glass-card{
  background:rgba(255,255,255,0.86);
  padding:22px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,0.7);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
  box-shadow:0 24px 60px rgba(15,23,42,0.18);
}

.page-intro h1{ margin:0 0 10px; font-size:28px; font-weight:800; letter-spacing: -0.3px; line-height: 1.2; color:#0f172a; }
.page-intro .last-updated{ display: inline-block; font-size: 12.5px; color: #666; background: rgba(0,0,0,0.04); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.page-intro p{ font-size:14.5px; margin:8px 0; color:#444; line-height: 1.6; }

.info-strip{ display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.info-chip{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(0,0,0,0.04);
  font-size: 12.5px; font-weight: 600; color: #333;
  border: 1px solid rgba(0,0,0,0.06);
}
.info-chip .dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}

/* ============================================================
   CONTROLS
============================================================ */
.ts-controls{
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ts-league-label{
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.ts-league-select{
  padding: 10px 38px 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  background: #fff;
  border: 1.5px solid rgba(15,23,42,0.12);
  border-radius: 12px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%2364748b' d='M4 6l4 4 4-4z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  transition: all .2s ease;
  min-width: 280px;
}
.ts-league-select:hover{
  border-color: #0f172a;
  box-shadow: 0 4px 12px rgba(15,23,42,0.08);
}
.ts-league-select:focus{
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

/* ============================================================
   BOARD
============================================================ */
.ts-board{
  margin-top: 18px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(249,250,255,0.75));
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 4px 12px rgba(15,23,42,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
}

.ts-loading{
  padding: 60px 20px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}
.ts-spinner{
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border: 3px solid rgba(15,23,42,0.08);
  border-top-color: #f59e0b;
  border-radius: 50%;
  animation: ts-spin 0.8s linear infinite;
}
@keyframes ts-spin{ to{ transform: rotate(360deg); } }

.ts-empty{
  padding: 60px 20px;
  text-align: center;
  color: #64748b;
}
.ts-empty-icon{ font-size: 42px; margin-bottom: 12px; opacity: .5; }
.ts-empty-title{ font-size: 17px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.ts-empty-text{ font-size: 13.5px; line-height: 1.5; max-width: 360px; margin: 0 auto; }

/* ============================================================
   HEADER (league + season)
============================================================ */
.ts-header{
  background: linear-gradient(90deg, #0f172a, #1e293b);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ts-header-info{
  flex: 1;
  min-width: 0;
}
.ts-header-league{
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.ts-header-season{
  font-size: 11.5px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}
.ts-header-count{
  font-size: 11.5px;
  font-weight: 700;
  color: #ffd700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(255,215,0,0.12);
  border-radius: 999px;
  flex-shrink: 0;
}

/* ============================================================
   LIST HEADER (column titles)
============================================================ */
.ts-list-header{
  display: grid;
  grid-template-columns: 50px 1fr 180px 60px 60px 60px 80px;
  align-items: center;
  padding: 10px 16px;
  background: rgba(15,23,42,0.04);
  border-bottom: 1px solid rgba(15,23,42,0.08);
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.ts-list-header .ts-col-stat{ text-align: center; }

/* ============================================================
   PLAYER ROWS
============================================================ */
.ts-list{
  display: flex;
  flex-direction: column;
}

.ts-row{
  display: grid;
  grid-template-columns: 50px 1fr 180px 60px 60px 60px 80px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15,23,42,0.05);
  transition: background .15s ease;
}
.ts-row:hover{
  background: linear-gradient(180deg, rgba(245,158,11,0.04), rgba(245,158,11,0.02));
}
.ts-row:last-child{ border-bottom: none; }

/* Top 3 highlight */
.ts-row:nth-child(1){ background: linear-gradient(90deg, rgba(255,215,0,0.08), transparent); }
.ts-row:nth-child(2){ background: linear-gradient(90deg, rgba(192,192,192,0.06), transparent); }
.ts-row:nth-child(3){ background: linear-gradient(90deg, rgba(205,127,50,0.06), transparent); }

/* Rank */
.ts-rank{
  display: flex;
  align-items: center;
  justify-content: center;
}
.ts-rank-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15,23,42,0.08);
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ts-rank-1{ background: linear-gradient(135deg, #ffd700, #f59e0b); color: #fff; font-size: 18px; box-shadow: 0 3px 10px rgba(245,158,11,0.3); }
.ts-rank-2{ background: linear-gradient(135deg, #d1d5db, #9ca3af); color: #fff; font-size: 18px; box-shadow: 0 3px 10px rgba(156,163,175,0.3); }
.ts-rank-3{ background: linear-gradient(135deg, #cd7f32, #92400e); color: #fff; font-size: 18px; box-shadow: 0 3px 10px rgba(146,64,14,0.3); }

/* Player */
.ts-player{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.ts-photo{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.ts-photo-placeholder{
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffd700;
  font-weight: 800;
  font-size: 18px;
}
.ts-player-info{
  min-width: 0;
}
.ts-player-name{
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ts-player-meta{
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.ts-player-meta .ts-dot{ color: #cbd5e1; }

.ts-pos-tag{
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.ts-pos-g{ background: rgba(245,158,11,0.15); color: #b45309; }
.ts-pos-d{ background: rgba(59,130,246,0.15); color: #1d4ed8; }
.ts-pos-m{ background: rgba(34,197,94,0.15); color: #15803d; }
.ts-pos-f{ background: rgba(239,68,68,0.15); color: #b91c1c; }

/* Team */
.ts-team{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ts-team-logo{
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}
.ts-team-name{
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Stats */
.ts-stat{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.ts-stat-value{
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.ts-stat-label{
  font-size: 9.5px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}
.ts-stat-goals .ts-stat-value{
  color: #b45309;
  font-size: 20px;
}
.ts-stat-assists .ts-stat-value{ color: #15803d; }

/* ============================================================
   MOBILE
============================================================ */
@media (max-width: 800px){
  .ts-list-header,
  .ts-row{
    grid-template-columns: 40px 1fr 100px 50px 50px;
  }
  .ts-list-header > div:nth-child(6),
  .ts-list-header > div:nth-child(7){
    display: none;
  }
  .ts-row .ts-stat-apps,
  .ts-row .ts-stat-mins{
    display: none;
  }
  .ts-team-name{ font-size: 11px; }
  .ts-photo{ width: 36px; height: 36px; }
  .ts-player-name{ font-size: 13px; }
}

@media (max-width: 560px){
  .glass-card{ padding: 16px; }
  .page-intro h1{ font-size: 22px; }

  .ts-list-header,
  .ts-row{
    grid-template-columns: 36px 1fr 50px 50px;
    padding: 10px 12px;
    gap: 6px;
  }
  .ts-list-header > div:nth-child(3){
    display: none;
  }
  .ts-row .ts-team{
    display: none;
  }

  .ts-rank-badge{ width: 28px; height: 28px; font-size: 12px; }
  .ts-rank-1, .ts-rank-2, .ts-rank-3{ font-size: 16px; }

  .ts-photo{ width: 32px; height: 32px; }
  .ts-player-name{ font-size: 12.5px; }
  .ts-player-meta{ font-size: 10.5px; }
  .ts-stat-value{ font-size: 14px; }
  .ts-stat-goals .ts-stat-value{ font-size: 17px; }
  .ts-stat-label{ font-size: 9px; }

  .ts-league-select{ min-width: 100%; }
}

/* ============================================================
   ARTICLE / HERO / AUTHOR BYLINE (1X2 tarzı)
============================================================ */
.article{ margin-top:26px; }
.article h2{ font-size:22px; margin-bottom:12px; font-weight: 800; letter-spacing: -0.2px; color:#0f172a; }
.article h3{ font-size:18px; margin-top:22px; font-weight: 700; color:#0f172a; }
.article p{ font-size:14.5px; line-height:1.75; color:#444; }
.article ul, .article ol{ font-size:14.5px; color: #444; line-height: 1.75; padding-left: 22px; }
.article a{ color:#0a6dd1; }

.author-byline{ display:flex; align-items:flex-start; gap:16px; padding:20px; margin-top: 26px; background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(249,250,255,0.85)); border:1px solid rgba(15,23,42,0.07); border-radius:18px; box-shadow: 0 6px 18px rgba(15,23,42,0.05); }
.author-byline .ab-avatar{ width:64px; height:64px; border-radius:50%; overflow:hidden; flex-shrink:0; background: linear-gradient(135deg, #0f172a, #1e293b); display:flex; align-items:center; justify-content:center; color:#ffd700; font-weight:800; font-size:22px; border:2px solid rgba(255,215,0,.35); }
.author-byline .ab-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.author-byline .ab-info{ min-width:0; flex:1; }
.author-byline .ab-kicker{ font-size:11px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; color:#64748b; margin-bottom:3px; }
.author-byline .ab-name{ font-size:17px; font-weight:800; color:#0f172a; text-decoration:none; letter-spacing:-0.2px; display:inline-block; margin-bottom:2px; }
.author-byline .ab-name:hover{ color:#0a6dd1; }
.author-byline .ab-style{ font-size:12.5px; color:#64748b; font-weight:600; margin-bottom: 2px; }
.author-byline .ab-bio{ font-size:13.5px; color:#475569; line-height:1.6; margin: 8px 0 10px; }
.author-byline .ab-links{ display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.author-byline .ab-more{ font-size:12.5px; font-weight:700; color:#0a6dd1; text-decoration:none; transition:color .15s ease; }
.author-byline .ab-more:hover{ color:#084a8e; text-decoration:underline; }
.author-byline .ab-social{ font-size:12px; font-weight:700; color:#475569; text-decoration:none; padding: 4px 11px; background: rgba(15,23,42,0.06); border-radius: 999px; transition: all .15s ease; }
.author-byline .ab-social:hover{ background: #0f172a; color:#fff; }

figure.hero-fig{ margin: 30px 0 6px; text-align: center; }
figure.hero-fig img{ width: 100%; max-width: 600px; height: auto; border-radius: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
figure.hero-fig figcaption{ font-size: 12.5px; color: #666; margin-top: 10px; }

@media (max-width: 720px){
  .article h2{ font-size: 19px; }
  .article h3{ font-size: 16px; }
  .author-byline{ padding:16px; gap:12px; }
  .author-byline .ab-avatar{ width:52px; height:52px; font-size: 19px; }
  .author-byline .ab-name{ font-size:16px; }
}
/* ============================================================
   COMPARISON CHART
============================================================ */
.ts-comparison-section{
  margin-top: 26px;
}

.ts-chart-container{
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(249,250,255,0.75));
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
}

.ts-chart-loading{
  padding: 50px 20px;
  text-align: center;
  color: #64748b;
}

.ts-chart-header{
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.ts-chart-title{
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}
.ts-chart-subtitle{
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}

.ts-chart-bars{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ts-bar-row{
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 14px;
}

.ts-bar-label{
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.ts-bar-country{
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ts-bar-league{
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ts-bar-track{
  position: relative;
  height: 32px;
  background: rgba(15,23,42,0.04);
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.ts-bar-fill{
  height: 100%;
  background: linear-gradient(90deg, #475569, #64748b);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  min-width: 80px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ts-bar-player{
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.ts-bar-goals{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

/* Top 3 */
.ts-bar-gold .ts-bar-fill{
  background: linear-gradient(90deg, #f59e0b, #ffd700);
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}
.ts-bar-silver .ts-bar-fill{
  background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}
.ts-bar-bronze .ts-bar-fill{
  background: linear-gradient(90deg, #92400e, #cd7f32);
}

.ts-chart-footnote{
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(15,23,42,0.08);
  font-size: 11.5px;
  color: #94a3b8;
  font-style: italic;
  text-align: center;
}

/* Mobile chart */
@media (max-width: 640px){
  .ts-chart-container{ padding: 16px; }
  .ts-chart-title{ font-size: 15px; }
  .ts-bar-row{
    grid-template-columns: 120px 1fr;
    gap: 8px;
  }
  .ts-bar-country{ font-size: 11.5px; }
  .ts-bar-league{ font-size: 10px; }
  .ts-bar-player{ font-size: 10.5px; }
  .ts-bar-goals{ font-size: 12.5px; right: 6px; }
  .ts-bar-fill{ padding: 0 8px; min-width: 60px; }
}

@media (max-width: 480px){
  .ts-bar-row{
    grid-template-columns: 90px 1fr;
  }
  .ts-bar-country{ font-size: 11px; }
  .ts-bar-league{ font-size: 9.5px; }
}

/* ============================================================
   FAQ ACCORDION
============================================================ */
.ts-faq-section{
  margin-top: 26px;
}

.ts-faq-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.ts-faq-item{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.ts-faq-item:hover{
  border-color: rgba(245,158,11,0.3);
  box-shadow: 0 4px 12px rgba(245,158,11,0.08);
}

.ts-faq-question{
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
  letter-spacing: -0.1px;
}
.ts-faq-question:focus{
  outline: 2px solid rgba(245,158,11,0.3);
  outline-offset: -2px;
}

.ts-faq-icon{
  font-size: 22px;
  font-weight: 700;
  color: #f59e0b;
  flex-shrink: 0;
  transition: transform .25s ease;
  line-height: 1;
}
.ts-faq-item.is-open .ts-faq-icon{
  transform: rotate(45deg);
}

.ts-faq-answer{
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  padding: 0 20px;
}
.ts-faq-item.is-open .ts-faq-answer{
  max-height: 500px;
  padding: 0 20px 18px;
}
.ts-faq-answer p{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #475569;
}

@media (max-width: 560px){
  .ts-faq-question{ padding: 14px 16px; font-size: 13.5px; }
  .ts-faq-answer{ padding: 0 16px; }
  .ts-faq-item.is-open .ts-faq-answer{ padding: 0 16px 16px; }
  .ts-faq-answer p{ font-size: 13px; }
}