/* ========================================
   RACE ADMIN - HALL DA FAMA - UNIFICADO
   Todos os estilos em um único arquivo
   VERSION: 3.0 - Sistema de Cores Customizáveis
   ======================================== */

:root {
    /* ============================================================
       CORES BASE
       ============================================================ */
    --primary-color: #FF6B00;
    --secondary-color: #1A1A1A;
    --accent-color: #FFD700;

    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --bg-dark: #0A0A0A;
    --bg-card: #1F1F1F;
    --bg-card-hover: #2A2A2A;

    --primary-light: color-mix(in srgb, var(--primary-color) 70%, white);
    --primary-dark: color-mix(in srgb, var(--primary-color) 70%, black);
    --secondary-dark: color-mix(in srgb, var(--secondary-color) 70%, black);

    --gradient-hero: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-filter: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));

    --shadow-primary: 0 8px 32px color-mix(in srgb, var(--primary-color) 30%, transparent);

    /* ============================================================
       MEDALHAS
       ============================================================ */
    --gold: linear-gradient(135deg, #FFD700, #FFA500);
    --silver: linear-gradient(135deg, #E8E8E8, #A0A0A0);
    --bronze: linear-gradient(135deg, #CD7F32, #8B4513);

    --shadow-gold: 0 12px 40px rgba(255, 215, 0, 0.4);
    --shadow-silver: 0 8px 32px rgba(192, 192, 192, 0.3);
    --shadow-bronze: 0 8px 32px rgba(205, 127, 50, 0.3);

    /* ============================================================
       BOTÕES - ESTADOS
       ============================================================ */

    /* Estado Normal */
    --bg-btn-primary: var(--primary-color);
    --border-btn-primary: var(--primary-color);
    --shadow-btn-primary: 0 4px 16px color-mix(in srgb, var(--primary-color) 40%, transparent);
    --text-btn-primary: #FFFFFF;

    /* Estado Hover */
    --bg-btn-hover: var(--primary-light);
    --border-btn-hover: var(--primary-light);
    --shadow-btn-hover: 0 6px 24px color-mix(in srgb, var(--primary-color) 50%, transparent);

    /* Estado Active/Selected */
    --bg-btn-active: var(--accent-color);
    --border-btn-active: var(--accent-color);
    --text-btn-active: #000000;
    --shadow-btn-active: 0 8px 32px color-mix(in srgb, var(--accent-color) 60%, transparent);

    /* ============================================================
       FILTROS - BACKGROUNDS
       ============================================================ */
    --bg-filters: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    --bg-filters-collapsed: rgba(26, 26, 26, 0.95);

    /* ============================================================
       BOTÕES SECUNDÁRIOS (ex: Ver Tudo, Collapse)
       ============================================================ */
    --bg-btn-secondary: var(--secondary-color);
    --border-btn-secondary: var(--primary-color);
    --text-btn-secondary: var(--text-primary);
    --shadow-btn-secondary: 0 4px 12px rgba(0, 0, 0, 0.3);

    --bg-btn-secondary-hover: var(--bg-card-hover);
    --border-btn-secondary-hover: var(--primary-light);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

.hall-of-fame-container {
    max-width: 100%;
    margin: 0 auto;
}

/* ========================================
   HERO
======================================== */
.hof-hero {
    background: var(--gradient-hero);
    padding: 60px 20px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hof-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(255, 255, 255, 0.03) 35px,
        rgba(255, 255, 255, 0.03) 70px
    );
    animation: slidePattern 20s linear infinite;
}

@keyframes slidePattern {
    0% { transform: translateX(0); }
    100% { transform: translateX(70px); }
}

.hof-hero-content {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 5px 5px 20px 5px;
    border-radius: 15px;
}

.hof-trophy {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: floatTrophy 3s ease-in-out infinite;
}

@keyframes floatTrophy {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.hof-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hof-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* ========================================
   FILTROS + BOTÃO RECOLHER
======================================== */
.hof-filters, .hof-category-filters {
    background: var(--bg-filters);
    padding: 25px 20px;
    z-index: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hof-category-filters::before {
    content: '';
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(255, 255, 255, 0.03) 35px,
        rgba(255, 255, 255, 0.03) 70px
    );
    animation: slidePattern 20s linear infinite;
}

.hof-filters.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.hof-category-filters {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 20px;
    z-index: 90;
}

.hof-category-filters.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}


@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-45deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.hof-filters-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.hof-filter-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.hof-filter-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.hof-filter-pill, .hof-category-filter-pill {
    background: var(--bg-btn-primary);
    color: var(--text-btn-primary);
    border: 2px solid var(--border-btn-primary);
    box-shadow: var(--shadow-btn-primary);
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hof-filter-pill:hover, .hof-category-filter-pill:hover {
    background: var(--bg-btn-hover);
    border-color: var(--border-btn-hover);
    box-shadow: var(--shadow-btn-hover);
    transform: translateY(-2px);
}

.hof-filter-pill.active {
    background: var(--bg-btn-active);
    border-color: var(--border-btn-active);
    box-shadow: var(--shadow-btn-active);
    color: var(--text-btn-active);
}

.hof-category-filter-pill.active {
    background: var(--bg-btn-active);
    color: var(--text-btn-active);
    border-color: var(--border-btn-active);
    box-shadow: var(--shadow-btn-active);
}

.hof-category-filter-pill.disabled {
    opacity: 0.3;
    pointer-events: none;
    display: none;
}

/* ========================================
   CONTENT
======================================== */
.hof-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hof-category-wrapper {
    margin-bottom: 80px;
}

.hof-category-wrapper.hidden {
    display: none;
}

.hof-season-section {
    display: none;
}

.hof-season-section.active {
    display: block;
    animation: fadeInSection 0.5s ease;
}

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

/* ========================================
   DIVISOR DE CAMPEONATOS
======================================== */
.hof-championship-divider {
    text-align: center;
    margin: 50px 0 40px;
    position: relative;
}

.hof-championship-divider h3 {
    display: inline-block;
    background: var(--bg-dark);
    color: var(--accent-color);
    padding: 12px 30px;
    border-radius: 25px;
    border: 2px solid var(--accent-color);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.hof-championship-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.3;
}

/* ========================================
   HEADER DA CATEGORIA
======================================== */
.hof-super-champion-header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 30px;
}

.hof-category-wrapper > div:first-child .hof-super-champion-header {
    margin-top: 0;
}

.hof-super-champion-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hof-super-champion-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ========================================
   BOTÃO VER TUDO (COMPARTILHAR)
======================================== */
.hof-share-podium-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.5rem;
    background: var(--bg-btn-primary);
    border: 1px solid var(--border-btn-secondary);
    border-radius: 8px;
    color: var(--text-btn-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    max-width: 170px;
}

.hof-share-podium-btn:hover {
    background: var(--bg-btn-secondary-hover);
    border-color: var(--border-btn-secondary-hover);
    color: var(--text-primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-btn-secondary);
}

.hof-share-podium-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.hof-share-podium-btn:hover i {
    transform: translateX(3px);
}

/* ========================================
   ANIMAÇÕES
======================================== */
.fade-in-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

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

/* ========================================
   BADGE ATUAL
======================================== */
.badge-atual {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-primary);
    animation: pulse 2s infinite;
    z-index: 10;
    text-transform: uppercase;
}

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

/* ========================================
   PÓDIO (Grid Geral)
======================================== */
.hof-podium {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .hof-podium {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hof-podium {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   CARDS DE PILOTOS
======================================== */
.hof-champion-card {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
}

.hof-champion-card:hover {
    transform: translateY(-12px) scale(1.03);
    background: var(--bg-card-hover);
}

.hof-champion-card.first {
    grid-column: 1 / -1;
    background: var(--gold);
    box-shadow: var(--shadow-gold);
    border-color: #FFD700;
}

.hof-champion-card.first:hover {
    box-shadow: 0 20px 50px rgba(255, 193, 7, 0.5);
}

.hof-champion-card.first::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

@media (min-width: 1024px) {
    .hof-champion-card.first {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }
}

.hof-champion-card.first .hof-champion-photo {
    width: 140px;
    height: 140px;
}

.hof-champion-card.first .hof-champion-name {
    font-size: 2.2rem;
}

.hof-champion-card.first .hof-champion-points {
    font-size: 2.8rem;
}

.hof-champion-card.second {
    background: var(--silver);
    box-shadow: var(--shadow-silver);
    border-color: #C0C0C0;
}

.hof-champion-card.third {
    background: var(--bronze);
    box-shadow: var(--shadow-bronze);
    border-color: #CD7F32;
}

.hof-medal-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 2.8rem;
    transform: rotate(15deg);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hof-champion-card:hover .hof-medal-badge {
    opacity: 0.5;
    transform: rotate(20deg) scale(1.1);
}

.hof-champion-card.first .hof-medal-badge {
    font-size: 3.5rem;
}

.hof-champion-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hof-position-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.hof-champion-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.hof-champion-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hof-champion-card:hover .hof-champion-photo {
    transform: scale(1.1) rotate(5deg);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    border-radius: 50%;
}

.hof-champion-name {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.hof-champion-points {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--bg-dark);
    margin-bottom: 5px;
}

.hof-points-label {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 600;
    text-transform: uppercase;
}

/* ========================================
   CARDS DE EQUIPES
======================================== */
.hof-team-card {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
}

.hof-team-card:hover {
    transform: translateY(-12px) scale(1.03);
    background: var(--bg-card-hover);
}

.hof-team-card.first {
    grid-column: 1 / -1;
    background: var(--gold);
    box-shadow: var(--shadow-gold);
    border-color: #FFD700;
}

@media (min-width: 1024px) {
    .hof-team-card.first {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }
}

.hof-team-card.second {
    background: var(--silver);
    box-shadow: var(--shadow-silver);
    border-color: #C0C0C0;
}

.hof-team-card.third {
    background: var(--bronze);
    box-shadow: var(--shadow-bronze);
    border-color: #CD7F32;
}

.hof-team-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hof-team-logo {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    margin: 0 auto 18px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
    overflow: hidden;
    padding: 10px;
}

.hof-team-card.first .hof-team-logo {
    width: 160px;
    height: 160px;
}

.hof-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hof-team-card:hover .hof-team-logo {
    transform: scale(1.1);
}

.team-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.hof-team-name {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.hof-team-card.first .hof-team-name {
    font-size: 2.2rem;
}

.hof-team-points {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--bg-dark);
    margin-bottom: 5px;
}

.hof-team-card.first .hof-team-points {
    font-size: 2.8rem;
}

/* Pilotos da Equipe */
.hof-team-drivers, .hof-team-pilots {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.hof-team-driver, .hof-team-pilot {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 15px;
    border-radius: 15px;
    min-width: 140px;
    backdrop-filter: blur(10px);
}

.hof-team-driver:hover, .hof-team-pilot:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateX(2px);
}

.hof-team-driver-photo, .hof-team-pilot-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hof-team-driver-photo img, .hof-team-pilot-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder-tiny {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 900;
}

.hof-team-driver-info, .hof-team-pilot-info {
    flex: 1;
    text-align: left;
}

.hof-team-driver-name, .hof-team-pilot-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.hof-team-driver-points, .hof-team-pilot-points {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hof-team-driver-pos {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ========================================
   TOP 6 GRID (4º-6º)
======================================== */
.hof-top6 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 640px) {
    .hof-top6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hof-top6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cards Top 6 Pilotos */
.hof-top6-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hof-top6-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-primary);
}

.hof-top6-position {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--accent-color);
    min-width: 45px;
}

.hof-top6-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    border: 3px solid var(--primary-color);
    overflow: hidden;
}

.hof-top6-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder-small {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50%;
}

.hof-top6-info {
    flex: 1;
}

.hof-top6-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.hof-top6-points {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Cards Top 6 Equipes */
.hof-top6-team-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hof-top6-team-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--accent-color);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
}

.hof-top6-team-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--accent-color);
    overflow: hidden;
    padding: 5px;
}

