/* ============================================
   PILOTOS PAGE STYLES
   ============================================ */

.pilotos-main {
    min-height: 100vh;
    background: #ffffff;
}

/* Hero Section */
.pilotos-hero {
    padding: 110px 20px 40px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.05) 0%, rgba(255, 107, 0, 0) 100%);
    border-bottom: 1px solid rgba(255, 107, 0, 0.15);
    position: relative;
}

.pilotos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 36px;
    font-weight: 900;
    margin: 0 0 10px 0;
    color: #1a1a1a;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
    font-weight: 400;
}

.hero-hint {
    font-size: 14px;
    color: #ff6b00;
    margin: 12px 0 0 0;
    font-weight: 500;
    opacity: 0.9;
}

/* Controls */
.pilotos-content {
    padding: 60px 20px 100px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
}

/* Mobile Sort Controls - Hidden by default */
.mobile-sort-controls {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.mobile-sort-controls label {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
}

.mobile-sort-select {
    flex: 1;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-sort-select:focus {
    outline: none;
    border-color: #ff6b00;
    background: #ffffff;
}

.pilotos-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.search-box input {
    width: 100%;
    padding: 14px 45px 14px 20px;
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    color: #1a1a1a;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    background: #ffffff;
    border-color: #ff6b00;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.search-box input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 12px 24px;
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    color: rgba(0, 0, 0, 0.7);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    background: #f8f8f8;
    border-color: rgba(255, 107, 0, 0.3);
    color: #ff6b00;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    border-color: #ff6b00;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

/* Stats Summary */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.08) 0%, rgba(255, 107, 0, 0.03) 100%);
    border: 2px solid rgba(255, 107, 0, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.1);
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.2);
    border-color: rgba(255, 107, 0, 0.3);
}

.summary-number {
    font-size: 28px;
    font-weight: 800;
    color: #ff6b00;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Table */
.table-container {
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.pilotos-table {
    width: 100%;
    border-collapse: collapse;
}

/* Hide badges on desktop */
.piloto-badges {
    display: none;
}

/* Desktop: ensure name wrapper doesn't affect layout */
.piloto-name-wrapper {
    display: inline;
}

.expand-btn {
    display: none;
}

.pilotos-table thead {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 107, 0, 0.05) 100%);
    border-bottom: 2px solid rgba(255, 107, 0, 0.2);
}

.pilotos-table th {
    padding: 18px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #ff6b00;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: none;
}

.pilotos-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.pilotos-table th.sortable:hover {
    background: rgba(255, 107, 0, 0.15);
}

.sort-icon {
    opacity: 0.3;
    margin-left: 5px;
    font-size: 12px;
}

.pilotos-table th.sorted .sort-icon {
    opacity: 1;
    color: #ff6b00;
}

.pilotos-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.pilotos-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.04);
}

.pilotos-table tbody tr:hover {
    background: rgba(255, 107, 0, 0.05);
}

.pilotos-table tbody tr::after {
    content: '›';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #ff6b00;
    opacity: 0;
    transition: all 0.3s ease;
}

.pilotos-table tbody tr:hover::after {
    opacity: 0.6;
    right: 15px;
}

.pilotos-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(255, 107, 0, 0.05) 0%, rgba(255, 107, 0, 0.01) 100%);
    transform: translateX(8px);
    box-shadow: inset 4px 0 0 #ff6b00;
}

.pilotos-table td {
    padding: 12px 20px;
    color: rgba(0, 0, 0, 0.8);
    font-size: 14px;
    vertical-align: middle;
}

.pilotos-table td:first-child {
    font-weight: 600;
    color: #1a1a1a;
}

.loading-row td {
    text-align: center;
    padding: 60px 20px;
    color: rgba(0, 0, 0, 0.6);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 3px solid rgba(255, 107, 0, 0.2);
    border-top-color: #ff6b00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   PILOTO DETALHES PAGE STYLES
   ============================================ */

.piloto-detalhes-main {
    min-height: 100vh;
    background: #ffffff;
}

.piloto-hero {
    padding: 120px 20px 50px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.05) 0%, rgba(255, 107, 0, 0) 100%);
    border-bottom: 1px solid rgba(255, 107, 0, 0.15);
    position: relative;
}

