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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

.title {
    font-family: 'Creepster', cursive;
    font-size: 3.5rem;
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #a8a8a8;
    font-weight: 300;
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #333;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.search-input::placeholder {
    color: #888;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #888;
}

/* Evidence Section */
.evidence-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.evidence-section h3 {
    margin-bottom: 20px;
    color: #ff6b6b;
    font-size: 1.3rem;
}

.evidence-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.evidence-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.evidence-checkbox:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
}

.evidence-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    font-size: 0.9rem;
    font-weight: 500;
}

.evidence-checkbox input[type="checkbox"]:checked + .checkmark {
    color: #ff6b6b;
    font-weight: 700;
}

.evidence-checkbox input[type="checkbox"]:checked {
    background: rgba(255, 107, 107, 0.3);
}

.clear-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Entities Grid */
.entities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.entity-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

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

.entity-card.hidden {
    display: none;
}

.entity-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 15px;
    text-align: center;
}

.entity-evidence {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.evidence-tag {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.entity-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #a8a8a8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid #ff6b6b;
    box-shadow: 0 0 50px rgba(255, 107, 107, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff6b6b;
}

.modal-header {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    padding: 30px;
    border-radius: 18px 18px 0 0;
    text-align: center;
}

.modal-title {
    font-family: 'Creepster', cursive;
    font-size: 2.5rem;
    color: white;
    margin: 0;
}

.modal-body {
    padding: 30px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h3 {
    color: #ff6b6b;
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 107, 107, 0.3);
    padding-bottom: 8px;
}

.modal-section ul {
    list-style: none;
    padding-left: 0;
}

.modal-section li {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #ff6b6b;
}

.audio-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.audio-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-item h4 {
    color: #ff6b6b;
    margin-bottom: 10px;
    font-size: 1rem;
}

.audio-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.play-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: #ee5a24;
    transform: scale(1.05);
}

.audio-info {
    font-size: 0.8rem;
    color: #a8a8a8;
    margin-top: 5px;
}

/* Barre de défilement futuriste */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, 
        rgba(255, 107, 107, 0.1) 0%, 
        rgba(26, 26, 46, 0.8) 50%, 
        rgba(255, 107, 107, 0.1) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        #ff6b6b 0%, 
        #ee5a24 25%, 
        #ff6b6b 50%, 
        #ee5a24 75%, 
        #ff6b6b 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 0 8px rgba(255, 107, 107, 0.6),
        inset 0 0 4px rgba(255, 255, 255, 0.2);
    position: relative;
}

::-webkit-scrollbar-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    border-radius: 10px;
    animation: scrollbarShine 2s ease-in-out infinite;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        #ee5a24 0%, 
        #ff6b6b 25%, 
        #ee5a24 50%, 
        #ff6b6b 75%, 
        #ee5a24 100%);
    box-shadow: 
        0 0 15px rgba(255, 107, 107, 0.8),
        0 0 25px rgba(255, 107, 107, 0.4),
        inset 0 0 6px rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, 
        #ff4757 0%, 
        #ff6b6b 25%, 
        #ff4757 50%, 
        #ff6b6b 75%, 
        #ff4757 100%);
    box-shadow: 
        0 0 20px rgba(255, 107, 107, 1),
        0 0 30px rgba(255, 107, 107, 0.6),
        inset 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Animation pour l'effet de brillance */
@keyframes scrollbarShine {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-100%);
    }
    50% {
        opacity: 0.8;
        transform: translateX(100%);
    }
}

/* Pour Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #ff6b6b rgba(26, 26, 46, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .entities-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .evidence-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 2rem;
    }
    
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .entities-grid {
        grid-template-columns: 1fr;
    }
    
    .audio-section {
        grid-template-columns: 1fr;
    }
} 