.hof-top6-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-placeholder-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.hof-top6-team-drivers-mini, .hof-top6-team-pilots {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.hof-top6-team-drivers-mini span {
    display: inline-block;
    margin-right: 8px;
}

.hof-top6-team-drivers-mini span::after {
    content: '•';
    margin-left: 8px;
    opacity: 0.5;
}

.hof-top6-team-drivers-mini span:last-child::after {
    content: '';
}

.hof-top6-pilot-name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    display: block;
    line-height: 1.3;
}

.hof-top6-pilot-name strong {
    color: var(--accent-color);
    font-weight: 600;
    margin-left: 0.25rem;
}

/* ========================================
   MODAL DE COMPARTILHAMENTO
======================================== */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.share-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.share-modal-content {
    background: var(--secondary-color);
    border-radius: 25px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.share-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.share-modal-title {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin: 0 0 10px 0;
    text-align: center;
}

.share-modal-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 35px 0;
    text-align: center;
}

.share-layout-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.share-layout-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.share-layout-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
}

.share-layout-preview {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
}

.preview-mockup {
    width: 90px;
    height: 160px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.mockup-header {
    width: 100%;
    height: 20px;
    background: rgba(255, 215, 0, 0.8);
    border-radius: 6px;
}

.mockup-podium {
    width: 100%;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.mockup-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.preview-mockup-square {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.mockup-grid-left {
    background: rgba(255, 215, 0, 0.8);
    border-radius: 8px;
}

.mockup-grid-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup-mini {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.share-layout-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    margin: 0 0 8px 0;
}

.share-layout-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
}

.share-layout-badge {
    display: inline-block;
    background: var(--gradient-hero);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.share-layout-badge.popular {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.share-modal-loading {
    text-align: center;
    padding: 40px 0;
}

.share-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.share-modal-loading p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* =============================================
   PLAYER DE ÁUDIO - TEMA DA VITÓRIA
============================================= */

.hof-audio-player {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: fadeInAudio 0.8s ease-out 0.5s backwards;
}

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

.hof-audio-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-btn-primary);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.hof-audio-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.hof-audio-btn:hover::before {
    left: 100%;
}

.hof-audio-btn:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-btn-hover);
}

.hof-audio-btn:active {
    transform: scale(0.98);
}

.audio-icon {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.audio-text {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.audio-wave {
    display: none;
    gap: 3px;
    align-items: center;
    height: 20px;
}

.hof-audio-btn.playing .audio-wave {
    display: flex;
}

.wave-bar {
    width: 3px;
    height: 100%;
    background: #000;
    border-radius: 2px;
    animation: waveAnimation 0.8s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.2s; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; }
.wave-bar:nth-child(4) { animation-delay: 0.6s; }

@keyframes waveAnimation {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

.hof-audio-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.hof-audio-volume:hover {
    opacity: 1;
}

.volume-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.volume-btn:hover {
    transform: scale(1.15);
}

.volume-slider {
    width: 100px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hof-audio-progress {
    width: 300px;
    max-width: 90%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 10px 15px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 3px;
    transition: width 0.1s linear;
}

.progress-bar.playing::before {
    width: var(--progress, 0%);
}

.progress-time {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.hof-audio-btn.playing {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.hof-audio-btn.playing:hover {
    box-shadow: 0 8px 28px rgba(76, 175, 80, 0.7);
}

/* =============================================
   AUTO-SCROLL CINEMATOGRÁFICO
============================================= */

.hof-auto-scroll-btn {
    position: fixed !important;
    top: 100px !important;
    right: 30px !important;
    z-index: 99999 !important;

    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--secondary-color), var(--bg-card-hover)) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;

    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 24px !important;

    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

.hof-auto-scroll-btn:hover {
    transform: scale(1.1) !important;
    background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-card)) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6) !important;
}

.hof-auto-scroll-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    animation: pulseScroll 2s ease-in-out infinite !important;
    box-shadow: var(--shadow-primary) !important;
}

.hof-auto-scroll-btn.active:hover {
    transform: scale(1.1) !important;
    box-shadow: var(--shadow-btn-hover) !important;
}

.hof-speed-menu {
    position: fixed !important;
    top: 170px !important;
    right: 30px !important;
    z-index: 99998 !important;

    background: var(--secondary-color) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 12px !important;
    min-width: 160px !important;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;

    opacity: 0 !important;
    transform: translateY(20px) scale(0.9) !important;
    pointer-events: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hof-speed-menu.open {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: all !important;
}

.hof-speed-btn {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 12px 16px !important;
    margin-bottom: 8px !important;

    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: left !important;

    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.hof-speed-btn:last-child {
    margin-bottom: 0 !important;
}

.hof-speed-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    transform: translateX(-4px) !important;
}

.hof-speed-btn.active {
    background: rgba(255, 107, 0, 0.15) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.hof-speed-btn-icon {
    font-size: 18px !important;
    min-width: 20px !important;
    text-align: center !important;
}

.hof-cinema-badge {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 100000 !important;

    background: rgba(26, 26, 26, 0.95) !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 12px !important;
    padding: 16px 32px !important;

    color: white !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center !important;

    box-shadow: var(--shadow-primary), 0 0 60px var(--primary-color) !important;
    backdrop-filter: blur(10px) !important;

    animation: fadeInScale 0.4s ease-out !important;

    opacity: 0 !important;
    pointer-events: none !important;
}

.hof-cinema-badge.visible {
    opacity: 1 !important;
    animation: fadeInScale 0.4s ease-out, fadeOut 0.4s ease-out 2s forwards !important;
}

@keyframes pulseScroll {
    0%, 100% {
        box-shadow: var(--shadow-primary);
    }
    50% {
        box-shadow: var(--shadow-btn-hover);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

.hof-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 99997 !important;
    background: transparent !important;
    display: none !important;
}

.hof-menu-overlay.active {
    display: block !important;
}
/* ========================================
   SUPERCATEGORIAS
======================================== */

.hof-super-category-filter {
    background: var(--secondary-color);
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 101;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid var(--primary-color);
}

.hof-super-category-filter-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hof-super-filter-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    font-weight: 600;
}

.hof-super-select {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 14px 20px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFFFFF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 45px;
}

.hof-super-select:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-primary);
    background-color: var(--bg-card-hover);
}

.hof-super-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-btn-primary);
}

