.player-h1 {
    color: var(--text-primary);
}
.playerbook-container {

    width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
}

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

.search-bar-container input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 5px;
    color: #fff;
    width: 100%;
}

.search-bar-container button {
    background: var(--primary-purple);
    border: none;
    color: #000;
    padding: 0 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    width: 40px;
    border-radius: 5px;
}

.page-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.2s;
}
.page-btn:hover {
    background: var(--primary-purple);
    color: #000;
}
.page-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 10px;
}

/* tableau */
.table-responsive {
    overflow-x: auto;
    background: var(--background-card);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 100%;
}

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

.player-table th, .player-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.player-table th {
    background: rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 10;
}

.player-table th a {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}
.player-table th a:hover {
    color: var(--primary-purple);
}

.player-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.col-img img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.2);
}

.font-bold { font-weight: bold; }
.stat-cell { font-family: monospace; font-size: 1.1rem; color: #f1c40f; }

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #000;
}

/* Éléments */
.elem-fire { background: #e74c3c; color: #fff; }
.elem-wind { background: #34c8db; }
.elem-forest { background: #27ae60; color: #fff;}
.elem-mountain { background: #e67e22; }
.elem-void { background: #95a5a6; }

/* Positions */
.pos-gk { background: #f1c40f; }
.pos-df { background: #3498db; color: #fff; }
.pos-mf { background: #2ecc71; }
.pos-fw { background: #e74c3c; color: #fff; }

/* Conteneur des contrôles */
.controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 1.5rem;
    width: 100%;
}


/* Barre de recherche */

.search-bar-container {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
    width: auto;
    flex-grow: 1;
    justify-content: flex-start;
    max-width: 500px;
}

/* Navigation entre les pages de la liste */
.pagination {
    margin-bottom: 0;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
    .controls-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-bar-container {
        max-width: 100%;
    }
    
    .pagination {
        padding: 0.5rem;
        font-size: 0.7rem;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        background: none;
    }

    .page-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    
    .page-info {
        font-size: 0.6rem;
    }
}

/* --- DROPDOWN FILTERS (TH) --- */

/* La cellule d'en-tête */
.th-dropdown {
    position: relative; /* Pour que le menu s'affiche par rapport à ça */
    cursor: pointer;
}

.th-dropdown:hover {
    color: var(--primary-purple);
}

/* Le menu caché par défaut */
.dropdown-content {
    display: none; /* Caché */
    position: absolute;
    top: 100%; /* Juste en dessous du titre */
    left: 0;
    background-color: var(--background-card);
    min-width: 120px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    z-index: 100; /* Très important pour passer au-dessus des lignes */
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

/* Affichage au survol */
.th-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* Les liens dans le menu */
.dropdown-content a {
    color: var(--text-primary);
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-weight: normal;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-purple);
}

/* Lien actif (celui sélectionné) */
.dropdown-content a.active {
    background-color: var(--primary-purple);
    color: #000;
    font-weight: bold;
}

/* Animation douce */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Saut de page */

/* Formulaire qui contient l'input */
.page-jump-form {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Input numéro de page */
.page-input {
    width: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--text-primary);
    border-radius: 4px;
    color: #fff;
    padding: 4px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.2s;
}

.page-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: rgba(255, 255, 255, 0.15);
}

/* Cache les flèches  */
.page-input::-webkit-outer-spin-button,
.page-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
.page-input {
  -moz-appearance: textfield;
}

.subtitle-playerbook {
        margin-bottom: 0.5rem !important;
    }