
.atr-tennis-shell{
  --atr:#2B0A3D;
  --atr-soft:#7c3aed;
  --lime:#d7ff3f;
  --gold:#d7b56d;
  --panel:#121522;
  --panel2:#1b2033;
  --line:rgba(255,255,255,.12);
  color:#fff;
  position:relative;
  overflow:hidden;
  border-radius:28px;
  padding:28px;
  background:linear-gradient(135deg,#090b16 0%,#15172b 48%,#0d201c 100%);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.atr-tennis-shell:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 15% 12%,rgba(124,58,237,.25),transparent 28%),
    radial-gradient(circle at 85% 0%,rgba(215,255,63,.08),transparent 22%);
}

.atr-tennis-shell *{box-sizing:border-box}

.atr-tennis-hero{
  position:relative;
  z-index:1;
  max-width:980px;
  margin-bottom:22px;
}

.atr-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(215,181,109,.35);
  color:#ffe6a1;
  background:rgba(215,181,109,.08);
  border-radius:999px;
  padding:7px 12px;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:11px;
  font-weight:800;
}

.atr-kicker:before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--lime);
}

.atr-tennis-hero h2{
  color:#fff!important;
  margin:14px 0 10px!important;
  font-size:clamp(34px,5vw,64px);
  line-height:.92;
  text-transform:uppercase;
  letter-spacing:-.055em;
  font-weight:950;
}

.atr-tennis-hero p{
  color:rgba(255,255,255,.72);
  font-size:16px;
  max-width:720px;
  margin:0 0 16px;
}

.atr-hero-stats{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.atr-hero-stats span{
  display:flex;
  align-items:baseline;
  gap:7px;
  padding:8px 11px;
  border-radius:12px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.1);
  color:rgba(255,255,255,.68);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.07em;
}

.atr-hero-stats strong{
  color:#fff;
  font-size:18px;
}

.atr-front-tabs{
  position:relative;
  z-index:2;
  display:flex;
  gap:4px;
  padding:6px;
  margin:0 0 18px;
  border-radius:16px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.1);
  overflow-x:auto;
}

.atr-front-tab{
  flex:0 0 auto;
  border:0;
  border-radius:12px;
  background:transparent;
  color:rgba(255,255,255,.72);
  padding:10px 14px;
  font-size:13px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.05em;
  cursor:pointer;
}

.atr-front-tab.is-active{
  background:#fff;
  color:#25103e;
}

.atr-front-panels{
  position:relative;
  z-index:1;
}

.atr-front-round-panel{
  display:none;
}

.atr-front-round-panel.is-active{
  display:block;
}

.atr-front-round-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.atr-front-round-head h3{
  margin:0!important;
  color:#fff!important;
  font-size:24px;
  text-transform:uppercase;
  letter-spacing:.02em;
}

.atr-front-round-head span{
  color:rgba(255,255,255,.7);
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:800;
}

.atr-front-match-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.atr-front-match{
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:14px;
  box-shadow:none;
  transition:transform .16s ease,border-color .16s ease,background .16s ease;
}

.atr-front-match:hover{
  transform:translateY(-2px);
  border-color:rgba(215,255,63,.24);
  background:linear-gradient(180deg,rgba(255,255,255,.105),rgba(255,255,255,.055));
}

.atr-front-match-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.atr-front-match-top span{
  color:#fff;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.atr-front-match-top em{
  font-style:normal;
  color:#25103e;
  background:#d7ff3f;
  border-radius:999px;
  padding:4px 7px;
  font-size:10px;
  font-weight:950;
  letter-spacing:.05em;
}

.atr-status-upcoming .atr-front-match-top em{
  color:rgba(255,255,255,.72);
  background:rgba(255,255,255,.09);
}

.atr-status-finished .atr-front-match-top em{
  color:#ffe6a1;
  background:rgba(215,181,109,.12);
  border:1px solid rgba(215,181,109,.2);
}