.hof-super-select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px;
    font-weight: 600;
}

.hof-super-select option:hover {
    background: var(--primary-color);
    color: white;
}

.hof-super-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gradient-hero);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-primary);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: fadeInBadge 0.5s ease-out;
}

@keyframes fadeInBadge {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hof-super-badge.dual {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: #000;
    font-weight: 800;
}

.hof-super-badge-separator {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.hof-super-badge.dual .hof-super-badge-separator {
    color: rgba(0, 0, 0, 0.4);
}

.hof-champion-card.first .hof-super-badge,
.hof-team-card.first .hof-super-badge {
    top: 15px;
    left: 15px;
    padding: 8px 18px;
    font-size: 0.85rem;
}

[data-supercategoria-id].super-filtered-out {
    display: none !important;
}

[data-supercategoria-id]:not(.super-filtered-out) {
    animation: fadeInCard 0.4s ease-out;
}

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

.hof-super-select.loading {
    pointer-events: none;
    opacity: 0.6;
    cursor: wait;
}

.hof-super-select.loading::after {
    content: '⏳';
    position: absolute;
    right: 40px;
    animation: spin 1s linear infinite;
}

/* ========================================
   LOADER ANIMADO COM BACKGROUND
======================================== */
.hof-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.hof-loader[style*="display: block"] {
    display: flex !important;
}

.hof-loader-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.hof-loader p {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0;
}

.hof-loader-progress {
    margin-top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.hof-loader-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

.hof-loader-percent {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
}

.hof-loader-text {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   BOTÕES DE VISUALIZAÇÃO (Categorias / SuperCategorias)
======================================== */
.hof-view-selector {
    display: flex;
    justify-content: center;
    max-width: 100%;
    background-color: var(--bg-filters);
    margin: 0 auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    gap: 1rem;
}

.hof-view-btn {
    flex: 1;
    padding: 0.5rem 0.5rem;
    background: var(--bg-btn-secondary);
    border: 2px solid var(--border-btn-secondary);
    border-radius: 50px;
    color: var(--text-btn-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    max-width: 250px;
}

.hof-view-btn:hover {
    background: var(--bg-btn-secondary-hover);
    border-color: var(--border-btn-secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-secondary);
}

.hof-view-btn.active {
    background: var(--bg-btn-active);
    border-color: var(--border-btn-active);
    color: var(--text-btn-active);
    box-shadow: var(--shadow-btn-active);
}

.hof-view-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
}

/* ========================================
   RESPONSIVO
======================================== */
@media (max-width: 768px) {
    .hof-title {
        font-size: 1.9rem;
    }

    .hof-super-champion-title {
        font-size: 1.8rem;
    }

    .hof-champion-card.first .hof-champion-name,
    .hof-team-card.first .hof-team-name {
        font-size: 1.8rem;
    }

    .badge-atual {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .hof-share-podium-btn {
        position: static;
        display: block;
        margin: 20px auto 0;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .hof-team-drivers, .hof-team-pilots {
        flex-direction: column;
        align-items: stretch;
    }

    .hof-auto-scroll-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
        top: 80px;
        right: 15px;
    }

    .hof-speed-menu {
        top: 140px;
        right: 15px;
        padding: 10px;
    }

    .hof-cinema-badge {
        padding: 20px 40px;
        font-size: 20px;
    }

    .hof-toggle-filters-btn {
        padding: 6px 20px !important;
        font-size: 14px !important;
    }

    .hof-toggle-filters-btn.fixed {
        padding: 8px 24px !important;
    }

    .hof-audio-btn {
        padding: 12px 22px;
        font-size: 0.9rem;
    }

    .audio-text {
        font-size: 0.85rem;
    }

    .hof-audio-progress {
        width: 250px;
    }

    .volume-slider {
        width: 80px;
    }

    .hof-super-category-filter {
        padding: 15px;
    }

    .hof-super-select {
        font-size: 0.9rem;
        padding: 12px 18px;
        padding-right: 40px;
    }

    .hof-super-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
        top: 8px;
        left: 8px;
    }

    .hof-champion-card.first .hof-super-badge,
    .hof-team-card.first .hof-super-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .hof-view-selector {
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
        margin: 0 auto;
        align-items: center;
    }

    .hof-view-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .hof-team-pilot {
        gap: 0.5rem;
        padding: 0.375rem 0.5rem;
    }

    .hof-team-pilot-photo {
        width: 32px;
        height: 32px;
        border-width: 1.5px;
    }

    .hof-team-pilot-name {
        font-size: 0.85rem;
    }

    .hof-team-pilot-points {
        font-size: 0.75rem;
    }

    .hof-top6-pilot-name {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hof-audio-player {
        gap: 12px;
    }

    .hof-audio-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .audio-text {
        display: none;
    }

    .hof-audio-progress {
        width: 200px;
    }

    .volume-slider {
        width: 60px;
    }

    .hof-super-select {
        font-size: 0.85rem;
        padding: 10px 15px;
        padding-right: 35px;
    }

    .hof-super-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
}

.hof-filters.collapsed ~ .hof-super-category-filter {
    top: 0;
    z-index: 101;
    border-bottom: 3px solid var(--primary-color);
}

/* ============================================================
   BOTÃO RECOLHER FILTROS - HERO INTEGRADO
   ============================================================ */

.hof-toggle-filters-btn {
    /* Posicionamento dentro da HERO */
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;

    /* Visual */
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50px !important;
    padding: 0.75rem 1.5rem !important;
    margin-top: 1.5rem !important;

    /* Texto */
    color: white !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;

    /* Interação */
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;

    /* Reset Bootstrap */
    position: relative !important;
    z-index: 1 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    outline: none !important;
}

/* Hover */
.hof-toggle-filters-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Active (Clique) */
.hof-toggle-filters-btn:active {
    transform: translateY(0) scale(0.98) !important;
}

/* Focus (acessibilidade) */
.hof-toggle-filters-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5) !important;
    outline-offset: 2px !important;
}

/* Estado Collapsed (filtros ocultos) */
.hof-toggle-filters-btn.collapsed {
    background: var(--bg-btn-active) !important;
    border-color: var(--border-btn-active) !important;
    color: var(--text-btn-active) !important;
    box-shadow: var(--shadow-btn-active) !important;
}

.hof-toggle-filters-btn.collapsed:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: var(--shadow-btn-hover) !important;
}

/* Ícone (seta) */
.toggle-icon {
    font-size: 1.1rem !important;
    transition: transform 0.3s ease !important;
    display: inline-block !important;
    line-height: 1 !important;
}

.hof-toggle-filters-btn:hover .toggle-icon {
    transform: scale(1.2) !important;
}

/* Texto do botão */
.toggle-text {
    font-size: 0.9rem !important;
    line-height: 1 !important;
}

/* ============================================================
   ELEMENTOS COLAPSÁVEIS (4 FILTROS)
   ============================================================ */

.hof-filters.collapsed,
.hof-view-selector.collapsed,
.hof-category-filters.collapsed,
.hof-super-category-filter.collapsed {
    /* Esconde completamente */
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;

    /* Remove espaçamentos */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-width: 0 !important;

    /* Animação suave */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;

    /* Remove da interação */
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Estado expandido (padrão) */
.hof-filters,
.hof-view-selector,
.hof-category-filters,
.hof-super-category-filter {
    max-height: 2000px !important; /* Altura máxima generosa */
    opacity: 1 !important;
    overflow: visible !important;
    visibility: visible !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ============================================================
   ANIMAÇÃO DE ENTRADA DO BOTÃO
   ============================================================ */

.hof-toggle-filters-btn {
    animation: fadeInButton 0.6s ease-out 0.3s backwards;
}

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

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 768px) {
    .hof-toggle-filters-btn {
        padding: 0.625rem 1.25rem !important;
        font-size: 0.85rem !important;
        margin-top: 1rem !important;
        gap: 0.375rem !important;
    }

    .toggle-text {
        font-size: 0.8rem !important;
    }

    .toggle-icon {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .hof-toggle-filters-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }

    /* Esconde texto, só mostra ícone */
    .toggle-text {
        display: none !important;
    }

    .toggle-icon {
        font-size: 1.3rem !important;
    }
}

/* ============================================================
   BADGES DE ESTATÍSTICAS (Vitórias, Pódios, Poles)
   ============================================================ */

/* Badges nos cards de pódio (grandes) */
.hof-stats-badges {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.hof-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    padding: 0.375rem 0.625rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.hof-stat-badge:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Badges nos cards top6 (compactos) */
.hof-top6-stats {
    display: flex;
    gap: 0.375rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.hof-top6-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsivo */
@media (max-width: 768px) {
    .hof-stats-badges {
        gap: 0.375rem;
        margin-top: 0.5rem;
    }

    .hof-stat-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .hof-top6-stats {
        gap: 0.25rem;
    }

    .hof-top6-stats span {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* ============================================================
   BADGES DE ESTATÍSTICAS (Vitórias, Pódios, Poles, MV)
   ============================================================ */

/* Badges nos cards de pódio (grandes) */
.hof-stats-badges {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.hof-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    padding: 0.375rem 0.625rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
    cursor: help; /* ✅ Indica tooltip */
}

.hof-stat-badge:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px) scale(1.05);
}

/* Badges nos cards top6 (compactos) */
.hof-top6-stats {
    display: flex;
    gap: 0.375rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.hof-top6-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: help; /* ✅ Indica tooltip */
    transition: all 0.2s ease;
}

.hof-top6-stats span:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* ============================================================
   LEGENDA DE ESTATÍSTICAS
   ============================================================ */

.hof-stats-legend {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
}

.hof-legend-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hof-legend-items {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hof-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.hof-legend-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hof-legend-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.hof-legend-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 768px) {
    .hof-stats-badges {
        gap: 0.375rem;
        margin-top: 0.5rem;
    }

    .hof-stat-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .hof-top6-stats {
        gap: 0.25rem;
    }

    .hof-top6-stats span {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .hof-stats-legend {
        padding: 1rem;
        margin-top: 2rem;
    }

    .hof-legend-items {
        gap: 1rem;
    }

    .hof-legend-item {
        padding: 0.375rem 0.75rem;
    }

    .hof-legend-icon {
        font-size: 1rem;
    }

    .hof-legend-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hof-legend-items {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hof-legend-item {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   BADGE FLUTUANTE DE CATEGORIA (CINEMA MODE) - LADO ESQUERDO
   ============================================================ */

.hof-current-category-badge {
    position: fixed;
    top: 100px; /* Abaixo do header/hero */
    left: -300px; /* ✅ COMEÇA ESCONDIDO À ESQUERDA */

    /* Layout */
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 12px 20px; /* ✅ PADDING INVERTIDO */

    /* Visual */
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 0 12px 12px 0; /* ✅ ARREDONDA SÓ A DIREITA */
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.3); /* ✅ SOMBRA À ESQUERDA */


    /* Tipografia */
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;

    /* Animação */
    transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), /* ✅ LEFT ao invés de RIGHT */
    opacity 0.3s ease;
    opacity: 0;
    z-index: 999;

    /* Efeito de brilho */
    backdrop-filter: blur(10px);
}

.hof-current-category-badge.visible {
    left: 0; /* ✅ DESLIZA PARA DENTRO PELA ESQUERDA */
    opacity: 1;
}

.hof-current-category-badge-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hof-current-category-badge-text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Badge pulsante (barra lateral esquerda) */
.hof-current-category-badge.visible::before {
    content: '';
    position: absolute;
    left: 0; /* ✅ ESQUERDA */
    top: 0;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ========================================
   RESPONSIVO
   ======================================== */

/* Mobile: Badge menor e mais compacto */
@media (max-width: 768px) {
    .hof-current-category-badge {
        top: 80px; /* Mais próximo do topo */
        padding: 10px 12px 10px 16px; /* ✅ PADDING AJUSTADO */
        font-size: 12px;
        border-radius: 0 8px 8px 0; /* ✅ ARREDONDA À DIREITA */
    }

    .hof-current-category-badge-icon {
        font-size: 16px;
    }

    /* Badge some mais rápido no mobile (não fica muito tempo) */
    .hof-current-category-badge.visible {
        animation: badgeAutoHideMobile 5s ease forwards;
    }
}

@keyframes badgeAutoHideMobile {
    0%, 80% { opacity: 1; }
    100% { opacity: 0.4; } /* Fica semi-transparente */
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .hof-current-category-badge {
        top: 90px;
        font-size: 13px;
    }
}

/* Desktop: Garantir que não conflita com botão auto-scroll (direita) */
@media (min-width: 1025px) {
    .hof-current-category-badge {
        max-width: 280px; /* Limita largura para não ocupar muito espaço */
    }
}




/* Hacks */

.breadcrumbs {
    padding: 15px 0;
    background: var(--bg-dark);
    min-height: 40px;
    margin-top: 72px;
}

/* Auto-Scroll Hover Simulado */
.auto-scroll-hover {
    transform: translateY(-8px) scale(1.03) !important;
    box-shadow: var(--shadow-primary) !important;
    z-index: 5 !important;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
