:root{--rr-bg:#080a0d;--rr-panel:#11151b;--rr-panel2:#0d1015;--rr-line:#272d36;--rr-text:#f6f7f9;--rr-muted:#a7adb8;--rr-orange:#ff7300;--rr-orange2:#e85400;--rr-green:#32d271}
body.rr21{margin:0;background:radial-gradient(circle at 18% 0,rgba(255,115,0,.08),transparent 28%),linear-gradient(180deg,#080a0d,#090b0e 65%,#07090b);color:var(--rr-text);font-family:Inter,Segoe UI,Arial,sans-serif;min-height:100vh}
.rr21 *{box-sizing:border-box}.rr21 a{color:inherit;text-decoration:none}.rr21 button,.rr21 input{font:inherit}
.rr21-shell{width:min(1440px,calc(100% - 40px));margin:0 auto}.rr21-topbar{border-bottom:1px solid var(--rr-line);background:rgba(8,10,13,.9);backdrop-filter:blur(16px);position:sticky;top:0;z-index:20}.rr21-topbar-inner{height:78px;display:flex;align-items:center;justify-content:space-between;gap:20px}.rr21-brand{display:flex;align-items:center;gap:12px}.rr21-logo{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(135deg,#ff8c34,#ff6200);font-weight:900;box-shadow:0 8px 24px rgba(255,115,0,.25)}.rr21-brand small,.rr21-brand strong{display:block}.rr21-brand small{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#ff974c}.rr21-brand strong{font-size:20px}.rr21-live{display:grid;grid-template-columns:auto auto;column-gap:8px;align-items:center;text-align:right}.rr21-live i{width:9px;height:9px;border-radius:50%;background:var(--rr-green);box-shadow:0 0 0 6px rgba(50,210,113,.12);grid-row:1/3}.rr21-live span{font-size:13px}.rr21-live small{font-size:11px;color:var(--rr-muted)}
.rr21-page{padding:34px 0 18px}.rr21-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;align-items:start}.rr21-main,.rr21-side{min-width:0}.rr21-event-head{padding:4px 4px 24px;border-bottom:1px solid var(--rr-line)}.rr21-event-head h1{font-size:clamp(34px,4.6vw,68px);line-height:1.02;letter-spacing:-.04em;margin:0 0 20px;text-transform:none}.rr21-event-meta{display:flex;flex-wrap:wrap;gap:14px 22px;color:#d3d7de;font-size:14px}.rr21-event-meta span{display:inline-flex;align-items:center;gap:7px}.rr21-event-meta span::first-letter{color:var(--rr-orange)}
.rr21-filter-block{padding:20px 4px;border-bottom:1px solid rgba(39,45,54,.8)}.rr21-filter-block h2,.rr21-search-box h2{margin:0 0 12px;color:#ff7b15;font-size:13px;text-transform:uppercase;letter-spacing:.08em}.rr21-tabs{display:flex;flex-wrap:wrap;gap:10px}.rr21-tab{min-height:42px;padding:0 18px;border:1px solid #39404a;border-radius:10px;background:linear-gradient(180deg,#141920,#0f1318);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;cursor:pointer;transition:.18s ease;white-space:nowrap}.rr21-tab:hover{border-color:#6b4a31;transform:translateY(-1px)}.rr21-tab.active{background:linear-gradient(135deg,#ff7f1b,#e95400);border-color:#ff7b15;box-shadow:0 8px 24px rgba(255,115,0,.24)}
.rr21-panel{background:linear-gradient(180deg,rgba(18,22,28,.98),rgba(12,15,19,.98));border:1px solid var(--rr-line);border-radius:14px;box-shadow:0 20px 50px rgba(0,0,0,.18)}.rr21-podium-panel,.rr21-table-panel{margin-top:22px;padding:18px}.rr21-panel-title{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.rr21-panel-title small{display:block;color:#ff7b15;font-weight:800;text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px}.rr21-panel-title h2{margin:0;font-size:18px}.gender-toggle{display:inline-flex;border:1px solid #303741;border-radius:999px;overflow:hidden;background:#0c1015}.gender-toggle-btn{border:0;background:transparent;color:#d9dde4;padding:9px 13px;cursor:pointer}.gender-toggle-btn.active{background:var(--rr-orange);color:#fff}
.rr21-top5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.rr21-top-card{position:relative;min-height:190px;padding:18px 14px;border:1px solid #303741;border-radius:12px;background:linear-gradient(180deg,#171c23,#101419);display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center}.rr21-top-card.winner{border-color:#8a6200;box-shadow:inset 0 0 0 1px rgba(255,188,0,.12)}.rr21-rank{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#c7cbd1;color:#111;font-weight:900;margin-bottom:12px}.rr21-top-card:nth-child(1) .rr21-rank{background:linear-gradient(135deg,#f5d26a,#a87300)}.rr21-top-card:nth-child(3) .rr21-rank{background:linear-gradient(135deg,#d9863a,#7d3f00);color:#fff}.rr21-top-card h3{font-size:15px;line-height:1.2;margin:0 0 16px}.rr21-top-card dl{margin:0;display:grid;gap:8px}.rr21-top-card dl div{display:grid;gap:2px}.rr21-top-card dt{font-size:11px;color:var(--rr-muted)}.rr21-top-card dd{margin:0;font-weight:700;font-size:13px}
.rr21-category-results[hidden]{display:none}.rr21-category-results{margin-top:10px}.rr21-category-results .rr21-top-card{min-height:155px}
.rr21-table-head{align-items:center}.rr21-table-summary{font-size:13px;color:var(--rr-muted)}.rr21-table-wrap{overflow:auto;border:1px solid #222831;border-radius:10px}.rr21-table{width:100%;border-collapse:collapse;min-width:900px}.rr21-table th,.rr21-table td{padding:12px 14px;border-bottom:1px solid #242a32;text-align:left}.rr21-table th{background:#0c1015;color:#b8bec8;text-transform:uppercase;font-size:11px;letter-spacing:.05em}.rr21-table td{font-size:13px}.rr21-table tr:hover td{background:rgba(255,255,255,.02)}.rr21-pagination{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:14px;color:var(--rr-muted);font-size:13px}.rr21-pagination div{display:flex;gap:10px}.rr21-pagination a{border:1px solid #303741;padding:9px 12px;border-radius:8px}.rr21-pagination a:hover{border-color:var(--rr-orange);color:#fff}
.rr21-side{position:sticky;top:102px}.rr21-search-box{padding:18px}.rr21-search-form{display:grid;gap:12px}.rr21-search-form input{width:100%;height:48px;border:1px solid #303741;background:#0d1117;color:#fff;border-radius:10px;padding:0 14px;outline:none}.rr21-search-form input:focus{border-color:var(--rr-orange)}.rr21-search-form>button{height:48px;border:0;border-radius:10px;background:linear-gradient(135deg,#ff7c13,#e55300);color:#fff;font-weight:800;cursor:pointer}.rr21-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.rr21-actions button,.rr21-actions a{height:44px;border:1px solid #303741;background:#12171d;color:#fff;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;cursor:pointer}.rr21-actions a:last-child{grid-column:1/-1}.rr21-actions button:hover,.rr21-actions a:hover{border-color:var(--rr-orange)}
.rr21-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.rr21-stats article{min-height:142px;border:1px solid var(--rr-line);border-radius:14px;background:linear-gradient(180deg,#151a20,#0e1216);padding:16px;display:flex;flex-direction:column;justify-content:flex-end}.rr21-stats i{font-style:normal;color:var(--rr-orange);font-size:24px;margin-bottom:auto}.rr21-stats small{color:#d0d4db;font-size:11px;text-transform:uppercase}.rr21-stats strong{color:var(--rr-orange);font-size:24px;line-height:1.05;margin-top:9px;word-break:break-word}.rr21-back{display:inline-flex;margin-top:14px;color:#aeb4be;font-size:13px}.rr21-back:hover{color:#fff}.rr21-footer{text-align:center;color:#9aa1ab;padding:18px 20px 34px;font-size:13px}.rr21-search-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rr21-search-card{border:1px solid #303741;border-radius:12px;padding:16px;background:#11161c}.rr21-search-card h3{margin:0 0 10px}.rr21-search-card p{margin:4px 0;color:var(--rr-muted);font-size:13px}.rr21-search-card a{display:inline-flex;margin-top:10px;color:#ff7b15;font-weight:700}
@media (max-width:1100px){.rr21-layout{grid-template-columns:1fr}.rr21-side{position:static;display:grid;grid-template-columns:1fr 1fr;gap:14px}.rr21-stats{margin-top:0}.rr21-back{grid-column:1/-1}.rr21-top5{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){.rr21-shell{width:min(100% - 24px,1440px)}.rr21-topbar-inner{height:70px}.rr21-live span{font-size:0}.rr21-live span::after{content:'Ao vivo';font-size:12px}.rr21-live small{display:none}.rr21-page{padding-top:22px}.rr21-layout{gap:16px}.rr21-event-head h1{font-size:clamp(30px,10vw,44px);line-height:1.04}.rr21-event-meta{display:grid;gap:8px;font-size:13px}.rr21-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;scrollbar-width:none;overscroll-behavior-inline:contain;scroll-snap-type:x proximity}.rr21-tabs::-webkit-scrollbar{display:none}.rr21-tab{scroll-snap-align:start;flex:0 0 auto;padding:0 14px;min-height:40px}.rr21-side{display:block}.rr21-stats{margin-top:12px}.rr21-top5{grid-template-columns:repeat(5,150px);overflow-x:auto;padding-bottom:8px;scroll-snap-type:x proximity;scrollbar-width:none}.rr21-top5::-webkit-scrollbar{display:none}.rr21-top-card{scroll-snap-align:start;min-height:170px}.rr21-panel-title{flex-direction:column}.rr21-search-results{grid-template-columns:1fr}.rr21-actions{grid-template-columns:1fr 1fr}.rr21-podium-panel,.rr21-table-panel{padding:14px}.rr21-stats article{min-height:118px}.rr21-stats strong{font-size:20px}}
@media (max-width:420px){.rr21-shell{width:min(100% - 16px,1440px)}.rr21-brand strong{font-size:17px}.rr21-logo{width:38px;height:38px}.rr21-event-head h1{font-size:30px}.rr21-stats{gap:8px}.rr21-stats article{padding:13px}.rr21-actions{grid-template-columns:1fr}.rr21-actions a:last-child{grid-column:auto}}


/* ===== ResultadoRUN 2.2.2 =====
   hidden precisa vencer o display:grid do pódio.
   Sem isso o pódio Geral continuava visível junto com a faixa etária. */
.rr21-top5[hidden],
#podiumGrid[hidden],
#categoryPodiumGrid[hidden]{
  display:none !important;
}

/* Desktop: busca continua na coluna direita. */
.rr21-main{
  grid-column:1;
  grid-row:1 / span 2;
}
.rr21-search-primary{
  grid-column:2;
  grid-row:1;
  margin:0;
}
.rr21-side{
  grid-column:2;
  grid-row:2;
}

/* Mobile: a primeira ação da página é Buscar Atleta. */
@media (max-width: 820px){
  .rr21-page{
    padding-top:14px;
  }

  .rr21-layout{
    display:flex !important;
    flex-direction:column;
    gap:14px;
  }

  .rr21-search-primary{
    order:1;
    width:100%;
    position:relative;
    z-index:2;
  }

  .rr21-main{
    order:2;
    width:100%;
  }

  .rr21-side{
    order:3;
    width:100%;
  }

  .rr21-search-primary{
    border-color:#343b45;
    box-shadow:0 12px 32px rgba(0,0,0,.22);
  }

  .rr21-search-primary h2{
    font-size:14px;
    margin-bottom:10px;
  }

  .rr21-search-primary input{
    min-height:50px;
    font-size:16px; /* evita zoom automático do iPhone */
  }

  .rr21-search-primary .rr21-search-form > button[type="submit"]{
    min-height:50px;
    font-size:15px;
  }

  .rr21-search-primary .rr21-actions{
    grid-template-columns:1fr 1fr;
  }

  .rr21-event-head{
    padding-top:4px;
  }
}

@media (max-width: 440px){
  .rr21-search-primary .rr21-actions{
    grid-template-columns:1fr 1fr;
  }

  .rr21-search-primary .rr21-actions a:last-child{
    grid-column:1 / -1;
  }
}


/* ===== ResultadoRUN 2.3.0 ===== */
.rr24-stack{display:flex;flex-direction:column;gap:18px}
.rr24-event-head{order:1}
.rr24-search-hero{order:2;background:
radial-gradient(circle at 88% 15%,rgba(255,116,0,.15),transparent 30%),
linear-gradient(180deg,#15191f,#0d1116);border:1px solid #303741;border-radius:16px;padding:22px;display:grid;grid-template-columns:minmax(0,1fr) minmax(440px,.9fr);gap:18px;align-items:end;box-shadow:0 20px 50px rgba(0,0,0,.2)}
.rr24-search-hero small,.rr24-classification-head small{display:block;color:var(--rr-orange);font-size:11px;font-weight:900;letter-spacing:.11em;margin-bottom:6px}
.rr24-search-hero h2,.rr24-classification-head h2{margin:0;font-size:22px}
.rr24-search-hero p,.rr24-classification-head p,.rr24-all-results p{margin:7px 0 0;color:var(--rr-muted);font-size:13px}
.rr24-search-form{display:grid;grid-template-columns:1fr auto;gap:10px}
.rr24-search-form input{height:54px;border:1px solid #3a424d;border-radius:11px;background:#090d12;color:#fff;padding:0 16px;outline:none;font-size:16px}
.rr24-search-form input:focus{border-color:var(--rr-orange);box-shadow:0 0 0 3px rgba(255,115,0,.12)}
.rr24-search-form button{height:54px;border:0;border-radius:11px;padding:0 22px;background:linear-gradient(135deg,#ff7c13,#e55300);color:#fff;font-weight:900;cursor:pointer}
.rr24-search-actions{grid-column:1/-1;display:flex;gap:9px;flex-wrap:wrap}
.rr24-search-actions a,.rr24-search-actions button{border:1px solid #313844;background:#11161c;color:#fff;border-radius:9px;min-height:40px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;cursor:pointer}
.rr24-search-results-panel{order:3;padding:18px}
.rr24-classification-shell{order:4}
.rr24-classification-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:8px 4px 4px}
.rr24-clear{color:#ff8a35;font-weight:800;font-size:12px}
.rr24-filter{padding-left:4px;padding-right:4px}
.rr24-neutral{margin-top:16px;border:1px dashed #3b434d;border-radius:14px;padding:24px;background:#0e1217;color:#fff;display:grid;gap:7px;text-align:center}
.rr24-neutral span{color:var(--rr-muted);font-size:13px}
.rr24-all-results{order:5}
.rr24-stats{order:6;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.rr24-stats article{border:1px solid var(--rr-line);border-radius:14px;background:linear-gradient(180deg,#151a20,#0e1216);padding:16px;min-height:115px;display:flex;flex-direction:column;justify-content:flex-end}
.rr24-stats small{color:#cdd2da;text-transform:uppercase;font-size:10px;letter-spacing:.05em}
.rr24-stats strong{color:var(--rr-orange);font-size:22px;margin-top:8px;word-break:break-word}
.rr24 .rr21-table td a{color:#fff;font-weight:700}
.rr24 .rr21-table td a:hover{color:var(--rr-orange)}
.rr24 .rr21-top5[hidden]{display:none!important}

@media(max-width:900px){
  .rr24-search-hero{grid-template-columns:1fr}
  .rr24-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:760px){
  /* No celular, buscar atleta é a primeira ação após a barra superior. */
  .rr24-search-hero{order:1;padding:16px;margin-top:0}
  .rr24-event-head{order:2;padding-top:6px}
  .rr24-search-results-panel{order:3}
  .rr24-classification-shell{order:4}
  .rr24-all-results{order:5}
  .rr24-stats{order:6}
  .rr24-search-form{grid-template-columns:1fr}
  .rr24-search-form input,.rr24-search-form button{width:100%;height:52px}
  .rr24-search-actions{display:grid;grid-template-columns:1fr 1fr}
  .rr24-search-actions button{grid-column:1/-1}
  .rr24-classification-head{align-items:flex-start;flex-direction:column}
}

@media(max-width:430px){
  .rr24-stats{grid-template-columns:1fr 1fr}
  .rr24-search-hero h2{font-size:19px}
}
