/* style.css */
body { 
    background-color: #121212; color: #e0e0e0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    padding: 20px; max-width: 1400px; margin: auto;
}

.timer-bar {
    background-color: #1a1a1a; color: #aaa; text-align: center;
    padding: 10px 20px; border-radius: 8px; margin-bottom: 20px;
    font-size: 0.9em; border: 1px solid #333; box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    display: flex; justify-content: space-between; align-items: center;
}

#countdown { color: #f39c12; font-weight: bold; font-size: 1.2em; padding: 0 5px; }

/* Panneau principal */
.header-panel {
    background: linear-gradient(145deg, #1e1e1e, #161616);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #333;
    border-bottom: 4px solid #f39c12;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Grille de disposition */
.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Section Titre */
.title-section h1 {
    font-size: 1.2em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-align: left;
}
.title-section h1 span {
    display: block;
    font-size: 2em;
    color: #f39c12;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 5px;
}

/* Étiquettes (Labels) */
.label {
    font-size: 0.8em;
    color: #666;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Section Map */
.map-section {
    text-align: center;
    border-left: 1px solid #333;
    border-right: 1px solid #333;
    padding: 0 20px;
}
.map-name {
    font-size: 1.4em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}

/* Indicateurs de statut (Pilules) */
.status-indicator {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
}
.status-indicator.online { background: rgba(46, 204, 113, 0.1); color: #2ecc71; border: 1px solid #2ecc71; }
.status-indicator.offline { background: rgba(231, 76, 60, 0.1); color: #e74c3c; border: 1px solid #e74c3c; }

/* Section Joueurs */
.players-section {
    text-align: right;
}
.player-count {
    font-size: 2.2em;
    font-weight: bold;
    color: #fff;
}
.player-count .separator { color: #444; margin: 0 5px; }
.player-count .max { color: #666; font-size: 0.6em; }
.player-label { color: #888; font-size: 0.9em; }

/* Responsive : sur mobile on empile les colonnes */
@media (max-width: 800px) {
    .header-grid { flex-direction: column; text-align: center; }
    .title-section h1 { text-align: center; }
    .map-section { border: none; padding: 20px 0; }
    .players-section { text-align: center; }
}

h1 { color: #f39c12; margin-top: 0; letter-spacing: 1px;}

.status-badge {
    display: inline-block; padding: 8px 15px; border-radius: 20px;
    font-weight: bold; margin: 5px; background-color: #2c2c2c; font-size: 0.9em;
}

.online { color: #2ecc71; border: 1px solid #2ecc71; }
.offline { color: #e74c3c; border: 1px solid #e74c3c; }

.search-container { text-align: right; margin-bottom: 15px; }

#searchInput {
    padding: 10px 20px; width: 300px; border-radius: 20px;
    border: 1px solid #333; background-color: #1e1e1e; color: #fff;
    outline: none; transition: 0.3s; font-size: 0.9em;
}

#searchInput:focus { border-color: #f39c12; box-shadow: 0 0 5px rgba(243, 156, 18, 0.5); }

.table-container { overflow-x: auto; }

table { 
    width: 100%; border-collapse: collapse; 
    background-color: #1e1e1e; border-radius: 8px; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); white-space: nowrap;
}

th, td { padding: 12px 10px; text-align: center; border-bottom: 1px solid #333; font-size: 0.95em; }

th { background-color: #2c2c2c; color: #f39c12; cursor: pointer; text-transform: uppercase; font-size: 0.85em; letter-spacing: 0.5px;}

th:hover { background-color: #3d3d3d; }

td:nth-child(2) { text-align: left; font-weight: bold; font-size: 1.05em; color: #fff; }

tr:hover { background-color: #2a2a2a; }

.player-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid #333; object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.rank-info { display: flex; align-items: center; gap: 8px; font-size: 0.8em; color: #aaa; font-weight: normal; margin-top: 4px; }

.rank-icon { height: 22px; width: auto; vertical-align: middle; }

.player-name-container { display: flex; align-items: center; gap: 12px; }

.medal { font-size: 1.5em; width: 30px; text-align: center; }

.btn-link { text-decoration: none; font-weight: bold; font-size: 0.8em; padding: 4px 8px; border-radius: 4px; background-color: #2a2a2a; display: inline-block; margin: 2px;}

.btn-steam { color: #66c0f4; border: 1px solid #66c0f4; } 

.btn-leetify { color: #ff4655; border: 1px solid #ff4655; }

.btn-link:hover { background-color: #333; }

.sub-text { font-size: 0.8em; color: #888; display: block; }

.highlight { color: #3498db; font-weight: bold; }