.piloto-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 50%, rgba(255, 107, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff6b00;
    background: rgba(255, 107, 0, 0.1);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 0, 0.2);
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #ffffff;
    background: #ff6b00;
    border-color: #ff6b00;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.piloto-name {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}

.piloto-periodo {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

/* Stats Overview */
.piloto-stats-overview {
    padding: 15px 20px 0;
    background: rgba(255, 107, 0, 0.02);
}

.stats-grid-large {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.stat-card-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 15px 10px;
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-card-large:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.03) 0%, #ffffff 100%);
}

.stat-icon {
    font-size: 28px;
    opacity: 0.8;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number-large {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 3px;
}

.stat-label-large {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Detalhes Content */
.piloto-detalhes-content {
    padding: 0 20px 60px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
}

.content-card:first-child {
    margin-top: 20px;
}

.detalhes-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
}

.content-card {
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.content-card:first-child {
    margin-top: 20px;
}

.content-card:hover {
    border-color: rgba(255, 107, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 107, 0, 0.15);
}

.legenda-simbolos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 12px 16px;
    background: rgba(255, 107, 0, 0.05);
    border-left: 3px solid rgba(255, 107, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
}

.legenda-item {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    text-align: center;
}

/* Temporadas */
.temporada-item {
    padding: 20px;
    background: #f8f8f8;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.temporada-item:hover {
    background: rgba(255, 107, 0, 0.05);
    border-color: rgba(255, 107, 0, 0.2);
}

.temporada-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.temporada-nome {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b00;
}

.temporada-corridas {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.5);
}

.temporada-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.temporada-stat {
    text-align: center;
}

.temporada-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.temporada-stat-label {
    display: block;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* Campeonatos */
.campeonato-item-wrapper {
    margin-bottom: 12px;
}

.campeonato-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f8f8f8;
    border-left: 3px solid rgba(255, 107, 0, 0.5);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.campeonato-item:hover {
    background: rgba(255, 107, 0, 0.08);
    border-left-color: #ff6b00;
    transform: translateX(5px);
}

.campeonato-item-wrapper.active .campeonato-item {
    background: rgba(255, 107, 0, 0.1);
    border-left-color: #ff6b00;
}

.campeonato-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.campeonato-expand {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.campeonato-nome {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.campeonato-participacoes {
    font-size: 13px;
    font-weight: 700;
    color: #ff6b00;
}

.campeonato-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0 0 8px 8px;
    margin-top: -8px;
    padding: 0 20px;
}

.campeonato-item-wrapper.active .campeonato-detail {
    padding: 15px 20px;
}

.campeonato-subitem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.campeonato-subitem:hover {
    background: rgba(255, 107, 0, 0.05);
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 6px;
}

.campeonato-subitem-wrapper.active .campeonato-subitem {
    background: rgba(255, 107, 0, 0.08);
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 6px 6px 0 0;
}

.campeonato-subitem-wrapper:last-child .campeonato-subitem {
    border-bottom: none;
}

.campeonato-subitem-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.campeonato-subexpand {
    font-size: 10px;
    color: #666;
    transition: transform 0.3s ease;
}

.campeonato-subitem-info {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.campeonato-temporada {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.campeonato-categoria {
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(255, 107, 0, 0.1);
    color: #ff6b00;
    border-radius: 4px;
    font-weight: 500;
}

.campeonato-ano {
    font-size: 12px;
    color: #666;
}

.campeonato-corridas {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.campeonato-corridas-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0 0 6px 6px;
    margin-left: -10px;
    margin-right: -10px;
}

.campeonato-subitem-wrapper.active .campeonato-corridas-list {
    padding: 10px;
}

.campeonato-corrida-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    margin-bottom: 6px;
}

.campeonato-corrida-item:last-child {
    margin-bottom: 0;
}

.campeonato-corrida-pista {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
}

.campeonato-corrida-badges {
    font-size: 13px;
    display: flex;
    gap: 4px;
    margin-left: auto;
}

/* Circuitos */
.circuitos-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.circuito-item-wrapper {
    margin-bottom: 12px;
}

.circuito-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f8f8f8;
    border-left: 3px solid rgba(255, 107, 0, 0.5);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.circuito-item:hover {
    background: rgba(255, 107, 0, 0.08);
    border-left-color: #ff6b00;
    transform: translateX(5px);
}

.circuito-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.circuito-expand {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.circuito-nome {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.circuito-participacoes {
    font-size: 13px;
    font-weight: 700;
    color: #ff6b00;
}

.circuito-melhor {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}

.circuito-melhor.resultado-vitoria {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
}

.circuito-melhor.resultado-segundo {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #000;
}

.circuito-melhor.resultado-podio {
    background: linear-gradient(135deg, #cd7f32 0%, #e8a87c 100%);
    color: #000;
}

.circuito-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0 0 8px 8px;
    margin-top: -8px;
    padding: 0;
}

.circuito-corridas-list {
    padding: 15px 20px;
}

.circuito-corrida-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    margin-bottom: 6px;
}

.circuito-corrida-item:last-child {
    margin-bottom: 0;
}

.circuito-corrida-info {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.circuito-corrida-badges {
    font-size: 13px;
    display: flex;
    gap: 4px;
    margin-left: auto;
}

/* Sidebar */
.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.advanced-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.advanced-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.advanced-stat:last-child {
    border-bottom: none;
}

.advanced-label {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
}

.advanced-value {
    font-size: 16px;
    font-weight: 700;
    color: #ff6b00;
}

/* Recordes */
.recorde-item {
    padding: 15px;
    background: rgba(255, 107, 0, 0.05);
    border-left: 3px solid #ff6b00;
    border-radius: 8px;
    margin-bottom: 12px;
}

.recorde-label {
    display: block;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 5px;
}

.recorde-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.recorde-especial {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 107, 0, 0.08));
    border-left-color: #FFD700;
}

.recorde-especial .recorde-label {
    color: #B8860B;
    font-weight: 600;
    cursor: help;
}

.recorde-especial .recorde-value {
    color: #B8860B;
}

/* Ano expandível */
.ano-item-wrapper {
    margin-bottom: 15px;
}

.ano-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.08), rgba(255, 107, 0, 0.03));
    border-left: 4px solid #ff6b00;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ano-item:hover {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.12), rgba(255, 107, 0, 0.06));
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
}

.ano-item-wrapper.active .ano-item {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.15), rgba(255, 107, 0, 0.08));
    border-left-width: 4px;
}

