/* LVTM Frontend Styles */
:root {
      --orange: #ef7f2d;
      --orange-dark: #d06920;
      --bg: #4c4c4c;
      --bg-dark: #333333;
      --bg-darker: #222222;
      --bg-card: #3a3a3a;
      --white: #ffffff;
      --light: #e0e0e0;
      --muted: #aaaaaa;
    }

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

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Barlow', sans-serif;
      background: var(--bg);
      color: var(--white);
      overflow-x: hidden;
    }

    /* ─── NAVBAR ─── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
      background: rgba(26,26,26,0.97);
      backdrop-filter: blur(8px);
      border-bottom: 2px solid var(--orange);
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 40px; height: 68px;
    }
    .nav-logo {
      display: flex; align-items: center; gap: 12px; text-decoration: none;
    }
    .nav-logo img {
      height: 46px; width: auto;
    }
    .nav-logo-text {
      display: flex; flex-direction: column; line-height: 1.1;
    }
    .nav-logo-text .liga { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 600; color: var(--orange); letter-spacing: 2px; text-transform: uppercase; }
    .nav-logo-text .nome { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 800; color: var(--white); text-transform: uppercase; }
    .nav-links { display: flex; gap: 4px; list-style: none; }
    .nav-links a {
      font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700;
      text-transform: uppercase; letter-spacing: 1px;
      color: var(--light); text-decoration: none;
      padding: 8px 16px; border-radius: 4px;
      transition: all 0.2s;
    }
    .nav-links a:hover { color: var(--orange); background: rgba(239,127,45,0.1); }
    .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
    .hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: 0.3s; }

    /* ─── HERO ─── */
    #inicio {
      min-height: 100vh;
      background: #1a1a1a;
      display: flex; align-items: center; justify-content: center;
      text-align: center; padding: 100px 20px 60px;
      position: relative; overflow: hidden;
    }
    /* Slideshow de fundo */
    .hero-slideshow {
      position: absolute; inset: 0; z-index: 0;
    }
    .hero-slide {
      position: absolute; inset: 0;
      background-size: cover; background-position: center;
      opacity: 0; transition: opacity 1.2s ease-in-out;
    }
    .hero-slide.active { opacity: 1; }
    /* Overlay escuro sobre as fotos para manter legibilidade do texto */
    .hero-overlay {
      position: absolute; inset: 0; z-index: 1;
      background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.40) 50%,
        rgba(0,0,0,0.70) 100%
      );
    }
    /* Indicadores do slideshow */
    .hero-dots {
      position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
      display: flex; gap: 8px; z-index: 3;
    }
    .hero-dot {
      width: 8px; height: 8px; border-radius: 50%;
      background: rgba(255,255,255,0.3); border: none; cursor: pointer;
      transition: background 0.3s, transform 0.3s; padding: 0;
    }
    .hero-dot.active { background: var(--orange); transform: scale(1.3); }
    #inicio::before {
      content: '';
      position: absolute; inset: 0; z-index: 2;
      background: radial-gradient(ellipse at center, rgba(239,127,45,0.10) 0%, transparent 70%);
      pointer-events: none;
    }
    .hero-ping {
      position: absolute; font-size: 300px; opacity: 0.04; z-index: 2;
      font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
      color: var(--orange); user-select: none; letter-spacing: -10px;
      top: 50%; left: 50%; transform: translate(-50%, -50%);
    }
    .hero-content { position: relative; z-index: 3; max-width: 800px; }
    .hero-badge {
      display: inline-block;
      background: var(--orange); color: #fff;
      font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700;
      letter-spacing: 3px; text-transform: uppercase;
      padding: 6px 18px; border-radius: 2px; margin-bottom: 24px;
    }
    .hero-logo { display: block; height: 110px; width: auto; margin: 0 auto 24px; filter: drop-shadow(0 4px 24px rgba(239,127,45,0.4)); }
    .hero-title {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: clamp(36px, 7vw, 72px); font-weight: 900;
      line-height: 1; text-transform: uppercase; color: var(--white);
      margin-bottom: 12px;
    }
    .hero-title span { color: var(--orange); }
    .hero-sub {
      font-size: 17px; color: var(--muted); margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto;
    }
    .hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
    .btn-primary {
      background: var(--orange); color: #fff;
      font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700;
      letter-spacing: 1px; text-transform: uppercase;
      padding: 14px 32px; border-radius: 4px; border: none;
      text-decoration: none; cursor: pointer; transition: all 0.2s;
      display: inline-flex; align-items: center; gap: 8px;
    }
    .btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
    .btn-secondary {
      background: transparent; color: var(--white);
      font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700;
      letter-spacing: 1px; text-transform: uppercase;
      padding: 14px 32px; border-radius: 4px; border: 2px solid rgba(255,255,255,0.3);
      text-decoration: none; cursor: pointer; transition: all 0.2s;
      display: inline-flex; align-items: center; gap: 8px;
    }
    .btn-secondary:hover { border-color: var(--orange); color: var(--orange); }
    .hero-stats {
      display: flex; gap: 40px; justify-content: center; margin-top: 56px;
      flex-wrap: wrap;
    }
    .stat-item { text-align: center; }
    .stat-num {
      font-family: 'Barlow Condensed', sans-serif; font-size: 42px; font-weight: 900;
      color: var(--orange); line-height: 1;
    }
    .stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

    /* ─── SECTION SHARED ─── */
    section { padding: 80px 20px; }
    .section-inner { max-width: 1100px; margin: 0 auto; }
    .section-header { margin-bottom: 48px; }
    .section-tag {
      font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700;
      letter-spacing: 3px; text-transform: uppercase; color: var(--orange);
      display: block; margin-bottom: 8px;
    }
    .section-title {
      font-family: 'Barlow Condensed', sans-serif; font-size: clamp(28px, 5vw, 46px);
      font-weight: 900; text-transform: uppercase; color: var(--white);
      line-height: 1;
    }
    .section-title span { color: var(--orange); }
    .section-divider {
      width: 50px; height: 4px; background: var(--orange);
      border-radius: 2px; margin-top: 14px;
    }

    /* ─── HISTÓRICO ─── */
    #historico { background: var(--bg-darker); }
    .historico-intro {
      font-size: 14px; color: var(--muted); margin-bottom: 32px; line-height: 1.7;
      max-width: 680px;
      padding: 14px 18px; border-left: 3px solid var(--orange);
      background: rgba(239,127,45,0.06); border-radius: 0 6px 6px 0;
    }
    .hist-cards-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 40px;
    }
    .hist-card {
      background: var(--bg-card); border-radius: 10px; padding: 20px 18px;
      border: 1px solid rgba(255,255,255,0.07);
      display: flex; flex-direction: column; align-items: center; text-align: center;
      transition: transform 0.2s, border-color 0.2s;
      position: relative; overflow: hidden;
    }
    .hist-card::before {
      content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
      background: var(--orange);
    }
    .hist-card:hover { transform: translateY(-4px); border-color: rgba(239,127,45,0.4); }
    .hist-card-icon { font-size: 28px; margin-bottom: 10px; }
    .hist-card-label {
      font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700;
      text-transform: uppercase; letter-spacing: 2px; color: var(--orange); margin-bottom: 8px;
    }
    .hist-card-name {
      font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 900;
      color: var(--white); margin-bottom: 4px; line-height: 1.1;
    }
    .hist-card-value {
      font-family: 'Barlow Condensed', sans-serif; font-size: 32px; font-weight: 900;
      color: var(--orange); line-height: 1;
    }
    .hist-card-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
    .hist-table-title {
      font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 800;
      text-transform: uppercase; color: var(--white); margin-bottom: 14px; margin-top: 32px;
      display: flex; align-items: center; gap: 10px;
    }
    .hist-table-title::after {
      content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1);
    }
    .hist-table-wrap { overflow-x: auto; border-radius: 8px; margin-bottom: 8px; }
    .hist-table { width: 100%; border-collapse: collapse; }
    .hist-table thead tr { background: linear-gradient(90deg, #2a2a2a, #3a3a3a); }
    .hist-table thead th {
      font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700;
      text-transform: uppercase; letter-spacing: 1px; color: var(--orange);
      padding: 12px 14px; text-align: left; border-bottom: 2px solid var(--orange);
    }
    .hist-table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.2s; }
    .hist-table tbody tr:hover { background: rgba(239,127,45,0.05); }
    .hist-table tbody td { padding: 11px 14px; font-size: 13px; color: var(--light); }
    .hist-pos { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 900; color: var(--muted); }
    .hist-pos.g { color: #ffd700; } .hist-pos.s { color: #c0c0c0; } .hist-pos.b { color: #cd7f32; }
    .hist-bar-wrap { display: flex; align-items: center; gap: 8px; }
    .hist-bar {
      height: 6px; border-radius: 3px; background: var(--orange); opacity: 0.8;
      min-width: 4px; transition: width 0.5s;
    }
    .hist-num { font-family: 'Barlow Condensed', sans-serif; font-size: 17px; font-weight: 800; color: var(--orange); min-width: 32px; }
    .hist-pct-win { font-size: 12px; color: var(--muted); }
    .hist-notice {
      margin-top: 24px; padding: 14px 18px;
      background: rgba(239,127,45,0.06); border-left: 3px solid var(--orange);
      border-radius: 0 6px 6px 0; font-size: 13px; color: var(--muted);
      display: flex; align-items: center; gap: 10px;
    }

    /* ─── RANKING ─── */
    #ranking { background: var(--bg-dark); }
    .ranking-tabs {
      display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap;
    }
    .tab-btn {
      font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700;
      letter-spacing: 1px; text-transform: uppercase;
      padding: 10px 22px; border-radius: 4px; cursor: pointer;
      background: var(--bg-card); color: var(--muted); border: 1px solid #555;
      transition: all 0.2s;
    }
    .tab-btn.active, .tab-btn:hover {
      background: var(--orange); color: #fff; border-color: var(--orange);
    }
    .ranking-table-wrap { overflow-x: auto; border-radius: 8px; }
    table { width: 100%; border-collapse: collapse; }
    thead tr { background: var(--orange); }
    thead th {
      font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700;
      text-transform: uppercase; letter-spacing: 1px; color: #fff;
      padding: 14px 16px; text-align: left;
    }
    tbody tr { border-bottom: 1px solid rgba(255,255,255,0.06); transition: background 0.2s; }
    tbody tr:hover { background: rgba(239,127,45,0.07); }
    tbody td { padding: 13px 16px; font-size: 14px; color: var(--light); }
    .rank-pos {
      font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 900;
      color: var(--muted); min-width: 36px; display: inline-block; text-align: center;
    }
    .rank-pos.gold { color: #ffd700; }
    .rank-pos.silver { color: #c0c0c0; }
    .rank-pos.bronze { color: #cd7f32; }
    .player-name { font-weight: 600; color: var(--white); font-size: 15px; }
    .player-club { font-size: 12px; color: var(--muted); }
    .rank-pts {
      font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 800;
      color: var(--orange);
    }
    .rank-notice {
      margin-top: 20px; padding: 14px 18px;
      background: rgba(239,127,45,0.08); border-left: 3px solid var(--orange);
      border-radius: 0 6px 6px 0; font-size: 13px; color: var(--muted);
      display: flex; align-items: center; gap: 10px;
    }
    .rank-tab-content { display: none; }
    .rank-tab-content.active { display: block; }

    /* ─── CALENDARIO ─── */
    #calendario { background: var(--bg); }
    .cal-year-badge {
      display: inline-block; background: rgba(239,127,45,0.15);
      border: 1px solid var(--orange); color: var(--orange);
      font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700;
      letter-spacing: 2px; text-transform: uppercase; padding: 5px 14px; border-radius: 4px;
      margin-bottom: 28px;
    }
    .cal-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;
    }
    .cal-card {
      background: var(--bg-card); border-radius: 10px; overflow: hidden;
      border: 1px solid rgba(255,255,255,0.08); transition: transform 0.2s, border-color 0.2s;
      position: relative;
    }
    .cal-card:hover { transform: translateY(-4px); border-color: var(--orange); }
    .cal-card-top {
      background: var(--bg-darker); padding: 14px 18px;
      display: flex; align-items: center; justify-content: space-between;
    }
    .cal-etapa {
      font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700;
      text-transform: uppercase; letter-spacing: 2px; color: var(--orange);
    }
    .cal-status {
      font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 12px;
      text-transform: uppercase; letter-spacing: 1px;
    }
    .status-done { background: rgba(80,200,120,0.15); color: #50c878; border: 1px solid rgba(80,200,120,0.3); }
    .status-next { background: rgba(239,127,45,0.2); color: var(--orange); border: 1px solid rgba(239,127,45,0.4); }
    .status-soon { background: rgba(150,150,150,0.1); color: var(--muted); border: 1px solid rgba(150,150,150,0.2); }
    .cal-card-body { padding: 18px; }
    .cal-title { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 12px; text-transform: uppercase; }
    .cal-info { display: flex; flex-direction: column; gap: 7px; }
    .cal-info-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
    .cal-info-row i { color: var(--orange); width: 16px; text-align: center; }
    .cal-info-row span { color: var(--light); }

    /* ─── GALLERY ─── */
    #galeria { background: var(--bg-dark); }
    .gallery-topbar {
      display: flex; align-items: center; justify-content: space-between;
      flex-wrap: wrap; gap: 16px; margin-bottom: 28px;
    }
    .gallery-select-wrap {
      position: relative; display: inline-flex; align-items: center;
    }
    .gallery-select-wrap i {
      position: absolute; left: 14px; color: var(--orange); font-size: 16px; pointer-events: none;
    }
    .gallery-select {
      font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700;
      text-transform: uppercase; letter-spacing: 1px;
      padding: 11px 44px 11px 40px; border-radius: 6px; cursor: pointer;
      background: var(--bg-card); color: var(--white); border: 1px solid #666;
      appearance: none; -webkit-appearance: none; min-width: 260px;
      transition: border-color 0.2s;
    }
    .gallery-select:hover, .gallery-select:focus { border-color: var(--orange); outline: none; }
    .gallery-select-arrow {
      position: absolute; right: 14px; color: var(--muted); pointer-events: none; font-size: 12px;
    }
    .gallery-count {
      font-size: 13px; color: var(--muted);
    }
    .gallery-count span { color: var(--orange); font-weight: 700; }
    .gallery-loader {
      text-align: center; padding: 60px 0; color: var(--muted);
    }
    .gallery-loader i { font-size: 36px; color: var(--orange); animation: spin 1s linear infinite; display: block; margin-bottom: 12px; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
      gap: 8px;
    }
    .gallery-item {
      position: relative; overflow: hidden; border-radius: 6px;
      aspect-ratio: 4/3; cursor: pointer; background: var(--bg-card);
      border: 1px solid rgba(255,255,255,0.06);
    }
    .gallery-item img {
      width: 100%; height: 100%; object-fit: cover;
      transition: transform 0.3s;
    }
    .gallery-item:hover img { transform: scale(1.1); }
    .gallery-item-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
      opacity: 0; transition: opacity 0.3s;
      display: flex; align-items: flex-end; padding: 8px;
    }
    .gallery-item:hover .gallery-item-overlay { opacity: 1; }
    .gallery-item-title { font-size: 11px; color: #fff; font-weight: 600; line-height: 1.2; }
    .gallery-zoom-icon {
      position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0);
      background: rgba(239,127,45,0.85); color: #fff;
      width: 36px; height: 36px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center; font-size: 14px;
      transition: transform 0.25s;
    }
    .gallery-item:hover .gallery-zoom-icon { transform: translate(-50%,-50%) scale(1); }
    .gallery-error {
      text-align: center; padding: 40px; color: var(--muted); font-size: 14px;
    }
    .gallery-error a { color: var(--orange); }
    .flickr-credit {
      margin-top: 20px; text-align: right; font-size: 12px; color: var(--muted);
    }
    .flickr-credit a { color: var(--orange); text-decoration: none; }
    .flickr-credit a:hover { text-decoration: underline; }

    /* ─── PAGINAÇÃO GALERIA ─── */
    .gallery-pagination {
      display: flex; align-items: center; justify-content: center;
      gap: 6px; flex-wrap: wrap; margin-top: 28px;
    }
    .gallery-page-btn {
      font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700;
      min-width: 38px; height: 38px; border-radius: 6px; border: 2px solid #444;
      background: var(--bg-card); color: var(--muted); cursor: pointer;
      transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px;
    }
    .gallery-page-btn:hover:not(:disabled) { border-color: var(--orange); color: var(--white); }
    .gallery-page-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }
    .gallery-page-btn.disabled, .gallery-page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
    .gallery-page-dots { color: var(--muted); font-size: 16px; padding: 0 4px; }

    /* ─── LIGHTBOX ─── */
    .lightbox {
      display: none; position: fixed; inset: 0; z-index: 9999;
      background: rgba(0,0,0,0.92); backdrop-filter: blur(4px);
      align-items: center; justify-content: center;
    }
    .lightbox.open { display: flex; }
    .lightbox-inner {
      position: relative; max-width: 90vw; max-height: 90vh;
      display: flex; flex-direction: column; align-items: center;
    }
    .lightbox-inner img {
      max-width: 90vw; max-height: 80vh; border-radius: 8px;
      object-fit: contain; box-shadow: 0 8px 60px rgba(0,0,0,0.8);
    }
    .lightbox-caption {
      margin-top: 12px; font-size: 14px; color: var(--light); text-align: center;
    }
    .lightbox-close {
      position: absolute; top: -40px; right: 0;
      background: none; border: none; color: var(--white); font-size: 28px;
      cursor: pointer; transition: color 0.2s;
    }
    .lightbox-close:hover { color: var(--orange); }
    .lightbox-nav {
      position: absolute; top: 50%; transform: translateY(-50%);
      background: rgba(239,127,45,0.8); border: none; color: #fff;
      width: 44px; height: 44px; border-radius: 50%; font-size: 18px;
      cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: center;
    }
    .lightbox-nav:hover { background: var(--orange); }
    .lightbox-prev { left: -56px; }
    .lightbox-next { right: -56px; }

    /* ─── SOBRE ─── */
    #sobre { background: var(--bg); }
    .sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
    .sobre-text p { color: var(--light); line-height: 1.8; margin-bottom: 16px; }
    .sobre-features { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
    .sobre-feature {
      display: flex; align-items: center; gap: 14px;
      background: var(--bg-card); padding: 14px 18px; border-radius: 8px;
      border-left: 3px solid var(--orange);
    }
    .sobre-feature i { font-size: 22px; color: var(--orange); width: 28px; text-align: center; }
    .sobre-feature-text strong { display: block; font-size: 14px; color: var(--white); }
    .sobre-feature-text span { font-size: 12px; color: var(--muted); }
    .sobre-img-wrap {
      display: flex; flex-direction: column; align-items: center; gap: 20px;
    }
    .sobre-logo-big { height: 150px; width: auto; filter: drop-shadow(0 4px 32px rgba(239,127,45,0.35)); }
    .sobre-founded {
      text-align: center;
      background: var(--bg-card); padding: 20px 32px; border-radius: 8px;
      border: 1px solid rgba(239,127,45,0.3);
    }
    .sobre-founded .year { font-family: 'Barlow Condensed', sans-serif; font-size: 52px; font-weight: 900; color: var(--orange); }
    .sobre-founded .year-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; }

    /* ─── FOOTER ─── */
    footer {
      background: var(--bg-darker); border-top: 2px solid var(--orange);
      padding: 40px 20px 24px;
    }
    .footer-inner { max-width: 1100px; margin: 0 auto; }
    .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
    .footer-brand { display: flex; align-items: flex-start; gap: 14px; }
    .footer-brand img { height: 54px; }
    .footer-brand-text .name { font-family: 'Barlow Condensed', sans-serif; font-size: 17px; font-weight: 800; text-transform: uppercase; color: var(--white); }
    .footer-brand-text .sub { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
    .footer-col h4 {
      font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700;
      text-transform: uppercase; letter-spacing: 2px; color: var(--orange); margin-bottom: 14px;
    }
    .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
    .footer-col ul a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
    .footer-col ul a:hover { color: var(--orange); }
    .footer-social { display: flex; gap: 10px; margin-top: 8px; }
    .social-btn {
      width: 38px; height: 38px; border-radius: 6px; background: var(--bg-card);
      display: flex; align-items: center; justify-content: center;
      color: var(--muted); font-size: 16px; text-decoration: none;
      border: 1px solid #555; transition: all 0.2s;
    }
    .social-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px;
      display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
    }
    .footer-bottom p { font-size: 12px; color: var(--muted); }
    .footer-bottom a { color: var(--orange); text-decoration: none; }

    /* ─── CBTM GRUPOS UPDATED STYLES ─── */
    .cbtm-grupo-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
    .cbtm-grupo-table th {
        font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700;
        text-transform: uppercase; letter-spacing: 1px; color: var(--orange);
        padding: 8px 10px; border-bottom: 2px solid rgba(239,127,45,0.3);
    }
    .cbtm-grupo-table td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .cbtm-atleta-nome { font-weight: 700; color: #fff; font-size: 14px; }
    .cbtm-atleta-clube { font-size: 11px; color: var(--muted); text-transform: uppercase; }
    
    .cbtm-badge {
        display: inline-block; padding: 2px 8px; border-radius: 4px;
        font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 800;
        min-width: 35px; text-align: center;
    }
    .cbtm-badge-rak { background: rgba(239,127,45,0.15); color: var(--orange); border: 1px solid rgba(239,127,45,0.3); }
    .cbtm-badge-rat { background: rgba(255,255,255,0.05); color: #ccc; border: 1px solid rgba(255,255,255,0.1); }

    .cbtm-atualizado {
        margin-top: 15px; font-size: 11px; color: var(--muted); text-align: right; font-style: italic;
    }

    /* ─── SCROLL TO TOP ─── */
    .scroll-top {
      position: fixed; bottom: 28px; right: 28px; z-index: 999;
      width: 44px; height: 44px; border-radius: 8px;
      background: var(--orange); color: #fff; border: none; cursor: pointer;
      font-size: 18px; display: flex; align-items: center; justify-content: center;
      opacity: 0; transition: opacity 0.3s, transform 0.3s;
      transform: translateY(20px);
    }
    .scroll-top.visible { opacity: 1; transform: translateY(0); }
    .scroll-top:hover { background: var(--orange-dark); }

    /* ─── INTRO / SPLASH SCREEN ─── */
    #lvtmIntro {
      position: fixed; inset: 0; z-index: 99999;
      background: #0d0d0d;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      overflow: hidden;
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    #lvtmIntro.intro-hide {
      opacity: 0;
      pointer-events: none;
    }
    #lvtmIntro.intro-done { display: none; }

    /* Linhas de fundo animadas */
    .intro-bg-lines {
      position: absolute; inset: 0;
      background:
        repeating-linear-gradient(
          90deg,
          transparent,
          transparent 80px,
          rgba(239,127,45,0.03) 80px,
          rgba(239,127,45,0.03) 81px
        ),
        repeating-linear-gradient(
          0deg,
          transparent,
          transparent 80px,
          rgba(239,127,45,0.03) 80px,
          rgba(239,127,45,0.03) 81px
        );
      animation: introGridPulse 3s ease-in-out infinite alternate;
    }
    @keyframes introGridPulse {
      from { opacity: 0.4; }
      to   { opacity: 1; }
    }

    /* Brilho central radial */
    #lvtmIntro::before {
      content: '';
      position: absolute; inset: 0;
      background: radial-gradient(ellipse 60% 50% at 50% 50%,
        rgba(239,127,45,0.12) 0%,
        transparent 70%
      );
      animation: introPulse 2.5s ease-in-out infinite alternate;
    }
    @keyframes introPulse {
      from { opacity: 0.5; transform: scale(0.95); }
      to   { opacity: 1;   transform: scale(1.05); }
    }

    /* Container central */
    .intro-content {
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 36px; position: relative; z-index: 2;
    }

    /* Logo */
    .intro-logo-wrap {
      opacity: 0;
      transform: scale(0.6) translateY(20px);
      animation: introLogoIn 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.3s forwards;
    }
    .intro-logo {
      height: 120px; width: auto;
      filter: drop-shadow(0 0 40px rgba(239,127,45,0.6))
              drop-shadow(0 0 80px rgba(239,127,45,0.25));
    }
    .intro-logo-fallback {
      font-size: 80px;
      filter: drop-shadow(0 0 30px rgba(239,127,45,0.5));
    }
    @keyframes introLogoIn {
      to { opacity: 1; transform: scale(1) translateY(0); }
    }

    /* Texto */
    .intro-text-wrap {
      text-align: center;
      opacity: 0;
      transform: translateY(24px);
      animation: introTextIn 0.7s ease 0.9s forwards;
    }
    @keyframes introTextIn {
      to { opacity: 1; transform: translateY(0); }
    }
    .intro-league {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: clamp(28px, 6vw, 56px);
      font-weight: 900; text-transform: uppercase;
      color: #fff; letter-spacing: 4px;
      line-height: 1;
    }
    .intro-sport {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: clamp(20px, 4vw, 38px);
      font-weight: 600; text-transform: uppercase;
      color: var(--orange); letter-spacing: 6px;
      margin-top: 6px; line-height: 1;
    }
    .intro-bar {
      width: 0px; height: 3px;
      background: var(--orange);
      margin: 20px auto;
      animation: introBarExpand 0.6s ease 1.4s forwards;
    }
    @keyframes introBarExpand {
      to { width: 180px; }
    }
    .intro-season {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 13px; font-weight: 700;
      letter-spacing: 6px; text-transform: uppercase;
      color: var(--muted);
      opacity: 0;
      animation: introFadeIn 0.5s ease 1.8s forwards;
    }
    @keyframes introFadeIn {
      to { opacity: 1; }
    }

    /* Barra de progresso */
    .intro-progress {
      position: absolute; bottom: 0; left: 0; right: 0;
      height: 3px; background: rgba(255,255,255,0.06);
    }
    .intro-progress-fill {
      height: 100%; width: 0%;
      background: linear-gradient(90deg, var(--orange-dark), var(--orange));
      animation: introProgressFill 2.8s ease 0.2s forwards;
    }
    @keyframes introProgressFill {
      to { width: 100%; }
    }

    /* Faixas que fecham a tela ao sair (cortina estilo cinema) */
    #lvtmIntro::after {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(
        to bottom,
        rgba(239,127,45,0.06) 0%,
        transparent 40%,
        transparent 60%,
        rgba(239,127,45,0.06) 100%
      );
      pointer-events: none;
    }

    /* ─── RANKING ETAPAS SELETOR ─── */
    .rank-etapas-wrap {
      display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px;
    }
    .rank-etapa-btn {
      font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700;
      text-transform: uppercase; letter-spacing: 1px;
      padding: 10px 20px; border-radius: 6px; border: 2px solid #444;
      background: #2a2a2a; color: #ccc; cursor: pointer; transition: all 0.2s;
    }
    .rank-etapa-btn:hover:not(:disabled) { border-color: var(--orange); color: var(--white); }
    .rank-etapa-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }
    .rank-etapa-btn.locked {
      background: #1e1e1e; border-color: #333; color: #555; cursor: not-allowed;
      filter: none;
    }
    .rank-etapa-btn.locked:hover { border-color: #333; color: #555; }

    /* ─── TROFÉU EFICIÊNCIA ─── */
    #trofeu { background: var(--bg-darker); }
    .rank-table { width: 100%; border-collapse: collapse; }
    .rank-table-wrap { overflow-x: auto; border-radius: 8px; margin-bottom: 8px; }
    .trofeu-etapa-block { margin-bottom: 40px; }
    .trofeu-etapa-title {
      font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 800;
      text-transform: uppercase; color: var(--white); margin-bottom: 14px;
      display: flex; align-items: center; gap: 10px; letter-spacing: 1px;
    }
    .trofeu-etapa-title::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }


    /* ─────────────────────────────────────────────
       PWA – BANNER GUIA DE INSTALAÇÃO (Android + iOS)
    ───────────────────────────────────────────── */
    .pwa-guide-banner {
      position: fixed;
      bottom: 0; left: 0; right: 0;
      z-index: 99999;
      transform: translateY(110%);
      opacity: 0;
      transition: transform 0.45s cubic-bezier(0.34,1.2,0.64,1), opacity 0.3s ease;
      pointer-events: none;
    }
    .pwa-guide-banner.pwa-visible {
      transform: translateY(0);
      opacity: 1;
      pointer-events: all;
    }
    .pwa-guide-banner.pwa-hiding {
      transform: translateY(110%);
      opacity: 0;
      pointer-events: none;
    }
    .pwa-guide-inner {
      background: linear-gradient(160deg, #1a1a1e 0%, #222226 100%);
      border-top: 2px solid rgba(239,127,45,0.45);
      border-radius: 22px 22px 0 0;
      padding: 10px 20px 32px;
      box-shadow: 0 -10px 50px rgba(0,0,0,0.75);
      position: relative;
      max-height: 90vh;
      overflow-y: auto;
    }
    /* Handle bar */
    .pwa-guide-inner::before {
      content: '';
      display: block;
      width: 44px; height: 4px;
      background: rgba(255,255,255,0.18);
      border-radius: 2px;
      margin: 6px auto 16px;
    }
    .pwa-guide-close {
      position: absolute; top: 16px; right: 16px;
      background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.55);
      border: none; border-radius: 50%;
      width: 30px; height: 30px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; font-size: 13px;
      transition: background 0.2s;
    }
    .pwa-guide-close:hover { background: rgba(255,255,255,0.2); }
    .pwa-guide-header {
      display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
    }
    .pwa-guide-logo {
      width: 54px; height: 54px; object-fit: contain; flex-shrink: 0;
      border-radius: 14px;
      background: rgba(239,127,45,0.1);
      padding: 6px;
    }
    .pwa-guide-title {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 20px; font-weight: 800;
      text-transform: uppercase; color: #fff; letter-spacing: 0.5px;
    }
    .pwa-guide-sub { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 2px; }

    /* Passos */
    .pwa-guide-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
    .pwa-guide-step { display: flex; align-items: flex-start; gap: 12px; }
    .pwa-guide-num {
      width: 28px; height: 28px; flex-shrink: 0;
      background: var(--orange); border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 14px; font-weight: 800; color: #fff;
    }
    .pwa-guide-text {
      font-size: 14px; color: rgba(255,255,255,0.82);
      line-height: 1.55; padding-top: 4px;
    }
    .pwa-guide-text strong { color: #fff; }

    /* Pills de ícone */
    .pwa-share-pill {
      display: inline-flex; align-items: center; justify-content: center;
      background: rgba(239,127,45,0.18); border: 1px solid rgba(239,127,45,0.45);
      border-radius: 7px; padding: 3px 7px;
      margin: 0 3px; vertical-align: middle;
      color: var(--orange);
    }
    .pwa-android-dots { background: rgba(100,160,255,0.15); border-color: rgba(100,160,255,0.4); color: #7ab4ff; }
    .pwa-tag-pill {
      display: inline-flex; align-items: center; gap: 4px;
      background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.22);
      border-radius: 8px; padding: 4px 10px;
      font-size: 13px; color: #fff; font-weight: 600;
      margin: 2px 2px; vertical-align: middle;
    }

    /* Seta inferior (iOS) */
    .pwa-bottom-arrow {
      display: flex; flex-direction: column; align-items: center; gap: 0;
      margin-top: 4px; margin-bottom: 4px;
      animation: pwaBounce 1.6s ease-in-out infinite;
    }
    .pwa-arrow-line {
      width: 2px; height: 28px;
      background: linear-gradient(to bottom, transparent, var(--orange));
    }
    .pwa-arrow-tip {
      width: 0; height: 0;
      border-left: 7px solid transparent;
      border-right: 7px solid transparent;
      border-top: 10px solid var(--orange);
    }
    .pwa-arrow-label {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 12px; font-weight: 700;
      color: var(--orange); text-transform: uppercase; letter-spacing: 1px;
      margin-top: 6px;
    }

    /* Seta superior direita (Android) */
    .pwa-top-arrow {
      display: flex; flex-direction: column; align-items: flex-end;
      padding-right: 8px; margin-bottom: 6px;
      animation: pwaBounce 1.6s ease-in-out infinite;
    }
    .pwa-top-arrow-label {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 12px; font-weight: 700;
      color: var(--orange); text-transform: uppercase; letter-spacing: 1px;
      margin-bottom: 4px;
    }
    .pwa-top-arrow-tip {
      width: 0; height: 0;
      border-left: 7px solid transparent;
      border-right: 7px solid transparent;
      border-bottom: 10px solid var(--orange);
    }
    .pwa-top-arrow-line {
      width: 2px; height: 24px;
      background: linear-gradient(to top, transparent, var(--orange));
    }

    @keyframes pwaBounce {
      0%, 100% { transform: translateY(0); }
      50%       { transform: translateY(5px); }
    }

    /* Botões de ação */
    .pwa-guide-actions {
      display: flex; gap: 10px; margin-top: 16px;
    }
    .pwa-btn-installed {
      flex: 1;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 15px; font-weight: 700; text-transform: uppercase;
      background: var(--orange); color: #fff;
      border: none; border-radius: 12px;
      padding: 13px 10px; cursor: pointer;
      transition: background 0.2s, transform 0.1s;
    }
    .pwa-btn-installed:active { transform: scale(0.97); }
    .pwa-btn-installed:hover { background: #d4691a; }
    .pwa-btn-later {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 14px; font-weight: 600;
      background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.5);
      border: 1px solid rgba(255,255,255,0.12); border-radius: 12px;
      padding: 13px 16px; cursor: pointer;
      transition: background 0.2s;
    }
    .pwa-btn-later:hover { background: rgba(255,255,255,0.12); }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 768px) {
      nav { padding: 0 20px; }
      .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #1a1a1a; padding: 16px; gap: 4px; border-bottom: 2px solid var(--orange); }
      .nav-links.open { display: flex; }
      .hamburger { display: flex; }
      .sobre-grid { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr; gap: 24px; }
      .lightbox-prev { left: -16px; }
      .lightbox-next { right: -16px; }
    }
