:root {
    --orange: #FF6B00;
    --orange-bright: #FF8C00;
    --orange-glow: rgba(255,107,0,0.4);
    --black: #0A0A0A;
    --dark: #111111;
    --card: #181818;
    --card2: #202020;
    --border: #2a2a2a;
    --text: #E8E8E8;
    --muted: #777;
    --gold: #FFD700;
    --gold-bg: rgba(255,215,0,0.08);
    --silver: #C0C0C0;
    --silver-bg: rgba(192,192,192,0.06);
    --bronze: #CD7F32;
    --bronze-bg: rgba(205,127,50,0.06);
    --copa: rgba(30,100,255,0.07);
    --copa-border: rgba(30,100,255,0.4);
    --rebaixamento: rgba(200,40,40,0.1);
    --rebaixamento-border: rgba(200,40,40,0.35);
  }

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

  body {
    background: var(--black);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* NOISE OVERLAY */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
  }

  /* HERO / HEADER */
  header {
    position: relative;
    background: var(--dark);
    border-bottom: 2px solid var(--orange);
    overflow: hidden;
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
  }

  header::before {
    content: '';
    position: absolute;
    top: -60px; left: -60px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
    pointer-events: none;
  }

  header::after {
    content: '';
    position: absolute;
    bottom: -80px; right: 40px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, transparent 70%);
    pointer-events: none;
  }

  .header-inner {
    max-width: min(1240px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0 16px;
    position: relative;
    z-index: 1;
  }

  .logo-area {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--orange) 0%, #c94a00 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 24px var(--orange-glow), 0 0 0 2px rgba(255,107,0,0.3);
    flex-shrink: 0;
  }

  .logo-text h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 38px;
    line-height: 1;
    letter-spacing: 2px;
    color: #fff;
  }

  .logo-text h1 span {
    color: var(--orange);
  }

  .logo-text p {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 2px;
  }

  .header-badge {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange);
    background: rgba(255,107,0,0.1);
    border: 1px solid rgba(255,107,0,0.3);
    border-radius: 4px;
    padding: 5px 12px;
  }

  /* MAIN — pouco respiro lateral para os “boards” (tabela / galeria) quase à largura útil */
  main {
    max-width: min(1240px, 100%);
    margin: 0 auto;
    padding-top: 32px;
    padding-bottom: 60px;
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
    position: relative;
    z-index: 1;
  }

  /* SECTION TITLE */
  .section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
  }

  .section-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 2px;
    color: #fff;
  }

  .section-header .accent-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), transparent);
  }

  .section-header .section-icon {
    font-size: 20px;
  }

  section { margin-bottom: 52px; }

  /* STATUS BAR */
  .status-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
  }

  .status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 16px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 8px #2ecc71;
    animation: pulse 2s infinite;
    transition: background 0.3s, box-shadow 0.3s;
  }
  .status-dot.closed {
    background: #e74c3c;
    box-shadow: 0 0 8px #e74c3c;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }

  /* BACK BUTTON */
  .back-btn-wrap {
    padding: 20px 0 4px;
  }
  .back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--card);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 900;
    line-height: 36px;
    text-align: center;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    flex-shrink: 0;
    -webkit-font-smoothing: antialiased;
  }
  .back-btn:hover { color: var(--orange); border-color: var(--orange); background: rgba(255,107,0,0.08); }

  /* TABLE */
  .table-wrapper { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }

  .standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }

  .standings-table thead tr {
    background: #1a1a1a;
  }

  .standings-table thead th {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 12px 10px;
    text-align: left;
  }

  .standings-table thead th.center { text-align: center; }

  .standings-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    position: relative;
  }

  .standings-table tbody tr:hover { background: rgba(255,255,255,0.03); }
  .standings-table tbody tr:last-child { border-bottom: none; }

  .standings-table td {
    padding: 11px 10px;
    vertical-align: middle;
  }

  .standings-table td.center { text-align: center; }

  /* Zone styles */
  .row-gold {
    background: var(--gold-bg) !important;
    border-left: 3px solid var(--gold) !important;
  }
  .row-silver {
    background: var(--silver-bg) !important;
    border-left: 3px solid var(--silver) !important;
  }
  .row-bronze {
    background: var(--bronze-bg) !important;
    border-left: 3px solid var(--bronze) !important;
  }
  .row-copa {
    background: var(--copa);
    border-left: 3px solid var(--copa-border);
  }
  /* Rebaixamento: faixa vermelha via gradiente (igual largura/posição que rebaixamento+copa) — evita desalinhamento border vs gradiente. */
  .row-rebaixamento {
    border-left: none !important;
    background: linear-gradient(
      90deg,
      var(--rebaixamento-border) 0,
      var(--rebaixamento-border) 3px,
      var(--rebaixamento) 3px,
      var(--rebaixamento) 100%
    ) !important;
  }

  /* Rebaixamento + Copa: 3px vermelho + 1.5px azul (50% mais fina) + fundo; mesmos 3px iniciais que .row-rebaixamento. */
  .row-rebaixamento.row-copa {
    border-left: none !important;
    background: linear-gradient(
      90deg,
      var(--rebaixamento-border) 0,
      var(--rebaixamento-border) 3px,
      var(--copa-border) 3px,
      var(--copa-border) 4.5px,
      var(--rebaixamento) 4.5px,
      var(--rebaixamento) 100%
    ) !important;
  }

  /* Position badge */
  .pos-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--muted);
    background: var(--card2);
  }

  .pos-gold { background: var(--gold); color: #000 !important; box-shadow: 0 2px 12px rgba(255,215,0,0.4); }
  .pos-silver { background: var(--silver); color: #000 !important; box-shadow: 0 2px 8px rgba(192,192,192,0.3); }
  .pos-bronze { background: var(--bronze); color: #fff !important; box-shadow: 0 2px 8px rgba(205,127,50,0.3); }
  .pos-rebaixamento { color: #e44; }

  /* Team name */
  .team-info {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .team-shield {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    color: var(--orange);
    font-family: 'Bebas Neue', sans-serif;
    flex-shrink: 0;
    overflow: visible;
  }

  .team-shield img { width: 36px; height: 36px; object-fit: contain; border-radius: 0; }

  .team-name-main {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.1;
  }

  .team-owner {
    font-size: 11px;
    color: var(--muted);
    margin-top: 1px;
  }

  .pts-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    color: var(--orange);
  }

  .num-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 14px;
  }

  /* Zone legend */
  .legend-bar {
    display: flex;
    gap: 20px;
    margin-top: 0;
    flex-wrap: wrap;
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
  }

  .legend-dot {
    width: 10px; height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
  }

  /* ZONE DIVIDER */
  .zone-divider td {
    padding: 0 !important;
    height: 0;
  }

  .zone-divider-line {
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rebaixamento-border), transparent);
  }

  /* MATCHES */
  .matches-grid {
    display: grid;
    gap: 12px;
  }

  .match-card {
    background: #1c1c1c;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color 0.2s, transform 0.15s;
    position: relative;
    overflow: hidden;
  }

  .match-card:hover {
    border-color: rgba(255,107,0,0.3);
    transform: translateY(-1px);
  }

  .match-card::before { display: none; }

  .match-round {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 13px;
    color: var(--orange);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    min-width: 80px;
    line-height: 1;
  }

  .match-round small {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0;
    text-transform: none;
    margin-top: 2px;
  }

  .match-teams {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
  }

  .match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 100px;
  }

  .match-team-shield {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    color: var(--orange);
    position: relative;
    overflow: visible;
    flex-shrink: 0;
  }
  .match-shield-medal {
    position: absolute;
    bottom: 4px;
    right: -6px;
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
  }

  .match-team-shield img { width: 44px; height: 44px; object-fit: contain; border-radius: 0; }

  .match-team-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    line-height: 1.1;
  }

  .match-team-owner {
    font-size: 10px;
    color: var(--muted);
  }

  .chip-em-campo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #999;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 2px 7px;
  }
  .chip-em-campo svg {
    opacity: 0.8;
    flex-shrink: 0;
  }

  .chip-capitao {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #999;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 2px 7px;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match-chips-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 3px;
    flex-wrap: nowrap;
  }

  @media (max-width: 600px) {
    .chip-capitao {
      max-width: 70px;
    }
    .chip-em-campo, .chip-capitao {
      font-size: 9px;
      padding: 2px 5px;
    }
    .chip-cap-icon {
      width: 12px;
      height: 12px;
      font-size: 9px;
    }
  }
  .chip-cap-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: rgba(255,255,255,0.15);
    color: #999;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
  }

  .match-vs {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: var(--border);
    letter-spacing: 2px;
    flex-shrink: 0;
  }

  .match-score {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 120px;
    justify-content: flex-end;
  }

  .score-pts {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    line-height: 1;
  }

  .score-pts.home { color: var(--text); }
  .score-pts.away { color: var(--muted); }
  .score-pts.winner { color: var(--orange); }

  .score-sep {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: var(--border);
  }

  /* GOLEADAS */
  .goleadas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
  }

  .goleada-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
  }

  .goleada-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,107,0,0.4);
  }

  .goleada-rank {
    position: absolute;
    top: 12px;
    right: 14px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 40px;
    line-height: 1;
    opacity: 0.08;
    color: var(--orange);
    pointer-events: none;
    user-select: none;
  }

  .goleada-header {
    padding: 14px 18px 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .goleada-medal {
    font-size: 20px;
  }

  .goleada-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
  }

  .goleada-rodada {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    color: var(--orange);
    margin-left: auto;
  }

  .goleada-body {
    padding: 16px 18px;
  }

  .goleada-placar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }

  .goleada-team {
    flex: 1;
  }

  .goleada-team-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1;
  }

  .goleada-team-owner {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
  }

  .goleada-score-big {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .goleada-pts {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 38px;
    line-height: 1;
    color: var(--orange);
  }

  .goleada-pts.loser {
    color: var(--muted);
    font-size: 28px;
  }

  .goleada-sep {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: var(--border);
  }

  .goleada-diff {
    display: inline-block;
    background: rgba(255,107,0,0.15);
    color: var(--orange);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 3px 9px;
    border: 1px solid rgba(255,107,0,0.25);
  }

  /* LOADING */
  .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    gap: 14px;
    color: var(--muted);
  }

  .loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  @keyframes spin { to { transform: rotate(360deg); } }

  .error-state {
    background: rgba(200,40,40,0.06);
    border: 1px solid rgba(200,40,40,0.25);
    border-radius: 10px;
    padding: 20px 24px;
    color: #e88;
    font-size: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }

  /* RODADA BADGE */
  .rodada-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,107,0,0.1);
    border: 1px solid rgba(255,107,0,0.25);
    border-radius: 6px;
    padding: 4px 12px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--orange);
  }

  /* FOOTER */
  footer {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 24px max(8px, env(safe-area-inset-left, 0px)) 24px max(8px, env(safe-area-inset-right, 0px));
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
  }

  footer span { color: var(--orange); }

  /* SCROLLBAR */
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--orange) var(--dark);
  }

  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: var(--dark); }
  ::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--orange-bright); }
  ::-webkit-scrollbar-corner { background: var(--dark); }

  /* ANIMATIONS */
  .fade-in {
    animation: fadeIn 0.4s ease forwards;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── TABS ── */
  .tabs-nav {
    display: flex;
    gap: 4px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 24px;
  }

  .tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: transparent;
    border: none;
    border-radius: 7px;
    color: var(--muted);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 9px 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
  }

  .tab-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }

  .tab-btn.active {
    background: var(--orange);
    color: #000;
    box-shadow: 0 2px 12px rgba(255,107,0,0.35);
  }

  .tab-icon { font-size: 15px; }

  .tab-panel { display: none; animation: fadeIn 0.3s ease; }
  .tab-panel.active { display: block; }

  /* Mobile tabs — icon on top, label below */
  @media (max-width: 600px) {
    .tab-btn {
      flex-direction: column;
      gap: 3px;
      padding: 7px 4px;
      font-size: 9px;
      letter-spacing: 0.5px;
    }
    .tab-icon { font-size: 18px; }
  }

  /* ── COPA DA LIGA (aba) ── */
  .copa-liga-root {
    max-width: 900px;
    margin: 0 auto;
  }

  .copa-liga-intro p {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    letter-spacing: 0.4px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 10px;
  }

  .copa-liga-note {
    font-size: 13px !important;
    opacity: 0.95;
  }

  .copa-liga-section {
    margin-bottom: 28px;
  }

  .copa-liga-section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    letter-spacing: 1px;
    color: #fff;
    margin: 0 0 12px;
  }

  .copa-liga-clinched-empty {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    color: var(--muted);
    padding: 14px 16px;
    border: 1px dashed rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.06);
  }

  .copa-liga-clinched-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 16px;
    max-width: 100%;
  }

  .copa-liga-clinched-card {
    margin: 0;
    padding: 0;
    aspect-ratio: 1;
    min-height: 0;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.35));
  }

  /* Grid 2 linhas: escudo (flexível) | bloco fixo (nome + stats) — evita sobreposição */
  .copa-liga-clinched-card-inner {
    position: relative;
    height: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 12px 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background:
      radial-gradient(ellipse 90% 65% at 50% 22%, rgba(255, 220, 140, 0.16), transparent 58%),
      linear-gradient(168deg, #1f1c14 0%, #0f0d0a 50%, #16130f 100%);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06) inset,
      0 1px 0 rgba(212, 175, 55, 0.12) inset;
    overflow: hidden;
  }

  .copa-liga-clinched-card-kicker {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 2;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(232, 208, 150, 0.95);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 3px 7px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
  }

  .copa-liga-clinched-card-shield-wrap {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 4px 2px;
    overflow: hidden;
  }

  .copa-liga-clinched-card-shield {
    line-height: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .copa-liga-clinched-card-shield .team-shield {
    width: auto;
    height: auto;
    max-width: min(100%, 118px);
    max-height: min(100%, 118px);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .copa-liga-clinched-card-shield .team-shield img {
    width: auto !important;
    height: auto !important;
    max-width: min(100%, 118px);
    max-height: min(100%, 118px);
    aspect-ratio: 1;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
  }

  .copa-liga-clinched-card-lower {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    width: 100%;
    padding-top: 4px;
    flex-shrink: 0;
    min-height: 0;
  }

  .copa-liga-clinched-card-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(14px, 4.2vw, 18px);
    letter-spacing: 0.4px;
    line-height: 1.15;
    color: #fff;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin: 0;
    padding: 0 2px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  }

  .copa-liga-clinched-card-bottom {
    width: 100%;
    padding: 8px 2px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
  }

  .copa-liga-clinched-card-meta {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25px;
    color: rgba(255, 252, 245, 0.85);
    margin: 0;
    line-height: 1.25;
  }

  .copa-liga-clinched-card-foot {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(12px, 3.4vw, 15px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
  }

  .copa-liga-clinched-card-foot-ord {
    color: #d4af37;
  }

  .copa-liga-clinched-card-foot-rest {
    color: rgba(255, 252, 245, 0.92);
  }

  @media (max-width: 599px) {
    .copa-liga-clinched-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }

    .copa-liga-clinched-card-inner {
      padding: 11px 8px 13px;
      border-radius: 12px;
    }

    .copa-liga-clinched-card-shield .team-shield,
    .copa-liga-clinched-card-shield .team-shield img {
      max-width: min(100%, 102px);
      max-height: min(100%, 102px);
    }
  }

  @media (min-width: 520px) {
    .copa-liga-clinched-grid {
      grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    }

    .copa-liga-clinched-card-shield .team-shield,
    .copa-liga-clinched-card-shield .team-shield img {
      max-width: min(100%, 110px);
      max-height: min(100%, 110px);
    }
  }

  @media (min-width: 900px) {
    .copa-liga-clinched-card-shield .team-shield,
    .copa-liga-clinched-card-shield .team-shield img {
      max-width: min(100%, 120px);
      max-height: min(100%, 120px);
    }
  }

  .copa-liga-table-hint {
    font-size: 12px;
    color: var(--muted);
    font-family: 'Barlow Condensed', sans-serif;
    margin: -4px 0 12px;
    letter-spacing: 0.3px;
  }

  .copa-liga-table-wrap {
    margin-top: 4px;
  }

  .copa-liga-table .copa-liga-row-zone {
    background: rgba(30, 100, 255, 0.07);
  }

  .copa-liga-table .copa-liga-row-clinched {
    background: rgba(30, 100, 255, 0.16);
    box-shadow: inset 3px 0 0 #1e64ff;
  }

  .copa-liga-pos {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    color: var(--muted);
  }

  .copa-liga-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .copa-liga-name-cell .team-shield {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .copa-liga-name-cell .team-shield img {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  .copa-liga-name-cell > span {
    font-weight: 600;
    font-size: 13px;
    word-break: break-word;
  }

  /* ── HALL DA FAMA ── */
  .hall-root {
    max-width: 1100px;
    margin: 0 auto;
  }

  .hall-intro {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    letter-spacing: 0.6px;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 28px;
  }

  .hall-section {
    margin-bottom: 36px;
  }

  .hall-section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 1px;
    color: #fff;
    margin: 0 0 14px;
  }

  .hall-atuais-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .hall-atual-card {
    position: relative;
    border: 1px solid rgba(255, 107, 0, 0.28);
    border-radius: 12px;
    background:
      radial-gradient(110% 100% at 50% 0%, rgba(255, 107, 0, 0.12), transparent 52%),
      linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 140px;
  }

  .hall-atual-emoji {
    font-size: 26px;
    line-height: 1;
    opacity: 0.92;
  }

  .hall-atual-kicker {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange);
    line-height: 1.25;
  }

  .hall-atual-season {
    margin: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.5px;
  }

  .hall-atual-team {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    width: 100%;
    min-width: 0;
  }

  .hall-atual-team .team-shield {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
  }

  .hall-atual-team .team-shield img {
    width: 44px;
    height: 44px;
    object-fit: contain;
  }

  .hall-atual-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 0.5px;
    color: #fff;
    line-height: 1.15;
    word-break: break-word;
  }

  .hall-history-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
  }

  .hall-history-block {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 14px 14px 16px;
    min-width: 0;
  }

  .hall-history-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--orange);
    margin: 0 0 12px;
  }

  .hall-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-family: 'Barlow Condensed', sans-serif;
  }

  .hall-history-table th {
    text-align: left;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hall-history-table td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
  }

  .hall-history-table tr:last-child td {
    border-bottom: none;
  }

  .hall-td-season {
    width: 88px;
    color: rgba(232, 228, 220, 0.65);
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .hall-team-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .hall-team-inline .team-shield {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .hall-team-inline .team-shield img {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  .hall-team-name {
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.3px;
    word-break: break-word;
  }

  .hall-history-empty {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    font-family: 'Barlow Condensed', sans-serif;
  }

  .hall-history-empty code {
    font-size: 11px;
    color: rgba(255, 107, 0, 0.85);
    word-break: break-all;
  }

  .hall-palmares-note {
    font-size: 12px;
    color: var(--muted);
    font-family: 'Barlow Condensed', sans-serif;
    margin: -6px 0 14px;
    letter-spacing: 0.3px;
  }

  .hall-palmares-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .hall-palmares-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    padding: 12px 14px;
    min-width: 0;
  }

  .hall-palmares-team {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
  }

  .hall-palmares-team .team-shield {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .hall-palmares-team .team-shield img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }

  .hall-palmares-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 0.5px;
    color: #fff;
    line-height: 1.2;
    word-break: break-word;
  }

  .hall-palmares-meta {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.4px;
    margin-top: 2px;
  }

  .hall-palmares-total {
    flex-shrink: 0;
    text-align: right;
    font-family: 'Bebas Neue', sans-serif;
    color: var(--orange);
    line-height: 1;
  }

  .hall-palmares-total span {
    display: block;
    font-size: 36px;
    letter-spacing: 1px;
  }

  .hall-palmares-total small {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 4px;
  }

  @media (max-width: 900px) {
    .hall-atuais-grid,
    .hall-history-grid {
      grid-template-columns: 1fr;
    }
  }

  .galeria-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 1px;
  }

  /* ── TABLE RESPONSIVE ── */
  .table-wrapper { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }

  .standings-table { font-size: 13px; }

  .standings-table th, .standings-table td { padding: 10px 10px; }

  .standings-table th.center, .standings-table td.center { text-align: center; }

  .pc-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: rgba(232,228,220,0.6);
  }

  /* Download button */
  /* ACTION BAR */
  .action-bar {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }
  .download-btn, .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
  }
  .download-btn:hover { border-color: var(--orange); color: var(--orange); }
  .share-btn { border-color: rgba(255,255,255,0.15); color: var(--muted); }
  .share-btn:hover { border-color: var(--orange); color: var(--orange); }

  /* Confrontos nav */
  .confrontos-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
  }

  .confrontos-nav-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .confrontos-nav-btn:hover { border-color: var(--orange); color: var(--orange); }
  .confrontos-nav-btn:disabled { opacity: 0.3; cursor: default; }

  .confrontos-rodada-label {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
  }

  .confrontos-rodada-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    color: var(--orange);
    letter-spacing: 2px;
    line-height: 1.05;
  }

  .confrontos-rodada-live {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #2ecc71;
    animation: pulse 2s infinite;
    line-height: 1.2;
  }

  /* Escalação chip */
  .chip-escalado {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    border: 1px solid;
  }
  .chip-escalado.sim { background: rgba(0,200,80,0.1); border-color: rgba(0,200,80,0.4); color: #0c6; }
  .chip-escalado.nao { background: rgba(220,50,50,0.1); border-color: rgba(220,50,50,0.4); color: #e44; }

  @media (max-width: 600px) {
    main {
      padding-left: max(6px, env(safe-area-inset-left, 0px));
      padding-right: max(6px, env(safe-area-inset-right, 0px));
    }
    header {
      padding-left: max(6px, env(safe-area-inset-left, 0px));
      padding-right: max(6px, env(safe-area-inset-right, 0px));
    }
    .standings-table { font-size: 11px; }
    .standings-table th, .standings-table td { padding: 8px 5px; }
    .team-name-main { font-size: 11px !important; max-width: min(46vw, 200px) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .team-owner { display: none; }
    .team-shield { width: 24px !important; height: 24px !important; }
    .team-shield img { width: 24px !important; height: 24px !important; }
    /* Copa da Liga — cards dourados: escudo grande (exceção à regra da tabela) */
    .copa-liga-clinched-card-shield .team-shield {
      width: auto !important;
      height: auto !important;
      max-width: min(100%, 102px) !important;
      max-height: min(100%, 102px) !important;
    }
    .copa-liga-clinched-card-shield .team-shield img {
      width: auto !important;
      height: auto !important;
      max-width: min(100%, 102px) !important;
      max-height: min(100%, 102px) !important;
    }
    .pos-badge { width: 22px; height: 22px; font-size: 13px; }
    .pts-value { font-size: 15px; }
    .pc-value, .num-value { font-size: 11px; }
  }

  /* ── GALERIA — TABELA ESTILO OLIMPÍADAS ── */
  /* Componente: Medalhas empilhadas horizontalmente (estilo olímpico) */
  .medals-total-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
  }
  
  .medals-total-icon span {
    font-size: 13px;
    line-height: 1;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
  }
  
  .medals-total-icon span:nth-child(1) {
    z-index: 3;
    position: relative;
  }
  
  .medals-total-icon span:nth-child(2) {
    z-index: 2;
    position: relative;
    margin-left: -6px;
  }
  
  .medals-total-icon span:nth-child(3) {
    z-index: 1;
    position: relative;
    margin-left: -6px;
  }
  
  @media (max-width: 700px) {
    .medals-total-icon span {
      font-size: 11px;
    }
    .medals-total-icon span:nth-child(2),
    .medals-total-icon span:nth-child(3) {
      margin-left: -5px;
    }
  }

  .galeria-table-wrap {
    overflow-x: hidden;
    border-radius: 12px;
    border: 1px solid var(--border);
  }

  .galeria-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }

  .galeria-table thead tr {
    background: var(--card2);
  }

  .galeria-table thead th {
    padding: 12px 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
  }

  .galeria-table thead th:nth-child(2) { text-align: left; }
  
  /* Header da coluna total - centralizado */
  .galeria-table thead th.th-total {
    padding: 8px 4px;
    text-align: center;
    vertical-align: middle;
  }

  .galeria-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    cursor: default;
  }

  .galeria-table tbody tr:last-child { border-bottom: none; }
  .galeria-table tbody tr:hover { background: rgba(255,255,255,0.03); }

  .galeria-table tbody tr.gal-gold   { background: var(--gold-bg);   }
  .galeria-table tbody tr.gal-silver { background: var(--silver-bg); }
  .galeria-table tbody tr.gal-bronze { background: var(--bronze-bg); }
  .galeria-table tbody tr.gal-gold:hover   { background: rgba(255,215,0,0.12);   }
  .galeria-table tbody tr.gal-silver:hover { background: rgba(192,192,192,0.09); }
  .galeria-table tbody tr.gal-bronze:hover { background: rgba(205,127,50,0.09);  }

  .galeria-table td {
    padding: 10px 10px;
    text-align: center;
    vertical-align: middle;
  }

  .galeria-table td:nth-child(2) { text-align: left; }

  .galeria-pos {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 17px;
    color: var(--muted);
    min-width: 28px;
    display: inline-block;
  }
  .galeria-pos.p1 { color: var(--gold); }
  .galeria-pos.p2 { color: var(--silver); }
  .galeria-pos.p3 { color: var(--bronze); }

  .galeria-team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .galeria-escudo {
    width: 28px; height: 28px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .galeria-team-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .galeria-team-owner {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .galeria-medal-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    line-height: 1;
    min-width: 32px;
  }
  .galeria-medal-num.ouro   { color: var(--gold); }
  .galeria-medal-num.prata  { color: var(--silver); }
  .galeria-medal-num.bronze { color: var(--bronze); }
  .galeria-medal-num.zero   { color: var(--border); }

  .galeria-total {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    color: var(--orange);
    min-width: 32px;
  }
  .galeria-total.zero { color: var(--muted); font-size: 16px; }


  .nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .nav-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
  }
  .nav-link:hover { color: var(--orange); border-color: var(--orange); }

  .mobile-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--dark);
    position: relative;
    z-index: 1;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu .nav-link { text-align: center; justify-content: center; }

  /* Mobile */
  @media (max-width: 700px) {
    .logo-text h1 { font-size: 28px; }
    .match-teams { gap: 6px; }
    .match-team { min-width: 70px; }
    .match-team-name { font-size: 11px; }
    .goleadas-grid { grid-template-columns: 1fr; }
    /* Galeria table mobile */
    .galeria-table { table-layout: fixed; width: 100%; }
    .galeria-table th:nth-child(1), .galeria-table td:nth-child(1) { width: 30px; padding: 8px 4px; }
    .galeria-table th:nth-child(2), .galeria-table td:nth-child(2) { padding: 8px 6px; }
    .galeria-table th:nth-child(3), .galeria-table td:nth-child(3),
    .galeria-table th:nth-child(4), .galeria-table td:nth-child(4),
    .galeria-table th:nth-child(5), .galeria-table td:nth-child(5) { width: 28px; padding: 8px 2px; }
    /* Coluna TOTAL - medalhas empilhadas */
    .galeria-table th:nth-child(6), .galeria-table td:nth-child(6) { width: 42px; padding: 8px 6px; }
    .galeria-table-wrap { overflow-x: hidden; }
    .galeria-medals-header { font-size:10px; line-height:1.15; }
    .galeria-team-name { font-size: 13px; max-width: min(42vw, 180px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .galeria-team-owner { display: none; }
    .galeria-escudo { width: 22px; height: 22px; }
    .galeria-medal-num { font-size: 16px; }
    .galeria-total { font-size: 16px; }
    .galeria-pos { font-size: 14px; }
  }

  /* RECORDES */
  .recordes-section { margin-bottom: 48px; }

  .recordes-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 0.5px solid rgba(255,255,255,0.15);
  }

  .recordes-icon { font-size: 20px; }

  .recordes-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--white);
    text-transform: uppercase;
  }

  .goleada-card.rank-1 { border-color: rgba(255,215,0,0.4);   box-shadow: 0 0 16px rgba(255,215,0,0.1); }
  .goleada-card.rank-2 { border-color: rgba(192,192,192,0.3); box-shadow: 0 0 16px rgba(192,192,192,0.07); }
  .goleada-card.rank-3 { border-color: rgba(205,127,50,0.35); box-shadow: 0 0 16px rgba(205,127,50,0.08); }
  .goleada-card.pior {
    border-color: rgba(220,50,50,0.45);
    box-shadow: 0 0 16px rgba(220,50,50,0.1);
  }

  .goleada-card.pior .goleada-pts { color: #e44; }
  .goleada-card.pior .goleada-pts.loser { color: var(--muted); }
  .goleada-card.pior::before { background: #e44; }

  /* GALERIA DOS CAMPEÕES */
  .galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
  }

  .galeria-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
  }

  .galeria-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,107,0,0.3);
  }

  .galeria-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border);
  }

  .galeria-rank-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: var(--muted);
    min-width: 24px;
    line-height: 1;
  }

  .galeria-rank-num.rank-1 { color: var(--gold); text-shadow: 0 0 12px rgba(255,215,0,0.4); }
  .galeria-rank-num.rank-2 { color: var(--silver); }
  .galeria-rank-num.rank-3 { color: var(--bronze); }

  .galeria-shield {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 15px;
    color: var(--orange);
  }

  .galeria-shield img { width: 40px; height: 40px; object-fit: contain; }

  .galeria-team-info { flex: 1; min-width: 0; }

  .galeria-team-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .galeria-team-owner {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
  }

  .galeria-medals {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    align-items: center;
    justify-content: space-between;
  }

  .galeria-medal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    background: var(--card2);
    border-radius: 8px;
    padding: 8px 4px;
  }

  .galeria-medal-icon { font-size: 20px; line-height: 1; }

  .galeria-medal-count {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    line-height: 1;
    color: var(--text);
  }

  .galeria-medal-count.zero { color: var(--border); }

  .galeria-medal-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
  }

  /* Inline score no confronto */
  .match-inline-score {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 110px;
    flex-shrink: 0;
  }

  .mis-pts {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    line-height: 1;
    color: var(--muted);
  }

  .mis-pts.winner { color: var(--orange); }

  .mis-sep {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    color: var(--border);
    line-height: 1;
  }

  /* COUNTDOWN */
  .countdown-pill { background: rgba(255,107,0,0.08) !important; border-color: rgba(255,107,0,0.3) !important; }

  /* MODAL ESCALAÇÃO */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  .modal-overlay.open { display: flex; }

  .modal-box {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    animation: fadeIn 0.25s ease;
  }

  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
  }

  .modal-team-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
  }

  .modal-team-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    color: var(--white);
    line-height: 1;
  }

  .modal-team-owner-name {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
  }

  .modal-rodada-nav {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .modal-close {
    background: var(--card2);
    border: 1px solid var(--border);
    color: var(--muted);
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
  }
  .modal-close:hover { color: var(--white); border-color: var(--orange); }

  .modal-body { padding: 20px; }

  /* ESCALAÇÃO EM LISTA */
  .esc-pontuacao-card {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    gap: 32px;
    margin-bottom: 16px;
  }

  .esc-pontuacao-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .esc-pontuacao-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
  }

  .esc-pontuacao-valor {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    line-height: 1;
    color: var(--orange);
  }

  .esc-lista { display: flex; flex-direction: column; gap: 8px; }

  .esc-jogador-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    transition: border-color 0.2s;
  }

  .esc-jogador-card:hover { border-color: rgba(255,107,0,0.3); }

  .esc-club-badge {
    width: 32px; height: 32px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 11px;
    color: var(--muted);
  }

  .esc-club-badge img { width: 32px; height: 32px; object-fit: contain; }

  .esc-camisa {
    width: 44px; height: 44px;
    flex-shrink: 0;
    object-fit: contain;
  }

  .esc-info { flex: 1; min-width: 0; }

  .esc-nome {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .esc-nome.capitao::after {
    content: ' (C)';
    color: var(--orange);
    font-size: 12px;
  }

  .esc-posicao {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
  }

  .esc-pts {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    min-width: 52px;
    text-align: right;
  }

  .esc-pts.positivo { color: #2ecc71; }
  .esc-pts.negativo { color: #e74c3c; }
  .esc-pts.zero { color: var(--muted); }

  .esc-sem-dados {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
  }

  /* EMPTY */

  /* EMPTY */
  .empty-state {
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 36px;
    text-align: center;
    color: var(--muted);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    letter-spacing: 1px;
  }
