/* =====================================================================
   Galeria + Torneios — público
   ===================================================================== */

/* ---- Galeria masonry ---- */
.gal-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 4px; }
.gal-tab { padding: 9px 18px; border-radius: 30px; font-weight: 700; font-size: 14px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); }
.gal-tab.active, .gal-tab:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.masonry { columns: 4 240px; column-gap: 16px; margin: 28px 0 60px; }
.masonry .gitem { break-inside: avoid; margin-bottom: 16px; border-radius: 16px; overflow: hidden; position: relative; cursor: pointer; background: var(--soft); display: block; }
.masonry .gitem img { width: 100%; display: block; transition: transform .3s; }
.masonry .gitem:hover img { transform: scale(1.05); }
.masonry .gitem .ov { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.78)); opacity: 0; transition: .2s; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; color: #fff; }
.masonry .gitem:hover .ov { opacity: 1; }
.masonry .gitem .ov b { font-size: 15px; }
.masonry .gitem .ov span { font-size: 12.5px; opacity: .85; }
.masonry .gitem .kind-tag { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; backdrop-filter: blur(4px); }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,8,16,.92); z-index: 999; display: none; place-items: center; padding: 30px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.lightbox .lb-cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #fff; }
.lightbox .lb-cap b { font-size: 18px; } .lightbox .lb-cap span { opacity: .7; font-size: 14px; }
.lightbox .lb-close { position: absolute; top: 20px; right: 26px; color: #fff; font-size: 30px; cursor: pointer; opacity: .8; }
.lightbox .lb-close:hover { opacity: 1; }

/* ---- Torneios lista ---- */
.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; margin: 28px 0 60px; }
.tcard { border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: .2s; display: flex; flex-direction: column; }
.tcard:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.tcard__banner { aspect-ratio: 16/7; background: linear-gradient(135deg,#15181f,#2a1714) center/cover no-repeat; position: relative; display: grid; place-items: center; color: rgba(255,255,255,.3); font-size: 40px; }
.tcard__status { position: absolute; top: 12px; right: 12px; padding: 5px 13px; border-radius: 20px; font-size: 12px; font-weight: 800; color: #fff; display: inline-flex; align-items: center; gap: 6px; backdrop-filter: blur(4px); }
.st-upcoming { background: rgba(36,64,179,.85); } .st-ongoing { background: rgba(227,53,13,.9); } .st-finished { background: rgba(40,45,56,.85); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }
.tcard__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.tcard__body h3 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; margin: 0 0 6px; }
.tcard__meta { color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; }
.tcard__champ { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }

/* ---- Torneio detalhe ---- */
.tour-hero { position: relative; min-height: 320px; display: flex; align-items: flex-end; color: #fff; background: linear-gradient(135deg,#1a0e2e,#2a1714) center/cover no-repeat; }
.tour-hero::after { content:''; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(8,6,14,.88)); }
.tour-hero .wrap { position: relative; z-index: 2; padding: 40px 24px; }
.tour-hero .back { color: rgba(255,255,255,.85); font-weight: 700; }
.tour-hero h1 { font-size: clamp(30px,5vw,52px); font-weight: 800; letter-spacing: -1.4px; margin: 14px 0 8px; }
.tour-hero .meta { display: flex; flex-wrap: wrap; gap: 16px; color: rgba(255,255,255,.85); font-size: 14.5px; font-weight: 600; }
.tour-hero .meta i { color: var(--gold); }

.champ-banner { background: linear-gradient(135deg,#3a2a08,#1a1305); border-radius: 22px; padding: 28px 32px; color: #fff; display: flex; align-items: center; gap: 22px; margin: -40px auto 30px; position: relative; z-index: 5; max-width: 1000px; box-shadow: var(--sh-lg); }
.champ-banner .trophy { font-size: 54px; color: var(--gold); }
.champ-banner .ttl { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.champ-banner .nm { font-size: 30px; font-weight: 800; letter-spacing: -.6px; }
.champ-banner .team { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.champ-banner .team span { background: rgba(255,255,255,.12); padding: 3px 10px; border-radius: 14px; font-size: 12px; font-weight: 600; }

.tour-body { max-width: 1000px; margin: 0 auto 60px; padding: 0 24px; }
.standings { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--sh); }
.standings th { text-align: left; padding: 14px 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); border-bottom: 2px solid var(--line); }
.standings td { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.standings tr:last-child td { border-bottom: 0; }
.standings .pos { font-weight: 800; width: 50px; }
.standings tr.gold td { background: linear-gradient(90deg, #fff8e6, #fff); }
.standings tr.silver td { background: linear-gradient(90deg, #f4f6f9, #fff); }
.standings tr.bronze td { background: linear-gradient(90deg, #fbf0e6, #fff); }
.team-mini { display: flex; gap: 4px; flex-wrap: wrap; }
.team-mini span { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 2px 8px; font-size: 11px; font-weight: 600; }

.round-block { margin-top: 30px; }
.round-block h3 { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--brand); margin: 0 0 12px; }
.match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; margin-bottom: 10px; }
.match .p { font-weight: 700; }
.match .p.left { text-align: right; }
.match .p.win { color: var(--brand-600); }
.match .p.win::after { content: ' 🏆'; }
.match .vs { background: var(--soft); border-radius: 10px; padding: 6px 14px; font-weight: 800; font-size: 15px; min-width: 70px; text-align: center; }

.arena-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: 50px 0; }
.arena-head h1 { font-size: clamp(30px,4vw,46px); font-weight: 800; letter-spacing: -1.2px; margin: 0; display: flex; align-items: center; gap: 14px; }
.arena-head p { color: var(--muted); font-size: 17px; margin: 8px 0 0; }