/* ═══════════════════════════════════════════════
   RESULTADOS CBTM
═══════════════════════════════════════════════ */
#resultados-cbtm { background: #111; padding: 80px 0; }
#resultados-cbtm .section-desc { color: #999; font-size: 15px; margin-top: 8px; }

/* ─── CBTM – Loading ─── */
.cbtm-loading, .cbtm-loading-view {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 48px 20px; color: #999; font-size: 15px;
}
.cbtm-spinner {
  width: 24px; height: 24px; border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--orange); border-radius: 50%;
  animation: cbtmSpin 0.7s linear infinite; flex-shrink: 0;
}
@keyframes cbtmSpin { to { transform: rotate(360deg); } }

/* ─── CBTM – Erro ─── */
.cbtm-erro {
  background: rgba(200,50,50,0.1); border: 1px solid rgba(200,50,50,0.3);
  border-radius: 10px; padding: 16px 20px; color: #f88; text-align: center;
  margin: 20px 0;
}

/* ─── CBTM – Dropdown de Categoria ─── */
.cbtm-cat-row {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
  flex-wrap: wrap;
}
.cbtm-cat-label {
  font-family: 'Barlow Condensed', sans-serif; font-size: 13px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--orange); white-space: nowrap;
}
.cbtm-cat-select-wrap {
  position: relative; flex: 1; min-width: 220px; max-width: 480px;
}
.cbtm-cat-select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 8px;
  color: #fff; font-family: 'Barlow', sans-serif; font-size: 14px;
  font-weight: 600; padding: 10px 40px 10px 14px;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.cbtm-cat-select:focus { border-color: var(--orange); background: rgba(255,255,255,0.08); }
