/* =========================
   YEAR PAGE (theme-neon)
   ========================= */

/* (base from existing year.css) */
.rankings-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.rankings-table th, .rankings-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.muted {
  opacity: 0.75;
  font-size: 13px;
}
.card {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
}
.pill{
  display:inline-block;
  padding:4px 10px;
  margin-left:6px;
  border:1px solid rgba(255,255,255,0.18);
  border-radius:999px;
  text-decoration:none;
  color:inherit;
  font-size:13px;
}
.pill:hover{
  border-color: rgba(255,255,255,0.35);
}
.pill-active{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
}

/* =========================
   Header + sticky nav buttons
   ========================= */
.year-page{
  position: relative;
}

.year-header{
  position: relative;
  text-align: center;
  padding-top: 6px;
}

.year-title{
  margin: 0;
  text-align: center;
}

.year-sub{
  margin-top: 6px;
  text-align: center;
}

/* Buttons: you asked "nav btn" + special class */
.year-nav{
  position: sticky;
  top: 100px;
  z-index: 50;
   font-size:2rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  text-decoration: none !important;
  opacity: 0.95;
  backdrop-filter: blur(8px);

  /* keep it readable on scroll */
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.year-nav:hover{
  opacity: 1;
  border-color: rgba(255,255,255,0.35);
}

.year-nav-left{
  float: left;
  margin-top: 4px;
}

.year-nav-right{
  float: right;
  margin-top: 4px;
}

/* Mobile: avoid weird floats */
@media (max-width: 720px){
  .year-nav-left, .year-nav-right{
    float: none;
    display: inline-flex;
    margin: 6px 6px 0;
  }
  .year-header{
    padding-top: 12px;
  }
}

/* =========================
   Sections spacing (~5%)
   ========================= */
.section-spaced{
  margin-top: 5%;
}

/* =========================
   Tournament lists (no bullets, silver links)
   ========================= */
.tlist{
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.titem{
  margin: 10px 0;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  margin-top 2%;
}

.titem-dim{
  opacity: 0.55;
}

.tline{
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  text-align: center;
}

.tlink-silver{
  color: rgba(210,215,225,0.95);
  text-decoration: none;
  font-size: 2.5rem;
}

.tlink-silver:hover{
  text-decoration: underline;
}

/* Winner line: below + left indent */
.twinner{
  margin-top: 6px;
  margin-left: 18px;
  line-height: 1.2;
    text-align: center;
    font-size:2.5rem;
}

.winner-link{
  text-decoration: none !important;
}

.winner-link:hover{
  text-decoration: underline;
}

/* Keep cancelled style readable */
.winner-cancelled{
  opacity: 0.9;
}

.cancelled-note{
  margin-left: 8px;
  opacity: 0.75;
  font-size: 13px;
}

/* =========================
   Filters
   ========================= */
.year-filters{
  margin-top: 8px;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content: center;
}

/* =========================
   Rankings table style (match "player" tables vibe)
   ========================= */
.year-rankings-table th,
.year-rankings-table td{
  /* player.css uses bigger padding for theme-neon tables */
  padding: 10px 14px;
}

.player-cell{
  white-space: nowrap;
}

.player-link{
  text-decoration: none !important;
  color: inherit;
}

.player-link:hover{
  text-decoration: underline;
}

/* trophies inline */
.player-trophies{
  margin-left: 8px;
  letter-spacing: 1px;
  opacity: 0.95;
  font-size: 0.95em;
}

/* clickable row hover */
.year-rankings-table tbody tr:hover td{
  background: rgba(255,255,255,.06);
}

/* don’t show underline/blue default on any anchor inside this page */
.year-page a{
  color: inherit;
}

/* Keep tournament silver links silver */
.year-page a.tlink-silver{
  color: rgba(210,215,225,0.95);
}

/* =========================
   Winrate color classes (assumes these exist globally)
   If they already exist in style.css/theme-neon.css:
   - neon-anim
   - red-anim
   - green-anim
   - gold-anim
   we just ensure they look good in cells.
   ========================= */
.year-rankings-table td.neon-anim,
.year-rankings-table td.red-anim,
.year-rankings-table td.green-anim,
.year-rankings-table td.gold-anim{
  border-radius: 8px;
}

body.theme-neon h2 {
text-align:center;
}

.cancelled-note{
font-size: 1.5rem;
}

.muted
{
font-size: 1.25rem;
}

.year-page select{
font-size: 1.25rem;
  }

  /* Cancelled note links: neon look */
.cancelled-note a{
  text-decoration: none;
  color: inherit;              /* évite le bleu par défaut */
}

/* applique neon-anim au lien */
.cancelled-note a,
.cancelled-note a:visited{
  /* si neon-anim est une classe avec animation/couleur,
     tu peux soit l'ajouter en HTML, soit reproduire le style ici */
}

/* cancelled-note links get neon-anim style */
.cancelled-note a{
  color: #8fe3ff;
  text-decoration: none;

  text-shadow:
    0 0 6px rgba(120,200,255,.8),
    0 0 12px rgba(120,200,255,.6);

  animation: neonPulse 1.8s ease-in-out infinite alternate;
}

.cancelled-note a:hover{
  text-decoration: underline;
}

.table-conter{
width: 90%;
}

/* avatar in Top 50 table */
.year-rankings-table .player-cell{
  display:flex;
  align-items:center;
  gap:10px;
  text-align:center;
    justify-content: center;
}

.year-rankings-table .rk-avatar{
  width: 70px;
  height: 70px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);

}

.year-subsection{
  text-align:center;
  margin-top: 18px;
  opacity: .9;
}

.winner-chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.winner-avatar{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.team-winners-grid{
  margin-top: 10px;
  display: grid;

  /* 3 colonnes : minimum stable, mais peut s'élargir */
  grid-template-columns: repeat(3, minmax(220px, 1fr));

  gap: 12px 26px;

  /* la grille ne prend pas 100% écran -> elle respire */
    width: 70%;
  margin-left: auto;
  margin-right: auto;

  justify-content: center;
}



@media (max-width: 900px){
  .team-winners-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .team-winners-grid{ grid-template-columns: 1fr; }
}

.team-winner{
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px 12px;

}

.team-record{
  margin-top: 2px;
  font-size: 0.85em;
  opacity: 0.8;
}

.subcups.subcups-col{
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subcup-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 6px 10px;
  border-radius: 14px;
}

.subcup-name{
  opacity: .95;
  font-size: 1.5rem;
}

.subcup-winner{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.winner-avatar--mini{
  width: 60px;
  height: 60px;
  border-radius: 999px;
  object-fit: cover;
}



/* si tt-glow n'est pas défini globalement, on force ici */
.tt-glow{
  text-shadow:
    0 0 10px color-mix(in srgb, var(--tt-color, #fff) 65%, transparent),
    0 0 22px color-mix(in srgb, var(--tt-color, #fff) 45%, transparent);
}

/* team name entre tournoi et grid */
.team-name{
  margin: 6px 0 10px;
  font-weight: 900;
  text-align: center;
  opacity: .95;
}

/* record inline (à côté du nom) */
.team-winner-text{
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  font-size: 1.8rem;
}

.team-winner-text .winner-avatar{
  width: 48px;
    height: 48px;
}



/* nom joueur */
.team-winner-text .winner-link,
.team-winner-text .gold-anim{
  max-width: 210px;   /* laisse vivre les noms */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}
/* record */
.team-record{
  flex-shrink: 0;
  opacity: .85;
  font-size: .9em;
}


.subcup-winner-name{
    font-size:1.5rem;
}


body.theme-neon h2 {
font-size: 3rem;
}

.st-tier-label{
    font-size:2rem;
}

.titem st-weeklies-item
{
         font-size:2rem;
}

.st-winner{
    font-size:1.8rem;
}

.twinner st-weeklies-body{
     font-size:2rem;
}

/* ===== Smogon Tour weeklies (tier cards) ===== */

.st-weeklies-title{
  margin: 0;
  font-size: 2rem;
}

.st-weeklies-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 320px));
  gap: 12px 14px;
  justify-content: center; /* centre les 3 colonnes */
  margin-top: 10px;
}

/* responsive */
@media (max-width: 980px){
  .st-weeklies-grid{ grid-template-columns: repeat(2, minmax(240px, 340px)); }
}
@media (max-width: 640px){
  .st-weeklies-grid{ grid-template-columns: minmax(240px, 1fr); }
}

.st-tier-card{
  padding: 10px 12px;
}

.st-tier-head{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: center;
}

.st-tier-icon{
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.15));
}

.st-tier-label{
  font-weight: 700;
  letter-spacing: .2px;
  text-align:center;
}

.st-tier-winners{
  gap: 6px;
  margin-top: 8px;
}

.st-winner{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.st-winner-link{
}

.st-winner-count{
  opacity: .8;
  font-size: .95em;
}

.st-weeklies-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(220px, 1fr));
  gap:14px 18px;
  margin-top:8px;
  align-items:start;
}

@media (max-width: 1100px){
  .st-weeklies-grid{ grid-template-columns:repeat(2, minmax(220px, 1fr)); }
}
@media (max-width: 720px){
  .st-weeklies-grid{ grid-template-columns:1fr; }
}

.st-tier-col{
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,0.03);
}

.st-winner{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:3px 6px 3px 0;
  white-space:nowrap;
}
.st-winner-count{ opacity:.8; margin-left:2px; }
.st-winner-sep{ opacity:.5; margin-right:6px; }

.yr-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px; /* espace entre le titre et le select */
}

#yr-replay-mode {
  font-size: 1.8rem;
  padding: 6px 12px;
}

.rs-watchbtn {
  font-size: 1.85rem; /* 16–17px */
  padding: 8px 14px;
}