* {
      box-sizing: border-box;
    }

    body {
      font-family: 'Outfit', sans-serif;
      margin: 0;
      background: #f8fafc;
      color: #0f172a;
      min-height: 100vh;
      position: relative;
      overflow-x: hidden;
    }

    body::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
      pointer-events: none;
      z-index: 0;
    }

    .wrap {
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem 1.5rem;
      padding-top: 4rem;
      position: relative;
      z-index: 1;
    }

    .header {
      text-align: center;
      margin-bottom: 2rem;
    }

    .logo {
      max-width: 120px;
      height: auto;
      border-radius: 15px;
      margin-bottom: 1rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    h1 {
      font-size: 1.75rem;
      font-weight: 700;
      margin: 0 0 0.5rem;
      background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .subtitle {
      color: #64748b;
      font-size: 0.95rem;
      margin-bottom: 0.5rem;
    }

    .global-search-container {
      max-width: 600px;
      margin: 1.5rem auto 0;
      position: relative;
      z-index: 1000;
    }

    .global-search-container .search-box {
      display: flex;
      align-items: center;
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(226, 232, 240, 0.8);
      border-radius: 16px;
      padding: 2px 4px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .global-search-container .search-icon-loupe {
      padding-left: 12px;
      padding-right: 4px;
      font-size: 1.1rem;
      color: #94a3b8;
      user-select: none;
    }

    .global-search-container .search-box:focus-within {
      transform: translateY(-2px);
      box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
      border-color: rgba(59, 130, 246, 0.4);
    }

    .global-search-container .search-input {
      border: none;
      background: transparent;
      padding: 0.8rem 1rem 0.8rem 0;
      font-size: 1rem;
      font-weight: 500;
      color: #1e293b;
    }

    .global-search-container .search-input::placeholder {
      color: #94a3b8;
    }

    .global-search-container .suggestions {
      top: calc(100% + 8px);
      border-radius: 16px;
      border: 1px solid rgba(226, 232, 240, 0.8);
      overflow: hidden;
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }

    .badge {
      display: inline-block;
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
      color: white;
      padding: 0.4rem 0.8rem;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }

    .tabs {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 2.5rem;
      background: rgba(226, 232, 240, 0.5);
      backdrop-filter: blur(8px);
      border-radius: 16px;
      padding: 6px;
      flex-wrap: nowrap;
      overflow-x: auto;
      scrollbar-width: none;
      border: 1px solid rgba(255, 255, 255, 0.5);
      box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .tabs::-webkit-scrollbar {
      display: none;
    }

    .tab {
      flex: 1;
      min-width: 100px;
      padding: 0.75rem 1.25rem;
      background: transparent;
      border: none;
      border-radius: 12px;
      font-family: inherit;
      font-size: 0.9rem;
      font-weight: 600;
      color: #64748b;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      text-align: center;
      white-space: nowrap;
    }

    .tab:hover {
      background: rgba(255, 255, 255, 0.8);
      color: #334155;
    }

    .tab.active {
      background: #ffffff;
      color: #2563eb;
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15), 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .tab-content {
      display: none;
      transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
      opacity: 0;
      transform: scale(0.97);
      filter: blur(8px);
    }

    .tab-content.active {
      display: block;
      opacity: 1;
      transform: scale(1);
      filter: blur(0);
    }

    .loading {
      text-align: center;
      padding: 3rem;
      color: #94a3b8;
    }

    .error {
      background: #fee2e2;
      color: #dc2626;
      padding: 1rem;
      border-radius: 10px;
      margin-bottom: 1.5rem;
    }

    .empty {
      text-align: center;
      padding: 3rem;
      color: #94a3b8;
    }

    /* Styles pour les pools - Accordéons */
    .age-category {
      margin-bottom: 2.5rem;
    }

    .age-category-header {
      padding: 1.25rem 1.5rem;
      background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
      border: 1px solid rgba(226, 232, 240, 0.8);
      border-left: 4px solid #3b82f6;
      border-radius: 12px;
      margin-bottom: 1rem;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: all 0.3s ease;
      user-select: none;
      box-shadow: 0 4px 16px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .05);
    }

    .age-category-header:hover {
      border-color: rgba(59, 130, 246, 0.4);
      border-left-color: #60a5fa;
      box-shadow: 0 6px 24px rgba(59, 130, 246, 0.12), 0 2px 8px rgba(0, 0, 0, .08);
      transform: translateX(4px);
    }

    .age-category-header h3 {
      font-size: 1.2rem;
      font-weight: 700;
      margin: 0;
      color: #1e293b;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

    .age-category-header .toggle {
      font-size: 1.2rem;
      color: #94a3b8;
      transition: transform 0.35s ease;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: none;
      padding: 0;
      border: none;
      -webkit-tap-highlight-color: transparent;
    }

    .age-category-header.collapsed .toggle {
      transform: rotate(0deg);
    }

    .age-category-header:not(.collapsed) .toggle {
      transform: rotate(90deg);
    }

    .age-category-header {
      -webkit-tap-highlight-color: transparent;
    }

    .age-category-content {
      overflow: hidden;
      transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
      max-height: 0;
      opacity: 0;
      padding: 0;
    }

    .age-category-content:not(.collapsed) {
      max-height: 5000px;
      opacity: 1;
      padding: 1rem 0;
    }

    .pool-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 1.5rem;
    }

    .pool-progress-container {
      margin-top: 1.25rem;
      width: 100%;
    }

    .pool-progress-bar {
      height: 6px;
      background: #e2e8f0;
      border-radius: 3px;
      overflow: hidden;
      margin-bottom: 0.5rem;
    }

    .pool-progress-fill {
      height: 100%;
      background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
      transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .pool-progress-text {
      font-size: 0.75rem;
      font-weight: 600;
      color: #64748b;
      display: flex;
      justify-content: space-between;
    }

    .pool-done-badge {
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      background: #dcfce7;
      color: #166534;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      box-shadow: 0 2px 8px rgba(22, 101, 52, 0.1);
      z-index: 2;
    }

    .pool-card {
      background: rgba(255, 255, 255, 0.8);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.7);
      border-radius: 20px;
      padding: 1.75rem;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      cursor: pointer;
      position: relative;
    }

    .pool-card:hover {
      border-color: rgba(59, 130, 246, 0.3);
      box-shadow: 0 20px 40px rgba(59, 130, 246, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
      transform: translateY(-8px) scale(1.02);
    }

    .pool-card::after {
      content: '→';
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      font-size: 1.5rem;
      color: #94a3b8;
      transition: all 0.3s ease;
      font-weight: bold;
    }

    .pool-card:hover::after {
      color: #3b82f6;
      transform: translateX(4px);
    }

    .pool-card[style*="cursor: default"]::after {
      display: none;
    }

    .pool-card h4 {
      font-size: 1.1rem;
      font-weight: 600;
      margin: 0 0 1rem;
      color: #1e293b;
      padding-bottom: 0.75rem;
      border-bottom: 2px solid #e2e8f0;
    }

    .badges {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 1rem;
    }

    .badge {
      font-size: 0.75rem;
      padding: 5px 12px;
      border-radius: 20px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      display: inline-block;
      transition: transform 0.2s, filter 0.2s;
      border: 1px solid transparent;
    }

    .badge:hover {
      transform: scale(1.03);
      filter: brightness(0.95);
    }

    .badge.age {
      background: #e0f2fe;
      color: #0284c7;
    }

    .badge.age.age-U10 {
      background: #fef3c7;
      color: #b45309;
    }

    .badge.age.age-U12 {
      background: #d1fae5;
      color: #047857;
    }

    .badge.age.age-U14 {
      background: #dbeafe;
      color: #1d4ed8;
    }

    .badge.age.age-U16 {
      background: #e9d5ff;
      color: #6d28d9;
    }

    .badge.age.age-U18 {
      background: #fce7f3;
      color: #be185d;
    }

    .badge.age.age-U21_Senior,
    .badge.age.age-U21\/Senior,
    .badge.age.age-Senior {
      background: #f1f5f9;
      color: #475569;
      border-color: #e2e8f0;
    }

    .badge.weight {
      background: #fae8ff;
      color: #a21caf;
    }

    .badge.belt {
      background: #ecfdf5;
      color: #047857;
      border: 1px solid #cbd5e1;
    }

    .badge.belt.debutant,
    .badge.belt.belt-debutant {
      background: #eff6ff !important;
      color: #1d4ed8 !important;
    }

    .badge.belt.intermediaire,
    .badge.belt.belt-intermediaire {
      background: #fffbeb !important;
      color: #b45309 !important;
    }

    .badge.belt.avance,
    .badge.belt.avancé,
    .badge.belt.belt-avance {
      background: #ecfdf5 !important;
      color: #047857 !important;
    }

    .badge.sexe {
      background: #faf5ff;
      color: #6d28d9;
    }

    .badge.sexe.sexe-feminin,
    .badge.sexe.sexe-F {
      background: #fdf2f8;
      color: #be185d;
    }

    .badge.sexe.sexe-masculin,
    .badge.sexe.sexe-M {
      background: #eff6ff;
      color: #1d4ed8;
    }

    .age-category-header .stats {
      font-size: 0.95rem;
      color: #94a3b8;
      font-weight: 500;
      margin-left: 0.75rem;
    }

    .competitor-item {
      padding: 0.75rem 0;
      border-bottom: 1px solid #f1f5f9;
      font-size: 0.9rem;
    }

    .competitor-item:last-child {
      border-bottom: none;
    }

    .competitor-name {
      font-weight: 600;
      color: #1e293b;
    }

    .competitor-details {
      font-size: 0.8rem;
      color: #64748b;
      margin-top: 0.25rem;
    }

    /* Styles pour les combats - Filtres */
    .filters {
      display: flex;
      gap: 1rem;
      margin-bottom: 2rem;
      flex-wrap: wrap;
      align-items: center;
    }

    .tapis-selector {
      display: flex;
      gap: 0;
      background: rgba(226, 232, 240, 0.3);
      border-radius: 12px;
      padding: 4px;
      min-width: 200px;
      flex-shrink: 0;
    }

    .tapis-option {
      flex: 1;
      padding: 12px 20px;
      border: none;
      border-radius: 8px;
      font-family: inherit;
      font-weight: 700;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.3s;
      background: transparent;
      color: #64748b;
      text-align: center;
      white-space: nowrap;
      min-width: 0;
    }

    .tapis-option.active {
      background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
      color: #fff;
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

    .tapis-option.tapis-2.active {
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
      box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }

    .search-box {
      flex: 1;
      min-width: 250px;
      position: relative;
      display: flex;
      align-items: center;
    }

    .clear-search-icon {
      position: absolute;
      right: 12px;
      z-index: 1;
      cursor: pointer;
      font-size: 1rem;
      color: #94a3b8;
      transition: color 0.2s;
      padding: 4px;
      display: none;
    }

    .clear-search-icon:hover {
      color: #ef4444;
    }

    .search-input:not(:placeholder-shown)+.clear-search-icon,
    .search-input:focus+.clear-search-icon {
      display: block;
    }

    .search-input {
      width: 100%;
      padding: 12px 42px 12px 42px;
      border: 1px solid rgba(226, 232, 240, 0.8);
      border-radius: 8px;
      font-family: inherit;
      font-size: 0.95rem;
      background: white;
      outline: none;
      transition: border-color 0.2s;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
    }

    .search-input:focus {
      border-color: #3b82f6;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .search-input:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    .suggestions {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: white;
      border-radius: 16px;
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
      margin-top: 10px;
      max-height: 300px;
      overflow-y: auto;
      z-index: 1010;
      display: none;
      border: 1px solid rgba(226, 232, 240, 0.8);
    }

    .suggestion-item {
      padding: 14px 18px;
      cursor: pointer;
      border-bottom: 1px solid #f1f5f9;
      transition: background 0.2s;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .suggestion-item:last-child {
      border-bottom: none;
    }

    .suggestion-item:hover {
      background: #f8fafc;
    }

    .suggestion-name {
      font-weight: 700;
      color: #1e293b;
      font-size: 1rem;
    }

    .suggestion-meta {
      font-size: 0.8rem;
      color: #64748b;
    }

    .suggestion-item:last-child {
      border-bottom: none;
    }

    .suggestion-item:hover {
      background: rgba(59, 130, 246, 0.1);
    }

    .tapis-section {
      background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
      border: 1px solid rgba(226, 232, 240, 0.8);
      border-radius: 16px;
      padding: 1.5rem;
      box-shadow: 0 4px 16px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .05);
      margin-bottom: 1.5rem;
    }

    .tapis-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 0 0 1.25rem 0;
      padding-bottom: 1rem;
      border-bottom: 2px solid rgba(226, 232, 240, 0.8);
      font-size: 1.3rem;
      font-weight: 700;
    }

    .tapis-badge {
      display: inline-block;
      padding: 8px 16px;
      border-radius: 8px;
      font-size: 1.1rem;
      font-weight: 700;
      color: #fff;
      background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    }

    .tapis-header.tapis-2 .tapis-badge {
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    .tapis-count {
      font-size: 0.95rem;
      color: #64748b;
      font-weight: 500;
    }

    .fight-row {
      display: grid;
      grid-template-columns: 80px 1fr 50px 1fr 180px 120px;
      gap: 16px;
      align-items: center;
      padding: 14px 0;
      border-bottom: 1px solid rgba(226, 232, 240, 0.8);
      font-size: 0.95rem;
      transition: all 0.2s;
    }

    .fight-row:last-child {
      border-bottom: none;
    }

    .fight-row:hover {
      background: rgba(59, 130, 246, 0.05);
      margin: 0 -16px;
      padding-left: 16px;
      padding-right: 16px;
      border-radius: 10px;
      transform: translateX(4px);
    }

    .fight-num {
      font-weight: 700;
      color: #3b82f6;
      font-size: 1rem;
    }

    .current-fight-badge {
      display: inline-block;
      background: #f1f5f9;
      color: #3b82f6;
      padding: 2px 10px;
      border-radius: 6px;
      font-size: 1.1rem;
      font-weight: 800;
      box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
      border: 1px solid #e2e8f0;
    }

    .pool-fight-num {
      font-weight: 600;
      color: #64748b;
      font-size: 0.9rem;
      text-align: center;
    }

    .comp {
      font-weight: 500;
      color: #1e293b;
    }

    .vs {
      color: #94a3b8;
      text-align: center;
      font-size: 0.9rem;
      font-weight: 600;
    }

    .pool-name {
      font-size: 0.85rem;
      color: #94a3b8;
      text-align: right;
    }

    /* Combats dans le détail d'une pool - structure dédiée */
    .pool-detail-fight-row {
      display: grid;
      grid-template-columns: 75px 1fr 50px 1fr 160px;
      gap: 12px;
      align-items: center;
      padding: 14px 0;
      border-bottom: 1px solid rgba(226, 232, 240, 0.8);
      font-size: 0.95rem;
      transition: all 0.2s;
    }

    .pool-detail-fight-row:last-child {
      border-bottom: none;
    }

    .pool-detail-fight-row:hover {
      background: rgba(59, 130, 246, 0.05);
      margin: 0 -16px;
      padding-left: 16px;
      padding-right: 16px;
      border-radius: 10px;
      transform: translateX(4px);
    }

    /* Styles pour les résultats */
    .results-container {
      background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
      border: 1px solid rgba(226, 232, 240, 0.8);
      border-radius: 16px;
      padding: 1.5rem;
      box-shadow: 0 4px 16px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .05);
    }

    .result-row {
      display: grid;
      grid-template-columns: 80px 1fr 50px 1fr 180px 140px 110px;
      gap: 16px;
      align-items: center;
      padding: 14px 0;
      border-bottom: 1px solid rgba(226, 232, 240, 0.8);
      font-size: 0.95rem;
      transition: all 0.2s;
    }

    .result-row:last-child {
      border-bottom: none;
    }

    .result-row:hover {
      background: rgba(59, 130, 246, 0.05);
      margin: 0 -16px;
      padding-left: 16px;
      padding-right: 16px;
      border-radius: 10px;
      transform: translateX(4px);
    }

    .result-info {
      font-size: 0.85rem;
      text-align: right;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 2px;
    }

    .result-info .winner {
      color: #22c55e;
      font-weight: 600;
    }

    .result-info .method {
      font-size: 0.75rem;
      color: #94a3b8;
      font-style: italic;
    }

    .result-info .time {
      font-size: 0.7rem;
      color: #64748b;
      margin-top: 2px;
    }

    .estimated-time {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 0.85rem;
      color: #64748b;
      font-weight: 500;
    }

    .estimated-time .approx-symbol {
      color: #94a3b8;
      font-size: 1rem;
      line-height: 1;
    }

    .view-selector {
      display: flex;
      gap: 0;
      background: rgba(226, 232, 240, 0.3);
      border-radius: 12px;
      padding: 4px;
    }

    .view-option {
      flex: 1;
      padding: 12px 20px;
      border: none;
      border-radius: 8px;
      font-family: inherit;
      font-weight: 700;
      font-size: 0.95rem;
      cursor: pointer;
      transition: all 0.3s;
      background: transparent;
      color: #64748b;
      text-align: center;
    }

    .view-option.active {
      background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
      color: #fff;
      box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    }

    .view-option:not(.active):hover {
      background: rgba(226, 232, 240, 0.5);
      color: #1e293b;
    }

    .stat-box {
      background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
      border: 1px solid rgba(226, 232, 240, 0.8);
      border-radius: 12px;
      padding: 1rem 1.5rem;
      box-shadow: 0 4px 16px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .05);
    }

    .stat-box .label {
      font-size: 0.75rem;
      color: #94a3b8;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.25rem;
    }

    .stat-box .value {
      font-size: 1.5rem;
      font-weight: 700;
      color: #1e293b;
    }

    .global-search-container {
      margin-top: 2rem;
      margin-bottom: 2rem;
      position: relative;
      width: 100%;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
    }

    .search-box {
      background: white;
      border-radius: 20px;
      padding: 0.75rem 1.5rem;
      display: flex;
      align-items: center;
      gap: 15px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
      border: 1px solid rgba(226, 232, 240, 0.6);
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .search-box:focus-within {
      border-color: #3b82f6;
      box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 20px 40px rgba(0, 0, 0, 0.1);
      transform: translateY(-2px);
    }

    .search-input {
      border: none;
      background: transparent;
      outline: none;
      font-size: 1.15rem;
      font-weight: 500;
      color: #1e293b;
      flex: 1;
      padding: 10px 0 10px 40px;
      min-width: 0;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: left 12px center;
      background-size: 20px;
    }

    .clear-search-icon {
      font-size: 1.2rem;
      color: #cbd5e1;
      cursor: pointer;
      padding: 4px;
      transition: color 0.2s;
    }

    .clear-search-icon:hover {
      color: #ef4444;
    }

    .athlete-tags-container {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 1rem;
      justify-content: center;
    }

    .athlete-tag {
      background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
      color: white;
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
      transition: all 0.2s;
      animation: tagFadeIn 0.3s ease-out;
    }

    @keyframes tagFadeIn {
      from {
        opacity: 0;
        transform: translateY(5px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .athlete-tag:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    }

    .tab-dot {
      display: inline-block;
      width: 8px;
      height: 8px;
      background-color: #ef4444;
      border-radius: 50%;
      margin-right: 8px;
      box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
      animation: tabPulse 1.5s infinite ease-in-out;
    }

    @keyframes tabPulse {
      0% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.4; transform: scale(1.2); }
      100% { opacity: 1; transform: scale(1); }
    }

    .athlete-tag .remove-tag {
      cursor: pointer;
      font-size: 1.2rem;
      line-height: 1;
      opacity: 0.7;
      transition: opacity 0.2s;
    }

    .athlete-tag .remove-tag:hover {
      opacity: 1;
    }

    .age-category-separator {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 20px 0 12px 0;
      padding: 8px 0;
    }

    .separator-line {
      flex: 1;
      height: 2px;
      background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    }

    .separator-label {
      font-size: 0.85rem;
      font-weight: 700;
      color: #3b82f6;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      padding: 6px 16px;
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
      border-radius: 8px;
      border: 1px solid rgba(59, 130, 246, 0.2);
    }

    /* Live Dashboard Styles */
    .live-dashboard {
      display: flex;
      flex-direction: column;
      gap: 2.5rem;
    }

    .live-stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.5rem;
    }

    .live-stat-card {
      background: white;
      border-radius: 20px;
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
      border: 1px solid rgba(226, 232, 240, 0.5);
      transition: transform 0.3s ease;
    }

    .live-stat-card:hover {
      transform: translateY(-5px);
    }

    .live-stat-icon {
      font-size: 2rem;
      margin-bottom: 0.75rem;
    }

    .live-stat-value {
      font-size: 2rem;
      font-weight: 700;
      color: #1e293b;
      line-height: 1;
      margin-bottom: 0.25rem;
    }

    .live-stat-label {
      font-size: 0.85rem;
      color: #64748b;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .live-mats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 2rem;
    }

    .live-mat {
      background: white;
      border-radius: 24px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      border: 1px solid rgba(226, 232, 240, 0.6);
      display: flex;
      flex-direction: column;
    }

    .live-mat-header {
      padding: 1.25rem 1.5rem;
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .live-mat-1 .live-mat-header {
      background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    }

    .live-mat-2 .live-mat-header {
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    .live-mat-name {
      font-weight: 700;
      font-size: 1.25rem;
      letter-spacing: -0.01em;
    }

    .live-status-pulse {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      background: rgba(255, 255, 255, 0.2);
      padding: 4px 10px;
      border-radius: 20px;
    }

    .pulse-dot {
      width: 8px;
      height: 8px;
      background: #ef4444;
      border-radius: 50%;
      box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
      }

      70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
      }

      100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
      }
    }

    .current-fight {
      padding: 2rem 1.5rem;
      text-align: center;
      border-bottom: 1px solid rgba(226, 232, 240, 0.5);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(248, 250, 252, 0.5) 100%);
    }

    .current-fight-label {
      font-size: 0.75rem;
      font-weight: 700;
      color: #94a3b8;
      text-transform: uppercase;
      margin-bottom: 1.25rem;
      letter-spacing: 0.1em;
    }

    .fighters {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.5rem;
      margin-bottom: 1.5rem;
    }

    .fighter-card {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .fighter-name {
      font-size: 1.15rem;
      font-weight: 700;
      color: #1e293b;
      line-height: 1.2;
    }

    .fighter-club {
      font-size: 0.8rem;
      color: #64748b;
    }

    .vs-circle {
      width: 40px;
      height: 40px;
      background: #f1f5f9;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 0.8rem;
      color: #94a3b8;
      border: 2px solid white;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      flex-shrink: 0;
    }

    .fight-meta {
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .upcoming-fights {
      padding: 1.25rem 1.5rem;
      background: #fcfdfe;
    }

    .upcoming-title {
      font-size: 0.8rem;
      font-weight: 700;
      color: #94a3b8;
      margin-bottom: 1rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .upcoming-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .upcoming-item {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 0.9rem;
      padding: 8px 12px;
      background: white;
      border-radius: 10px;
      border: 1px solid rgba(226, 232, 240, 0.5);
    }

    .upcoming-num {
      font-weight: 800;
      color: #3b82f6;
      min-width: 2.5rem;
    }

    .upcoming-names {
      color: #1e293b;
      font-weight: 600;
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .upcoming-time {
      font-size: 0.75rem;
      color: #64748b;
      font-weight: 600;
      background: #f1f5f9;
      padding: 2px 8px;
      border-radius: 6px;
      white-space: nowrap;
    }

    .current-timer {
      font-family: 'Courier New', monospace;
      font-size: 2.5rem;
      font-weight: 700;
      color: #1e293b;
      margin-top: 0.5rem;
      text-align: center;
      line-height: 1;
    }

    .current-timer.active {
      color: #22c55e;
    }

    .current-timer.paused {
      color: #f97316;
      animation: timerPause 1.2s ease-in-out infinite;
    }

    @keyframes timerPause {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.35; }
    }

    .current-timer.gs {
      color: #f59e0b; /* Ambre/Orange pour Golden Score */
    }

    .est-time-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.6rem;
      margin-top: 0.5rem;
      flex-wrap: nowrap;
    }

    .est-time-row .estimated-start {
      margin-top: 0;
    }

    .upcoming-item .est-time-row {
      margin-top: 0;
      margin-left: auto;
      flex-shrink: 0;
    }

    .osae-status {
      font-size: 0.9rem;
      font-weight: 700;
      color: #f59e0b;
      margin-top: 0.25rem;
      text-align: center;
    }

    .estimated-start {
      font-size: 0.9rem;
      color: #64748b;
      font-weight: 600;
      margin-top: 0.5rem;
      text-align: center;
      font-style: italic;
    }

    .live-cancelled-badge {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      margin: 0.75rem 0 0.25rem;
      padding: 0.65rem 1.25rem;
      border-radius: 12px;
      background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
      border: 2px solid #ef4444;
      color: #dc2626;
      font-size: clamp(1.75rem, 6vw, 2.75rem);
      font-weight: 900;
      letter-spacing: 0.08em;
      text-align: center;
      line-height: 1;
      box-shadow: 0 8px 24px rgba(239, 68, 68, 0.18);
    }

    .live-cancelled-badge--compact {
      margin: 0;
      padding: 4px 10px;
      border-radius: 8px;
      font-size: 0.72rem;
      letter-spacing: 0.06em;
      box-shadow: none;
    }

    .upcoming-item-cancelled {
      opacity: 0.85;
    }

    .live-status-pulse .pulse-dot.cancelled {
      background: #ef4444;
      box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
      animation: pulseRed 1.5s ease-in-out infinite;
    }

    @keyframes pulseRed {
      0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); }
      50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    }

    .fight-meta-live {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-top: 1rem;
      padding-top: 1rem;
      border-top: 1px solid #f1f5f9;
      width: 100%;
    }

    .live-scores {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.5rem;
      width: 100%;
    }

    .score-badge {
      padding: 6px 12px;
      border-radius: 12px;
      font-weight: 800;
      font-size: 1.25rem;
      min-width: 100px;
      text-align: center;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      white-space: nowrap;
    }

    .score-blue {
      background: #2563eb;
      color: white;
      border: none;
    }

    .score-shiro {
      background: #f8fafc;
      color: #1e293b;
      border: 2px solid #e2e8f0;
    }

    .shido-count {
      font-size: 0.85rem;
      font-weight: 600;
      margin-left: 8px;
      padding-left: 8px;
      border-left: 1px solid rgba(255, 255, 255, 0.3);
    }

    .score-shiro .shido-count {
      border-left: 1px solid #e2e8f0;
      color: #64748b;
    }

    .last-fight-result {
      padding: 1rem 1.5rem;
      background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
      border-bottom: 1px solid rgba(226, 232, 240, 0.5);
      display: none; /* Caché par défaut, affiché quand un résultat existe */
      animation: resultFadeIn 0.5s ease-out;
    }

    @keyframes resultFadeIn {
      from { opacity: 0; transform: translateY(-5px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .last-result-label {
      font-size: 0.7rem;
      font-weight: 800;
      color: #64748b;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .last-result-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .last-result-winner {
      font-weight: 700;
      color: #1e293b;
      font-size: 0.95rem;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .last-result-method {
      font-size: 0.8rem;
      font-weight: 600;
      color: #3b82f6;
      background: rgba(59, 130, 246, 0.1);
      padding: 2px 8px;
      border-radius: 6px;
    }

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

    .upcoming-names-stack {
      display: flex;
      flex-direction: column;
      gap: 2px;
      flex: 1;
      min-width: 0;
    }

    .upcoming-name {
      font-weight: 600;
      color: #1e293b;
      font-size: 0.9rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .kimono-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .kimono-blue {
      background: #3b82f6;
      box-shadow: 0 0 4px rgba(59, 130, 246, 0.4);
    }

    .kimono-white {
      background: #ffffff;
      border: 1px solid #cbd5e1;
    }

    .pool-category-section {
      margin-bottom: 2rem;
      background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
      border: 1px solid rgba(226, 232, 240, 0.8);
      border-radius: 16px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .05);
      overflow: hidden;
    }

    .pool-category-header {
      background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
      padding: 1.25rem 1.5rem;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid rgba(226, 232, 240, 0.8);
      transition: all 0.3s ease;
      user-select: none;
    }

    .pool-category-header:hover {
      background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
    }

    .pool-category-header.completed {
      border-left: 4px solid #22c55e;
    }

    .pool-category-header.in-progress {
      border-left: 4px solid #f59e0b;
    }

    .pool-category-title {
      font-size: 1.1rem;
      font-weight: 600;
      color: #1e293b;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .pool-category-count {
      font-size: 0.9rem;
      color: #64748b;
      font-weight: 400;
      margin-left: 0.5rem;
    }

    .pool-category-icon {
      font-size: 1rem;
      transition: transform 0.35s ease;
      color: #64748b;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: none;
      padding: 0;
      border: none;
      -webkit-tap-highlight-color: transparent;
    }

    .pool-category-header:not(.expanded) .pool-category-icon {
      transform: rotate(0deg);
    }

    .pool-category-header.expanded .pool-category-icon {
      transform: rotate(90deg);
    }

    .pool-category-header {
      -webkit-tap-highlight-color: transparent;
    }

    .pool-category-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease-out;
    }

    .pool-category-content.expanded {
      max-height: 10000px;
      transition: max-height 0.5s ease-in;
    }

    .pool-item-section {
      margin: 1rem 1.5rem;
      background: #ffffff;
      border: 1px solid rgba(226, 232, 240, 0.6);
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
      overflow: hidden;
    }

    .pool-item-header {
      background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
      padding: 1rem 1.25rem;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: all 0.3s ease;
      user-select: none;
    }

    .pool-item-header:hover {
      background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
    }

    .pool-item-header.expanded {
      border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    }

    .pool-item-title {
      font-size: 1.05rem;
      font-weight: 600;
      color: #1e293b;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .pool-item-title .badges {
      display: inline-flex;
      gap: 6px;
      margin-left: 0.5rem;
      margin-bottom: 0;
    }

    .pool-item-icon {
      font-size: 0.85rem;
      color: #64748b;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-right: 0.5rem;
      transition: transform 0.35s ease;
      background: none;
      padding: 0;
      border: none;
      -webkit-tap-highlight-color: transparent;
    }

    .pool-item-header:not(.expanded) .pool-item-icon {
      transform: rotate(0deg);
    }

    .pool-item-header.expanded .pool-item-icon {
      transform: rotate(90deg);
    }

    .pool-item-header {
      -webkit-tap-highlight-color: transparent;
    }

    .pool-item-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease-out;
    }

    .pool-item-content.expanded {
      max-height: 10000px;
      transition: max-height 0.5s ease-in;
    }

    .pool-ranking-container {
      padding: 1.25rem;
    }

    .pool-ranking-title {
      font-size: 0.95rem;
      font-weight: 500;
      color: #64748b;
      margin-bottom: 1rem;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    }

    .ranking-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.95rem;
    }

    .ranking-table thead {
      background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    }

    .ranking-table th {
      padding: 0.75rem 1rem;
      text-align: left;
      font-weight: 600;
      color: #475569;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      border-bottom: 2px solid rgba(226, 232, 240, 0.8);
    }

    .ranking-table th:first-child,
    .ranking-table th:nth-child(3),
    .ranking-table th:nth-child(4),
    .ranking-table th:nth-child(5) {
      text-align: center;
    }

    .ranking-table td {
      padding: 0.875rem 1rem;
      border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    }

    .ranking-table td:first-child,
    .ranking-table td:nth-child(3),
    .ranking-table td:nth-child(4),
    .ranking-table td:nth-child(5) {
      text-align: center;
    }

    .ranking-table tbody tr {
      transition: background 0.2s;
    }

    .ranking-table tbody tr:hover {
      background: rgba(59, 130, 246, 0.05);
    }

    .rank-position {
      font-weight: 700;
      color: #475569;
      text-align: center;
    }

    .rank-position.first {
      font-size: 1.1rem;
      background: linear-gradient(180deg, #fef3c7 0%, #fbbf24 25%, #d97706 50%, #fcd34d 75%, #fbbf24 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 1px 2px rgba(217, 119, 6, 0.35));
    }

    .rank-position.second {
      font-size: 1.05rem;
      background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 25%, #94a3b8 50%, #cbd5e1 75%, #e2e8f0 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 1px 2px rgba(100, 116, 139, 0.4));
    }

    .rank-position.third {
      font-size: 1.05rem;
      background: linear-gradient(180deg, #fed7aa 0%, #cd7f32 25%, #92400e 50%, #d4a574 75%, #cd7f32 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 1px 2px rgba(146, 64, 14, 0.4));
    }

    .competitor-name {
      font-weight: 500;
      color: #1e293b;
    }

    .stat-value {
      font-weight: 600;
      color: #475569;
    }

    .medal {
      font-size: 1.2rem;
      margin-right: 0.5rem;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes fadeInDown {
      from {
        opacity: 0;
        transform: translateY(-20px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Détection mobile */
    .mobile-device {
      /* Styles spécifiques pour mobile */
    }

    .desktop-device {
      /* Styles spécifiques pour desktop */
    }

    /* Nouveau système de badges compacts */
    .winner-mobile-badge,
    .non-dispute-badge,
    .cancelled-mobile-badge {
      display: none;
    }

    .next-active-badge {
      display: inline-flex !important;
      align-items: center;
      gap: 4px;
      font-size: 0.7rem !important;
      font-weight: 700 !important;
      color: #ffffff !important;
      background: #2563eb !important;
      padding: 2px 8px !important;
      border-radius: 9999px !important;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      animation: next-pulse 2s infinite ease-in-out;
      margin-left: 8px;
      vertical-align: middle;
    }

    @keyframes next-pulse {
      0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
      }
      70% {
        box-shadow: 0 0 0 6px rgba(37, 99, 235, 0);
      }
      100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
      }
    }

    .result-row.next-active-fight {
      border-left: 4px solid #2563eb !important;
      background: linear-gradient(90deg, rgba(37, 99, 235, 0.04) 0%, rgba(255, 255, 255, 0) 100%) !important;
    }

    @media (min-width: 769px) {
      .header-row {
        display: grid !important;
      }
    }

    @media (max-width: 768px) {
      .header-row {
        display: none !important;
      }

      .wrap {
        padding: 1rem 0.75rem;
      }

      .header {
        margin-bottom: 1.5rem;
      }

      .logo {
        max-width: 80px;
        margin-bottom: 0.5rem;
      }

      h1 {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
      }

      .subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
      }

      .tabs {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 4px;
        gap: 0.25rem;
        scrollbar-width: thin;
      }

      .tabs::-webkit-scrollbar {
        height: 6px;
      }

      .tabs::-webkit-scrollbar-thumb {
        background: rgba(59, 130, 246, 0.3);
        border-radius: 3px;
      }

      .tab {
        min-width: 100px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
      }

      .pool-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
      }

      .fight-row:not(.header-row),
      .result-row:not(.header-row) {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
        border: 1px solid rgba(226, 232, 240, 0.8);
        border-radius: 12px;
        margin-bottom: 12px;
        background: #ffffff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
      }

      .fight-row:not(.header-row)>span,
      .result-row:not(.header-row)>span {
        display: flex;
        align-items: flex-start;
        padding: 6px 0;
        flex-wrap: wrap;
      }

      .fight-row:not(.header-row)>span:first-child,
      .result-row:not(.header-row)>span:first-child {
        font-size: 1.25rem;
        font-weight: 700;
        color: #3b82f6;
        border-bottom: 2px solid rgba(59, 130, 246, 0.25);
        padding-bottom: 12px;
        margin-bottom: 10px;
        width: 100%;
      }

      /* Sur mobile : afficher les combats sous forme de cartes verticales premium pour éviter toute superposition */
      .fight-row:not(.header-row),
      .result-row:not(.header-row) {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 4px;
        padding: 8px 12px;
        border: 1px solid rgba(226, 232, 240, 0.8);
        border-radius: 12px;
        margin-bottom: 8px;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
      }

      .fight-row:not(.header-row)>span,
      .result-row:not(.header-row)>span {
        display: flex;
        align-items: center;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        width: 100% !important;
        font-size: 0.92rem;
      }

      /* Supprimer les labels data-label */
      .fight-row:not(.header-row)>span::before,
      .result-row:not(.header-row)>span::before {
        display: none !important;
      }

      /* Ligne 1 : Header (numéro + pool + heure) */
      .fight-row:not(.header-row)>span:first-child,
      .result-row:not(.header-row)>span:first-child {
        display: flex !important;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        width: auto !important;
        font-size: 0.95rem;
        font-weight: 700;
        color: #3b82f6;
        border: none !important;
        margin-bottom: 2px !important;
      }

      /* Masquer le vs column */
      .fight-row:not(.header-row)>span:nth-child(3),
      .result-row:not(.header-row)>span:nth-child(3) {
        display: none !important;
      }

      /* Competitor 1 (⚪) */
      .fight-row:not(.header-row)>span:nth-child(2),
      .result-row:not(.header-row)>span:nth-child(2) {
        order: 2;
        font-weight: 600;
        color: #1e293b;
        padding: 4px 0 !important;
        border-bottom: 1px dashed rgba(226, 232, 240, 0.4) !important;
      }

      /* Competitor 2 (🔵) */
      .fight-row:not(.header-row)>span:nth-child(4),
      .result-row:not(.header-row)>span:nth-child(4) {
        order: 3;
        font-weight: 600;
        color: #1e293b;
        padding: 4px 0 !important;
      }

      /* Pool Info */
      .fight-row:not(.header-row)>span:nth-child(5),
      .result-row:not(.header-row)>span:nth-child(5) {
        order: 1;
        width: auto !important;
        font-size: 0.75rem;
        color: #64748b;
        font-weight: 600;
        margin-left: 6px !important;
        background: rgba(148, 163, 184, 0.08) !important;
        padding: 1px 6px !important;
        border-radius: 4px !important;
      }

      /* Heure / Est. */
      .fight-row:not(.header-row)>span:nth-child(7),
      .result-row:not(.header-row)>span:nth-child(7) {
        order: 1;
        width: auto !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        margin-left: auto !important;
      }

      /* Résultat / Gagnant */
      .fight-row:not(.header-row)>span:nth-child(6),
      .result-row:not(.header-row)>span:nth-child(6) {
        display: none !important;
      }

      .winner-mobile-badge {
        display: inline-flex !important;
        align-items: center;
        gap: 3px;
        margin-left: 6px;
        font-size: 0.75rem;
      }

      .winner-trophy {
        font-size: 0.8rem;
      }

      .winner-method-badge {
        font-size: 0.65rem;
        font-weight: 700;
        color: #10b981;
        background: rgba(16, 185, 129, 0.1);
        padding: 1px 5px;
        border-radius: 4px;
        text-transform: uppercase;
        letter-spacing: 0.02em;
      }

      .non-dispute-badge {
        display: inline-block !important;
        font-size: 0.8rem !important;
        color: #334155 !important;
        margin-left: 10px !important;
        font-weight: 600 !important;
      }

      .cancelled-mobile-badge {
        display: inline-block !important;
        font-size: 0.65rem;
        background: #ef4444;
        color: white;
        padding: 1px 4px;
        border-radius: 3px;
        font-weight: 600;
        margin-left: 6px;
        text-transform: uppercase;
      }

      /* Result-info style horizontal dans son conteneur dédié */
      .result-row:not(.header-row) .result-info {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 4px 10px !important;
        width: 100% !important;
        justify-content: flex-start !important;
      }

      .result-row:not(.header-row) .result-info .winner {
        font-size: 0.8rem !important;
        font-weight: 700;
        color: #10b981;
      }

      .result-row:not(.header-row) .result-info .method {
        font-size: 0.7rem !important;
        font-weight: 600;
        color: #2563eb;
        background: rgba(59, 130, 246, 0.08) !important;
        padding: 1px 5px !important;
        border-radius: 4px !important;
        text-transform: uppercase;
      }

      .result-row:not(.header-row) .result-info .time {
        font-size: 0.7rem !important;
        color: #64748b;
        font-weight: 500;
      }

      .result-row:not(.header-row) .result-info .no-result {
        font-size: 0.75rem !important;
        color: #94a3b8;
        font-style: italic;
      }

      /* Combats du pool (détail) sur mobile */
      .pool-detail-fight-row.header-row {
        display: none;
      }

      .pool-detail-fight-row:not(.header-row) {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 8px 12px;
        border: 1px solid rgba(226, 232, 240, 0.8);
        border-radius: 12px;
        margin-bottom: 8px;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
      }

      .pool-detail-fight-row:not(.header-row)>span {
        display: flex;
        align-items: center;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        width: 100% !important;
        font-size: 0.92rem;
      }

      .pool-detail-fight-row:not(.header-row)>span::before {
        display: none !important;
      }

      /* Ligne 1 : Numéro du combat */
      .pool-detail-fight-row:not(.header-row)>span:first-child {
        display: flex !important;
        width: auto !important;
        font-size: 0.95rem;
        font-weight: 700;
        color: #3b82f6;
        border: none !important;
        margin-bottom: 2px !important;
      }

      /* Masquer le vs column */
      .pool-detail-fight-row:not(.header-row)>span:nth-child(3) {
        display: none !important;
      }

      /* Competitor 1 (⚪) */
      .pool-detail-fight-row:not(.header-row)>span:nth-child(2) {
        order: 2;
        font-weight: 600;
        color: #1e293b;
        padding: 4px 0 !important;
        border-bottom: 1px dashed rgba(226, 232, 240, 0.4) !important;
      }

      /* Competitor 2 (🔵) */
      .pool-detail-fight-row:not(.header-row)>span:nth-child(4) {
        order: 3;
        font-weight: 600;
        color: #1e293b;
        padding: 4px 0 !important;
      }

      /* Résultat */
      .pool-detail-fight-row:not(.header-row)>span:nth-child(5) {
        order: 4;
        margin-top: 4px !important;
        padding: 4px 8px !important;
        background: #f8fafc !important;
        border: 1px solid rgba(226, 232, 240, 0.6) !important;
        border-radius: 6px !important;
        box-sizing: border-box;
      }

      /* Result-info dans le conteneur du pool detail */
      .pool-detail-fight-row:not(.header-row) .result-info {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 4px 10px !important;
        width: 100% !important;
        justify-content: flex-start !important;
      }

      .pool-detail-fight-row:not(.header-row) .result-info .winner {
        font-size: 0.8rem !important;
        font-weight: 700;
        color: #10b981;
      }

      .pool-detail-fight-row:not(.header-row) .result-info .method {
        font-size: 0.7rem !important;
        font-weight: 600;
        color: #2563eb;
        background: rgba(59, 130, 246, 0.08) !important;
        padding: 1px 5px !important;
        border-radius: 4px !important;
        text-transform: uppercase;
      }

      .pool-detail-fight-row:not(.header-row) .result-info .time {
        font-size: 0.7rem !important;
        color: #64748b;
        font-weight: 500;
      }

      .pool-detail-fight-row:not(.header-row) .result-info .no-result {
        font-size: 0.75rem !important;
        color: #94a3b8;
        font-style: italic;
      }

      .filters {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
      }

      .view-selector {
        width: 100%;
        max-width: 100%;
      }

      .view-option {
        padding: 10px 16px;
        font-size: 0.9rem;
      }

      .tapis-selector {
        width: 100%;
        max-width: 100%;
      }

      .tapis-option {
        padding: 10px 16px;
        font-size: 0.95rem;
      }

      .search-box {
        width: 100%;
        max-width: 100%;
      }

      .search-input {
        font-size: 1rem;
        padding: 14px 42px 14px 42px;
      }

      .suggestions {
        position: relative;
        margin-top: 8px;
        max-height: 300px;
      }

      .tapis-section {
        padding: 1rem;
      }

      .tapis-header {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        flex-wrap: wrap;
      }

      .tapis-badge {
        font-size: 1rem;
        padding: 6px 12px;
      }

      .tapis-count {
        font-size: 0.85rem;
      }

      .results-container {
        padding: 1rem;
        overflow-x: visible;
      }

      .ranking-table {
        font-size: 0.9rem;
        width: 100%;
        display: block;
      }

      .pool-category-section {
        margin-bottom: 1.5rem;
      }

      .pool-category-header {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 8px;
      }

      .pool-category-title {
        font-size: 1rem;
        flex-wrap: wrap;
        flex: 1;
        min-width: 0;
        word-break: break-word;
      }

      .pool-category-icon {
        flex-shrink: 0;
        background: none !important;
        color: #64748b !important;
        -webkit-tap-highlight-color: transparent;
      }

      .pool-item-title .pool-item-icon {
        flex-shrink: 0;
        background: none !important;
        color: #64748b !important;
        -webkit-tap-highlight-color: transparent;
      }

      .age-category-header .toggle {
        background: none !important;
        color: #94a3b8 !important;
        -webkit-tap-highlight-color: transparent;
      }

      .age-category-header,
      .pool-category-header,
      .pool-item-header {
        -webkit-tap-highlight-color: transparent;
      }

      .pool-item-section {
        margin: 0.75rem 1rem;
      }

      .pool-item-header {
        padding: 0.875rem 1rem;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
      }

      .pool-item-title {
        font-size: 0.95rem;
        flex-wrap: wrap;
        flex: 1;
        min-width: 0;
        word-break: break-word;
        line-height: 1.4;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
      }

      .pool-item-title>span:nth-child(2) {
        font-weight: 600;
        color: #1e293b;
      }

      .pool-item-title>span:nth-child(3),
      .pool-item-title span[style*="font-size: 0.85rem"],
      .pool-item-title .badges {
        display: flex !important;
        width: 100% !important;
        margin-top: 4px !important;
        margin-left: 1.4rem !important;
        margin-bottom: 0 !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
      }

      .pool-ranking-container {
        padding: 1rem;
        overflow-x: auto;
      }

      /* Classement par pool sur mobile : vue cartes au lieu du tableau */
      .ranking-table thead {
        display: none;
      }

      .ranking-table tbody,
      .ranking-table tr {
        display: block;
      }

      .ranking-table tbody tr {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px 12px;
        margin-bottom: 10px;
        border: 1px solid rgba(226, 232, 240, 0.8);
        border-radius: 10px;
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
      }

      .ranking-table tbody tr:hover {
        background: #ffffff;
      }

      .ranking-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 0;
        border-bottom: none;
        gap: 12px;
      }

      .ranking-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        font-size: 0.8rem;
        flex-shrink: 0;
      }

      .ranking-table td:first-child::before {
        content: "Rang";
      }

      .ranking-table td:nth-child(2)::before {
        content: "Compétiteur";
      }

      .ranking-table td:nth-child(3)::before {
        content: "Victoires";
      }

      .ranking-table td:nth-child(4)::before {
        content: "Défaites";
      }

      .ranking-table td:nth-child(5)::before {
        content: "Points";
      }

      /* Classement par pool sur mobile : tableau récapitulatif (toutes sections) */
      .pool-category-content .ranking-table {
        display: table;
      }

      .pool-category-content .ranking-table thead {
        display: table-header-group;
      }

      .pool-category-content .ranking-table tbody {
        display: table-row-group;
      }

      .pool-category-content .ranking-table tbody tr,
      .pool-category-content .ranking-table tr {
        display: table-row;
      }

      .pool-category-content .ranking-table td {
        display: table-cell;
        padding: 8px 10px;
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
      }

      .pool-category-content .ranking-table td::before {
        display: none !important;
      }

      .pool-category-content .ranking-table tbody tr {
        display: table-row;
        grid-template-columns: unset;
        gap: 0;
        padding: 0;
        margin-bottom: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
      }

      .pool-category-content .ranking-table tbody tr:hover {
        background: rgba(59, 130, 246, 0.05);
      }

      .pool-category-content .pool-ranking-container {
        overflow-x: auto;
      }

      .ranking-table .rank-position {
        font-size: 1.1rem;
        font-weight: 700;
      }

      .ranking-table .competitor-name {
        font-weight: 600;
        color: #1e293b;
      }

      #statsBarResults {
        flex-direction: row !important;
        gap: 6px !important;
        margin-bottom: 12px !important;
        max-width: 320px !important;
        margin-left: auto !important;
        margin-right: auto !important;
      }

      .stat-box {
        flex: 1 1 0px !important;
        min-width: 0 !important;
        padding: 4px 6px !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, .04) !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
      }

      .stat-box .value {
        font-size: 1rem !important;
        line-height: 1.1 !important;
      }

      .stat-box .label {
        font-size: 0.6rem !important;
        margin-bottom: 1px !important;
      }

      .age-category-header {
        padding: 1rem;
      }

      .age-category-header h3 {
        font-size: 1.1rem;
        flex-wrap: wrap;
      }

      .pool-card {
        padding: 1.25rem;
      }

      .pool-card h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
      }

      .badges {
        gap: 6px;
        margin-bottom: 0.75rem;
      }

      .badge {
        font-size: 0.7rem;
        padding: 5px 10px;
      }

      .competitor-item {
        padding: 0.625rem 0;
        font-size: 0.85rem;
      }

      .competitor-name {
        font-size: 0.9rem;
      }

      .competitor-details {
        font-size: 0.75rem;
      }

      .age-category-separator {
        margin: 16px 0 10px 0;
        padding: 6px 0;
      }

      .separator-label {
        font-size: 0.75rem;
        padding: 4px 12px;
      }
    }

    @media (max-width: 480px) {
      .wrap {
        padding: 0.75rem 0.5rem;
      }

      h1 {
        font-size: 1.2rem;
      }

      .subtitle {
        font-size: 0.8rem;
      }

      .global-search-container {
        margin: 1rem 0;
        position: sticky;
        top: 5px;
        z-index: 1010;
      }

      .search-box {
        padding: 0.6rem 1rem;
        border-radius: 12px;
        background: white;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100%;
        box-sizing: border-box;
      }

      .search-input {
        font-size: 1rem !important;
        flex: 1;
      }


      .live-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
      }

      .live-stat-card {
        padding: 1rem;
      }

      .live-stat-value {
        font-size: 1.5rem;
      }

      .live-stat-icon {
        font-size: 1.5rem;
      }

      .live-mats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }

      .fighter-name {
        font-size: 1rem;
      }

      .vs-circle {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
      }

      .current-fight {
        padding: 1.5rem 1rem;
      }

      .tab {
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
        min-width: 90px;
      }

      .view-option {
        padding: 8px 12px;
        font-size: 0.85rem;
      }

      .tapis-option {
        padding: 8px 12px;
        font-size: 0.9rem;
      }



      .fight-row:not(.header-row)>span:not(:first-child):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4))::before,
      .result-row:not(.header-row)>span:not(:first-child):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4))::before {
        min-width: 90px;
        font-size: 0.8rem;
      }

      .fight-row:not(.header-row)>span:first-child,
      .result-row:not(.header-row)>span:first-child {
        font-size: 1.15rem;
      }

      .fight-row:not(.header-row),
      .result-row:not(.header-row) {
        padding: 14px 12px;
      }

      .result-row:not(.header-row) .result-info .winner {
        font-size: 0.95rem;
      }

      .pool-item-header {
        padding: 0.75rem 1rem;
      }

      .pool-item-title {
        font-size: 0.9rem;
      }

      .ranking-table tbody tr {
        padding: 12px 10px;
      }

      .ranking-table td {
        font-size: 0.85rem;
      }

      .header-buttons {
        top: 0.5rem;
        right: 0.5rem;
        gap: 0.3rem;
      }

      .refresh-btn,
      .logout-btn {
        padding: 0.4rem 0.65rem;
        font-size: 0.75rem;
      }

      .refresh-btn {
        padding: 0.4rem 0.5rem;
        font-size: 1rem;
      }

      .score-badge {
        font-size: 1.05rem;
        padding: 4px 8px;
        min-width: 80px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      }

      .shido-count {
        font-size: 0.75rem;
        margin-left: 6px;
        padding-left: 6px;
      }
    }

    .header-buttons {
      position: fixed;
      top: 0.75rem;
      right: 1.5rem;
      z-index: 10000;
    }

    .logout-btn {
      background: rgba(255, 255, 255, 0.9);
      color: #ef4444;
      border: 1px solid #fee2e2;
      padding: 0.5rem 1rem;
      border-radius: 10px;
      font-weight: 700;
      font-size: 0.8rem;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      backdrop-filter: blur(10px);
    }

    .logout-btn:hover {
      background: #ef4444;
      color: white;
      transform: translateY(-2px);
    }
    .logout-btn .logout-icon {
      display: none;
    }
    @media (max-width: 768px) {
      .logout-btn {
        padding: 0.5rem;
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }
      .logout-btn .logout-text {
        display: none;
      }
      .logout-btn .logout-icon {
        display: inline;
      }
    }

    .refresh-btn {
      position: fixed;
      top: 4.2rem;
      right: 1.5rem;
      z-index: 9999;
      width: 48px;
      height: 48px;
      background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
      color: white;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
      transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    }

    .refresh-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    }

    .refresh-icon {
      font-size: 1.4rem;
      display: inline-block;
      transition: transform 0.3s ease;
    }

    .refresh-btn.loading .refresh-icon {
      animation: spinRefresh 0.8s linear infinite !important;
    }

    @keyframes spinRefresh {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    @keyframes spin {
      from {
        transform: rotate(0deg);
      }

      to {
        transform: rotate(360deg);
      }
    }

    .refresh-btn.loading .refresh-icon {
      animation: spin 0.8s linear infinite;
    }

    .refresh-btn:hover,
    .logout-btn:hover {
      background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(29, 78, 216, 0.95) 100%);
      transform: translateY(-2px) scale(1.02);
      box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .refresh-btn:active,
    .logout-btn:active {
      transform: translateY(0) scale(0.98);
    }

    .refresh-btn:disabled {
      opacity: 0.7;
      cursor: not-allowed;
    }

    /* Bouton Retour en haut (très discret, centré tout en haut) */
    .scroll-to-top-btn {
      position: fixed;
      top: 12px;
      left: 50%;
      transform: translate(-50%, -20px);
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.75);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      color: #64748b;
      border: 1px solid rgba(226, 232, 240, 0.8);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2000; /* Plus haut que les en-têtes */
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .scroll-to-top-btn.visible {
      opacity: 1;
      visibility: visible;
      transform: translate(-50%, 0);
    }

    .scroll-to-top-btn:hover {
      background: rgba(255, 255, 255, 0.95);
      color: #1e293b;
      transform: translate(-50%, -2px) scale(1.05);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    }

    .scroll-to-top-btn:active {
      transform: translate(-50%, 0) scale(0.98);
    }

    .scroll-to-top-btn .arrow-up {
      font-size: 1rem;
      font-weight: 600;
      transition: transform 0.2s ease;
    }

    .scroll-to-top-btn:hover .arrow-up {
      transform: translateY(-1px);
    }

    @media (max-width: 768px) {
      .scroll-to-top-btn {
        top: 8px;
        width: 32px;
        height: 32px;
      }
      .scroll-to-top-btn .arrow-up {
        font-size: 0.9rem;
      }
    }

/* Fix for very small Android screens */
    @media (max-width: 430px) {
      .wrap { padding: 0.5rem !important; }
      .stat { min-width: 100% !important; margin-bottom: 0.5rem; }
      .cards { grid-template-columns: 1fr !important; }
      h1 { font-size: 1.4rem !important; }
      .pool-card, .fight-card, .card { min-width: 0 !important; padding: 0.75rem !important; }
      .badge { font-size: 0.65rem !important; padding: 2px 4px !important; }
      .stats { gap: 0.5rem !important; flex-direction: column; }
      .header-buttons { right: 0.25rem !important; top: 0.25rem !important; }
      .refresh-btn { width: 36px !important; height: 36px !important; font-size: 0.8rem !important; }
      .stats-panel { flex-direction: column !important; }
      .filter-bar { flex-direction: column !important; }
      .search-box { width: 100% !important; }
      input, select, button { max-width: 100% !important; }
      
                  /* Amélioration des scores pour petits téléphones */
      .live-scores { gap: 0.75rem !important; flex-wrap: nowrap !important; }
      .score-badge { 
        font-size: 0.95rem !important; 
        min-width: max-content !important; 
        padding: 4px 8px !important; 
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
      }
      .current-timer { font-size: 1.35rem !important; min-width: 50px !important; white-space: nowrap !important; }
      .shido-count { font-size: 0.7rem !important; margin-left: 4px !important; padding-left: 4px !important; display: inline-block; }
      .fighter-name { font-size: 0.95rem !important; }
    }
    
    .rest-countdown-badge {
      background-color: rgba(239, 68, 68, 0.15);
      border: 1px solid #ef4444;
      color: #ef4444;
      padding: 3px 6px;
      border-radius: 4px;
      font-weight: 700;
      font-size: 0.75rem;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
      animation: pulse-border-red-public 2s infinite;
    }

    @keyframes pulse-border-red-public {
      0%, 100% { border-color: #ef4444; box-shadow: 0 0 0 0px rgba(239, 68, 68, 0.4); }
      50% { border-color: #f87171; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
    }