.cbtm-cat-select option { background: #2a2a2a; color: #fff; }
.cbtm-cat-arrow {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: #888; font-size: 11px; pointer-events: none;
}

/* ─── CBTM – Abas Grupo / Resultado ─── */
.cbtm-view-tabs {
  display: flex; gap: 0; margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  overflow: hidden; width: fit-content;
}
.cbtm-view-tab {
  background: rgba(255,255,255,0.04); color: #999;
  border: none; border-right: 1px solid rgba(255,255,255,0.1);
  padding: 11px 24px; font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 7px;
}
.cbtm-view-tab:last-child { border-right: none; }
.cbtm-view-tab:hover { background: rgba(255,255,255,0.08); color: #fff; }
.cbtm-view-tab.active {
  background: var(--orange); color: #fff;
}
.cbtm-view-tab.active:hover { background: var(--orange-dark); }

/* ─── CBTM – Painel ─── */
.cbtm-painel { min-height: 80px; }

/* ─── CBTM – Grid de Grupos ─── */
.cbtm-grupos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.cbtm-grupo-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 18px;
  transition: border-color 0.2s;
}
.cbtm-grupo-card:hover { border-color: rgba(239,127,45,0.35); }
.cbtm-grupo-titulo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px; font-weight: 800; color: var(--orange);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 10px; display: flex; align-items: center; gap: 7px;
}
.cbtm-grupo-lista {
  list-style: none; padding: 0; margin: 0;
}
.cbtm-grupo-atleta {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
}
.cbtm-grupo-atleta:last-child { border-bottom: none; }
.cbtm-grupo-info strong { color: #ddd; display: block; line-height: 1.3; }
.cbtm-grupo-info small  { color: #888; font-size: 12px; }
.cbtm-grupo-info em     { color: var(--orange); font-size: 12px; font-style: normal; }

/* Tabela estruturada de grupos */
.cbtm-grupo-table-wrap { overflow-x: auto; }
.cbtm-grupo-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.cbtm-grupo-table th {
  background: rgba(239,127,45,0.15); color: var(--orange);
  text-align: left; padding: 7px 10px; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
}
.cbtm-grupo-table td {
  padding: 7px 10px; color: #ccc;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cbtm-grupo-table tr:last-child td { border-bottom: none; }
.cbtm-grupo-table tr:hover td { background: rgba(255,255,255,0.03); }

/* ─── CBTM – Grid de Jogos / Resultados ─── */
.cbtm-jogos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.cbtm-jogo-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 16px;
  transition: border-color 0.2s;
}
.cbtm-jogo-card:hover { border-color: rgba(255,120,0,0.4); }
.cbtm-jogo-titulo {
  font-size: 12px; font-weight: 700; color: var(--orange);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.cbtm-jogo-placar {
  font-size: 22px; font-weight: 800; color: #fff;
  font-family: 'Barlow Condensed', sans-serif; margin-bottom: 10px;
}
.cbtm-jogo-atletas { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.cbtm-atleta {
  font-size: 14px; color: #aaa; padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cbtm-atleta.vencedor { color: #fff; font-weight: 700; }
.cbtm-atleta.vencedor::before { content: '🏆 '; }
.cbtm-jogo-info {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px;
  font-size: 11px; color: #666; margin-top: 6px;
}

/* ─── CBTM – Utilitários ─── */
.cbtm-sem-dados {
  text-align: center; color: #666; padding: 40px 20px; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.cbtm-atualizado {
  text-align: right; color: #555; font-size: 12px; margin-top: 16px;
}
.cbtm-link-cbtm {
  display: inline-block; color: #aaa; font-size: 14px;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 8px;
  padding: 8px 16px; transition: all 0.2s; text-decoration: none;
}
.cbtm-link-cbtm:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

/* ─── CBTM – Responsivo ─── */
@media (max-width: 600px) {
  .cbtm-view-tabs { width: 100%; }
  .cbtm-view-tab  { flex: 1; justify-content: center; padding: 10px 12px; font-size: 13px; }
  .cbtm-grupos-grid, .cbtm-jogos-grid { grid-template-columns: 1fr; }
  .cbtm-cat-row { gap: 8px; }
  .cbtm-cat-select-wrap { min-width: 100%; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVO MOBILE — Android & iOS
   Breakpoints: 768px (tablet), 480px (mobile)
═══════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ─── Seções gerais ─── */
  section { padding: 56px 16px; }
  .section-inner { padding: 0 4px; }
  .section-header { margin-bottom: 32px; }
  .section-title { font-size: clamp(28px, 7vw, 48px); }

  /* ─── Hero ─── */
  #inicio { min-height: 100svh; padding: 0 16px; }
  .hero-logo { height: 80px; margin-bottom: 16px; }
  .hero-title { font-size: clamp(32px, 8vw, 56px); }
  .hero-sub { font-size: 15px; margin-bottom: 28px; }
  .hero-btns { flex-direction: column; align-items: center; gap: 10px; }
  .hero-btns .btn-primary,
  .hero-btns .btn-secondary { width: 100%; max-width: 300px; justify-content: center; }
  .hero-stats { gap: 24px; margin-top: 40px; }
  .stat-num { font-size: 34px; }

  /* ─── Nav ─── */
  nav { padding: 0 16px; }
  .nav-links { display: none; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: #1a1a1a;
    padding: 16px 20px; gap: 4px; border-bottom: 2px solid var(--orange); z-index: 999; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  /* ─── Hall da Fama ─── */
  .hist-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 28px; }
  .hist-card { padding: 14px 10px; }
  .hist-card-name { font-size: 15px; }
  .hist-card-value { font-size: 26px; }
  .hist-table-wrap { margin: 0 -4px; }
  .hist-table thead th { padding: 10px 8px; font-size: 11px; }
  .hist-table tbody td { padding: 9px 8px; font-size: 12px; }
  #histTabs { gap: 6px; }
  #histTabs .tab-btn { font-size: 12px; padding: 8px 14px; }
  #histPaginacao .gallery-page-btn { min-width: 32px; height: 32px; font-size: 13px; }

  /* ─── Ranking ─── */
  .ranking-tabs { gap: 6px; }
  .tab-btn { font-size: 12px; padding: 8px 14px; }
  .ranking-table-wrap { margin: 0 -4px; }

  /* ─── Galeria ─── */
  .gallery-topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .gallery-select-wrap { width: 100%; }
  .gallery-select-wrap select { width: 100%; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
  .gallery-pagination { gap: 4px; margin-top: 20px; }
  .gallery-page-btn { min-width: 32px; height: 32px; font-size: 13px; }

  /* ─── Sobre ─── */
  .sobre-grid { grid-template-columns: 1fr; gap: 32px; }

  /* ─── Footer ─── */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* ─── Trofeu ─── */
  #trofeu .ranking-table-wrap { margin: 0 -4px; }

  /* ─── Lightbox ─── */
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-caption { font-size: 13px; padding: 12px 16px; }
}

@media (max-width: 480px) {

  /* ─── Hero ─── */
  .hero-logo { height: 64px; }
  .hero-title { font-size: clamp(28px, 9vw, 44px); }
  .hero-sub { font-size: 14px; }
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 28px; }
  .stat-label { font-size: 10px; }

  /* ─── Hall da Fama ─── */
  .hist-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hist-card { padding: 12px 8px; }
  .hist-card-icon { font-size: 22px; }
  .hist-card-name { font-size: 13px; }
  .hist-card-value { font-size: 22px; }

  /* ─── Ranking / Hist tables ─── */
  .ranking-table-wrap table,
  .hist-table-wrap table { font-size: 11px; }
  .ranking-table-wrap th,
  .ranking-table-wrap td,
  .hist-table thead th,
  .hist-table tbody td { padding: 8px 6px; font-size: 11px; }
  .tab-btn { font-size: 11px; padding: 7px 10px; }

  /* ─── Galeria ─── */
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 5px; }

  /* ─── Seções ─── */
  section { padding: 44px 12px; }
  .section-title { font-size: clamp(24px, 8vw, 38px); }

  /* ─── Botões Hero ─── */
  .btn-primary, .btn-secondary { padding: 12px 24px; font-size: 14px; }
}


/* ═══════════════════════════════════════════════════════════
   GRUPOS DA ETAPA — Seção com Abas por Categoria  v38
═══════════════════════════════════════════════════════════ */

/* ── Loading ── */
#grupos-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 20px;
  color: #aaa;
  font-size: 15px;
}
#grupos-loading .cbtm-spinner {
  width: 28px; height: 28px;
  border: 3px solid #333;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: cbtm-spin .8s linear infinite;
}

/* ── Título do evento ── */
#grupos-ev-title {
  display: none;
  text-align: center;
  font-size: 14px;
  color: #aaa;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

/* ── Data de sync ── */
#grupos-sync-time {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-bottom: 28px;
}

/* ══════════════════════════════════════════════
   GRUPOS – TOPBAR + SELECT DE CATEGORIA
══════════════════════════════════════════════ */
.grupos-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

/* Wrapper do select (igual ao gallery-select-wrap) */
.grupos-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 480px;
}
.grupos-select-wrap > .fa-layer-group {
  position: absolute;
  left: 14px;
  color: var(--orange);
  font-size: 15px;
  pointer-events: none;
  z-index: 1;
}
.grupos-cat-select {
  width: 100%;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 44px 12px 40px;
  border-radius: 8px;
  cursor: pointer;
  background: #1e1e1e;
  color: #eee;
  border: 2px solid #333;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color .2s;
  /* iOS fix: prevent zoom on focus */
  font-size: 16px;
}
.grupos-cat-select:focus,
.grupos-cat-select:hover {
  border-color: var(--orange);
  outline: none;
}
.grupos-cat-arrow {
  position: absolute;
  right: 14px;
  color: #666;
  pointer-events: none;
  font-size: 12px;
}

/* Contador de categorias */
.grupos-cat-info {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #555;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   GRUPOS – GRID DE CARDS
══════════════════════════════════════════════ */
.grupos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* ── Card de grupo ── */
.grupos-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
.grupos-card:hover { border-color: #444; }

.grupos-card-titulo {
  background: #242424;
  color: #f97316;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #2f2f2f;
}

/* ── Tabela interna ── */
.grupos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.grupos-table colgroup {}
.grupos-table thead tr { background: #1e1e1e; }
.grupos-table th {
  padding: 7px 8px;
  color: #666;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-align: left;
  overflow: hidden;
}
.grupos-table th:nth-child(2),
.grupos-table th:nth-child(3) { text-align: center; width: 48px; }

.grupos-table td {
  padding: 9px 8px;
  border-top: 1px solid #222;
  color: #ccc;
  vertical-align: middle;
  overflow: hidden;
}
.grupos-table tr.top-player td       { color: #fff; }
.grupos-table tr.top-player .atleta-nome { font-weight: 700; }

.atleta-nome {
  font-size: 13px;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
}
.atleta-stat { text-align: center; }

.stat-rak {
  display: inline-block;
  min-width: 28px;
  background: #1b3a6b;
  color: #7bb3f0;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  text-align: center;
}
.stat-rat {
  display: inline-block;
  min-width: 32px;
  background: #1e2a1e;
  color: #6dbf6d;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  text-align: center;
}

/* ── Empty / sem dados ── */
.grupos-empty-inner {
  text-align: center;
  padding: 48px 20px;
  color: #888;
  font-size: 15px;
  line-height: 1.7;
}
.grupos-sem-dados {
  text-align: center;
  color: #666;
  padding: 16px;
  font-size: 13px;
}

/* ── Link CBTM ── */
#grupos-cbtm-link {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #aaa;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 10px 22px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .18s, color .18s;
}
#grupos-cbtm-link:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ══════════════════════════════════════════════
   GRUPOS – RESPONSIVO TABLET (≤ 768px)
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .grupos-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .grupos-select-wrap {
    max-width: 100%;
    width: 100%;
  }
  .grupos-cat-select { width: 100%; }
  .grupos-cat-info   { text-align: right; }

  .grupos-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .grupos-table     { font-size: 12px; }
  .grupos-card-titulo { font-size: 12px; padding: 8px 12px; }
  .grupos-table th:nth-child(2),
  .grupos-table th:nth-child(3) { width: 42px; }
}

/* ══════════════════════════════════════════════
   GRUPOS – RESPONSIVO MOBILE (≤ 480px)
   iOS Safari + Android Chrome
══════════════════════════════════════════════ */
@media (max-width: 480px) {
  /* 2 colunas em mobile */
  .grupos-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .grupos-card-titulo {
    font-size: 11px;
    padding: 7px 10px;
    gap: 5px;
  }

  /* Tabela: nome ocupa resto, badges compactos */
  .grupos-table          { font-size: 11px; }
  .grupos-table th       { padding: 6px 6px; font-size: 9px; }
  .grupos-table td       { padding: 7px 6px; }
  .grupos-table th:nth-child(2),
  .grupos-table th:nth-child(3) { width: 36px; }

  .atleta-nome           { font-size: 11px; }
  .stat-rak, .stat-rat   { font-size: 10px; min-width: 24px; padding: 2px 3px; }

  /* Select maior para toque */
  .grupos-cat-select {
    font-size: 15px;
    padding: 14px 44px 14px 42px;
  }
  .grupos-cat-info { font-size: 12px; }
}

/* ══════════════════════════════════════════════
   GRUPOS – TELAS MUITO PEQUENAS (≤ 360px)
   iPhone SE, Galaxy A, etc.
══════════════════════════════════════════════ */
@media (max-width: 360px) {
  .grupos-grid {
    grid-template-columns: 1fr;   /* 1 coluna só */
    gap: 10px;
  }
  .grupos-table { font-size: 12px; }
  .atleta-nome  { font-size: 12px; }
}