.atr-scoreboard{
  display:grid;
  gap:8px;
}

.atr-front-team{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:58px;
  padding:8px 10px;
  border-radius:14px;
  background:rgba(10,12,24,.52);
  border:1px solid rgba(255,255,255,.09);
}

.atr-front-team.is-winner{
  border-color:rgba(215,255,63,.45);
  background:rgba(215,255,63,.075);
}

.atr-club-identity{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.atr-logo-wrap{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%,rgba(255,255,255,.95),rgba(255,255,255,.72));
  border:1px solid rgba(255,255,255,.35);
  box-shadow:0 0 0 3px rgba(255,255,255,.06);
  overflow:hidden;
}

.atr-team-logo{
  max-width:34px!important;
  max-height:34px!important;
  width:auto!important;
  height:auto!important;
  object-fit:contain!important;
  display:block;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.18));
}

.atr-team-mark{
  width:22px;
  height:22px;
  border-radius:50%;
  background:linear-gradient(135deg,#9c7cff,#d7ff3f);
}

.atr-front-team strong{
  display:block;
  color:#fff;
  font-size:13px;
  line-height:1.15;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.01em;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.atr-front-team b{
  color:#d7ff3f;
  font-size:24px;
  line-height:1;
  font-weight:950;
}

.atr-front-details{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
}

.atr-front-details small{
  color:rgba(255,255,255,.58);
  font-size:11px;
  line-height:1.35;
}

.atr-toggle-details{
  flex:0 0 auto;
  border:1px solid rgba(255,255,255,.13);
  background:rgba(255,255,255,.06);
  color:#fff;
  border-radius:999px;
  padding:7px 10px;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
  cursor:pointer;
}

.atr-toggle-details:hover{
  border-color:rgba(215,255,63,.35);
}

.atr-sets-panel{
  display:none;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.1);
}

.atr-sets-panel.open{
  display:block;
}

.atr-sets-title{
  color:#d7ff3f;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.14em;
  margin-bottom:8px;
}

.atr-set-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 10px;
  border-radius:10px;
  background:rgba(255,255,255,.055);
  margin-bottom:6px;
}

.atr-set-row span{
  color:rgba(255,255,255,.62);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}

.atr-set-row strong{
  display:flex;
  gap:8px;
  align-items:center;
  color:#fff;
  font-size:16px;
}

.atr-set-row strong em{
  color:rgba(255,255,255,.35);
  font-style:normal;
}

.atr-set-row .set-win{
  color:#d7ff3f;
  font-style:normal;
}

.atr-empty-details{
  color:rgba(255,255,255,.62);
  font-size:13px;
  padding:8px 0;
}

.atr-lineup-front{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}

.atr-lineup-front h4{
  color:#fff!important;
  margin:0 0 7px!important;
  font-size:12px;
  line-height:1.2;
}

.atr-lineup-front ul{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:6px;
}

.atr-lineup-front li{
  display:flex;
  align-items:center;
  gap:7px;
  color:rgba(255,255,255,.78);
  font-size:12px;
  line-height:1.25;
}

.atr-lineup-empty{
  color:rgba(255,255,255,.48);
  font-size:12px;
  margin:0;
}

.atr-gender-mini{
  width:20px;
  height:20px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:9px;
  font-weight:950;
  flex:0 0 20px;
}