.ano-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.ano-nome {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.ano-info {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.ano-stats-mini {
    display: flex;
    gap: 15px;
    margin-right: 15px;
}

.ano-stat-mini {
    font-size: 14px;
    font-weight: 600;
    color: #ff6b00;
}

.ano-expand {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.ano-temporadas {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 20px;
    margin-top: 0;
}

.ano-item-wrapper.active .ano-temporadas {
    margin-top: 15px;
}

/* Temporada expandível (dentro do ano) */
.temporada-item-wrapper {
    margin-bottom: 12px;
}

.temporada-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.02);
    border-left: 3px solid rgba(255, 107, 0, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.temporada-item:hover {
    background: rgba(255, 107, 0, 0.06);
    border-left-color: #ff6b00;
    transform: translateX(3px);
}

.temporada-item-wrapper.active .temporada-item {
    background: rgba(255, 107, 0, 0.08);
    border-left-color: #ff6b00;
}

.temporada-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.temporada-header:hover {
    background-color: rgba(255, 107, 0, 0.03);
}

.temporada-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.temporada-nome {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.temporada-corridas {
    font-size: 12px;
    color: #666;
}

.temporada-stats-mini {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #666;
    margin-right: 10px;
}

.temporada-toggle {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.temporada-corridas-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-top: 0;
    padding: 0;
}

.temporada-item-wrapper.active .temporada-corridas-list {
    margin-top: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
}

.corrida-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background-color 0.2s ease;
    gap: 12px;
}

.corrida-item:hover {
    background: rgba(255, 107, 0, 0.05);
}

.corrida-principal {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.corrida-pista {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
}

.corrida-liga-categoria {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.corrida-liga {
    font-size: 12px;
    color: #ff6b00;
    font-weight: 600;
    background: rgba(255, 107, 0, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.corrida-categoria {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.corrida-ano {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

.corrida-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.corrida-resultado {
    font-weight: 700;
    font-size: 16px;
    min-width: 40px;
    text-align: center;
}

.resultado-vitoria {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.resultado-segundo {
    background: linear-gradient(135deg, #C0C0C0 0%, #E8E8E8 100%);
    color: #1a1a1a;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

.resultado-podio {
    background: linear-gradient(135deg, #CD7F32 0%, #E8A87C 100%);
    color: #fff;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

.resultado-dnf {
    color: #dc3545;
}

.corrida-equipe {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
    min-width: 120px;
}

.corrida-badges {
    font-size: 14px;
    min-width: 30px;
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.loading-text {
    text-align: center;
    color: rgba(0, 0, 0, 0.5);
    font-size: 14px;
}

/* Stat Cards Clicáveis */
.stat-card-clickable {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.stat-card-clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.2);
}

.stat-card-clickable.active {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), rgba(255, 107, 0, 0.05));
    border: 2px solid #ff6b00;
}

.stat-expand-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    color: rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.stat-card-clickable.active .stat-expand-icon {
    transform: rotate(180deg);
    color: #ff6b00;
}

/* Stat Detail Section */
.stat-detail-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-top: 0;
    display: none;
}

.stat-detail-section.active {
    max-height: none;
    display: block;
    margin-top: 20px;
}

.stat-detail-content {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.stat-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-detail-count {
    font-size: 16px;
    color: #ff6b00;
    font-weight: 600;
}

.stat-detail-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.stat-detail-list::-webkit-scrollbar {
    width: 6px;
}

.stat-detail-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.stat-detail-list::-webkit-scrollbar-thumb {
    background: #ff6b00;
    border-radius: 3px;
}

.stat-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    transition: all 0.2s ease;
    gap: 12px;
}

.stat-detail-item:hover {
    background: rgba(255, 107, 0, 0.08);
    transform: translateX(5px);
}

.stat-detail-item-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-detail-pista {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
}

.stat-detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-detail-liga {
    font-size: 12px;
    color: #ff6b00;
    font-weight: 600;
    background: rgba(255, 107, 0, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.stat-detail-categoria {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.stat-detail-temporada {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

.stat-detail-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-detail-posicao {
    font-size: 16px;
    font-weight: 700;
    min-width: 45px;
    text-align: left;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

.stat-detail-posicao.badge-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.stat-detail-posicao.badge-2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #E8E8E8 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

.stat-detail-posicao.badge-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #E8A87C 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

.stat-detail-posicao:not(.badge-1):not(.badge-2):not(.badge-3) {
    color: #666;
}

.stat-detail-equipe {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
    min-width: 100px;
}

/* Títulos Grid - Visualização Especial */
.titulos-group {
    margin-bottom: 30px;
}

.titulos-group:last-child {
    margin-bottom: 0;
}

.titulos-group-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 107, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.titulos-group-count {
    font-size: 14px;
    color: #ff6b00;
    font-weight: 600;
}

.titulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.titulo-card-wrapper {
    display: flex;
    flex-direction: column;
}

.titulo-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 0, 0.05));
    border: 2px solid #ffd700;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.titulo-card-construtor {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(128, 128, 128, 0.08));
    border: 2px solid #c0c0c0;
}

.titulo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.titulo-card-construtor::before {
    background: linear-gradient(45deg, transparent, rgba(192, 192, 192, 0.15), transparent);
}

.titulo-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    border-color: #ff6b00;
}

.titulo-card.active {
    border-color: #ff6b00;
    border-width: 3px;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 107, 0, 0.1));
}

.titulo-card-construtor:hover {
    box-shadow: 0 10px 30px rgba(192, 192, 192, 0.4);
    border-color: #909090;
}

.titulo-card-construtor.active {
    border-color: #666;
    border-width: 3px;
    box-shadow: 0 8px 25px rgba(102, 102, 102, 0.4);
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.25), rgba(128, 128, 128, 0.15));
}

.titulo-card:hover::before {
    right: 150%;
}

.titulo-trophy {
    font-size: 48px;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    animation: trophy-pulse 2s ease-in-out infinite;
}

.titulo-card-construtor .titulo-trophy {
    filter: drop-shadow(0 0 10px rgba(192, 192, 192, 0.5));
}

@keyframes trophy-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.titulo-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.titulo-tipo {
    font-size: 11px;
    font-weight: 700;
    color: #ff6b00;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.titulo-card-construtor .titulo-tipo {
    color: #666;
}

.titulo-liga {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b00;
    line-height: 1.2;
}

.titulo-card-construtor .titulo-liga {
    color: #555;
}

.titulo-temporada {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.titulo-categoria {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.titulo-equipe {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 2px;
}

.titulo-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.titulo-ano {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.titulo-corridas {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

.titulo-expand {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    position: absolute;
    top: 15px;
    right: 15px;
}

.titulo-corridas-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 0;
    background: white;
    border-radius: 12px;
    padding: 0;
}

.titulo-corridas-list.expanded {
    margin-top: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.titulo-corrida-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    margin-bottom: 6px;
    gap: 12px;
}

.titulo-corrida-item:last-child {
    margin-bottom: 0;
}

.titulo-corrida-pista {
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
}

.titulo-corrida-resultado {
    font-weight: 700;
    font-size: 16px;
    min-width: 50px;
    text-align: center;
    padding: 4px 10px;
    border-radius: 6px;
}

.titulo-corrida-resultado.resultado-vitoria {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
}

.titulo-corrida-resultado.resultado-podio {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    color: white;
}

.titulo-corrida-resultado.resultado-dnf {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
}

.titulo-corrida-badges {
    font-size: 14px;
    min-width: 40px;
    text-align: right;
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    margin-left: auto;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 20px;
    margin-top: 60px;
    border-top: 2px solid #ff6b00;
}

.site-footer p {
    margin: 0;
    font-size: 14px;
}

.site-footer strong {
    color: #ff6b00;
    font-weight: 600;
}
@media (max-width: 1024px) {
    .detalhes-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    * {
        max-width: 100%;
    }
    
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
    }
    
    .pilotos-main .container {
        padding: 0 15px;
    }
    
    .pilotos-hero {
        padding: 80px 15px 30px;
    }
    
    .piloto-hero {
        padding: 90px 15px 25px;
    }
    
    .piloto-name {
        font-size: 22px;
        word-break: break-word;
        line-height: 1.2;
    }
    
    /* Hide specific columns on mobile to prevent horizontal scroll */
    .hide-mobile {
        display: none !important;
    }
    
    .piloto-periodo {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-hint {
        font-size: 13px;
    }
    
    .back-link {
        font-size: 13px;
        padding: 8px 14px;
        margin-bottom: 20px;
    }
    
    .search-box {
        min-width: 0;
    }
    
    .search-box input {
        padding: 12px 40px 12px 15px;
        font-size: 14px;
    }
    
    /* Show Mobile Sort Controls */
    .mobile-sort-controls {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    
    .mobile-sort-controls label {
        width: 100%;
        font-size: 13px;
    }
    
    .mobile-sort-select {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
    }

    /* Show badges on mobile */
    .piloto-badges {
        display: flex;
    }
    
    .piloto-stats-overview {
        padding: 25px 0;
    }
    
    .piloto-stats-overview .container {
        padding: 0 15px;
    }
    
    .pilotos-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .filter-controls {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 12px;
        white-space: nowrap;
        flex: 1;
        min-width: 80px;
    }
    
    .stats-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 0;
    }
    
    .stat-card-large {
        padding: 10px 6px;
        min-width: 0;
    }
    
    .stat-icon {
        font-size: 20px;
    }
    
    .stat-number-large {
        font-size: 20px;
    }
    
    .stat-label-large {
        font-size: 9px;
    }
    
    /* Transformar tabela em cards no mobile */
    .table-container {
        overflow: visible;
    }
    
    .pilotos-table {
        display: block;
        border: none;
    }
    
    .pilotos-table thead {
        display: none;
    }
    
    .pilotos-table tbody {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pilotos-table tr {
        display: block;
        background: #ffffff;
        border: 2px solid #e9ecef;
        border-radius: 12px;
        padding: 20px;
        transition: all 0.3s ease;
        position: relative;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    .pilotos-table tr.expanded {
        border-color: #ff6b00;
    }
    
    .pilotos-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        font-size: 15px;
        font-weight: 600;
        color: #1a1a1a;
    }
    
    .pilotos-table td:last-child {
        border-bottom: none;
    }
    
    .pilotos-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6c757d;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
        margin-right: 10px;
    }
    
    /* Primeira célula (nome) destaque */
    .pilotos-table td:first-child {
        font-size: 18px;
        font-weight: 700;
        color: #ff6b00;
        padding: 0 0 0 0;
        margin-bottom: 0;
        border-bottom: none;
        justify-content: flex-start;
        position: relative;
    }
    
    .pilotos-table td:first-child::before {
        display: none;
    }
    
    .piloto-name-wrapper {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding-right: 40px;
    }
    
    .piloto-name-text {
        font-size: 18px;
        font-weight: 700;
        color: #ff6b00;
    }
    
    .piloto-badges {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .stat-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 4px 10px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
        color: #495057;
    }
    
    .stat-badge-highlight {
        background: #fff3e6;
        border-color: #ff6b00;
        color: #ff6b00;
    }
    
    /* Esconder badges quando expandido */
    .pilotos-table tr.expanded .piloto-badges {
        display: none;
    }
    
    /* Mostrar borda e espaçamento quando expandido */
    .pilotos-table tr.expanded td:first-child {
        padding-bottom: 12px;
        margin-bottom: 8px;
        border-bottom: 2px solid #ff6b00;
    }
    
    /* Botão de expansão */
    .expand-btn {
        position: absolute;
        top: 0;
        right: 0;
        width: 32px;
        height: 32px;
        background: #ff6b00;
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 20px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10;
        padding: 0;
        line-height: 1;
    }
    
    .expand-btn:hover {
        background: #e05d00;
        transform: scale(1.1);
    }
    
    .expand-btn::before {
        content: '+';
    }
    
    .pilotos-table tr.expanded .expand-btn::before {
        content: '−';
    }
    
    /* Esconder dados expandidos por padrão */
    .pilotos-table .expandable-data {
        display: none;
    }
    
    /* Mostrar quando expandido */
    .pilotos-table tr.expanded .expandable-data {
        display: flex;
    }
    
    /* Ocultar informações extras no mobile para listagens principais */
    .ano-stats-mini {
        display: none;
    }
    
    .temporada-stats-mini {
        display: none;
    }
    
    .ano-info {
        font-size: 11px;
    }
    
    .temporada-corridas {
        font-size: 11px;
    }
    
    .campeonato-participacoes {
        font-size: 11px;
    }
}

/* Radar Chart */
.radar-chart-subtitle {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    margin: -10px 0 10px 0;
    text-align: center;
}

#statsRadarChart {
    width: 100% !important;
    height: auto !important;
    max-height: 320px;
    margin: 0 auto;
    display: block;
}

.stats-comparison {
    margin: 0 0 15px 0;
    max-height: 500px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.4s ease;
}

.stats-comparison.hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

.toggle-comparison-btn {
    width: 100%;
    padding: 8px 12px;
    margin-top: 12px;
    margin-bottom: 12px;
    background: rgba(255, 107, 0, 0.08);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 6px;
    color: #ff6b00;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.toggle-comparison-btn:hover {
    background: rgba(255, 107, 0, 0.12);
    border-color: rgba(255, 107, 0, 0.3);
    transform: translateY(-1px);
}

.toggle-comparison-btn .toggle-icon {
    font-size: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.toggle-comparison-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.comparison-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 6px 10px;
    background: rgba(255, 107, 0, 0.04);
    border-left: 2px solid rgba(255, 107, 0, 0.3);
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 11px;
}

.comparison-label {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
    font-size: 11px;
}

.comparison-leader {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.5);
    text-align: right;
}

.comparison-you {
    font-weight: 700;
    color: #ff6b00;
    text-align: right;
    min-width: 65px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .radar-chart-subtitle {
        font-size: 11px;
        margin: -8px 0 15px 0;
    }
    
    #statsRadarChart {
        max-height: 300px;
    }
}
