/* ========================================
   FONTES
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Barlow:wght@400;500;600&display=swap');

/* Fonte Norse (títulos e textos grandes) — arquivo em fonts/Norse.otf */
@font-face {
    font-family: 'Norse';
    src: local('Norse'), url('fonts/Norse.otf') format('opentype'), url('fonts/Norse.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* ========================================
   VARIÁVEIS
======================================== */

:root {
    --k: #060606;
    --g: #141414;
    --l: #2b2b2b;
    --r: #e4141b;
    --o: #f2b705;
    --b: #f2eee8;
    --m: #a8a39b;
}


/* ========================================
   RESET E CONFIGURAÇÕES GERAIS
======================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--k);
    color: var(--b);
    font: 400 1.05rem/1.6 Barlow, sans-serif;
}

h1,
h2,
h3 {
    font-family: Norse, Anton, sans-serif;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: .01em;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

:focus-visible {
    outline: 3px solid var(--o);
    outline-offset: 2px;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 20px;
}


/* ========================================
   CABEÇALHO E NAVEGAÇÃO
======================================== */

header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #000;
    border-bottom: 3px solid var(--r);
}

.hd {
    max-width: 1080px;
    margin: auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.marca {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font: 1.5rem Norse, Anton;
    margin-right: auto;
}

.marca img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

nav {
    display: flex;
    gap: 4px;
}

nav a {
    padding: 8px 12px;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
}

nav a:hover {
    color: var(--o);
}

nav a.ativo {
    border-color: var(--r);
}

.menu {
    display: none;
    background: none;
    border: 1px solid var(--l);
    color: var(--b);
    padding: 4px 12px;
    font-size: 1.3rem;
    border-radius: 4px;
}


/* ========================================
   HERO / BANNER PRINCIPAL
======================================== */

.hero {
    background: radial-gradient(circle at 80% 40%, #5a0a0d, transparent 55%);
    border-bottom: 1px solid var(--l);
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 72px;
}

.hero h1 {
    font-size: clamp(3.2rem, 9vw, 6.8rem);
    text-transform: uppercase;
}

.hero p {
    max-width: 46ch;
    color: var(--m);
    margin: 20px 0 28px;
    font-size: 1.15rem;
}

.hero img {
    width: min(100%, 340px);
    margin: auto;
    filter: drop-shadow(0 0 40px #e4141b77);
}


/* ========================================
   BOTÕES
======================================== */

.btn {
    display: inline-block;
    padding: 12px 22px;
    background: var(--r);
    color: #fff;
    text-decoration: none;
    font: 600 1rem Barlow;
    border-radius: 4px;
    border: 2px solid var(--r);
    cursor: pointer;
    margin: 0 8px 8px 0;
}

.btn:hover {
    background: var(--o);
    border-color: var(--o);
    color: #000;
}

.btn.o {
    background: none;
    border-color: var(--b);
}


/* ========================================
   INFORMAÇÕES E ESTATÍSTICAS
======================================== */

.info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--l);
}

.info div {
    padding: 20px;
    border-right: 1px solid var(--l);
}

.info div:last-child {
    border: 0;
}

.info b {
    display: block;
    font: 1.6rem Norse, Anton;
    color: var(--o);
}

.info span,
.l {
    color: var(--m);
}

.stats {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.stats .card {
    flex: 1;
    text-align: center;
}

.stats b {
    font: 2rem Norse, Anton;
    display: block;
    color: var(--o);
}


/* ========================================
   TÍTULOS E CABEÇALHOS DE PÁGINA
======================================== */

.t {
    font-size: 2.2rem;
    margin-bottom: 24px;
    padding-left: 14px;
    border-left: 6px solid var(--r);
}

.topo-pag {
    max-width: 1080px;
    margin: auto;
    padding: 56px 20px 0;
}

.topo-pag h1 {
    font-size: clamp(2.6rem, 7vw, 4.5rem);
    text-transform: uppercase;
}

.topo-pag p {
    color: var(--m);
    margin-top: 8px;
}


/* ========================================
   GRIDS E CARDS
======================================== */

.grade {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.card {
    background: var(--g);
    border: 1px solid var(--l);
    border-radius: 6px;
    padding: 20px;
    display: block;
    text-decoration: none;
}

a.card:hover {
    border-color: var(--r);
}

.card h3 {
    font-size: 1.4rem;
    margin: 4px 0 8px;
}

.card p {
    color: var(--m);
}


/* ========================================
   JOGOS E RESULTADOS
======================================== */

.jogo .p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0;
    font: 1.7rem Norse, Anton;
}

.esc,
.inic {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.esc.adv {
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.inic {
    border-radius: 50%;
    background: var(--l);
    display: grid;
    place-items: center;
    font: 1.6rem Norse, Anton;
}

.tag {
    font-weight: 600;
    font-size: .85rem;
    padding: 2px 10px;
    border-radius: 99px;
    border: 1px solid;
    white-space: nowrap;
}

.V {
    color: #4be08a;
}

.E {
    color: #bbb;
}

.D {
    color: #ff6e6e;
}


/* ========================================
   ELENCO E JOGADORES
======================================== */

.atleta {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.atleta img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: top;
    background: var(--l);
}

.atleta .n {
    position: absolute;
    top: 8px;
    right: 14px;
    font: 2.4rem Norse, Anton;
    text-shadow: 0 2px 8px #000;
}

.atleta div.i {
    padding: 14px;
}

.atleta h3 {
    margin: 0;
}

.grade.el {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}


/* ========================================
   PERFIL INDIVIDUAL DO JOGADOR
======================================== */

.voltar {
    color: var(--m);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 16px;
}

.perfil {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 40px;
}

.perfil > img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: top;
    border-radius: 6px;
    border: 1px solid var(--l);
}

.perfil h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
}

.big {
    font: 6rem/1 Norse, Anton;
    color: var(--r);
}

.sub {
    color: var(--o);
    font-weight: 600;
}


/* ========================================
   ESCALAÇÃO E QUADRA
======================================== */

.pl {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font: clamp(2.2rem, 7vw, 3.8rem) Norse, Anton;
    margin: 16px 0;
    text-align: center;
}

.pl .esc,
.pl .inic {
    width: 90px;
    height: 90px;
}

.quadra {
    position: relative;
    max-width: 420px;
    aspect-ratio: 3/4;
    margin: 16px auto;
    background: #0d0d0d;
    border: 3px solid var(--r);
    border-radius: 6px;
}

.quadra svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.atl {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90px;
}

.atl b {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: auto;
    border-radius: 50%;
    background: var(--r);
    border: 2px solid #fff;
    font: 1.2rem Norse, Anton;
}

.atl span {
    display: block;
    font-weight: 600;
    font-size: .85rem;
    text-shadow: 0 1px 4px #000;
}

.atl i {
    display: block;
    font-style: normal;
    font-size: .75rem;
    color: var(--o);
}


/* ========================================
   TÍTULOS E CONQUISTAS
======================================== */

.titulo {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    padding: 28px 0;
    border-bottom: 1px solid var(--l);
}

.titulo h2 {
    font-size: 2.4rem;
}

.titulo p {
    margin: 10px 0;
    max-width: 62ch;
}

.foto {
    aspect-ratio: 1;
    background: var(--g);
    border: 1px solid var(--l);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    font-size: 5rem;
}

.foto::before {
    content: '🏆';
}

.foto img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ========================================
   IDENTIFICAÇÃO E METADADOS
======================================== */

.ident {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.ident b {
    display: block;
    font: 1.5rem Norse, Anton;
    color: var(--o);
}

.meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 24px 0 40px;
}

.meta div {
    background: var(--g);
    border: 1px solid var(--l);
    padding: 12px 16px;
    border-radius: 6px;
}

.meta small {
    display: block;
    color: var(--m);
}


/* ========================================
   TEXTOS E CONTEÚDO
======================================== */

.texto {
    max-width: 68ch;
}

.texto h2 {
    font-size: 1.9rem;
    margin: 32px 0 10px;
    color: var(--r);
}

.texto p {
    margin-bottom: 1em;
}


/* ========================================
   FORMULÁRIOS E CAMPOS
======================================== */

form {
    display: grid;
    gap: 14px;
    max-width: 460px;
    margin: 20px 0 40px;
}

label {
    font-weight: 600;
}

input {
    width: 100%;
    padding: 12px;
    background: var(--g);
    border: 1px solid var(--l);
    color: var(--b);
    border-radius: 4px;
    font: inherit;
}


/* ========================================
   RODAPÉ
======================================== */

footer {
    background: #000;
    border-top: 3px solid var(--r);
    margin-top: 40px;
}

.ft {
    max-width: 1080px;
    margin: auto;
    padding: 36px 20px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
    color: var(--m);
}

.ft h3 {
    color: var(--b);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.ft a {
    display: block;
    text-decoration: none;
}

.ft a:hover {
    color: var(--o);
}

.copy {
    text-align: center;
    padding: 14px;
    border-top: 1px solid var(--l);
    color: var(--m);
    font-size: .9rem;
}


/* ========================================
   RESPONSIVIDADE
======================================== */

@media (max-width: 760px) {

    .menu {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000;
        flex-direction: column;
        padding: 8px 20px 16px;
        border-bottom: 3px solid var(--r);
    }

    nav.aberto {
        display: flex;
    }

    .hero .wrap,
    .perfil,
    .titulo,
    .ft,
    .info {
        grid-template-columns: 1fr;
    }

    .hero img {
        width: 200px;
        order: -1;
    }

    .info div {
        border-right: 0;
        border-bottom: 1px solid var(--l);
    }
}


/* ========================================
   ACESSIBILIDADE
======================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

}

/* Rankings de estatísticas */
.ranking-filtro { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.ranking-filtro select { background:var(--g); color:var(--b); border:1px solid var(--l); border-radius:4px; padding:10px; font:inherit; }
.rankings { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:24px 0; align-items:start; }
.ranking { padding:16px; border-top:3px solid var(--r); }
.ranking h2 { font-size:1.8rem; margin-bottom:16px; }
.ranking-linha { display:flex; align-items:center; gap:9px; padding:12px 0; border-top:1px solid var(--l); text-decoration:none; }
.ranking-linha:hover { color:var(--o); }
.ranking-linha img { width:42px; height:42px; object-fit:cover; object-position:top; border-radius:50%; flex-shrink:0; }
.ranking-pos { color:var(--m); min-width:25px; font-weight:600; }
.ranking-linha:first-of-type .ranking-pos { color:var(--o); }
.ranking-nome { flex:1; min-width:0; font-weight:600; line-height:1.2; overflow-wrap:anywhere; }
.ranking-linha small { display:block; color:var(--m); font:400 .75rem Barlow,sans-serif; }
.ranking-linha strong { color:var(--o); text-align:right; font:1.6rem Norse,Anton,sans-serif; }
.ranking-vazio { padding:16px 0; }
@media(max-width:950px) { .rankings { grid-template-columns:1fr; } nav a { padding:8px 6px; } }
@media(min-width:761px) and (max-width:950px) { .menu { display:block; } nav { display:none; position:absolute; top:100%; left:0; right:0; background:#000; flex-direction:column; padding:12px 20px; } nav.aberto { display:flex; } }

/* Mesmo padrão visual para campo e quadra. */
.quadra.campo { max-width: 420px; aspect-ratio: 3/4; }
.quadra.campo .atl { width: 24%; }
.quadra.campo .atl b { width: clamp(30px, 8vw, 44px); height: clamp(30px, 8vw, 44px); }
.quadra.campo .atl span { overflow-wrap: anywhere; line-height: 1.1; }
.reservas-quadra { max-width: 420px; margin: 0 auto 12px; text-align: center; font-size: .85rem; }
.reservas-quadra i { color: var(--o); font-style: normal; display: inline-block; margin: 3px 6px; font-size: .75rem; }

/* Informações individuais dos atletas */
.perfil-colunas { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.perfil-detalhes { display:grid; grid-template-columns:minmax(0,1fr); row-gap:0; }
.perfil-detalhes > .t { margin:0 0 24px; }
.perfil-detalhes > .card:not(:last-child), .perfil-detalhes > .perfil-colunas { margin-bottom:40px; }
.perfil-detalhes .card { padding:24px; }
.perfil-colunas > section { display:flex; flex-direction:column; min-width:0; }
.perfil-colunas > section > .card { flex:1; }
.perfil-bio p + p { margin-top:12px; }
.perfil-lista { list-style:none; margin:0; padding:0; }
.perfil-lista li { display:flex; flex-direction:column; gap:4px; padding:12px 0; border-bottom:1px solid #333; }
.perfil-lista li:last-child { border-bottom:0; }
.perfil-lista span,.perfil-redes span,.perfil-vazio { color:#aaa; font-size:.9rem; }
.perfil-redes { display:flex; flex-wrap:wrap; gap:24px; }
.perfil-redes a { display:flex; flex-direction:column; gap:5px; overflow-wrap:anywhere; }
@media(max-width:650px){.perfil-colunas{grid-template-columns:1fr;gap:32px;}.perfil-detalhes .card{padding:20px;} .perfil .stats{flex-wrap:wrap;} .perfil .stats .card{min-width:95px;}}
