.search-section {
    background: rgba(54, 84, 95, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-bar input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(25, 24, 24, 0.8);
    border: 1px solid #475569;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
}

.search-bar input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.search-icon img {
    width: 20px;
    height: 20px;
    display: block;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filter-label {
    color: #cbd5e1;
    font-weight: 600;
}

select, .filter-btn {
    padding: 0.75rem 1rem;
    background: rgba(25, 24, 24, 0.8);
    border: 1px solid #475569;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

select:focus, .filter-btn:focus {
    outline: none;
    border-color: #60a5fa;
}

.filter-btn:hover {
    background: rgba(54, 84, 95, 0.6);
}

.filter-btn.active {
    background: #2563eb;
    border-color: #3b82f6;
}

.filter-btn img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 0.5rem;
    display: inline-block;
}

.results-info {
    margin-left: auto;
    color: #94a3b8;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.per-page-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.per-page-selector label {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.per-page-selector select {
    padding: 0.5rem;
    font-size: 0.9rem;
}

.halo-list {
    background: rgba(54, 84, 95, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.halo-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
    cursor: pointer;
}

.halo-item:last-child {
    border-bottom: none;
}

.halo-item:hover {
    background: rgba(96, 165, 250, 0.1);
}

.game-number {
    color: #94a3b8;
    font-weight: 600;
    min-width: 50px;
    font-size: 0.9rem;
}

.game-name {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mlg-icon {
    color: #fbbf24;
    font-size: 1rem;
}

.mlg-icon img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    display: inline-block;
}

#mlgBtn .mlg-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 0.5rem;
    display: inline-block;
}

.game-badges {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-mode {
    background: rgba(37, 99, 235, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.badge-halo {
    background: rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

/* Favorite button styles - consolidated */
.favorite-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.favorite-btn img {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}

.favorite-btn:hover img {
    filter: brightness(1.2);
}

/* Modal button image styles */
.halo_info_popup-btn img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 0.5rem;
    display: inline-block;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
    font-size: 1.125rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #60a5fa;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.75rem 1.5rem;
    background: rgba(54, 84, 95, 0.6);
    border: 1px solid #475569;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    background: rgba(96, 165, 250, 0.3);
    border-color: #60a5fa;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-info {
    color: #cbd5e1;
    font-weight: 500;
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .results-info {
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
    }

    .halo-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        position: relative;
    }

    .game-number {
        min-width: auto;
    }

    .game-badges {
        margin-right: 0;
    }

    .favorite-btn {
        position: absolute;
        right: 1rem;
        top: 1rem;
    }
}