.atr-gender-m{background:#dbeafe;color:#1d4ed8;}
.atr-gender-f{background:#fce7f3;color:#be185d;}

@media(max-width:1180px){
  .atr-front-match-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media(max-width:760px){
  .atr-tennis-shell{padding:18px;border-radius:20px;}
  .atr-front-match-grid{grid-template-columns:1fr;}
  .atr-tennis-hero h2{font-size:38px;}
  .atr-lineup-front{grid-template-columns:1fr;}
}


/* =========================
   ATR V4.3 Shortcode Widgets
========================= */

.atr-widget-shell{
  background:linear-gradient(135deg,#0c1020 0%,#171d33 100%);
  border:1px solid rgba(255,255,255,.1);
  border-radius:22px;
  padding:20px;
  color:#fff;
  font-family:Inter,system-ui,sans-serif;
}

.atr-widget-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.atr-widget-head h3{
  margin:0!important;
  color:#fff!important;
  font-size:24px;
  line-height:1.15;
}

.atr-widget-head span{
  color:rgba(255,255,255,.68);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.atr-widget-list{
  display:grid;
  gap:10px;
}

.atr-widget-match{
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.09);
  border-radius:16px;
  padding:13px;
}

.atr-widget-round{
  color:#d7ff3f;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.13em;
  font-weight:900;
  margin-bottom:8px;
}

.atr-widget-teams{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:12px;
  align-items:center;
}

.atr-widget-team{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}

.atr-widget-team:last-child{
  justify-content:flex-end;
  text-align:right;
}

.atr-widget-team strong{
  color:#fff;
  font-size:13px;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
}

.atr-widget-logo{
  width:38px;
  height:38px;
  border-radius:50%;
  background:rgba(255,255,255,.94);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex:0 0 38px;
}

.atr-widget-logo img{
  max-width:28px;
  max-height:28px;
  object-fit:contain;
}

.atr-widget-logo i{
  width:18px;
  height:18px;
  border-radius:50%;
  background:linear-gradient(135deg,#9c7cff,#d7ff3f);
}

.atr-widget-score{
  color:#d7ff3f;
  font-size:18px;
  font-weight:950;
  white-space:nowrap;
}

.atr-widget-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:11px;
}

.atr-widget-meta span{
  background:rgba(255,255,255,.065);
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  padding:5px 9px;
  color:rgba(255,255,255,.74);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-weight:800;
}

.atr-widget-empty{
  color:rgba(255,255,255,.7);
  font-size:14px;
  padding:4px 0;
}

@media(max-width:680px){
  .atr-widget-head{align-items:flex-start;flex-direction:column}
  .atr-widget-teams{grid-template-columns:1fr;gap:8px}
  .atr-widget-team:last-child{justify-content:flex-start;text-align:left}
  .atr-widget-score{font-size:14px}
}


/* =====================================================
   ATR V4.5 FINAL — coerenza sito: sharp, oro, viola, nero, font
===================================================== */

.atr-tennis-shell,
.atr-widget-shell{
  --atr-gold:#c6a15a;
  --atr-purple:#2B0A3D;
  --atr-black:#07070b;
  --atr-white:#ffffff;
  border-radius:8px!important;
  background:
    radial-gradient(circle at 15% 5%,rgba(43,10,61,.52),transparent 28%),
    linear-gradient(135deg,#07070b 0%,#11131d 58%,#0b0b10 100%)!important;
  font-family:"Manrope",Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}

.atr-tennis-hero h2,
.atr-front-round-head h3,
.atr-front-match-top span,
.atr-front-tab,
.atr-front-team b,
.atr-widget-head h3,
.atr-widget-score,
.atr-kicker,
.atr-hero-stats strong,
.atr-widget-round{
  font-family:"Big Shoulders Text",Impact,sans-serif!important;
  letter-spacing:.035em!important;
}

.atr-kicker,
.atr-front-match-top em,
.atr-front-round-head span,
.atr-hero-stats span,
.atr-widget-meta span,
.atr-toggle-details,
.atr-front-tab,
.atr-front-tabs,
.atr-front-match,
.atr-widget-match,
.atr-front-team,
.atr-set-row,
.atr-logo-wrap,
.atr-widget-logo{
  border-radius:4px!important;
}

.atr-front-tabs{
  background:rgba(255,255,255,.045)!important;
  border:1px solid rgba(198,161,90,.18)!important;
}

.atr-front-tab{
  color:rgba(255,255,255,.65)!important;
}

.atr-front-tab.is-active{
  background:rgba(198,161,90,.14)!important;
  color:#fff!important;
  box-shadow:inset 0 -2px 0 #c6a15a;
}

.atr-front-match,
.atr-widget-match{
  border-color:rgba(198,161,90,.16)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035))!important;
}

.atr-front-team{
  background:rgba(0,0,0,.30)!important;
}

.atr-front-team.is-winner{
  border-color:rgba(198,161,90,.52)!important;
  background:rgba(198,161,90,.075)!important;
}

.atr-front-team b,
.atr-widget-score,
.atr-set-row .set-win,
.atr-sets-title,
.atr-widget-round{
  color:#c6a15a!important;
}

.atr-front-match-top em{
  background:rgba(198,161,90,.14)!important;
  border:1px solid rgba(198,161,90,.28)!important;
  color:#f2d79a!important;
}

.atr-status-live .atr-front-match-top em,
.atr-widget-status.atr-status-live{
  background:rgba(122,29,29,.22)!important;
  border-color:rgba(122,29,29,.45)!important;
  color:#ffd6d6!important;
}

.atr-toggle-details{
  border-color:rgba(198,161,90,.28)!important;
  color:#c6a15a!important;
  background:rgba(198,161,90,.06)!important;
}

.atr-toggle-details:hover{
  background:rgba(198,161,90,.12)!important;
}

.atr-logo-wrap,
.atr-widget-logo{
  background:#fff!important;
  border:1px solid rgba(198,161,90,.38)!important;
  box-shadow:0 0 0 2px rgba(198,161,90,.08)!important;
}

.atr-widget-meta span{
  background:rgba(198,161,90,.08)!important;
  border-color:rgba(198,161,90,.14)!important;
}

.atr-kicker:before{
  background:#c6a15a!important;
}

.atr-team-mark,
.atr-widget-logo i{
  background:linear-gradient(135deg,#2B0A3D,#c6a15a)!important;
}


/* =====================================================
   ATR V4.5.2 - Maps + logo treatment
===================================================== */

.atr-maps-link,
.atr-widget-maps{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-left:10px;
  color:#c6a15a!important;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  text-decoration:none!important;
  opacity:.82;
  transition:all .2s ease;
}

.atr-maps-link:hover,
.atr-widget-maps:hover{
  opacity:1;
  transform:translateY(-1px);
}

.atr-logo-wrap,
.atr-widget-logo{
  width:64px!important;
  height:64px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f5f1e8 100%)!important;
  border:1px solid rgba(198,161,90,.42)!important;
  box-shadow:
    0 0 0 2px rgba(198,161,90,.08),
    0 4px 12px rgba(0,0,0,.18)!important;
  overflow:hidden;
}

.atr-logo-wrap img,
.atr-widget-logo img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  padding:8px!important;
}

.atr-logo-fallback{
  font-family:"Big Shoulders Text",Impact,sans-serif!important;
  font-size:22px;
  color:#2B0A3D;
  letter-spacing:.06em;
}


/* =====================================================
   ATR V4.5.3 — Logo redesign definitivo
===================================================== */

.atr-front-team{
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
  padding:16px 20px!important;
}

.atr-logo-wrap{
  width:auto!important;
  min-width:unset!important;
  height:auto!important;
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-shrink:0!important;
}

.atr-logo-wrap img{
  width:auto!important;
  height:auto!important;
  max-height:42px!important;
  max-width:90px!important;
  object-fit:contain!important;
  padding:0!important;
  background:transparent!important;
  filter:drop-shadow(0 0 4px rgba(255,255,255,.08));
}

.atr-front-team b{
  display:flex!important;
  align-items:center!important;
  min-height:42px!important;
  line-height:1.1!important;
}

.atr-widget-logo{
  width:auto!important;
  height:auto!important;
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  padding:0!important;
}

.atr-widget-logo img{
  width:auto!important;
  height:auto!important;
  max-height:36px!important;
  max-width:80px!important;
  object-fit:contain!important;
  padding:0!important;
  filter:drop-shadow(0 0 4px rgba(255,255,255,.08));
}

.atr-logo-fallback{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:42px!important;
  height:42px!important;
  border:1px solid rgba(198,161,90,.22)!important;
  background:rgba(198,161,90,.08)!important;
  color:#c6a15a!important;
  font-size:18px!important;
}

@media(max-width:768px){

  .atr-front-team{
    gap:12px!important;
    padding:14px!important;
  }

  .atr-logo-wrap img{
    max-height:32px!important;
    max-width:70px!important;
  }

  .atr-front-team b{
    min-height:auto!important;
  }
}


/* =====================================================
   ATR V4.5.4 — Fix definitivo loghi orizzontali/verticali
===================================================== */

/* wrapper senza dimensioni fisse */
.atr-logo-wrap,
.atr-widget-logo{
    width:auto!important;
    height:auto!important;
    min-width:unset!important;
    max-width:none!important;
    overflow:visible!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex-shrink:0!important;
    padding:0!important;
    background:transparent!important;
    border:none!important;
    box-shadow:none!important;
}

/* SOLO altezza definita */
.atr-logo-wrap img,
.atr-widget-logo img{
    height:42px!important;
    width:auto!important;
    max-height:42px!important;
    max-width:none!important;
    object-fit:contain!important;
    object-position:left center!important;
    display:block!important;
    overflow:visible!important;
    padding:0!important;
    margin:0!important;
    background:transparent!important;
    filter:drop-shadow(0 0 4px rgba(255,255,255,.08));
}

/* widget piccoli */
.atr-widget-logo img{
    height:34px!important;
    max-height:34px!important;
}

/* mobile */
@media(max-width:768px){

    .atr-logo-wrap img{
        height:32px!important;
        max-height:32px!important;
    }

    .atr-widget-logo img{
        height:26px!important;
        max-height:26px!important;
    }
}


/* =====================================================
   ATR V4.5.5 — Logo source full + no crop reale
   Usa immagine in evidenza FULL, non thumbnail 150x150.
===================================================== */

.atr-logo-wrap{
    width:auto!important;
    height:auto!important;
    min-width:0!important;
    max-width:none!important;
    overflow:visible!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex:0 0 auto!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    padding:0!important;
}

.atr-logo-wrap .atr-team-logo,
.atr-team-logo{
    height:42px!important;
    width:auto!important;
    max-height:42px!important;
    max-width:none!important;
    min-width:0!important;
    object-fit:contain!important;
    object-position:left center!important;
    display:block!important;
    padding:0!important;
    margin:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}

/* widget shortcode */
.atr-widget-logo{
    width:auto!important;
    height:auto!important;
    min-width:0!important;
    max-width:none!important;
    overflow:visible!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    padding:0!important;
    flex:0 0 auto!important;
}

.atr-widget-logo img{
    height:34px!important;
    width:auto!important;
    max-height:34px!important;
    max-width:none!important;
    object-fit:contain!important;
    object-position:left center!important;
    display:block!important;
    padding:0!important;
    margin:0!important;
    background:transparent!important;
}

@media(max-width:768px){
    .atr-logo-wrap .atr-team-logo,
    .atr-team-logo{
        height:34px!important;
        max-height:34px!important;
    }

    .atr-widget-logo img{
        height:28px!important;
        max-height:28px!important;
    }
}


/* =====================================================
   ATR V5 Frontend Tornei
===================================================== */
.atr-v5-front-tabs{display:flex;gap:4px;padding:6px;margin:0 0 18px;border:1px solid rgba(198,161,90,.18);background:rgba(255,255,255,.045);border-radius:6px;overflow-x:auto}
.atr-v5-front-tab{border:0;background:transparent;color:rgba(255,255,255,.65);padding:10px 14px;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;cursor:pointer;border-radius:4px}
.atr-v5-front-tab.is-active{background:rgba(198,161,90,.14);color:#fff;box-shadow:inset 0 -2px 0 #c6a15a}
.atr-v5-front-panel{display:none}
.atr-v5-front-panel.is-active{display:block}
.atr-v5-front-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.atr-v5-front-group{background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));border:1px solid rgba(198,161,90,.16);border-radius:8px;padding:16px}
.atr-v5-front-group h4,.atr-v5-final-phase h4{margin:0 0 12px!important;color:#c6a15a!important;text-transform:uppercase;letter-spacing:.08em}
.atr-v5-front-group table{width:100%;border-collapse:collapse;margin-bottom:14px}
.atr-v5-front-group th,.atr-v5-front-group td{padding:8px;border-bottom:1px solid rgba(255,255,255,.08);font-size:12px;text-align:left;color:rgba(255,255,255,.78)}
.atr-v5-front-group th{color:#c6a15a;text-transform:uppercase;font-size:10px;letter-spacing:.08em}
.atr-v5-front-match{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.08);border-radius:6px;padding:10px;margin:8px 0}
.atr-v5-front-match div{display:flex;gap:7px;align-items:center;min-width:0;flex-wrap:wrap}
.atr-v5-front-match strong{color:#fff;font-size:12px;text-transform:uppercase}
.atr-v5-front-match span{color:rgba(255,255,255,.45);font-size:11px}
.atr-v5-front-match b{color:#c6a15a;font-size:18px}
.atr-v5-front-match small{grid-column:1/-1;color:rgba(255,255,255,.58);font-size:11px}
.atr-v5-final-phase{margin-top:16px;background:rgba(198,161,90,.06);border:1px solid rgba(198,161,90,.16);border-radius:8px;padding:16px;color:rgba(255,255,255,.75)}
.atr-v5-final-phase code{color:#c6a15a}
@media(max-width:900px){.atr-v5-front-groups{grid-template-columns:1fr}}


/* =====================================================
   ATR V6 Unified Frontend
===================================================== */
.atr-v6-top-tabs{display:flex;gap:4px;padding:6px;margin:0 0 18px;border:1px solid rgba(198,161,90,.18);background:rgba(255,255,255,.045);border-radius:6px;overflow-x:auto}
.atr-v6-top-tab{border:0;background:transparent;color:rgba(255,255,255,.65);padding:10px 14px;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;cursor:pointer;border-radius:4px}
.atr-v6-top-tab.is-active{background:rgba(198,161,90,.14);color:#fff;box-shadow:inset 0 -2px 0 #c6a15a}
.atr-v6-view,.atr-v6-tournament-panel{display:none}
.atr-v6-view.is-active,.atr-v6-tournament-panel.is-active{display:block}
.atr-v6-groups-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.atr-v6-group-card{background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));border:1px solid rgba(198,161,90,.16);border-radius:8px;padding:16px}
.atr-v6-group-card h4{margin:0 0 12px!important;color:#c6a15a!important;text-transform:uppercase;letter-spacing:.08em}
.atr-v6-group-card table{width:100%;border-collapse:collapse;margin-bottom:14px}
.atr-v6-group-card th,.atr-v6-group-card td{padding:8px;border-bottom:1px solid rgba(255,255,255,.08);font-size:12px;text-align:left;color:rgba(255,255,255,.78)}
.atr-v6-group-card th{color:#c6a15a;text-transform:uppercase;font-size:10px;letter-spacing:.08em}
.atr-v6-group-match{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.08);border-radius:6px;padding:10px;margin:8px 0}
.atr-v6-group-match div{display:flex;gap:7px;align-items:center;min-width:0;flex-wrap:wrap}
.atr-v6-group-match strong{color:#fff;font-size:12px;text-transform:uppercase}
.atr-v6-group-match span{color:rgba(255,255,255,.45);font-size:11px}
.atr-v6-group-match b{color:#c6a15a;font-size:18px}
.atr-v6-group-match small{grid-column:1/-1;color:rgba(255,255,255,.58);font-size:11px}
.atr-v6-empty{background:rgba(198,161,90,.06);border:1px solid rgba(198,161,90,.16);border-radius:8px;padding:18px;color:rgba(255,255,255,.72)}
.atr-v6-final-grid{display:grid;gap:18px}
@media(max-width:900px){.atr-v6-groups-grid{grid-template-columns:1fr}}

/* ATR v6.0.5: solo torneo singolare */
[data-v5-tab="doppio"],[data-v6-tournament="doppio"],[data-v5-front="doppio"]{display:none!important;}


/* =====================================================
   ATR v6.1.1 — Fase finale premium frontend
===================================================== */

.atr-final-stage{
  position:relative;
  z-index:1;
}

.atr-final-stage-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin:0 0 20px;
  padding:18px 18px 16px;
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
  border:1px solid rgba(198,161,90,.16);
  border-radius:6px;
}

.atr-final-stage-head span{
  display:block;
  color:#c6a15a;
  font-family:"Big Shoulders Text",Impact,sans-serif!important;
  font-size:15px;
  text-transform:uppercase;
  letter-spacing:.12em;
  margin-bottom:6px;
}

.atr-final-stage-head h3{
  margin:0!important;
  color:#fff!important;
  font-family:"Big Shoulders Text",Impact,sans-serif!important;
  font-size:clamp(30px,4vw,54px);
  line-height:.95;
  text-transform:uppercase;
  letter-spacing:.04em!important;
}

.atr-final-stage-head p{
  margin:0;
  max-width:420px;
  color:rgba(255,255,255,.62);
  font-size:14px;
  line-height:1.45;
}

.atr-final-bracket{
  display:grid;
  grid-template-columns:repeat(var(--atr-final-cols),minmax(260px,1fr));
  gap:16px;
  align-items:stretch;
  overflow-x:auto;
  padding-bottom:8px;
}

.atr-final-column{
  min-width:280px;
  position:relative;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
  border:1px solid rgba(198,161,90,.14);
  border-radius:6px;
  padding:14px;
}

.atr-final-column:not(:last-child):after{
  content:"";
  position:absolute;
  top:50%;
  right:-17px;
  width:17px;
  height:1px;
  background:linear-gradient(90deg,rgba(198,161,90,.55),rgba(198,161,90,0));
}

.atr-final-column-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  border-bottom:1px solid rgba(198,161,90,.14);
  padding-bottom:10px;
}

.atr-final-column-head h4{
  margin:0!important;
  color:#c6a15a!important;
  font-family:"Big Shoulders Text",Impact,sans-serif!important;
  font-size:32px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.12em!important;
}

.atr-final-column-head span{
  color:rgba(255,255,255,.65);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.09);
  border-radius:4px;
  padding:6px 8px;
}

.atr-final-column-matches{
  display:grid;
  gap:14px;
}

.atr-final-column .atr-front-match{
  height:auto;
  margin:0!important;
  border-radius:6px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.078),rgba(255,255,255,.036))!important;
}

.atr-final-column .atr-front-match-top{
  margin-bottom:12px;
}

.atr-final-column .atr-scoreboard{
  gap:10px;
}

.atr-final-column .atr-front-team{
  min-height:70px;
}

.atr-final-column .atr-front-team strong{
  white-space:normal;
  font-size:14px;
}

.atr-final-column .atr-front-details{
  align-items:flex-end;
}

@media(max-width:900px){
  .atr-final-stage-head{
    display:block;
  }
  .atr-final-stage-head p{
    margin-top:10px;
  }
  .atr-final-bracket{
    display:grid;
    grid-template-columns:1fr;
    overflow:visible;
  }
  .atr-final-column{
    min-width:0;
  }
  .atr-final-column:not(:last-child):after{
    display:none;
  }
}


/* ATR v6.1.2 — Tabellone finale stile bracket + no dettagli */
.atr-toggle-details,.atr-sets-panel{display:none!important}
.atr-final-knockout{display:grid;grid-template-columns:repeat(var(--atr-final-cols),minmax(280px,1fr));gap:34px;align-items:stretch;overflow-x:auto;padding:4px 4px 14px}
.atr-final-lane{position:relative;min-width:290px;padding:14px;border:1px solid rgba(198,161,90,.18);background:linear-gradient(180deg,rgba(255,255,255,.052),rgba(255,255,255,.022));border-radius:6px}
.atr-final-lane-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid rgba(198,161,90,.16)}
.atr-final-lane-title h4{margin:0!important;color:#c6a15a!important;font-family:"Big Shoulders Text",Impact,sans-serif!important;font-size:34px;line-height:1;letter-spacing:.13em!important;text-transform:uppercase}
.atr-final-lane-title span{color:rgba(255,255,255,.7);font-size:11px;text-transform:uppercase;letter-spacing:.08em;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);padding:6px 8px;border-radius:4px}
.atr-final-lane-matches{display:grid;gap:26px;height:calc(100% - 58px)}
.atr-final-lane-sf .atr-final-lane-matches{align-content:space-around}
.atr-final-lane-f .atr-final-lane-matches{align-content:center}
.atr-final-node{position:relative;background:linear-gradient(180deg,rgba(255,255,255,.085),rgba(255,255,255,.038));border:1px solid rgba(198,161,90,.22);border-radius:6px;padding:13px;box-shadow:0 16px 40px rgba(0,0,0,.18)}
.atr-final-lane:not(:last-child) .atr-final-node:after{content:"";position:absolute;right:-35px;top:50%;width:35px;height:1px;background:rgba(198,161,90,.55)}
.atr-final-lane:not(:first-child) .atr-final-node:before{content:"";position:absolute;left:-35px;top:50%;width:35px;height:1px;background:rgba(198,161,90,.24)}
.atr-final-node-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.atr-final-node-top span{color:#fff;font-family:"Big Shoulders Text",Impact,sans-serif!important;font-size:16px;text-transform:uppercase;letter-spacing:.08em;font-weight:900}
.atr-final-node-top em{font-style:normal;color:#f2d79a;background:rgba(198,161,90,.12);border:1px solid rgba(198,161,90,.30);border-radius:4px;padding:5px 7px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.atr-final-node-teams{display:grid;gap:8px}
.atr-final-team{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-height:54px;background:rgba(0,0,0,.26);border:1px solid rgba(255,255,255,.08);border-radius:5px;padding:8px 10px}
.atr-final-team.is-winner{border-color:rgba(198,161,90,.60);background:rgba(198,161,90,.08)}
.atr-final-team-logo{width:auto;height:auto;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.atr-final-team-logo img{height:34px!important;width:auto!important;max-width:72px!important;object-fit:contain!important;display:block!important}
.atr-final-team-logo i{width:28px;height:28px;display:block;border-radius:50%;background:linear-gradient(135deg,#2B0A3D,#c6a15a)}
.atr-final-team strong{color:#fff;font-size:13px;line-height:1.12;text-transform:uppercase;font-weight:900;white-space:normal;overflow:hidden}
.atr-final-team b{color:#c6a15a;font-family:"Big Shoulders Text",Impact,sans-serif!important;font-size:24px;line-height:1}
.atr-final-node-meta{margin-top:10px;color:rgba(255,255,255,.58);font-size:11px;line-height:1.35}
.atr-final-node-meta .atr-maps-link{margin-left:0;margin-top:4px}
@media(max-width:980px){.atr-final-knockout{grid-template-columns:1fr;overflow:visible;gap:18px}.atr-final-lane{min-width:0}.atr-final-lane:not(:last-child) .atr-final-node:after,.atr-final-lane:not(:first-child) .atr-final-node:before{display:none}.atr-final-lane-matches{gap:14px;height:auto;align-content:start!important}}
